I came across a similar situation in a game I’m writing, in which an understandable reaction to “falling off” a chair is to type “STAND” (to get up off the floor) but it made the player exit the location. It wasn’t necessary to allow the player to “EXIT” the room so I got rid of that. But I’d still like to change the STAND action, and the following seems to work… but might there be any unintended consequences?
Understand the command "stand" as something new.
Understand "stand" and "stand up" as standing.
Standing is an action applying to nothing.
Carry out standing:
if the player is in a container or the player is on a supporter:
try exiting;
otherwise:
say "You're standing already."
Looks fine to me - only thing that occurs to me is that depending on what you’ve got in your game you might consider whether to include vehicles as well.
This is only rarely useful in a way that players will try, but you might want to put it back in, depending on your game. (I guess STAND ON CHAIR and STAND ON MAGIC CARPET are the cases most likely to turn up in IF scenes.)