• 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.

Bonus attribute for each kill

Status
Not open for further replies.
Level 10
Joined
May 25, 2021
Messages
376
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!
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
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

  • Soul Ring 2.w3m
    35.6 KB · Views: 8
Last edited:
Status
Not open for further replies.
Top