Suppressing the printed name of a room

Hmm, tricky! The heading is printed out by the room description heading rule, but I don’t think you can say “the room description heading rule does nothing when going to the kitchen” because the new room’s description is being printed out by the end-of-turn housekeeping rules, after the going action has resolved. Similarly, “the room description heading rule does nothing when the location is the kitchen” doesn’t work since then the player won’t know where they are when typing LOOK.

Based on that, the best I can come up with is a bit of a kludge, but I’m sure someone cleverer than me will have an elegant answer soon!

(NB if this is happening multiple times in your game, which I think it might be, you can rename “kitchenname” to something more generic – you shouldn’t need multiple versions of the statement knocking out the heading rule).

(Also I’m chewing over replying to your PM, but that’s a harder question!)

The room description heading rule does nothing when kitchenname is false.

kitchenname is a truth state that varies.

Check going to the Kitchen:
	say "As you enter the kitchen, the dog jumps on you, getting drool all over your dress.";
	now kitchenname is false;
	kitchenname returns in zero turns from now.
	
At the time when kitchenname returns:
	now kitchenname is true.
2 Likes