Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Rocco on Sat 24/04/2004 15:57:50

Title: abort conversation after an event occurs
Post by: Rocco on Sat 24/04/2004 15:57:50
hi all,

i have an conversation loop, which i want to break, when i reach 5x times.
but i when i trace 5x times in the
function dialog_request
how can i controll the dialog topics?
for example I have this dialog

option 1 = "hallo"

@S  // dialog startup entry point
return
@1  // option 1
run-script 5
return

in the function:
if(xvalue == 5)      {
   
   
    xtimes++;
   if(xtimes == 5)   {
               here comes the point, how can i controll the dialog from this point?
               }


   }
Title: Re:abort conversation after an event occurs
Post by: strazer on Sat 24/04/2004 16:00:27
StopDialog();  :P
Title: Re:abort conversation after an event occurs
Post by: Rocco on Sat 24/04/2004 16:08:02
yes thanks, StopDialog(); RunDialog(); is what i need.
very much thx