CHECK_SERIAL_DIALOG_OPEN
Checks whether a serial dialog is currently awaiting user input, such as a free response question or a multiple choice question.
Example JSON
{
"action": "CHECK_SERIAL_DIALOG_OPEN",
"expected_bool": true,
"success_script": "successScript"
},
{
"action": "CHECK_SERIAL_DIALOG_OPEN",
"expected_bool": true,
"jump_index": 12
}
MGS Natlang
The condition portion of this action can be used inside an if condition statement, e.g.
script {
if (serial dialog is open) {}
}
Examples
script {
if serial dialog is open then goto successScript;
if serial dialog is open then goto index 12;
if serial dialog is open then goto label labelName;
}
Dictionary entries
if serial dialog is $expected_bool:boolean
then goto (script) $success_script:string (;)
if serial dialog is $expected_bool:boolean
then goto index $jump_index:number (;)
if serial dialog is $expected_bool:boolean
then goto label $jump_index:bareword (;)