Hi all
I tried to make a new unit called MySpecialUnit. This unit has a special ability which i called Stacks, it works like this if MySpecialUnit attacks another unit 9times, on 10th attack the attacked unit will explode and dies immediately. I made a global variable named SpellStacks and made a trigger like this
and btw this Stacks thingy is shareable, i mean two MySpecialUnit can attack the same unit and each one do 5 attacks and then BOOM! so maybe a debuff system is my solution?
I tried to make a new unit called MySpecialUnit. This unit has a special ability which i called Stacks, it works like this if MySpecialUnit attacks another unit 9times, on 10th attack the attacked unit will explode and dies immediately. I made a global variable named SpellStacks and made a trigger like this
-
PassiveStackTrigger
-
Events
- Unit - A unit Is attacked
-
Conditions
- (Unit-type of (Attacking unit)) Equal to MySpecialUnit
-
Actions
- Set SpellStacks = (SpellStacks + 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- SpellStacks Equal to 10
-
Then - Actions
- Unit - Kill (Attacked unit)
- Set SpellStacks = 0
- Else - Actions
-
If - Conditions
-
Events
and btw this Stacks thingy is shareable, i mean two MySpecialUnit can attack the same unit and each one do 5 attacks and then BOOM! so maybe a debuff system is my solution?