Briefly restraining the player for flavor

The first part is annoyingly not trivial. I’ll post some code to do it tomorrow.

The second part, make it scenery.

1 Like

no rush :3

You could make this work with the name of the thing in text, since the player is presumably confined “in the docking latches”. You could also change the printed name of the container to adjust how it’s phrased.

1 Like

That parenthetical addition is printed by a rule in the Standard Rules, namely the “room description heading rule”.

So, one way of removing it is to copy that rule into your own code, change the part which prints the addition, and replace the original rule with your modified version:

The Platform is a room. "A fairly nondescript platform."

Some docking latches are an enterable openable closed transparent scenery container in the platform.
The player is in the docking latches.

Carry out looking (this is the modified room description heading rule):
	say bold type;
	if the visibility level count is 0:
		begin the printing the name of a dark room activity;
		if handling the printing the name of a dark room activity:
			say "Darkness" (A);
		end the printing the name of a dark room activity;
	otherwise if the visibility ceiling is the location:
		say "[visibility ceiling]";
		say "[The visibility ceiling]";
	say roman type;
	if the player is not in the docking latches:
		let intermediate level be the visibility-holder of the actor;
		repeat with intermediate level count running from 2 to the visibility level count:
			if the intermediate level is a supporter or the intermediate level is an animal:
				say " (on [the intermediate level])" (B);
				say " (in [the intermediate level])" (C);
			let the intermediate level be the visibility-holder of the intermediate level;
	say line break;
	say run paragraph on with special look spacing.

The modified room description heading rule is listed instead of the room description heading rule in the carry out looking rules.

With this variant, we only print the additional info if the player is not in the latches. So we just exclude the specific case where the player is in the latches, as per the present question, and other supporters and containers will still print the additions, like “(on the couch)”, “(in the clawfoot bathtub)” and so on.

The rule can of course be modified to also exclude other supporters etc., or to just remove the parenthetical part altogether.

(Also, if the player maybe is on another enterable supporter which is inside the docking latches, then you’d need to modify the condition to if the player is not enclosed by the docking latches.)

Side note: of course, if the latches don’t get their own paragraph, because they are scenery, and if you don’t mention them in the room heading either, then you’ll have to make sure that the player notices them via some other descriptions (intro, room, …).