- Joined
- Aug 16, 2007
- Messages
- 884
Hey, it's embarrassing that I can't get this to work -.-' But I've got a spell issue. This spell is suposed to shackle all nearby enemie units, but my dummy units just won't shackle them and I can't see the problem :S
-
Shackle Throw
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Shackle
-
-
Actions
-
Set TempPoint[0] = (Position of (Triggering unit))
-
Set UnitGroup[0] = (Units within 350.00 of TempPoint[0] matching (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True))
-
Unit Group - Pick every unit in UnitGroup[0] and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) is alive) Equal to True
-
-
Then - Actions
-
Set TempPoint[1] = (Position of (Triggering unit))
-
Unit - Create 1 Spell_Dummy for (Owner of (Triggering unit)) at TempPoint[1] facing Default building facing degrees
-
Unit - Add Shackle (Dummy Ability) to (Last created unit)
-
Unit - Set level of Shackle (Dummy Ability) for (Last created unit) to (Level of (Ability being cast) for (Triggering unit))
-
Unit - Order (Last created unit) to Human Dragonhawk Rider - Aerial Shackles (Picked unit)
-
Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
-
Custom script: call RemoveLocation(udg_TempPoint[1])
-
-
Else - Actions
-
-
-
-
Custom script: call DestroyGroup(udg_UnitGroup[0])
-
-
-
Custom script: call RemoveLocation(udg_TempPoint[0])