text window delay

Started by x_traveler_x, Fri 11/03/2005 03:58:38

Previous topic - Next topic

x_traveler_x

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?
~~- - -. . .finding a cure for mundanity. . . - - -~~

strazer

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:

Code: ags

// Main global script

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


Code: ags

// Main script header

import function myDisplay(string text);

x_traveler_x

Ah.. thank you yet again for coming to my rescue.  Sorry for my oversight!
~~- - -. . .finding a cure for mundanity. . . - - -~~

strazer

No prob. I'm happy to help. :)

SMF spam blocked by CleanTalk