A new order

Got an idea for OpenTTD? Post it here!

Moderator: OpenTTD Developers

Post Reply
eenander
Engineer
Engineer
Posts: 19
Joined: 25 Oct 2010 13:48

A new order

Post by eenander »

Is there a way for ships, cars, plains and trains that a order 'goto if full' is add. Sometimes there is a lot of cargo and than the train has to go to a differnd station to unload.
User avatar
Redirect Left
Tycoon
Tycoon
Posts: 7249
Joined: 22 Jan 2005 19:31
Location: Wakefield, West Yorkshire

Re: A new order

Post by Redirect Left »

When you say 'goto if full', do you mean skip to a different station on the list of stops, or make a special exception and go to a different station not on the regular list of stations?

There are things called conditional orders that might help, which are explained here far better than I could ever do, and they do allow for jumping over the regular order of stations to visit at if conditions are met, from what I can tell from that page.
Image
Need some good tested AI? - Unofficial AI Tester, list of good stuff & thread is here.
User avatar
odisseus
Director
Director
Posts: 568
Joined: 01 Nov 2017 21:19

Re: A new order

Post by odisseus »

Yes, you can add a conditional jump to any order in the order list. The condition can be based on the current load percentage of the vehicle — that is, jump if the load percentage is greater than, equal to, or smaller than a certain value. This allows to implement both "skip when full" and "skip when empty" conditions.

You may want to set the jump condition to load percentage of, say, 80% or more, so that the vehicle doesn't make a large detour only to pick a few units of cargo. But keep in mind that stations which are frequently skipped suffer a rating drop and collect less cargo.
Post Reply

Return to “OpenTTD Suggestions”

Who is online

Users browsing this forum: No registered users and 21 guests