- Joined
- Apr 14, 2008
- Messages
- 92
I tried to edit the trigger for omnislash to do agility*10 as damage, but everytime it activates, it ends up do no damage at all! Can u help me figure out whats wrong?
-
Omnislash
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Omnislash
-
Actions
- Set O_caster = (Triggering unit)
- Set O_owner = (Owner of O_caster)
- Set O_locations[0] = (Position of O_caster)
- Set O_unitgroups[0] = (Units within O_range of O_locations[0] matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) belongs to an enemy of O_owner) Equal to True) and ((((Matching unit) is Magic Immune) Equal to False) and (((Matching unit) is alive) E
- Custom script: call RemoveLocation(udg_O_locations[0])
-
Unit Group - Pick every unit in O_unitgroups[0] and do (Actions)
-
Loop - Actions
- Set O_picked = (Picked unit)
- Set O_locations[1] = (Position of O_picked)
- Set O_locations[2] = (O_locations[1] offset by 100.00 towards (Facing of O_picked) degrees)
- Unit - Create 1 O_dummytype for O_owner at O_locations[2] facing ((Facing of O_picked) + 180.00) degrees
- Set O_dummy = (Last created unit)
- Animation - Change O_dummy's vertex coloring to (100.00%, 100.00%, 100.00%) with 50.00% transparency
- Animation - Change O_dummy's animation speed to 200.00% of its original speed
- Animation - Play O_dummy's attack slam animation
- Unit Group - Add O_dummy to O_unitgroups[1]
- Custom script: call RemoveLocation(udg_O_locations[1])
- Custom script: call RemoveLocation(udg_O_locations[2])
-
Loop - Actions
- -------- This wait should be equal to the half of the duration of the animation done by the images --------
- Wait 0.30 seconds
-
Unit Group - Pick every unit in O_unitgroups[0] and do (Actions)
-
Loop - Actions
- Unit - Cause O_dummy to damage O_picked, dealing (O_agilitymultiply[1] x (Real((Agility of E_caster (Include bonuses))))) damage of attack type Spells and damage type Normal
- Set O_dummy = No unit
- Set O_picked = No unit
-
Loop - Actions
- Wait 0.10 seconds
-
Unit Group - Pick every unit in O_unitgroups[1] and do (Actions)
-
Loop - Actions
- Set O_picked = (Picked unit)
- Set O_locations[0] = (Position of O_picked)
- Special Effect - Create a special effect at O_locations[0] using Abilities\Spells\Orc\MirrorImage\MirrorImageCaster.mdl
- Special Effect - Destroy (Last created special effect)
- Unit - Add a 1.00 second Generic expiration timer to O_picked
- Unit - Hide O_picked
- Custom script: call RemoveLocation(udg_O_locations[0])
- Set O_picked = No unit
-
Loop - Actions
- Set O_caster = No unit
-
Events