I am trying to build a demonstration "layout" and I want a train coming out of a portal to randomly take one of two diverging lines.
I set up a trigger (trigger0) about 100 meters before the junction (junction0), then I added the following rules to the session:
- Check trackside (settings = when any train enters trigger0; runs repeatedly)
-- Random list
--- Set junctions (settings = set junction0 to left; unlocked)
--- Set junctions (settings = set junction0 to right; unlocked)
I thought, by reading the Sessions & Rules Guide, that following a Random List rule one of the its child rules, chosen at random, is executed together with its children rules (if any are present). The harsh reality, however, is different.
This set of rules works for the first train coming out of the portal. All the subsequent trains activate the trigger (I put a "Flash HUD Panel to be sure) but Random list does not activate and all the trains follow the direction of the first one. It seems that Random List works only once.
Can someone please help me to find where I am wrong? I'm almost sure I'm doing something wrong, but I have been unable to identify the error.
I set up a trigger (trigger0) about 100 meters before the junction (junction0), then I added the following rules to the session:
- Check trackside (settings = when any train enters trigger0; runs repeatedly)
-- Random list
--- Set junctions (settings = set junction0 to left; unlocked)
--- Set junctions (settings = set junction0 to right; unlocked)
I thought, by reading the Sessions & Rules Guide, that following a Random List rule one of the its child rules, chosen at random, is executed together with its children rules (if any are present). The harsh reality, however, is different.
This set of rules works for the first train coming out of the portal. All the subsequent trains activate the trigger (I put a "Flash HUD Panel to be sure) but Random list does not activate and all the trains follow the direction of the first one. It seems that Random List works only once.
Can someone please help me to find where I am wrong? I'm almost sure I'm doing something wrong, but I have been unable to identify the error.