Inform Code help - random held item?


22 Jan 1995 01:50:04 GMT

I want to write some code that causes a random item held by
the player to be mentioned in text or dropped by the player
"accidentally". The item must be held and not worn, and cannot be
inside another item. I imagine the code must look something like:

objectloop (j in player) if(j has worn) j++;

but then how do I pick a "different" object each time?

Thanks in advance for the help.

-Armande

-- 

"you could have it all my empire of dirt i will let you down i will make you hurt"

-Trent Reznor

"And somewhere he was laughing, in a white painted loft, distant fingers caressing the deck, tears of release streaking his face." -William Gibson, NEUROMANCER