- Joined
- Feb 6, 2014
- Messages
- 2,466
Is this kind of damage detection bad? Don't focus on the Map Init leak, but instead on the method.
-
Initial Register
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
-
Loop - Actions
-
Trigger - Add to Detect Damage <gen> the event (Unit - (Picked unit) Takes damage)
-
-
-
-
-
Register Unit
-
Events
-
Unit - A unit enters (Playable map area)
-
-
Conditions
-
Actions
-
Trigger - Add to Detect Damage <gen> the event (Unit - (Triggering unit) Takes damage)
-
-
-
Detect Damage
-
Events
-
Conditions
-
Actions
-
Game - Display to (All players) the text: (Damage Taken by + (Name of (Triggering unit)))
-
-