#1
Ladder Trigger Help
Hey guys, looking for a bit of help with a ladder trigger.What I'm attempting to do is only allow one unit up the ladder each second, but this has proven to be more complicated than I orginally imagined. Right now what I have is:
Ladder 10
Events
Unit - A unit enters Ladder10A <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Ladder
Actions
Trigger - Turn on Ladder 10 Destroyed <gen>
Trigger - Turn on Ladder 10 Enter <gen>
Trigger - Turn on Ladder 10 Leave <gen>
Trigger - Turn on Ladder 10 Climb <gen>
Set Ladder[10] = (Triggering unit)
Unit - Move (Triggering unit) instantly to (Center of Ladder10A <gen>), facing 90.00 degrees
Unit - Make (Triggering unit) Invulnerable
Unit - Pause (Triggering unit)
Wait 60.00 game-time seconds
Unit - Make (Triggering unit) Vulnerable
Trigger - Turn off (This trigger)
Ladder 10 Enter
Events
Unit - A unit enters Ladder10B <gen>
Conditions
And - All (Conditions) are true
Conditions
(Unit-type of (Triggering unit)) Not equal to Battering Ram
(Unit-type of (Triggering unit)) Not equal to Ladder
(Unit-type of (Triggering unit)) Not equal to Large Ladder
(Unit-type of (Triggering unit)) Not equal to Uruk Hai Torch Carrier
Or - Any (Conditions) are true
Conditions
(Owner of (Triggering unit)) Equal to Player 7 (Green)
(Owner of (Triggering unit)) Equal to Player 9 (Gray)
(Owner of (Triggering unit)) Equal to Player 10 (Light Blue)
(Owner of (Triggering unit)) Equal to Player 11 (Dark Green)
Actions
Unit Group - Add (Triggering unit) to LadderGroups[10]Ladder 10 Leave
Events
Unit - A unit leaves Ladder10B <gen>
Conditions
And - All (Conditions) are true
Conditions
(Unit-type of (Triggering unit)) Not equal to Battering Ram
(Unit-type of (Triggering unit)) Not equal to Ladder
(Unit-type of (Triggering unit)) Not equal to Large Ladder
(Unit-type of (Triggering unit)) Not equal to Uruk Hai Torch Carrier
Or - Any (Conditions) are true
Conditions
(Owner of (Triggering unit)) Equal to Player 7 (Green)
(Owner of (Triggering unit)) Equal to Player 9 (Gray)
(Owner of (Triggering unit)) Equal to Player 10 (Light Blue)
(Owner of (Triggering unit)) Equal to Player 11 (Dark Green)
Actions
Unit Group - Remove (Triggering unit) from LadderGroups[10]Ladder 10 Climb
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Unit - Move (Random unit from LadderGroups[10]) instantly to (Center of Ladder10C <gen>)Ladder 10 Destroyed
Events
Unit - A unit Dies
Conditions
(Triggering unit) Equal to Ladder[10]
Actions
Unit Group - Pick every unit in LadderGroups[10] and do (Unit Group - Remove (Picked unit) from LadderGroups[10])
Trigger - Turn off Ladder 10 Enter <gen>
Trigger - Turn off Ladder 10 Leave <gen>
Trigger - Turn off Ladder 10 Climb <gen>
Trigger - Turn on Ladder 10 <gen>
Trigger - Turn off (This trigger)The ladder goes invul and vul properly, but no units climb it. Thanks to anyone who can give me some help!