colinjames12
Member
- Reaction score
- 0
This question is for "experts or anybody who knows how hashtables work" only. If you'll look closely on the trigger, you won't see any custom scripts that will remove any possible leaks in it. All I did was clear all the child hashtables in the hashtable. My question is, will it remove all the leaks in the trigger or should I put a call RemoveLocation, call DestroyGroup, etc?
Trigger:
- aoe spell Copy 5
- Events
- Time - Every 0.03 seconds of game time
- Conditions
- Actions
- Unit Group - Pick every unit in aoegroup_Copy_4 and do (Actions)
- Loop - Actions
- Set aoetime = (Load 1 of (Key (Picked unit)) from aoehashtable)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Load 1 of (Key (Picked unit)) from aoehashtable) Equal to 1.20
- Then - Actions
- Set aoetargetgroup_Copy = (Units within 1500.00 of (Load 3 of (Key (Picked unit)) in aoehashtable) matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and ((((Matching unit) belongs to an ally of (Owner of (Picked unit))) Equal t
- Hashtable - Save Handle Ofaoetargetgroup_Copy as 4 of (Key (Picked unit)) in aoehashtable
- Unit Group - Pick every unit in (Load 4 of (Key (Picked unit)) in aoehashtable) and do (Actions)
- Loop - Actions
- Set aoetargetpoint = (Position of (Picked unit))
- Hashtable - Save Handle Ofaoetargetpoint as 5 of (Key (Picked unit)) in aoehashtable
- Unit - Create 1 Fire Embrace for (Owner of aoeunit) at (Load 5 of (Key (Picked unit)) in aoehashtable) facing (Facing of (Picked unit)) degrees
- Unit - Add a 1.25 second Generic expiration timer to (Last created unit)
- Unit - Create 1 Fire Embrace Aura for (Owner of aoeunit) at (Load 5 of (Key (Picked unit)) in aoehashtable) facing (Facing of (Picked unit)) degrees
- Unit - Add a 1.25 second Generic expiration timer to (Last created unit)
- Unit - Create 1 Fire Embrace Aura for (Owner of aoeunit) at (Load 5 of (Key (Picked unit)) in aoehashtable) facing (Facing of (Picked unit)) degrees
- Unit - Add a 1.25 second Generic expiration timer to (Last created unit)
- Loop - Actions
- Hashtable - Save (aoetime - 0.03) as 1 of (Key (Picked unit)) in aoehashtable
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Load 1 of (Key (Picked unit)) from aoehashtable) Less than 1.20
- (Load 1 of (Key (Picked unit)) from aoehashtable) Greater than 0.00
- Then - Actions
- Hashtable - Save (aoetime - 0.03) as 1 of (Key (Picked unit)) in aoehashtable
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Load 1 of (Key (Picked unit)) from aoehashtable) Equal to 0.00
- Then - Actions
- Unit Group - Pick every unit in (Load 4 of (Key (Picked unit)) in aoehashtable) and do (Actions)
- Loop - Actions
- Special Effect - Create a special effect at (Load 5 of (Key (Picked unit)) in aoehashtable) using Abilities\Weapons\DemolisherFireMissile\DemolisherFireMissile.mdl
- Special Effect - Destroy (Last created special effect)
- Unit - Create 1 Fire Embrace Explode for (Owner of aoeunit) at (Load 5 of (Key (Picked unit)) in aoehashtable) facing (Facing of aoeunit) degrees
- Unit - Kill (Last created unit)
- Hashtable - Clear all child hashtables of child (Key (Picked unit)) in aoehashtable
- Loop - Actions
- Unit Group - Remove (Picked unit) from aoegroup_Copy_4
- Hashtable - Clear all child hashtables of child (Key (Picked unit)) in aoehashtable
- Unit Group - Pick every unit in (Load 4 of (Key (Picked unit)) in aoehashtable) and do (Actions)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Loop - Actions
- Unit Group - Pick every unit in aoegroup_Copy_4 and do (Actions)
- Events