- Joined
- Jul 19, 2010
- Messages
- 6
Hello,
I have to ask something about leaks in triggers:
This is my trigger and I wanted to know if I did correctly so it doesn't leak:
And another one about that group:
If they leak, can you show my where and how I can avoid it?
Thanks you.
I have to ask something about leaks in triggers:
This is my trigger and I wanted to know if I did correctly so it doesn't leak:
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (DamageEventSource has buff The Hand of Ares ) Equal to Wahr
-
Then - Actions
- Set VariableSet HandofAresCount = 0
-
For each (Integer A) from 1 to 6, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Item-type of (Item carried by DamageEventSource of type |cffffff00The Hand of Ares|r)) Equal to (Item-type of (Item carried by DamageEventSource in slot (Integer A)))
-
Then - Actions
- Set VariableSet HandofAresCount = (HandofAresCount + 1)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Set VariableSet MapLocation = (Center of (Playable map area))
- Unit - Create 1 DAMAGEDUMMY for (Owner of DamageEventSource) at MapLocation facing Default building facing degrees
- Custom script: call RemoveLocation(udg_MapLocation)
- Unit - Cause (Last created unit) to damage DamageEventTarget, dealing (200.00 x (Real(HandofAresCount))) damage of attack type Chaos and damage type Normal
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
- Special Effect - Create a special effect attached to the chest of DamageEventTarget using Abilities\Spells\Undead\CarrionSwarm\CarrionSwarmDamage.mdl
- Special Effect - Destroy (Last created special effect)
- Else - Actions
-
If - Conditions
And another one about that group:
-
Boss Event
-
Events
- Time - Every 1.00 seconds of game time
-
Conditions
- (Number of units in (Units in PlayableArea <gen> owned by Player 12 (Brown))) Less than or equal to 0
-
Actions
- Set VariableSet BossCheck = (BossCheck + 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- BossCheck Greater than or equal to 2
-
Then - Actions
- Set VariableSet BossCheck = 0
- Trigger - Turn off (This trigger)
- Game - Display to (All players) for 20.00 seconds the text: |cffff0000An evil b...
- Cinematic - Ping minimap for (All players) at (Center of Spawn Boss <gen>) for 20.00 seconds, using a Warning ping of color (100.00%, 100.00%, 100.00%)
- Trigger - Turn on Boss Spawn <gen>
- Else - Actions
-
If - Conditions
-
Events
If they leak, can you show my where and how I can avoid it?
Thanks you.