- Joined
- Aug 6, 2009
- Messages
- 697
So I was making this spell, and when I use the spell, nothing works. (This is a work in progress and was just seeing if my guy would pause, but he won't even pause.) Also, I am new to hashtables and MUI.
Nagashi:
-
Nagashi
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Nagashi
-
Actions
- Set NagashiCaster = (Triggering unit)
- Set NagashiAngle = (NagashiAngle + (360.00 / (Real((Integer A)))))
- Set NagashiAngle2 = 0.00
- Set NagashiPoint = (Position of NagashiCaster)
- Set NagashiPoint2 = (NagashiPoint offset by NagashiLoops towards NagashiAngle degrees)
- Set NagashiTime = 6.00
- Set NagashiLoops = 100.00
- Hashtable - Save NagashiAngle as 0 of (Key (Triggering unit)) in NagashiHash
- Hashtable - Save NagashiAngle2 as 1 of (Key (Triggering unit)) in NagashiHash
- Hashtable - Save NagashiTime as 2 of (Key (Triggering unit)) in NagashiHash
- Hashtable - Save Handle OfNagashiCaster as 3 of (Key (Triggering unit)) in NagashiHash
- Hashtable - Save Handle OfNagashiPoint as 4 of (Key (Triggering unit)) in NagashiHash
- Hashtable - Save Handle OfNagashiPoint2 as 5 of (Key (Triggering unit)) in NagashiHash
- Hashtable - Save NagashiLoops as 6 of (Key (Triggering unit)) in NagashiHash
- Unit - Pause NagashiCaster
- Unit Group - Add NagashiCaster to NagashiDummyGroup
-
Events
-
Nagashi Loop
-
Events
- Time - Every 1.00 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in NagashiDummyGroup and do (Actions)
-
Loop - Actions
- Set NagashiAngle = (Load 0 of (Key (Picked unit)) from NagashiHash)
- Set NagashiAngle2 = (Load 1 of (Key (Picked unit)) from NagashiHash)
- Set NagashiTime = (Load 2 of (Key (Picked unit)) from NagashiHash)
- Set NagashiCaster = (Load 3 of (Key (Picked unit)) in NagashiHash)
- Set NagashiPoint = (Load 4 of (Key (Picked unit)) in NagashiHash)
- Set NagashiPoint2 = (Load 5 of (Key (Picked unit)) in NagashiHash)
- Set NagashiLoops = (Load 6 of (Key (Picked unit)) from NagashiHash)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- NagashiTime Greater than 0.00
-
Then - Actions
-
For each (Integer A) from 0 to 19, do (Actions)
-
Loop - Actions
- Set NagashiAngle2 = (Load 1 of (Key (Picked unit)) from NagashiHash)
- Unit - Create 1 Nagashi Dummy for (Owner of NagashiCaster) at NagashiPoint2 facing Default building facing degrees
- Unit - Add a 6.00 second Generic expiration timer to (Last created unit)
- Set NagashiAngle = (Load 0 of (Key (Picked unit)) from NagashiHash)
-
Loop - Actions
- Hashtable - Save (NagashiTime - 1.00) as 2 of (Key (Picked unit)) in NagashiHash
- Hashtable - Save (NagashiLoops + 100.00) as 6 of (Key (Picked unit)) in NagashiHash
-
For each (Integer A) from 0 to 19, do (Actions)
-
Else - Actions
- Hashtable - Clear all child hashtables of child (Key (Picked unit)) in NagashiHash
- Unit Group - Remove (Picked unit) from NagashiDummyGroup
-
If - Conditions
-
Loop - Actions
-
Unit Group - Pick every unit in NagashiDummyGroup and do (Actions)
-
Events