StopDialog ()
This command can only be used from within the dialog_request function. It
tells AGS that when dialog_request finishes, the whole conversation should
stop rather than continuing with the dialog script.
You can use this function to end the conversation depending on whether the
player has/does a certain thing.
Example:
function dialog_request (int dr) {
if (dr==1) {
cEgo.AddInventory(iPoster);
StopDialog();
}
will give the player the inventory item 3 and then end the conversation.
See Also: Dialog.SetOptionState
|