• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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