Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
edit
I know of a solution that would require 2 abilities (Works for up to 10000 kills which should be enough because I dont think any player would go above that unless he plays for weeks )
It requires Bribe's GUI UnitIndexer though (In the spells section)
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
Damage Bonus (1-99) is an ability that has 100 levels.
The damage bonus at level 1 is 0 and at level 100, it's 99
Damage Bonus (100-10000) is an ability that has 100 levels.
The damage bonus at level 1 is 100 and at level 100, it's 10000. (increasing by 100 per level)
It's not the most efficient GUI trigger, but it'll get the job done.
I could do much better in vJASS by the way..
Gosh don't do abilities with more than 4 levels. Then they cannot be converted to SLK files and will increase the loading time of a map by noticeable amount.
That's why you need a very central system for these kind of things.
The four levels should be 1, 10, 100 and 1000 in that case. Alternatively, if you are using ridiculously high numbers the four levels should be like 100, 1,000, 10,000 and 100,000.
Or you could use ability from tome of damage (Item Permanent Damage Gain) and add it on each kill. I guess Magtheridon refered to the passive damage bonus and not this one since Marsal said it's inefficient
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.