alternate names when asking/telling NPC's?

LesleyIF
26 Jan 2023, 13:44

I am using the web editor and I have a character who starts out as an unconscious guard. If the player revives the guard, they take on a name ("Stanley") and the player can then interact with them, and ask questions.

If the player somehow misses the name of the guard in my explanatory text, and tries to "ask guard about

Many thanks for any help you can offer!


mrangel
27 Jan 2023, 14:03

The names that the player can use to refer to an object are stored in two places. The alias attribute is the one that will appear in room descriptions and similar, and the alt attribute is a stringlist of alternate names. In this case, I would suggest setting the alias to unconscious guard and putting guard in the alternate list (which I think is on the "Object" tab in the editor – though that's just from memory). Then, when the player finds out his name, you can change the alias to Stanley.

Then, because "guard" is still in the alternate list, "ask guard about fish fingers" should work normally.

I hope that's helpful; part of your question seems to be cut off, so I'm guessing what you were having trouble with.


LesleyIF
27 Jan 2023, 15:25

Ah, sorry about the cutoff - trying to do too many things at once!

Yes, I can see the alternate list now. It IS on the object tab in the web editor and is just labeled "other names". I should have looked a little more carefully! This works perfectly now, thank you.

-D