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:
// 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.
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.
Not true, but it is an obscure game.* option.
// in game_start
game.show_single_dialog_option = 1;
Reference: https://www.adventuregamestudio.co.uk/manual/ags38.htm#Gamevariables
Ah, I wondered where that option was just a few weeks ago. I really think this should be in general settings > dialog.