- Joined
- Dec 12, 2011
- Messages
- 116
This is my first use of hashtables.
1. I used hashtables correctly here?
2. Are there any leaks?
hamsterpellet
1. I used hashtables correctly here?
2. Are there any leaks?
-
MySkill Hashtable Initialization
-

Events
-


Map initialization
-
-

Conditions
-

Actions
-


Hashtable - Create a hashtable
-


Set MySkillHashTable = (Last created hashtable)
-
-
-
MySkill Activate
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Ability being cast) Equal to MySkill Turn On
-
-

Actions
-


Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Other\Drain\DrainCaster.mdl
-


Hashtable - Save Handle Of(Last created special effect) as 0 of (Key (Triggering unit)) in MySkillHashTable
-
-
-
MySkill Deactivate
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Ability being cast) Equal to MySkill Turn Off
-
-

Actions
-


Special Effect - Destroy (Load 0 of (Key (Triggering unit)) in MySkillHashTable)
-


Hashtable - Clear all child hashtables of child (Key (Triggering unit)) in MySkillHashTable
-
-
hamsterpellet



