Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion/Question: Am I able to create "or/else" statements in conditional train orders? #608

Closed
NicholasRB opened this issue Nov 16, 2023 · 2 comments

Comments

@NicholasRB
Copy link

NicholasRB commented Nov 16, 2023

I've come across a unique situation where I have a trains that share a schedule acting as real life manifests (trains that just go from yard to yard). In game they go from yard station to yard station to bulk transfer cargo easier then running each individual train back and forth. So after fiddling around with the conditional orders and such, I realized very quickly there is no way that I know of making an "else" statement like signals allow us to do. Everything in a train's orders acts as an "and" command with no way of changing that.

I want to make it so if anything that heads to the station (Birmingham is Chemicals, Machines & eventually Scrap Metal. Dover is Metal and Oil) is waiting in the station to be picked up, the train heads to that station. Currently what happens is the train just gets stuck on the 1st order or whatever order is not able to be fulfilled just staying in the depot the whole time and not even caring about the rest of the cargos I put in the schedule.
Pennsylvania, Reading   Pacific, 1958-11-10

@JGRennison
Copy link
Owner

In general the "else" case is the order immediately after a jump.
"Or" type functionality is just another conditional jump with the same target.

I'm not really sure what the order list is trying to do, but for example:
Order 5 does nothing and can be removed.
Order 14 can be replaced with an unconditional jump (because of order 13), so order 15 therefore does nothing, so orders 14 and 15 can both be removed.

@NicholasRB
Copy link
Author

Ah okay that makes sense. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants