Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Gemmalah on Tue 26/08/2003 19:53:47

Title: Dialogs continuing without user click.
Post by: Gemmalah on Tue 26/08/2003 19:53:47
JUst another newbie question.

I have read the manual under dialogs, (conversations) and scoured the message boards and everything else before i posted.

I have a many room game so far... and two conversations.
But when i start the conversation my charactor says hello and the other responds with the first topic rather than displaying the options first.

Problems, 1 it is not the only option i also have one other and a goodbye one.
2. i did put the first topic under the @1 line not under @S

i'm a little stumped.
PS. Is the line for changing the conversation after an object is given to a charactor,
If (Item ==1) Option-off 1
option-on 2
thanks a bunch
Title: Re:Dialogs continuing without user click.
Post by: Ishmael on Tue 26/08/2003 20:45:47
To get the options up, put:

@S
EGO: Hello!
return

in there...

And the script line is not right. You must use run-script x, and the dialog_request function. Read more about these in the manual. The basic structre for the dialog_request is something like:

function dialog_request (int req) {
if (req==1) {
// your code for run-script 1
} else if (reg==2) {
// your code for run-script 2
}
}