Surreptitiously

Hello, all:

Having hunted around the forum and found the coding for surreptitiously moving a player, I have the following code (which works) when the player ‘views’ a distant room in a magic mirror:

viewing is an action applying to one thing.  understand "view [any room]" or "see [any room]" or "watch [any room]" as viewing

carry out viewing a room:
	now player is in noun;
	surreptitiously move player to room-46;

The problem is I think that surreptitiously moving the player suppresses the room description of the original room. When I type “look” after viewing another room I just get the name of the room and no description. I suspect it’s because I have secretly moved.

How would I ‘fix’ the look function in the original room to display the room’s description?

2 Likes

If, instead of using surreptitiously, you move the player to [room], without printing a room description, you’ll get the same behavior of not announcing the name and description of the destination room after moving, but without the weirdness of suppressing the description from >LOOK responses (which I think must be a bug).

(The description of the room-moved-to-surreptitiously does start printing again when you walk out and back into the room, but I don’t know what you can do with that information.)

4 Likes

Thank you for taking the time to answer and I appreciate the help!

Using “surreptitiously move” to move the player between rooms can cause several problems. Avoid unless you’re rewriting the guts of the going action. Use “without printing a room description” instead.

3 Likes