Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Slasher on Mon 30/07/2018 20:04:12

Title: SOLVED: Dialog options error
Post by: Slasher on Mon 30/07/2018 20:04:12
Any idea why this should occur?

On command I start dialog options gui. It shows but then errors.

(https://i.imgur.com/kZSkHhQ.png)
Title: Re: Dialog options error
Post by: Crimson Wizard on Mon 30/07/2018 20:13:13
Can you show your dialog options script?
This error may happen when there are too many commands like ChangeRoom or mouse/keyboard events made in one sequence.
Title: Re: Dialog options error
Post by: Slasher on Mon 30/07/2018 21:26:07
Here it is (only 3 options)

Code (ags) Select

// Dialog script file
@S  // Dialog startup entry point
return
@1
Display("That is the wrong answer.");
gDialogs.Visible=false;
question=false;
stop
@2
Display("That is the wrong answer.");
gDialogs.Visible=false;
question=false;
stop
@3
Display("That is the correct answer.");
Display("You just won fifty pound!");
gDialogs.Visible=false;
Cash +=50;
question=false;
stop
Title: Re: Dialog options error
Post by: Crimson Wizard on Mon 30/07/2018 21:38:18
You said, that
Quote from: Slasher on Mon 30/07/2018 20:04:12
On command I start dialog options gui. It shows but then errors.

I understood it as you are using custom dialog options rendering. Is this correct? If so, could you show the dialog options gui script?
When do errors occur, just after it shows, or after you do something else?

Another question, why are you manually hiding gDialogs GUI in the dialogs script?
Title: SOLVED:Re: Dialog options error
Post by: Slasher on Mon 30/07/2018 21:57:46
Hi Crimson,

I have re-scripted. I appear to have not turned some bools to true elsewhere and that caused the issue as it now works fine...

Anyone got a spare set of good eyeballs? (laugh)

Sorry mate :-[