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

System Request

Status
Not open for further replies.
Level 2
Joined
Jun 26, 2008
Messages
9
Does anyone know where I can find a system that will prevent you from picking up two types of items(such as two weapon-class items)?
 
Level 12
Joined
May 4, 2008
Messages
1,111
i made one... its in the trigger section ill copy it from the map :p

  • antiduplicate
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-class of (Item being manipulated)) Equal to ''ITEM CLASS''
    • 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 carried by (Hero manipulating item) in slot (Integer A)) Not equal to (Item being manipulated)
              • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to (Item-type of (Item being manipulated))
            • Then - Actions
              • Set BLN = True
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • BLN Equal to True
                • Then - Actions
                  • Hero - Drop (Item being manipulated) from (Hero manipulating item)
                  • Set BLN = False
                • Else - Actions
just make a item class for weapons and change ''ITEM CLASS'' by it
 
Status
Not open for further replies.
Top