I've been struggling with this for a few days, and I'm tearing my hair out now.
Any help is appreciated.
I have some dialogue where the player can pick from 3 options. And I use the GoTo-Dialog to get to a new set of options, and GoTo-Previous to return to the first set of options.
Here's my code:
The dialogue starts like this:
// Dialog script file
@S // Dialog startup entry point
JASON: Hi there.
MANAGER: *grunt* You must be the competition winner.
MANAGER: What was the name again… John? Jacob? Josh?
return
@1
MANAGER: Jason! I see!
MANAGER: I'm the Manager for UpTempo Maniacs.
goto-dialog dManagerResponse1
@2
MANAGER: Hmm. Well, you're here now, so I suppose I'll just have to make the best of it.
MANAGER: I'm the band's manager.
goto-dialog dManagerResponse2
@3
MANAGER: I'd rather not!
option-on 4
goto-dialog dManagerResponse3
@4
MANAGER: If you'll excuse me, I'm very busy!
stop
And then when I go to the dialogue for ManagerResponse1, it's this:
// Dialog script file
@S // Dialog startup entry point
return
@1
MANAGER: You may.
return
@2
MANAGER: As it should be!
return
@3
MANAGER: Humf! Just remember, they took valuable time out of their busy lives… for YOU!
goto-previous
The problem is, when it goes back to the previous dialogue, it starts right from the top again, with:
JASON: Hi there.
MANAGER: *grunt* You must be the competition winner.
MANAGER: What was the name again… John? Jacob? Josh?
How do I stop it from repeating those first 3 lines every time, and just start again with the options?
Game.DoOnceOnly would do it..
// Dialog script file
@S // Dialog startup entry point
if(Game.DoOnceOnly("First Time")){
JASON: Hi there.
MANAGER: *grunt* You must be the competition winner.
MANAGER: What was the name again… John? Jacob? Josh?
}
return
And that does the trick. Thanks Slasher.