Download TrainPlayer/TrackLayer Manual

Transcript
Click To Insert
When developing scripts by hand, you often need to enter
junction or switch numbers and positions. TrainPlayer can
do this for you when you right-click a junction or switch.
With the Script Editor window visible, and the edit cursor
positioned where you want the insertion to go, right-click
and choose one of:
●
●
●
Insert junction number: inserts J followed by the
number of the switch or junction. This is typically used when entering an AT or AFTER condition to cause an
action at a junction.
Insert throw here: inserts THROW followed by the switch number, followed by the current switch position,
then carriage return. This will ensure that the switch goes to its current position when the script executes
that statement.
Insert throw alternate: inserts THROW, switch number, then the other position of the switch, i.e., where it
would be if thrown. This is a shortcut for throwing the switch, then inserting "throw here."
Go To Statement
If you right-click a line in the script text window, the menu includes a command Go To Statement. This means
advance the script pointer to this statement, so the next time you begin playing, it starts here.
This is not quite as handy as it sounds. Moving the script pointer does not move the trains, so unless the trains are
in the right places, starting the script from an arbitrary statement will not work well. However, there is a detail which
can get around this in many cases: if the line you select has a position indicator -- an AT (T,J,D) wait condition
specifying a precise location -- then the train will jump to that location when you choose the command. The train