Moving a character out of a room.

I have a character that I’d like to move from one room to the room above (up) him. Is there a simple code that can make a player do that? I’ve tried things like:

No dice.

Did you try,

now Cowboy is in the Mess Hall;
?

Or

Try cowboy going up

now Cowboy is in the Mess Hall;

works for me. Thanks.

Oh, sure, they both work.

The difference is that “now Cowboy is in the Mess Hall” will just teleport the Cowboy there, which often is just what you want. The other way (“try Cowboy going up”) is a more general way to have a character perform something. That way your game will check whether it’s possible, so your Cowboy doesn’t walk through locked doors, for example.