Working with menus

Hello. I'm still learning the basics of Quest.

I want to be able to generate a menu when a specific character is in the room without having to use verbs or other interactions.


A menu without any interactions? How should this work?


You mean that when another character enters the room, a menu opens automatically?

That could easily be done using a turnscript, checking the location of that character and the player. If this character's conversation is longer, you might want to use a flag to indicate that the conversation is in progress.

You can create a menu using the ShowMenu function.


I'm sorry for not communicating this properly. A menu prior to any interaction that is triggered like an autorun without verbs or other interactions.

I don't really understand how flags or tunrscripts work.

Is there an example that I could reference?


A menu prior to any interaction that is triggered like an autorun without verbs or other interactions.

It'll always be triggered by some kind of interaction, because that's how games work.

The best way to do it is depends on how the player triggers it.

  • If the NPC is always in the same room, and the interaction starts when the player enters that room, you'll use the room's enter script.

  • If the NPC is also capable of moving, you probably want to check if the NPC is in the player's room immediately after moving the NPC. How you do this will depend on how you are moving the NPC.


Log in to post a reply.

Support

Forums