• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

Necromastery Trigger

Status
Not open for further replies.
Level 11
Joined
Jul 9, 2009
Messages
926
Does anyone know how to make the trigger for Necromastery of Shadow Fiend in DOTA.

wherein whenever you kill an oppponent, you gain 2 extra damage.
I have an Idea of triggering adding item attack bonus damage+2 for every kill and just making it higher every level, but then I would not know how to make a cap for every level.

If anyone knows, please share your knowledge :D
 
Everytime you kill a unit, increase an integer variable. Check with an if/then/else whether IntegerVariable is Less than MaxCount; if it is, increase the integer (leave Else branch untouched). If you want it MPI, just use an array on that variable with (Player number of (Owner of (Killing unit)). If you want it MUI, use an Index system (e.g. Bribe's) or save that integer variable via hashtable on the killing unit.
 
Status
Not open for further replies.
Top