SOLVED: Dialog options error

Started by Slasher, Mon 30/07/2018 20:04:12

Previous topic - Next topic

Slasher

Any idea why this should occur?

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


Crimson Wizard

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.

Slasher

Here it is (only 3 options)

Code: ags

// 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

Crimson Wizard

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?

Slasher

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 :-[




SMF spam blocked by CleanTalk