Difference between revisions of "Message"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Mmmpld
m (Max var of 9 info added)
imported>Millinghordesman
m
Line 6: Line 6:


Displays a message on the screen for a specified amount of game time.  
Displays a message on the screen for a specified amount of game time.  
The DisplaySeconds parameter must be an integer.


Up to 9 variable names can also be passed into the Message. These are displayed in the order they are used as parameters. The message must specify how the variable is to be displayed.  
Up to 9 variable names can also be passed into the Message. These are displayed in the order they are used as parameters. The message must specify how the variable is to be displayed.  

Revision as of 18:10, 6 April 2006

Syntax:

Message "Message text", [var1], [var2], DisplaySeconds 

Example:

Message "This is a Message" 
Message "You have %.0f hours to complete your task.", GameHour, 10 

Displays a message on the screen for a specified amount of game time.

The DisplaySeconds parameter must be an integer.

Up to 9 variable names can also be passed into the Message. These are displayed in the order they are used as parameters. The message must specify how the variable is to be displayed.

Formatting notation:

%.2f

This means format the variable with 2 decimal places.

%.0f

This will format the variable with 0 decimal places, so is the normal choice for integers.

See Also

MessageBox
GetButtonPressed