- Joined
- May 11, 2012
- Messages
- 2,103
I wanted to make when hero use demon slash(it's wind walk), to damage every enemy it passes trhough, but it doesn't work
First Trigger
First Trigger
-
Demon Walk
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Demon Slash
-
Actions
- Trigger - Turn on Demon Walk Loop <gen>
-
Events
-
Demon Walk Loop
-
Events
- Time - Every 0.03 seconds of game time
- Conditions
-
Actions
- Set DemonSlash_Unit = (Triggering unit)
- Set Damage[1] = 300.00
- Set Damage[2] = 600.00
- Set Damage[3] = 1200.00
- Set Damage[4] = 2400.00
- Set Damage[5] = (4800.00 + (Real((Agility of DemonSlash_Unit (Include bonuses)))))
- Set TempInteger = (Level of Demon Slash for DemonSlash_Unit)
- Set DemonSlash_UnitGroup = (Units within 50.00 of (Position of DemonSlash_Unit))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Ability being cast) Equal to Demon Slash
-
Then - Actions
-
Unit Group - Pick every unit in DemonSlash_UnitGroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (((Picked unit) belongs to an enemy of (Owner of DemonSlash_Unit)) Equal to True) and (((Picked unit) is alive) Equal to True)
-
Then - Actions
- Special Effect - Create a special effect attached to the overhead of (Picked unit) using Abilities\Spells\Human\Banish\BanishTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Unit - Cause DemonSlash_Unit to damage (Picked unit), dealing Damage[TempInteger] damage of attack type Spells and damage type Normal
-
Else - Actions
- Custom script: call DestroyGroup(udg_DemonSlash_UnitGroup)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in DemonSlash_UnitGroup and do (Actions)
- Else - Actions
-
If - Conditions
-
Events
Last edited: