- Joined
- Jun 25, 2009
- Messages
- 50
I am currently trying to get this to run. At first it seemed quite possible to make it work. PROBLEM, for some reason it doesn't work. i was using the custom variables (not actually in variables but a per item integer). are these not working?? because when i made the individual variables it didn't work and remained the default 0. not only that but this also didn't work.
setting custom value
event player loses item
set item custom value = playernumber(ownerof(triggeringunit))
grabbing item trigger
(not exact but close)
event unit is issued an order targeting an object
if (targeted item variable equal to playernumber(ownerof(triggeringunit)))
then do nothing
else if (targeted item custom variable not equal to 0)
then display to all players (player name is trying to steal player names item)
unit force order(triggering unit) == stop
setting custom value
event player loses item
set item custom value = playernumber(ownerof(triggeringunit))
grabbing item trigger
(not exact but close)
event unit is issued an order targeting an object
if (targeted item variable equal to playernumber(ownerof(triggeringunit)))
then do nothing
else if (targeted item custom variable not equal to 0)
then display to all players (player name is trying to steal player names item)
unit force order(triggering unit) == stop