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)
Line 7: Line 7:
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.  


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.  


Formatting notation:  
Formatting notation:  

Revision as of 23:50, 5 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.

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