Author Topic: cannot find 'RUN_GOTO_DIALOG', is there a way to do this?  (Read 307 times)

bx83

  • Get 'Er Doooooone
I have the following code:

Code: Adventure Game Studio
  1. ...
  2.  
  3. @5
  4.         if (cond) {
  5.                 conversation 1
  6.                 return RUN_DIALOG_RETURN;
  7.         } else {
  8.                 conversation 2
  9. goto-dialog 49
  10.         }
  11. return
  12.  
  13. ...
  14.  

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.