I'm new to Trainz and new to this session editing malarky but have dabbled with programming before. I'm playing with the roundhouse as a way of figuring out the pseudo programming of the surveyor.
I've got my turntable control just fine, and I can set up a static command list on my driver to drive up the roundhouse approach, onto the TT, rotate and back in to the bay.
Yay! but now I want more
....
I have triggers set up on each of the roundhouse engine shed spurs so that as my trains go in from bay 1-7 a variable is incremented
baysfull=2 for example means that bays 1 and 2 are occupied.
Now on my arrival spur I have a trigger, and on arrival at the trigger I want to check the variable, and depending on the value pull a particular set of driver commands out of "schedule library" such that the engine gets directed into the next free bay.
The logic I'm after is
Trigger check
--->variable check //baysfull=0
-------->add commands to get to bay1 from schedule library
--->variable check //baysfull=1
-------->add commands to get to bay2 from schedule library
--->variable check //baysfull=2
-------->add commands to get to bay3 from schedule library
etc.
How do I go about adding the commands, there must be a rule I'm missing. "Copy commands from" works if I add manually within driver mode but is not an option in my edit session screen to do it in a "scripted" way.
any clues gratefully received.
I've got my turntable control just fine, and I can set up a static command list on my driver to drive up the roundhouse approach, onto the TT, rotate and back in to the bay.
Yay! but now I want more
I have triggers set up on each of the roundhouse engine shed spurs so that as my trains go in from bay 1-7 a variable is incremented
baysfull=2 for example means that bays 1 and 2 are occupied.
Now on my arrival spur I have a trigger, and on arrival at the trigger I want to check the variable, and depending on the value pull a particular set of driver commands out of "schedule library" such that the engine gets directed into the next free bay.
The logic I'm after is
Trigger check
--->variable check //baysfull=0
-------->add commands to get to bay1 from schedule library
--->variable check //baysfull=1
-------->add commands to get to bay2 from schedule library
--->variable check //baysfull=2
-------->add commands to get to bay3 from schedule library
etc.
How do I go about adding the commands, there must be a rule I'm missing. "Copy commands from" works if I add manually within driver mode but is not an option in my edit session screen to do it in a "scripted" way.
any clues gratefully received.
Last edited: