I just started messing around with Hashtables and I was wondering why this spell DOES NOT work? I've looked over it and changed things to it over and over and I still have no idea why it does not work.
What it's supposed to do: A Hero casts rejuvenation on a target, after 5 seconds the unit that the spell was casted on will instantly heal for an amount.
My Triggers:
Spell Start:
What it's supposed to do: A Hero casts rejuvenation on a target, after 5 seconds the unit that the spell was casted on will instantly heal for an amount.
My Triggers:
-
Init
-

Events
-


Map initialization
-
-

Conditions
-

Actions
-


Hashtable - Create a hashtable
-


Set Hashtable = (Last created hashtable)
-
-
Spell Start:
-
HealStart
-

Events
-


Unit - A unit Begins channeling an ability
-
-

Conditions
-


(Ability being cast) Equal to Nature's Bloom
-
-

Actions
-


Hashtable - Save 0.00 as 0 of (Key (Target unit of ability being cast)) in Hashtable
-


Unit Group - Add (Target unit of ability being cast) to Natures_Bloom_Group
-
-
-
Healing
-

Events
-


Time - Every 1.00 seconds of game time
-
-

Conditions
-

Actions
-


Unit Group - Pick every unit in Natures_Bloom_Group and do (Actions)
-



Loop - Actions
-




Set Natures_Bloom_Wait = (Load 0 of (Key (Picked unit)) from Hashtable)
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






Natures_Bloom_Wait Less than or equal to 4.00
-
-





Then - Actions
-






Hashtable - Save (RemainingTime + 1.00) as 0 of (Key (Picked unit)) in Hashtable
-
-





Else - Actions
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








Natures_Bloom_Wait equal to 5.00
-
-







Then - Actions
-








Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + 50000.00)
-
-







Else - Actions
-








Unit Group - Remove (Picked unit) from Natures_Bloom_Group
-








Hashtable - Clear all child hashtables of child (Key (Picked unit)) in Hashtable
-
-
-
-
-
-
-
-



