• 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] Wearing 1 item-type probleme

Status
Not open for further replies.
Level 2
Joined
Aug 31, 2007
Messages
11
ok this is a trigger to make people able to wear only one type of item in that case its armor(charged) but i really dont know why but when i click on an item on the ground of this type and i have one in my inventory sometime it still picks it up ...or when i click repeatadly really quick on a item it picks it up :S can i know what is wrong with this trigger ?!or anyone has any tips on what i could do?


thats the first part

  • Player 1 Wears 1 Armor
    • Events
      • Unit - A unit owned by Player 1 (Red) Acquires an item
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item-class of (Item being manipulated)) Equal to Charged
          • Only1Armor1 Equal to False
        • Then - Actions
          • Set Only1Armor1 = True
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Item-class of (Item being manipulated)) Equal to Charged
              • Only1Armor1 Equal to True
            • Then - Actions
              • Trigger - Turn off Player 1 Able To pick Up armor back <gen>
              • Item - Move (Item being manipulated) to (Position of (Triggering unit))
              • Game - Display to Player Group - Player 1 (Red) the text: --|cffff0000You can...
              • Trigger - Turn on Player 1 Able To pick Up armor back <gen>
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Item-class of (Item being manipulated)) Equal to Charged
                  • Only1Armor1 Equal to False
                • Then - Actions
                  • Set Only1Armor1 = True
                • Else - Actions
                  • Do nothing

and here is the second one

  • Player 1 Able To pick Up armor back
    • Events
      • Unit - A unit owned by Player 1 (Red) Loses an item
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item-class of (Item being manipulated)) Equal to Charged
          • Only1Armor1 Equal to True
        • Then - Actions
          • Set Only1Armor1 = False
        • Else - Actions
          • Set Only1Armor1 = False
 
the first trigger, when it runs the first Else - Action, i think it also checks that if the item is charged equal to false

Put the "(Item-class of (Item being manipulated)) Equal to charged" condition from the first if - condition to the real condition

also on ur second trigger.


and also, you made the same

  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Item-class of (Item being manipulated)) Equal to charged
      • Only1Armor1 Equal to False
    • Then - Actions
      • Set Only1Armor1 = True
    • Else - Actions
      • Do nothing
twice on ur first trig.
 
Status
Not open for further replies.
Top