Hello again,
Really enjoying getting to grips with AGS and just finished the tutorial. Yippee!
Only bug I came across was in the dialogue part (part 8 I think.) The tutorial walks you through making a pair of dialogues which link to each other. That is to say, one of the option ins the first dialog is followed by the goto-dialog dWhatever command which takes you to a second dialog.
The tutorial then advises how to go back to the original dialog once done in the second dialog via the goto-previous command.
However, the previous dialog, as per the tutorial has some preamble in the @S Dialog // start up entry point part of the script (something benign like "hello".)
So in following the tutorial I end with a conversation tree that, when returning to the first dialog keeps repeating the greeting of a conversation, even though we have already said hello.
Here is the script for the first dialog with the startup entry point which causes the problem whenever I try to return to this part of the dialog:
// Dialog script file
@S // Dialog startup entry point
EGO: Greetings!
MERCHANT: Good day to you.
return
@1
Merchant: It is a sad state of affairs. I'd rather not talk about it right now.
return
@2
Merchant: That all depends on what you can do for me, doesn't it?
goto-dialog dWares
@3
Merchant: Goodbye.
stop
Anyway, the tutorial said to post any suggestions on improvement so there's one. Can we change so the above solution to this problem is explained in the tutorial. No one likes being set up to fail right?
Dan.
Welcome to the forums, Dan!
I'm not too familiar with dialog scripting, so while I can think of a few possible approaches to solving this problem (e.g. split the preamble into a separate topic, or code it with say() commands outside of the dialog altogether, or somehow keep a flag for whether this is really the start of the conversation and make the opening contingent on that...), I'm not sure what the best one is. You're probably right that the manual should explain how to modify it to create smooth dialog flow. Thanks for the suggestion!