• 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.

Item Trigger

Status
Not open for further replies.
Level 4
Joined
Aug 12, 2007
Messages
91
So, hello im back. Okay, i need help to a trigger, like only orc blademaster can pick the item up and the other heros can't pick it up.
ive tried it so:
  • Item Drop
    • Events
      • Unit - A unit gets a item
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • 'IF'-Conditions
          • (Unit-type of (Triggering unit)) Ungleich Orc Blademaster FEMALE
          • (Unit-type of (Triggering unit)) Ungleich Orc Blademaster MALE
        • 'THEN'-Actions
          • Item - Move (Sold Item) to (Position of (Triggering unit))
        • 'ELSE'-Actions
          • Skip remaining actions
Longer i didn't came.
 
Level 28
Joined
Jun 4, 2007
Messages
1,480
Well for the moment this trigger is only executed if the Triggering Units is both Orc Baldemaster MALE and Orc Baldemaster FEMALE at the same time...
Thats not possible. Make an "Or(MultipleConditions)" condition and place the two conditions within it. Then it will trigger when only one of the unit types are matching.
 
Level 6
Joined
Feb 2, 2005
Messages
205
Btw you dont need the if, just move the Condition to the Trigger conditions. It would look like this.

  • Item Drop
    • Events
      • Unit - A unit gets a item
    • Conditions
      • OR - Any Conditions
        • (Unit-type of (Triggering unit)) Ungleich Orc Blademaster FEMALE
        • (Unit-type of (Triggering unit)) Ungleich Orc Blademaster MALE
    • Actions
      • Item - Move (Sold Item) to (Position of (Triggering unit))
 
Level 5
Joined
Oct 12, 2004
Messages
109
you have to declare what item it is.

  • Events
    • Unit - A unit Acquires an item
  • Conditions
    • (Item being manipulated) Equal to (Your Item)
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • Or - Any (Conditions) are true
          • Conditions
            • (Unit-type of (Hero manipulating item)) Equal to Blademaster Male
            • (Unit-type of (Hero manipulating item)) Equal to Blademaster Female
      • Then - Actions
        • Do nothing
      • Else - Actions
        • Hero - Drop (Your Item) from (Hero manipulating item)
 
Status
Not open for further replies.
Top