I'd like to make this trigger leak-less and lag-less as much as i can
Trigger:
- Drop
- Events
- Time - Every 0.10 seconds of game time
- Conditions
- Actions
- Set Point[1] = (Random point in Region 000 <gen>)
- Unit - Create 1 Peasant for Player 1 (Red) at Point[1] facing Default building facing degrees
- Custom script: call RemoveLocation(udg_Point[1])
- Events
Trigger:
- Damage
- Events
- Unit - A unit enters (Entire map)
- Conditions
- (Unit-type of (Entering unit)) Equal to Peasant
- Actions
- Unit - Kill (Entering unit)
- Set Point[2] = (Random point in Region 000 <gen>)
- Unit - Cause (Entering unit) to damage circular area after 0.00 seconds of radius 200.00 at Point[2], dealing 100.00 damage of attack type Normal and damage type Normal
- Custom script: call RemoveLocation(udg_Point[2])
- Events