Message

From the Oblivion ConstructionSet Wiki
Revision as of 18:10, 6 April 2006 by imported>Millinghordesman
Jump to navigation Jump to search

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