Adventure Game Studio | Forums

AGS Support => Advanced Technical Forum => Topic started by: bx83 on Wed 17/01/2018 07:13:25

Title: cannot find 'RUN_GOTO_DIALOG', is there a way to do this?
Post by: bx83 on Wed 17/01/2018 07:13:25
I have the following code:


...

@5
if (cond) {
                conversation 1
return RUN_DIALOG_RETURN;
} else {
                conversation 2
goto-dialog 49
}
return

...


But the following error:
'Dialog 45(115): Script commands can only be used in the area between a @ entry point and the closing return/stop statement
Dialog 45(116): The command 'return' will be ignored since the script for this option has already finished
Dialog 45(117): Error (line 117): PE04: parse error at 'else''

If I alter lines 11 or 6 (return, return RUN_DIALOG_RETURN statement) - error still happens.

I'm aware of the RUN_ statements - return, previous, and stop - but there isn't one 'goto a dialog'. Otherwise I'd say by problems would be simple.

Am I doing this wrong? Is there *any* way to do this?
I'm asking because there doesn't seem to be anything on the net.
Title: Re: cannot find 'RUN_GOTO_DIALOG', is there a way to do this?
Post by: bx83 on Wed 17/01/2018 08:50:36
please ignore

http://www.adventuregamestudio.co.uk/forums/index.php?topic=54294.0