![]() |
PowerQuest 0.18.12
|
Inherits IQuestScriptable, IDialogTree, and IQuestSaveCachable.
Properties | |
string | ScriptName [get] |
The name used in scripts. More... | |
DialogTree | Data [get] |
PowerQuest internal function: Access to the base class with extra functionality used by the PowerQuest. More... | |
List< DialogOption > | Options [get] |
A list of the dialog options of the dialog tree. More... | |
int | NumOptionsEnabled [get] |
Returns the number of enabled dialog options currently available to the player. More... | |
int | NumOptionsUnused [get] |
bool | FirstTimeShown [get] |
True the first time the dialog tree is shown (or if its never been shown). More... | |
int | TimesShown [get] |
The number of times the dialog tree has been shown. More... | |
IDialogOption | this[int index] [get] |
IDialogOption | this[string name] [get] |
bool | SaveDirty [get, set] |
bool | SaveDirtyEver [get] |
![]() | |
string | ScriptName [get] |
The name used in scripts. More... | |
List< DialogOption > | Options [get] |
A list of the dialog options of the dialog tree. More... | |
int | NumOptionsEnabled [get] |
Returns the number of enabled dialog options currently available to the player. More... | |
int | NumOptionsUnused [get] |
bool | FirstTimeShown [get] |
True the first time the dialog tree is shown (or if its never been shown). More... | |
int | TimesShown [get] |
The number of times the dialog tree has been shown. More... | |
IDialogOption | this[string option] [get] |
Shortcut access to options eg: D.MeetSarah["hello"].Off(); . Note that from dialog tree scripts you can access their options with O.hello instead. More... | |
DialogTree | Data [get] |
PowerQuest internal function: Access to the base class with extra functionality used by the PowerQuest. More... | |
Public Member Functions | |
QuestScript | GetScript () |
IQuestScriptable | GetScriptable () |
T | GetScript< T > () |
PowerQuest internal function: Access to the specific quest script for the object. Use the specific dialog class as the templated parameter so you can access specific members of the script. Eg: GetScript<DialogSister>().m_saidHi = true;. More... | |
string | GetScriptName () |
string | GetScriptClassName () |
void | HotLoadScript (Assembly assembly) |
GameObject | GetPrefab () |
DialogTreeComponent | GetInstance () |
void | SetInstance (DialogTreeComponent instance) |
void | OnStart () |
void | Start () |
Starts the dialog. More... | |
void | Stop () |
Stops/ends the dialog. More... | |
IDialogOption | GetOption (string name) |
Finds a dialog option with the specified name. More... | |
IDialogOption | GetOption (int index) |
Finds a dialog option with the specified id. More... | |
void | OptionOn (params int[] id) |
Turns on one or more options. Eg: D.ChatWithBarney.OptionOn(1,2,3); More... | |
void | OptionOff (params int[] id) |
Turns off one or more options. Eg: D.ChatWithBarney.OptionOff(1,2,3); More... | |
void | OptionOffForever (params int[] id) |
Turns one or more options off permanantly. Future OptionOn calls will be ignored. Eg: D.ChatWithBarney.OptionOffForever(1,2,3); More... | |
void | OptionOn (params string[] id) |
Turns on one or more options. Eg: D.ChatWithBarney.OptionOn("Yes","No","Maybe"); More... | |
void | OptionOff (params string[] id) |
Turns off one or more options. Eg: D.ChatWithBarney.OptionOff("Yes","No","Maybe"); More... | |
void | OptionOffForever (params string[] id) |
Turns one or more options off permanantly. Future OptionOn calls will be ignored. Eg: D.ChatWithBarney.OptionOffForever("Yes","No","Maybe"); More... | |
bool | GetOptionOn (int option) |
Check if the specified option is on. More... | |
bool | GetOptionOffForever (int option) |
Check if the specified option is off forever. More... | |
bool | GetOptionUsed (int option) |
Check if the specified option has been used. More... | |
bool | GetOptionOn (string option) |
Check if the specified option is on. More... | |
bool | GetOptionOffForever (string option) |
Check if the specified option is off forever. More... | |
bool | GetOptionUsed (string option) |
Check if the specified option has been used. More... | |
void | EditorInitialise (string name) |
void | EditorRename (string name) |
void | OnPostRestore (int version, GameObject prefab) |
void | Initialise (GameObject prefab) |
void | Start () |
Starts the dialog. More... | |
void | Stop () |
Stops/ends the dialog. More... | |
IDialogOption | GetOption (string option) |
Finds a dialog option with the specified name. More... | |
IDialogOption | GetOption (int option) |
Finds a dialog option with the specified id. More... | |
void | OptionOn (params int[] option) |
Turns on one or more options. Eg: D.ChatWithBarney.OptionOn(1,2,3); More... | |
void | OptionOff (params int[] option) |
Turns off one or more options. Eg: D.ChatWithBarney.OptionOff(1,2,3); More... | |
void | OptionOffForever (params int[] option) |
Turns one or more options off permanantly. Future OptionOn calls will be ignored. Eg: D.ChatWithBarney.OptionOffForever(1,2,3); More... | |
void | OptionOn (params string[] option) |
Turns on one or more options. Eg: D.ChatWithBarney.OptionOn("Yes","No","Maybe"); More... | |
void | OptionOff (params string[] option) |
Turns off one or more options. Eg: D.ChatWithBarney.OptionOff("Yes","No","Maybe"); More... | |
void | OptionOffForever (params string[] option) |
Turns one or more options off permanantly. Future OptionOn calls will be ignored. Eg: D.ChatWithBarney.OptionOffForever("Yes","No","Maybe"); More... | |
bool | GetOptionOn (int option) |
Check if the specified option is on. More... | |
bool | GetOptionOffForever (int option) |
Check if the specified option is off forever. More... | |
bool | GetOptionUsed (int option) |
Check if the specified option has been used. More... | |
bool | GetOptionOn (string option) |
Check if the specified option is on. More... | |
bool | GetOptionOffForever (string option) |
Check if the specified option is off forever. More... | |
bool | GetOptionUsed (string option) |
Check if the specified option has been used. More... | |
T | GetScript< T > () |
PowerQuest internal function: Access to the specific quest script for the object. Use the specific dialog class as the templated parameter so you can access specific members of the script. Eg: GetScript<DialogSister>().m_saidHi = true;. More... | |
|
get |
The name used in scripts.
Implements IDialogTree.
|
get |
PowerQuest internal function: Access to the base class with extra functionality used by the PowerQuest.
Implements IDialogTree.
|
get |
A list of the dialog options of the dialog tree.
Implements IDialogTree.
|
get |
Returns the number of enabled dialog options currently available to the player.
Implements IDialogTree.
|
get |
Implements IDialogTree.
|
get |
True the first time the dialog tree is shown (or if its never been shown).
Implements IDialogTree.
|
get |
The number of times the dialog tree has been shown.
Implements IDialogTree.
|
inline |
PowerQuest internal function: Access to the specific quest script for the object. Use the specific dialog class as the templated parameter so you can access specific members of the script. Eg: GetScript<DialogSister>().m_saidHi = true;.
Implements IDialogTree.
T | : | DialogTreeScript<T> |
|
inline |
Starts the dialog.
Implements IDialogTree.
|
inline |
Stops/ends the dialog.
Implements IDialogTree.
|
inline |
Finds a dialog option with the specified name.
Implements IDialogTree.
|
inline |
Finds a dialog option with the specified id.
Implements IDialogTree.
|
inline |
Turns on one or more options. Eg: D.ChatWithBarney.OptionOn(1,2,3);
Implements IDialogTree.
|
inline |
Turns off one or more options. Eg: D.ChatWithBarney.OptionOff(1,2,3);
Implements IDialogTree.
|
inline |
Turns one or more options off permanantly. Future OptionOn calls will be ignored. Eg: D.ChatWithBarney.OptionOffForever(1,2,3);
Implements IDialogTree.
|
inline |
Turns on one or more options. Eg: D.ChatWithBarney.OptionOn("Yes","No","Maybe");
Implements IDialogTree.
|
inline |
Turns off one or more options. Eg: D.ChatWithBarney.OptionOff("Yes","No","Maybe");
Implements IDialogTree.
|
inline |
Turns one or more options off permanantly. Future OptionOn calls will be ignored. Eg: D.ChatWithBarney.OptionOffForever("Yes","No","Maybe");
Implements IDialogTree.
|
inline |
Check if the specified option is on.
Implements IDialogTree.
|
inline |
Check if the specified option is off forever.
Implements IDialogTree.
|
inline |
Check if the specified option has been used.
Implements IDialogTree.
|
inline |
Check if the specified option is on.
Implements IDialogTree.
|
inline |
Check if the specified option is off forever.
Implements IDialogTree.
|
inline |
Check if the specified option has been used.
Implements IDialogTree.