Stop "(first opening the front door)" from printing

I would like to stop “(first opening the front door)” from printing for one particular door.

1 Like

Would something like this work?

Lab is a room. Red door is a door.  It is east of lab.  Red door is closed.  Closet is east of red door.

The revised can't go through closed doors rule is listed instead of the can't go through closed doors rule in the check going rulebook.

Check an actor going (this is the revised can't go through closed doors rule):
	if the door gone through is not nothing and the door gone through is closed:
		if the actor is the player and the door gone through is not the red door:
			say "(first opening [the door gone through])[command clarification break]" (A);
		silently try the actor opening the door gone through;
		if the door gone through is open, continue the action;
		stop the action.
2 Likes

Since the “can’t go through closed doors rule” is a check rule, you can also just preempt it with a before rule. The “test me” demo leaves the message intact when travelling from the opposite location.

1 Like

Loosely related. I hope it’s ok, I don’t mean to derail. I currently have the issue:

That is already open.

[Insert flavor text]

That is already open.

Maybe the answer to this one will help me stop this from printing as well? “silently” isn’t doing the trick for some reason.

Silently doesn’t stop “error” messages from printing, only the main flow of the action.

2 Likes

If you’re just looking to suppress the text, then you can make use of the adaptive text response stuff, like so.

The can't go through closed doors rule response (A) is "[if the door gone through is {the name of the door in question}][run paragraph on][otherwise](first opening [the door gone through])[command clarification break][end if]".

You can also use a kind of door here if you decide later on that you want this to happen to multiple doors.

Hope this helps!

1 Like

It worked. That’s a lot of words to get rid of one line.

1 Like

Well, Drew’s and @climbingstars’ approaches are much more compact (and probably better overall), in fairness :slight_smile:

1 Like

I will say that yours is more general. Anything more than just text and I use your method! :slight_smile:

1 Like