- Joined
- Jun 26, 2014
- Messages
- 513
So the spell is an item spell. The idea of it is that when ever a hero with the item "flaming sword" attacks an enemy, the enemy will take damage over time. Doe how do I make it MUI so that the target does not reset and multiple heroes can have the item. I currently have this:
Flaming Sword Passive
Flaming Sword Passive
-
Events
-
Unit - A unit Is attacked
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Attacking unit) has an item of type Flaming Sword) Equal to True
-
-
Then - Actions
-
Set Item_FlamingSword = (Attacked unit)
-
Set Item_FlamingSword_Hero = (Attacking unit)
-
Trigger - Turn on Flaming Sword Passive loop dmg <gen>
-
Countdown Timer - Start Item_FlamingSword_Timer as a One-shot timer that will expire in 10.00 seconds
-
-
Else - Actions
-
-
-
-
Flaming Sword Passive loop dmg
-
Events
-
Time - Every 1.00 seconds of game time
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Item_FlamingSword is A structure) Equal to False
-
-
Then - Actions
-
Unit - Cause Item_FlamingSword_Hero to damage Item_FlamingSword, dealing 5.00 damage of attack type Chaos and damage type Normal
-
Special Effect - Create a special effect attached to the chest of Item_FlamingSword using Abilities\Spells\Human\FlameStrike\FlameStrikeEmbers.mdl
-
Special Effect - Destroy (Last created special effect)
-
-
Else - Actions
-
-
-
-
Flaming Sword Timeout
-
Events
-
Time - Item_FlamingSword_Timer expires
-
-
Conditions
-
Actions
-
Trigger - Turn off Flaming Sword Passive loop dmg <gen>
-
-