- Joined
- Jun 10, 2007
- Messages
- 554
So, I'm making a spell for a map called Firestorm which calls down a meteor in a random position around the target point every 0.25 seconds after the casting. It isn't working, and I can't figure out why. When I cast it, nothing at all happens. Um... can somebody tell me what's going on? Of course, +rep will be involved.
-
Fire Storm
-

Events
-


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

Conditions
-


(Ability being cast) Equal to Firestorm
-
-

Actions
-


Custom script: local location udg_Location
-


Custom script: local unit udg_Unit
-


Set Location = (Target point of ability being cast)
-


Set Unit = (Triggering unit)
-


For each (Integer A) from 1 to 12, do (Actions)
-



Loop - Actions
-




Set Location2 = (Location offset by (Random real number between 1.00 and 400.00) towards (Random real number between 1.00 and 360.00) degrees)
-




Unit - Create 1 Dummy for (Owner of Unit) at Location facing Default building facing degrees
-




Set Unit2 = (Last created unit)
-




Unit - Add Firestorm Meteor to Unit2
-




Unit - Order Unit2 to Undead Dreadlord - Inferno Location2
-




Custom script: set udg_Unit2 = null
-




Custom script: call RemoveLocation (udg_Location2)
-




Wait 0.25 seconds
-
-
-


Custom script: call RemoveLocation (udg_Location)
-


Custom script: set udg_Unit = null
-
-

