bool Dialog.HasOptionBeenChosen(int option)
Finds out whether the player has already chosen the specified option in this
dialog. This is mainly useful when drawing your own custom dialog options
display, since it allows you to differentiate options that have already been chosen.
OPTION is the option number within the dialog, from 1 to whatever the
highest option is for that topic.
Example:
if (dJoeExcited.HasOptionBeenChosen(2))
Display("The player has chosen option 2 in dialog dJoeExcited!");
will display a message if the player has used option 2 of the dialog before.
Compatibility: Supported by AGS 3.1.1 and later versions.
See Also: Dialog.GetOptionState
|