• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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