Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: x_traveler_x on Fri 11/03/2005 03:58:38

Title: text window delay
Post by: x_traveler_x on Fri 11/03/2005 03:58:38
Looked everywhere for this...

There's an option in the Interaction Editor's Message Editor for Automatically remove this message after a time.  Can I just script this raw?
Title: Re: text window delay
Post by: strazer on Fri 11/03/2005 04:20:42
Manual: Reference -> Text script global variables -> game.skip_display

If you don't want to do this globally for all Display commands, you could use a custom function:


// Main global script

function myDisplay(string text) {
  int oldsetting = game.skip_display;
  game.skip_display = 0;
  Display(text);
  game.skip_display = oldsetting;
}



// Main script header

import function myDisplay(string text);
Title: Re: text window delay
Post by: x_traveler_x on Fri 11/03/2005 05:17:50
Ah.. thank you yet again for coming to my rescue.  Sorry for my oversight!
Title: Re: text window delay
Post by: strazer on Fri 11/03/2005 05:21:24
No prob. I'm happy to help. :)