Repeat function in repeat loop.

General Trainz discussion and questions.
Post Reply
petefliege
New Starter
Posts: 2
Joined: Mon Jan 22, 2024 12:32 pm
Trainz Version: 2022

Repeat function in repeat loop.

Post by petefliege »

Hi everybody,
i am new here. Just started with Trainz 22 for a few weeks. I wanted to learn the technical stuff first (TRC,ATLS,Junction, Triggers,Turntables) before i go on building the landscapes.
I have (for me) a problem and i could not find a solution in the forum and somewhere else.
I will try to explain it and hold it very simple. A simple circuit with three Trackmarks. A junction that goes out of the circuit and back again.

The Train should drive: South 1 to North 1, Repeat this 2 times( or more ,perhaps 15 times ),then drive to North2, and then repeat everything from the beginning again.

I know i could copy the commands, but if i got much more trackmarks or commands that could be very, very long. I wanted to keep things short.

I tried it with KCMD Repeat and THR Repeat.
1.)Kcmd and 2.)THR are scripts

1.)Kuid 579234:512

2.)Kuid 2 :334624:1075:1

With the Kmcd you could say in the driver command how many times it should be repeated, but it messed up with North2.
It did not work. Or i did something wrong.
It is driving me crazy.I am trying for over one week now.


Thanks very much.
Peter
Post Reply