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
and here is the second one
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
-
-
-
-




