Deep Space Drifter has a function that drops the player's inventory -
you could adapt the code to do what you want, I imagine. This is it:
dropAll: function( actor )
{
local cur, rem, loc, cnt;
cnt := 0;
rem := actor.contents;
loc := actor.location;
while ( cur := car( rem ))
{
if ( not cur.isworn )
{
cur.moveInto( loc );
cnt := cnt + 1;
}
rem := cdr( rem );
}
return( cnt );
}
- Neil K.
-- Neil K. Guy * neilg@sfu.ca * tela@tela.bc.ca 49N 16' 123W 7' * Vancouver, BC, Canada