• 🏆 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!

Same Items

Status
Not open for further replies.
Level 2
Joined
Mar 21, 2020
Messages
14
Hello, I want to make that Hero can not have same items in slot. What I am doing wrong? I am new on editor, so if you can copy from your trigger I will be grateful. :)

  • Item AntiStacking
    • Events
      • Unit - A unit Acquires an item
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 6, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Item-type of (Item being manipulated)) Equal to (Item-type of (Item carried by (Triggering unit) in slot (Integer A)))
            • Then - Actions
              • Hero - Drop (Item being manipulated) from (Hero manipulating item)
              • Game - Display to (Player group((Owner of (Hero manipulating item)))) the text: You cannot carry sa...
            • Else - Actions
 
Level 2
Joined
Mar 21, 2020
Messages
14
thanks, it is almost working. now it works, but 1 one hero. so if one hero has claws of attack +6 he can not take another one, but the other hero, without claws of attack can not have any of them. now how to fix that? haha
 
Status
Not open for further replies.
Top