HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Owner of Item

12-23-2003, 12:39 AM#1
No Shelter
Untitled Trigger 003 Copy
Events
Player - Player 2 (Blue) Presses the Up Arrow key
Conditions
Player 2 (Blue) Equal to (Owner of Uniquely Carved Potato. 0008 <gen>)
Actions
Hero - Give Uniquely Carved Potato. 0008 <gen> to (Random unit from (Units owned by Purple))


I want it so when Blue presses the up key, and he owns the item, it gives it to a random unit of purples. This seems like it'd work.. but it doesn't. Can anyone help?
12-23-2003, 12:47 AM#2
Dead-Inside
The units need to be able to carry the item, else you might pick out "normal" units, which cannot accept it, thus your trigger becomes irrelevant.

The other thing I could see is that you should switch your condition around... Not that it SHOULD make any difference, but you know Blizzard...

Edit: Oh, wait... I know... You check for the OWNER of the potatoe? That would be player 15 or something, 'the item owner player'. You need to check on who owns the UNIT who HAS the item...

Regards
Dead-Inside
12-23-2003, 02:42 AM#3
No Shelter
Okay that clears up a lot of why my many tries didn't work, could you explain how i could go around finding who has the item?