• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Trigger Help

Status
Not open for further replies.
Level 3
Joined
Dec 16, 2006
Messages
27
Can someone please help me with the following:
I want to let a unit can carry only one weapon, armor, gloves etc. so that he can't like have two swords, one dagger, a axe and bow... that he can only wield one weapon, one body armor, one set of gloves etc. They like must have a classification:
Item Stats:
Sword (classification)
+10 agility.. bla bla bla :D

So please I need this... thank you very much
 
Level 15
Joined
Jun 28, 2007
Messages
1,424
ok here is the trigger
  • Item Max
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Frostguard
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • Frostguard Equal to (Item-type of (Item carried by (Triggering unit) in slot 1))
              • Frostguard Equal to (Item-type of (Item carried by (Triggering unit) in slot 2))
              • Frostguard Equal to (Item-type of (Item carried by (Triggering unit) in slot 3))
              • Frostguard Equal to (Item-type of (Item carried by (Triggering unit) in slot 4))
              • Frostguard Equal to (Item-type of (Item carried by (Triggering unit) in slot 5))
              • Frostguard Equal to (Item-type of (Item carried by (Triggering unit) in slot 6))
        • Then - Actions
          • Item - Remove (Item carried by (Triggering unit) of type Frostguard)
        • Else - Actions
          • Hero - Create Frostguard and give it to (Triggering unit)
 
Level 3
Joined
Dec 16, 2006
Messages
27
But?

What if I have a Frostmourne (sword name) and I pick up another sword then something must say: You already have a sword, you can't pick up another one. because u can't carry two swords.
 
Status
Not open for further replies.
Top