- Joined
- Jul 9, 2008
- Messages
- 253
Can anyone help me with making a spell MUI? Because I just can't find out how I should do it...
Here is what I got:
Here is what I got:
-
Events
-

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

(Ability being cast) Equal to Nether Bomb
-
-
Actions
-

Set temp_unit = (Casting unit)
-

Set temp_player = (Owner of temp_unit)
-

Set temp_point = (Position of temp_unit)
-

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

Unit - Create 1 dummy - missile for (Owner of temp_unit) at (temp_point offset by 60.00 towards (Facing of temp_unit) degrees) facing Default building facing degrees
-

Set temp_unit_spawned = (Last created unit)
-

Unit - Order temp_unit_spawned to Move To temp_point2
-

Unit - Add a ((Distance between temp_point and temp_point2) / 250.00) second Generic expiration timer to temp_unit_spawned
-

Wait ((Distance between temp_point and temp_point2) / 250.00) seconds
-

Unit - Create 1 dummy - explosion for (Owner of temp_unit) at temp_point2 facing Default building facing degrees
-

Set temp_unit_spawned2 = (Last created unit)
-

Unit - Add a 1.00 second Generic expiration timer to temp_unit_spawned2
-

Unit Group - Pick every unit in (Units within 400.00 of temp_point2 matching (((Matching unit) belongs to an ally of temp_player) Equal to False)) and do (Actions)
-


Loop - Actions
-



Set temp_unit_target = (Picked unit)
-



Unit - Cause temp_unit to damage temp_unit_target, dealing 200.00 damage of attack type Spells and damage type Normal
-
-
-

Custom script: set udg_temp_unit = null
-

Custom script: set udg_temp_player = null
-

Custom script: call RemoveLocation(udg_temp_point)
-

Custom script: call RemoveLocation(udg_temp_point2)
-

Custom script: set udg_temp_unit_spawned = null
-

Custom script: set udg_temp_unit_spawned2 = null
-

Custom script: set udg_temp_unit_target = null
-
