Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: rmonic79 on Thu 29/01/2015 21:32:02

Title: Problem with CustomDialogGui
Post by: rmonic79 on Thu 29/01/2015 21:32:02
hi guys i have a big problem with this marvellous module. I want to reset scrollstate not only when the dialogue stop but each time after a return in the dialogue. I have it works like this:

Code (ags) Select

@15
Bibl:Lo si incontra spesso in giro mentre vaga senza meta leggendo un libro...
Bibl:... con un' espressione da suicidio...
  CDG.scroll_from =0;
return


but i have to put it in every dialogue option of the game, i didn't find any way to create an if statement in the global script to check if dialogues are stopping or return. Can someone help me?