- Joined
- Jun 17, 2010
- Messages
- 2,275
Well what happens is, it works the first time, it goes all the way up to 10 charges, blasts the unit, but then the second time around it doesn't even create another unit
-
HS Init
-
Events
-
Unit - A unit Is attacked
-
-
Conditions
-
(Level of Holy Strike for (Attacking unit)) Greater than or equal to 0
-
-
Actions
-
Set HS_Index = (HS_Index + 1)
-
Set HS_Caster[HS_Index] = (Attacking unit)
-
Set HS_Point1[HS_Index] = (Position of HS_Caster[HS_Index])
-
Set NumbOfStacks[HS_Index] = (Real((Level of Holy Strike Dummy for (Load (Key dummy) of (Key (Triggering unit)) in HashTable_HS))))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Key dummy) is stored as a Handle of (Key (Attacking unit)) in HashTable_HS) Equal to False
-
-
Then - Actions
-
Unit - Create 1 HS Dummy for (Owner of (Attacking unit)) at HS_Point1[HS_Index] facing Default building facing degrees
-
Unit - Hide (Last created unit)
-
Hashtable - Save Handle Of(Last created unit) as (Key dummy) of (Key (Attacking unit)) in HashTable_HS
-
-
Else - Actions
-
-
-
-
HS Heal and Charge
-
Events
-
Unit - A unit Is attacked
-
-
Conditions
-
(Level of Holy Strike for (Attacking unit)) Greater than or equal to 0
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Integer(NumbOfStacks[HS_Index])) Equal to 10
-
(Attacking unit) Equal to HS_Caster[HS_Index]
-
-
Then - Actions
-
Unit - Cause (Triggering unit) to damage (Attacking unit), dealing ((10.00 x NumbOfStacks[HS_Index]) + ((Real((Strength of (Triggering unit) (Include bonuses)))) x NumbOfStacks[HS_Index])) damage of attack type Spells and damage type Normal
-
Set HS_SFXPoint[HS_Index] = (Position of (Triggering unit))
-
Unit - Remove (Load (Key dummy) of (Key (Triggering unit)) in HashTable_HS) from the game
-
Hashtable - Clear all child hashtables of child (Key (Load (Key dummy) of (Key (Triggering unit)) in HashTable_HS)) in HashTable_HS
-
-
Else - Actions
-
Unit - Increase level of Holy Strike Dummy for (Load (Key dummy) of (Key (Triggering unit)) in HashTable_HS)
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Triggering unit) Equal to HS_Caster[HS_Index]
-
-
Then - Actions
-
Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + (NumbOfStacks[HS_Index] x 25.00))
-
-
Else - Actions
-
-
-