- Joined
- Mar 5, 2009
- Messages
- 254
Hello guys,ok i need a help with this : How to edit this trigger,so i can add few items that when they are picked that trigger won't run for them,custom value won't be set for them.
-
item ownership
-

Events
-


Unit - A unit Acquires an item
-
-

Conditions
-

Actions
-


Set tempItem = (Item being manipulated)
-


Set tempInt = (Custom value of tempItem)
-


Set tempForce = (Player group((Owner of (Triggering unit))))
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(tempInt Equal to 0) or (tempInt Equal to (Player number of (Owner of (Triggering unit))))
-
-



Then - Actions
-




Item - Set the custom value of tempItem to (Player number of (Owner of (Triggering unit)))
-
-



Else - Actions
-




Hero - Drop tempItem from (Triggering unit)
-




Game - Display to tempForce the text: You are not allowed...
-
-
-


Custom script: call DestroyForce(udg_tempForce)
-
-







