(Formerly known as global function GetDialogOption, which is now obsolete)
Dialog.GetOptionState(int option)
Finds out whether an option in a conversation is available to the player or
not.
OPTION is the option number within the dialog, from 1 to whatever the
highest option is for that topic.
The return value can have the following values:
eOptionOff
The option is disabled - the player will not see it
eOptionOn
The option is enabled - the player can now see and use it
eOptionOffForever
The option is permanently disabled - no other command can ever turn
it back on again.
These are the same as the options passed to Dialog.SetOptionState.
Example:
if (dJoeExcited.GetOptionState(2) != eOptionOn)
Display("It's turned off");
Will display a message if option 2 of dialog dJoeExcited is not currently switched on.
See Also: Dialog.HasOptionBeenChosen,
Dialog.SetOptionState
|