Bonus attribute for each kill

Status
Not open for further replies.
Hello everyone!

I am thinking of an item which will offer +1 bonus attribute to its carrier (Heroes) for each type-killing:
  • intelligence: +1 after killing 3 non-Hero caster units or 1 intelligent Hero.
  • strength: +1 after killing 3 non-Hero melee units or 1 strength Hero.
  • agility: +1 after killing 3 non-Hero range units or 1 agility Hero.
  • Counting is restart once the Hero carrier dies.
  1. Item type A allows intelligence or strength or agility bonus
  2. Item type B allows all 3 bonuses

I hope I made it cleared. Could anyone please help this idea come true? Much appreciated!
 
You can use a Hashtable or an Item Indexer to store data directly to the Item.

Then how you go about the stats depends on the version you're on.

On version 1.31+ you can modify a single hidden Hero Attribute Bonus ability to supply the appropriate stats.

A unit dies -> Check what type it was -> Adjust the ability depending on the type

If the Hero can only carry one of these types of Items at a time then it becomes a bit easier.

Edit: Attached a map with a working example using a Hashtable. Requires the latest patch to open!
Edit 2: Fixed some bugs, added variables to make modifying the item effects easier, added Item Charges to display the total bonus stats.
 

Attachments

Last edited:
Status
Not open for further replies.
Back
Top