- Joined
- Jul 15, 2012
- Messages
- 89
hello everyone , this is my only leaking trigger (according to leak tester) how can i fix it ? it makes wc3 use 1gb ram after half an hour playing.
-
Police win
-
Events
- Time - Every 10.00 seconds of game time
- Conditions
-
Actions
- Set Group = (Units in Prison <gen> matching ((((Matching unit) is A Hero) Equal to True) and (((Matching unit) belongs to an enemy of Player 1 (Red)) Equal to True)))
- Set Group2 = (Units in (Playable map area) matching ((((Matching unit) is A Hero) Equal to True) and (((Matching unit) belongs to an enemy of Player 1 (Red)) Equal to True)))
- Unit Group - Remove all units of Group from Group2
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Number of units in Group2) Equal to 0
-
Then - Actions
- Game - Victory Player 1 (Red) (Show dialogs, Show scores)
- Game - Victory Player 10 (Light Blue) (Show dialogs, Show scores)
- Game - Defeat Player 2 (Blue) with the message: Defeat!
- Game - Defeat Player 3 (Teal) with the message: Defeat!
- Game - Defeat Player 4 (Purple) with the message: Defeat!
- Game - Defeat Player 5 (Yellow) with the message: Defeat!
- Game - Defeat Player 9 (Gray) with the message: Defeat!
- Game - Defeat Player 11 (Dark Green) with the message: Defeat!
- Game - Defeat Player 12 (Brown) with the message: Defeat!
- Else - Actions
-
If - Conditions
- Custom script: call DestroyGroup(udg_Group)
- Custom script: call DestroyGroup(udg_Group2)
-
Events