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

Need Easy Trigger for "can only carry 1 of those item-types" etc

Status
Not open for further replies.
Level 3
Joined
Jul 18, 2007
Messages
23
Hey all.

I looked though alot of posts and tryed a handfull of spells.
But I cant seem to find what I am looking for.

Like:

Unit acquire and item.
item equal to "sword#4"

then it would look though the items carried by hero for Sword nr 1,2,3 etc
and IF the hero had one, it would just drop the item being manipulated.

I had a Very Simple trigger for this, with some variables i think.


anyone who could help me out here?
 
Level 15
Joined
Oct 16, 2010
Messages
941
  • Sword Pickup
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Sword 1 Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • ((Triggering unit) has an item of type Sword 2) Equal to True
              • ((Triggering unit) has an item of type Sword 3) Equal to True
              • ((Triggering unit) has an item of type Sword 4) Equal to True
        • Then - Actions
          • Hero - Drop (Item being manipulated) from (Triggering unit)
        • Else - Actions
Is this what you mean? You would rinse and repeat for the other 3 swords and any other items you have.
 
Status
Not open for further replies.
Top