spacer graphic
spacer graphic
Montage of games AGS Logo
spacer graphic

 

spacer graphic
Menu
spacer graphic Home
About
News
Features
Download AGS
spacer graphic Games 
Games main page
Award Winners
Picks of the month
Short games
Medium length games
Full length games
In Production
Hints & Tips
Community
Forums
AGSers World Map
Member websites
Chat
Resources
Tutorials
FAQ
Knowledge Base
Downloads
Links
AGS-related links
* AGS Manual
  * Scripting
    * Text display / Speech functions

Display

Display (string message, ...)
Displays a message to the screen. It will be displayed in the standard message box, and centred in the middle of the screen.

You can insert the value of variables into the message. For more information, see the string formatting section.

Example:

int my_counter;
Display ("The counter is currently set to %d.", my_counter);
will replace the '%d' with the value of the variable "my_counter".

NOTE: Display is a blocking function - that is, control will not return to the script until the player has removed the text window (by pressing a key or clicking the mouse). While the window is displayed, all other processing, like animations and interface display, are disabled. This is usually used for responses to the player LOOKing at things.

See Also: DisplayAt, DisplayMessage, Character.Say, DisplayTopBar, String.Format


User comments and notes
There are currently no user comments on this page.
The user comment facility is currently disabled.