[I7] Accepting actions instead of a command

How would one go about replacing the xyzzy command with a script that moves the player to a room and prints text?

[code]xyzzying is an action applying to nothing.

Understand “xyzzy” as xyzzying.

Instead of xyzzying when the location is not Y1:
say “With a puff of smoke you find yourself in[line break]”;
move the player to Y1.

Instead of xyzzying in Y1:
say “With a puff of smoke you find yourself exactly where you already are.”[/code]

“Move the player to Y1” should automatically print the room description once you’re there, so that would result in

I don’t vouch for the line spacing, though.

Thanks, I’ve implemented it!