Dialogue issues. @1 plays automatically.

Started by viktor, Wed 25/11/2020 19:00:07

Previous topic - Next topic

viktor

Ok, this is simply embarrassing but I can't seem to figure out what I'm doing wrong. I'm trying to get a hang of the dialogue system again and I can't seem to be able to make it work how I want it to.

This is my code:
Code: ags

// Dialog script file
@S  // Dialog startup entry point
character1: Hy!
character2: Hy! State your business in one word or less.
return
@1
character2: Yeah, he keeps it under that rock near the bush.
option-on 2
return
@2
character2: Too-da-loo.
stop


But for some reason @S runs normally and when it finishes the dialogue goes automatically to @1. If I delete the option-on 2 command that doesn't happen. So what am I doing wrong? Option 2 is set to NOT show at first.
signature" border="0
<a target='_blank' href='https://imgbb.com/'>resurrection pictures for facebook</a>

Crimson Wizard

#1
Quote from: viktor on Wed 25/11/2020 19:00:07But for some reason @S runs normally and when it finishes the dialogue goes automatically to @1 <...> Option 2 is set to NOT show at first.

Dialogs in AGS will automatically run an option if it's the only option enabled.

Khris

Not true, but it is an obscure  game.*  option.

Code: ags
  // in game_start
  game.show_single_dialog_option = 1;


Reference: https://www.adventuregamestudio.co.uk/manual/ags38.htm#Gamevariables

Matti

Ah, I wondered where that option was just a few weeks ago. I really think this should be in general settings > dialog.

SMF spam blocked by CleanTalk