• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Item effects stacking

Level 1
Joined
Jun 3, 2025
Messages
1
Hello , im working at my current dota-like map and i want to make an orb effects system

anyone have an idea how i make to dont stack the item effects ?

thanks
 
Level 30
Joined
Sep 26, 2009
Messages
2,622
in such case I think it makes more sense to not give the item effect ability to the item, but add/remove it via triggers:
  • detect when unit acquires item
  • check if unit already has same type of bonus given by another item
  • if yes, determine which bonus is better, remove the worse one, add/keep the better one

Similar situation when unit drops item
  • detect when unit loses an item
  • remove bonus
  • check if unit also carries item that would give it same type of bonus, just worse version
  • if yes, add bonus from other item(s)
 
Top