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:
say "You're standing already."
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.)