• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Necromastery Trigger

Status
Not open for further replies.
Level 11
Joined
Jul 9, 2009
Messages
927
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