• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

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