- Joined
- May 28, 2011
- Messages
- 455
How can i increase hero damage with a spell using trigger?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Your trigger

Events


bla bla bla bla

Conditions


bla bla bla bla

Actions


Unit - Add +1 Damage to (Triggering Unit)
Untitled Trigger 001

Events


Unit - A unit Dies

Conditions

Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Level of Damage Bonus for (Killing unit)) Greater than 0



Then - Actions




Unit - Increase level of Damage Bonus for (Killing unit)



Else - Actions




Unit - Add Damage Bonus to (Killing unit)
Erm.... this is kinda unefficient, it's much more easier to make an ability with 100 levels then auto fill the damage.
DamageTrigger

Events


Unit - A unit Dies

Conditions


wtvr you want

Actions


Set TempUnit = (Killing Unit)


Set TempInt = (Custom value of TempUnit)


Set DamageArray[TempInt] = DamageArray[TempInt] + 1


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(DamageArray[TempInt] Mod 100) Equal To 0



Then - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






(Level of Damage Bonus (100-10000)) Greater than 0





Then - Actions






Unit - Increase level of Damage Bonus (100-10000) for TempUnit






Unit - Set level of Damage Bonus (1-99) for TempUnit to 1





Else - Actions






Unit - Add Damage Bonus (100-10000) for TempUnit



Else - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






(Level of Damage Bonus (1-99)) Equal to 0





Then - Actions






Unit - Add Damage Bonus (1-99) to TempUnit





Else - Actions




Unit - Increase level of Damage Bonus (1-99) for TempUnit