I want to change the parser message when a player walks through a doorway.
This is what I get normally, when the door is scenery.
This is some kind that I tried to change the message a little bit.
[code]
LR is a door. The printed name of LR is “Living room doorway”. Understand “Living room doorway” as LR. It is north of the foyer and south from the living room. It is scenery. The LR door can be explored or unexplored. The LR door is unexplored.
After opening the LR door:
now the LR door is explored;
say “Test”[/code]
But I got these error messages:
What am I doing wrong here and is there some other better/different way I can change the awkward default messages the player gets when they walk through rooms and doorways?
Living room is a room. “Hello, here’s the living room.”
Foyer is a room. “This is the foyer.”
A door can be explored.
LR is a door. It is north of living room and south of foyer. The printed name of LR is “living room doorway”. Understand “door/doorway” and “living room doorway” as LR.
After opening LR:
now LR is explored;
say “Test.”[/code]
This doesn’t change the (first opening door) message like I thought actually. Also I still get the message even if the door is locked. How can I get rid of/alter default parser messages entirely?
I didn’t want that so I included the above piece of code. But for whatever reason that reintroduces the (first opening door) message, even if the door is locked.
If I understand you correctly, this is the message you are trying to change:
To find out what rule is printing that message, you can type the RULES command and then try the action that leads to that message. In this case, it’s the “can’t go through closed doors rule.”
If you type RESPONSES, and look up the “can’t go through closed doors rule”, you can see that response (A) is “(first opening [the door gone through])[command clarification break]”.
To change that response, you say whatever you want the new message to be, for instance:
can’t go through closed doors rule response (A) is “(Since the door is closed, you try to open it first.)[command clarification break]”.
I suppose if you didn’t want anything at all, you could try changing the response to “”.
Chapter §14.11 in the manual talks about changing responses.
It was changing just the first word “You” by getting rid of it and some of the punctuation was being changed depending on how I edited the response. But I couldn’t get rid of the message entirely.
Sometimes a rule will have several different responses it can print. Each response in a rule is labeled with a different letter in parentheses so you can specify which response you want to change.