HG-Bonfire
New Member
- Reaction score
- 22
Ok, so the idea for the map is that there is a 6 by 6 grid of elevators, all set to 3, floating above a pool of water. When the game starts, 9 peasents are spawned randomly on the grid, one for each player, and then 3 random platforms drop into the water every 2.5 seconds. When a platform drops with a unit on it, the unit dies.
The problem is that the trigger has no control. About 1/2 of the time it actually works and the platform drops, the unit dies, and the elevator walls close. The other half, only 1 or 2 of those things happen, so platforms sometimes drop and the unit is still alive, sometimes units die for no reason at all, and sometimes the walls of the elevator close and trap people.
Heres the trigger,
Any idea why it would be doing this?
The problem is that the trigger has no control. About 1/2 of the time it actually works and the platform drops, the unit dies, and the elevator walls close. The other half, only 1 or 2 of those things happen, so platforms sometimes drop and the unit is still alive, sometimes units die for no reason at all, and sometimes the walls of the elevator close and trap people.
Heres the trigger,
Code:
Platform Drops 2
Events
Conditions
Game Equal to 1
Actions
Wait 2.50 seconds
Set Elevator1 = (Random destructible in Platform Droppers <gen>)
Set Elevator2 = (Random destructible in Platform Droppers <gen>)
Set Elevator3 = (Random destructible in Platform Droppers <gen>)
Region - Center Platform Killer 1 <gen> on (Position of Elevator1)
Region - Center Plaform Killer 2 <gen> on (Position of Elevator2)
Region - Center Platform Killer 3 <gen> on (Position of Elevator3)
Destructible - Close All walls of Elevator1
Destructible - Close All walls of Elevator2
Destructible - Close All walls of Elevator3
Destructible - Set height of Elevator1 to 1
Destructible - Set height of Elevator2 to 1
Destructible - Set height of Elevator3 to 1
Wait 1.00 seconds
Unit Group - Pick every unit in (Units in Platform Killer 1 <gen>) and do (Unit - Kill (Picked unit))
Unit Group - Pick every unit in (Units in Plaform Killer 2 <gen>) and do (Unit - Kill (Picked unit))
Unit Group - Pick every unit in (Units in Platform Killer 3 <gen>) and do (Unit - Kill (Picked unit))
Trigger - Run (This trigger) (checking conditions)
Any idea why it would be doing this?