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

Item Ability Stacking

Status
Not open for further replies.
Level 7
Joined
May 11, 2010
Messages
278
Pretty simple: How can i make an items abilities not stack with each other?
Like if you have two of the same item, their "extra strength" ability should not stack with each other. So two of "item x" gives as much strenght bonus as one of "item x".
 
Level 3
Joined
Apr 4, 2006
Messages
33
you could drop 1 of the items.
2 items but only 1 works is wasted space.

i triggered something maybe you like it:

  • Untitled Trigger 001
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Charges remaining in (Item being manipulated)) Equal to 0
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • anti_loop Equal to True
        • Then - Actions
          • Set anti_loop = False
        • Else - Actions
          • Set picked_item_type = (Item-type of (Item being manipulated))
          • Item - Remove (Item being manipulated)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Hero manipulating item) has (Item carried by (Hero manipulating item) of type picked_item_type)) Equal to True
            • Then - Actions
              • Game - Display to (All players) the text: ((Name of (Item carried by (Hero manipulating item) of type picked_item_type)) + already exist!)
              • Item - Create picked_item_type at (Position of (Hero manipulating item))
            • Else - Actions
              • Set anti_loop = True
              • Hero - Create picked_item_type and give it to (Hero manipulating item)
 
Last edited:
Status
Not open for further replies.
Top