- Joined
- May 11, 2012
- Messages
- 2,103
what is wrong in here?
Sometimes the hero is moved normally, sometimes the hero moves only on first loop, sometimes the hero flies milion range away, sometimes this just screwes up....
Sometimes the hero is moved normally, sometimes the hero moves only on first loop, sometimes the hero flies milion range away, sometimes this just screwes up....
-
Slash
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Slash
-
Actions
- -------- --------------- Set Variables --------------- --------
- Set Slash_TrigUnit = (Triggering unit)
- Set Slash_Damage[1] = 350.00
- Set Slash_Damage[2] = 700.00
- Set Slash_Damage[3] = 1400.00
- Set Slash_Damage[4] = 2800.00
- Set Slash_Damage[5] = 5600.00
- Set Slash_Lvl = (Level of Slash for Slash_TrigUnit)
- Set Slash_DealingDamage = Slash_Damage[Slash_Lvl]
- -------- --------------- Actions --------------- --------
-
For each (Integer TempInt) from 1 to 6, do (Actions)
-
Loop - Actions
- Set TempReal = (Facing of Slash_TrigUnit)
- Set TempPoint = (Position of Slash_TrigUnit)
- -------- --------------- Set Variables --------------- --------
- Set TempPoint2 = (TempPoint offset by (100.00 x (Real(TempInt))) towards TempReal degrees)
- Set TempUnitGroup = (Units within 225.00 of TempPoint2 matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is dead) Equal to False) and (((Matching unit) belongs to an enemy of (Owner of Slash_TrigUnit)) Equal to True))))
- Unit - Move Slash_TrigUnit instantly to TempPoint2
- -------- --------------- Actions --------------- --------
-
Unit Group - Pick every unit in TempUnitGroup and do (Actions)
-
Loop - Actions
- Set TempPickedUnit = (Picked unit)
- Unit - Cause Slash_TrigUnit to damage TempPickedUnit, dealing Slash_DealingDamage damage of attack type Spells and damage type Normal
- Special Effect - Create a special effect attached to the chest of TempPickedUnit using Abilities\Spells\Other\Stampede\StampedeMissileDeath.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: set udg_TempPickedUnit = null
-
Loop - Actions
- -------- --------------- Clear Leaks --------------- --------
- Custom script: call RemoveLocation(udg_TempPoint)
- Custom script: call RemoveLocation(udg_TempPoint2)
- Custom script: call DestroyGroup(udg_TempUnitGroup)
- Custom script: set udg_TempPoint = null
- Custom script: set udg_TempPoint2 = null
- Custom script: set udg_TempUnitGroup = null
-
Loop - Actions
- Animation - Play Slash_TrigUnit's Attack Slam animation
-
Events