L
Leos
Guest
Basically, for every kill the unit makes, I wanted to increase damage by 25. So I made a claws of attack item with 20 levels, and made the damage go from 0-500 in 25 damage intervals.
It works, but my problem is that I'm worried that when the damage reaches the limit of 500, the trigger will keep running. I have tried several ways of trying to stop it after 20 kills (thats why the variables were created), but none seem to work. Can anyone help me with this?
Code:
Rage
Events
Unit - A unit owned by Player 12 (Brown) Dies
Conditions
(Unit-type of (Killing unit)) Equal to Rage Warrior
Actions
Set RageKillNumber = (RageKillNumber + 1.00)
Set RageUnit = (Killing unit)
Unit - Increase level of Rag1 (+1) for RageUnit
It works, but my problem is that I'm worried that when the damage reaches the limit of 500, the trigger will keep running. I have tried several ways of trying to stop it after 20 kills (thats why the variables were created), but none seem to work. Can anyone help me with this?