hi
how can i add a message trigger to a route?
for exampel 2 miles before i reach a station a messages pop ups: "Next station: York"
thanks in advance
Brian
adding route messages triggers
Moderator: Moderators
- LoneWolfDon
- Been on the forums for a while
- Posts: 175
- Joined: Fri Dec 04, 2009 4:43 pm
- Location: Canada
- Contact:
Re: adding route messages triggers
This took me a bit of figuring out too, and with a bit of trial and error and experimenting with things I know how to do it now.
Add a "Go via ..." instruction, then once the train passes over that point you can have it display a message.
To do this, you would add a "Stop" instruction, but slightly different.
So, for example, let's say you place a "Destination" marker about 2 miles from where you want to trigger a text-message to appear. Let's say you call this Destination marker "x1". Now add a Stop instruction on your Driver's train to "Stop at x1", however the problem is we really don't want to actually Stop, but rather use this as a "Go via" Destination in which the train would keep going past that point.
In the Stop instruction you'll see something like "0 MPH", which would mean it is expecting the train to actually stop at that point (So to have speed at 0 "Zero" MPH). Now click on the "0 MPH" part, and change the number to "1 MPH". This will tell the instruction that as long as the train is doing at least 1 MPH or more, then instead of a Stop command it actually becomes a Go via command and you can then tell it to trigger the message as the train passes over it. So in the instruction list it would now show at "Go via x1" for that particular instruction.
Myself, if I just want it to say a message as the train passes over that point, I tend to fill in both lines for Completed and Failed lines with the same text-message (just in case the driver actually did decide or made the mistake to stop there rather than continuing to go past it without stopping), so you might put in your message "You have 2 miles to go!", or whatever you like.
Using "Go via ..." instructions like this is also a good way to help guide the correct path and direction of where you want the driver to take his train (or an AI train for that matter too), as RailWorks pathing seems it looks for the most shortest / easier / direct route to a destination point, but that is not always what you want, whereas sometimes you want to take the "long way around" rather than the most direct or shortest way.
Okay, hope that helps.
Good luck.
--- Don.
PS: Actually, this would be in within a "Scenario" rather than in the route itself.
Add a "Go via ..." instruction, then once the train passes over that point you can have it display a message.
To do this, you would add a "Stop" instruction, but slightly different.
So, for example, let's say you place a "Destination" marker about 2 miles from where you want to trigger a text-message to appear. Let's say you call this Destination marker "x1". Now add a Stop instruction on your Driver's train to "Stop at x1", however the problem is we really don't want to actually Stop, but rather use this as a "Go via" Destination in which the train would keep going past that point.
In the Stop instruction you'll see something like "0 MPH", which would mean it is expecting the train to actually stop at that point (So to have speed at 0 "Zero" MPH). Now click on the "0 MPH" part, and change the number to "1 MPH". This will tell the instruction that as long as the train is doing at least 1 MPH or more, then instead of a Stop command it actually becomes a Go via command and you can then tell it to trigger the message as the train passes over it. So in the instruction list it would now show at "Go via x1" for that particular instruction.
Myself, if I just want it to say a message as the train passes over that point, I tend to fill in both lines for Completed and Failed lines with the same text-message (just in case the driver actually did decide or made the mistake to stop there rather than continuing to go past it without stopping), so you might put in your message "You have 2 miles to go!", or whatever you like.
Using "Go via ..." instructions like this is also a good way to help guide the correct path and direction of where you want the driver to take his train (or an AI train for that matter too), as RailWorks pathing seems it looks for the most shortest / easier / direct route to a destination point, but that is not always what you want, whereas sometimes you want to take the "long way around" rather than the most direct or shortest way.
Okay, hope that helps.
Good luck.
--- Don.
PS: Actually, this would be in within a "Scenario" rather than in the route itself.
RailWorks Route & Scenario addons, video tutorials and other resources at http://www.RRYard.com