- Joined
- Jul 9, 2008
- Messages
- 253
I need help with making the following spell MUI.
Trigger 1 (Cast):
Thanks in advance, Quetzalcotl
Trigger 1 (Cast):
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Darkness Arrow
-
-
Actions
-
Set Caster = (Casting unit)
-
Set Target = (Target unit of ability being cast)
-
Set Point1 = (Position of Caster)
-
Set Point2 = (Position of Target)
-
Unit - Create 1 Dummy - Focus Shot for (Owner of Caster) at Point1 facing (Position of Target)
-
Set Dummy = (Last created unit)
-
Trigger - Turn on Darkness Arrow Move 1 <gen>
-
Custom script: call RemoveLocation(udg_Point1)
-
Custom script: call RemoveLocation(udg_Point2)
-
-
Events
-
Time - Every 0.03 seconds of game time
-
-
Actions
-
Set Point2 = (Position of Target)
-
Set Point3 = (Position of Dummy)
-
Special Effect - Create a special effect at Point3 using Abilities\Spells\Other\BlackArrow\BlackArrowMissile.mdl
-
Special Effect - Destroy (Last created special effect)
-
Set Point4 = (Point3 offset by ((Distance between Point3 and Point2) / 5.00) towards (Angle from Point3 to Point2) degrees)
-
Unit - Move Dummy instantly to Point4, facing Point2
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Distance between Point3 and Point2) Less than or equal to 30.00
-
-
Then - Actions
-
Trigger - Turn off (This trigger)
-
Unit - Remove Dummy from the game
-
Special Effect - Create a special effect at Point3 using Abilities\Spells\Undead\OrbOfDeath\AnnihilationMissile.mdl
-
Special Effect - Destroy (Last created special effect)
-
Unit - Cause Caster to damage Target, dealing (5.00 x (Real((Agility of Caster (Include bonuses))))) damage of attack type Chaos and damage type Normal
-
-
Else - Actions
-
-
Custom script: call RemoveLocation(udg_Point2)
-
Custom script: call RemoveLocation(udg_Point3)
-
Custom script: call RemoveLocation(udg_Point4)
-
Thanks in advance, Quetzalcotl