Holds the trigger menu, if it exists, for a given location in a dialog.
More...
#include <dictionary.h>
Holds the trigger menu, if it exists, for a given location in a dialog.
Definition at line 325 of file dictionary.h.
NpcDialogMenu::NpcDialogMenu |
( |
| ) |
|
Adds a the triggers of the NpcDialogMenu to the array of triggers.
- Parameters
-
add | contains the triggers to add. |
void NpcDialogMenu::AddTrigger |
( |
const csString & |
menuText, |
|
|
const csString & |
trigger, |
|
|
psQuest * |
quest, |
|
|
psQuestPrereqOp * |
script = NULL |
|
) |
| |
Adds a trigger to the menu.
- Parameters
-
menuText | is the text to display in the menu |
trigger | is the text that the player needs to enter to trigger the menu entry |
quest | that the trigger refers to |
script | are the quest prerequisites for ??? |
void NpcDialogMenu::DeleteAllMenusOfQuest |
( |
psQuest * |
quest | ) |
|
Remove the specified quest's menus.
- Parameters
-
quest | pointer to the quest to remove |
sets the prerequisite script for all DialogTriggers.
The complete triggers array is iterated through and all structs have the prerequisite set to the script.
- Parameters
-
script | the prerequisites that are to be set. |
void NpcDialogMenu::ShowMenu |
( |
Client * |
client, |
|
|
csTicks |
delay, |
|
|
gemNPC * |
npc |
|
) |
| |
display the menu on the client.
- Parameters
-
client | to display the menu on |
npc | is the npc the dialog is conducted with |
The documentation for this class was generated from the following file: