Mod:Creation Kit/Message

Type:  Papyrus: Mod:Creation Kit/Message Script

Messages create localizable text strings used for message boxes, notifications, text overrides and help text.

Editor Dialog

 * Owner Quest: Optionally, the Mod:Creation Kit/Quest that owns this message, if it contains Mod:Creation Kit/Text Replacement formatting that needs to extract data from the quest.
 * Title: The title of the message. For Text Overrides, fill in the Title and leave the Message Text blank.
 * Message Text: The body text of the message. For Notifications, fill in the Message Text and leave the Title blank.
 * Message Box: When checked, the message is displayed as a dialog box that pauses the game and waits for a response. Otherwise the message will be briefly displayed at the top left of the screen.
 * Display Time: The number of seconds the message will be displayed. Only applicable when the message box option is unchecked. This does not appear to actually function correctly: regardless of the value set here, the message appears to always display for about two seconds.
 * Menu Buttons: A list of buttons on the message form. Right click to create a new one.
 * Item Text: The text on the selected button.
 * Item Conditions: A list of conditions that must be satisfied for the selected button to show.
 * Menu Buttons: A list of buttons on the message form. Right click to create a new one.
 * Item Text: The text on the selected button.
 * Item Conditions: A list of conditions that must be satisfied for the selected button to show.

Message Text
To designate where to put the numbers in the message in the editor, the following format is used: %[flags][width][.precision]f

If you want the message to contain a % sign, then you must use a double % sign like so: %%

Flags
Flags is one or more of the following characters:

Width
This is an optional number that specifies the minimum number of characters to output. This includes the sign character (+ or -) and the decimal point, if any.

Precision
This value specifies the number of digits after the decimal point. If a decimal point appears, there is always at least one digit before it. The value is rounded to the appropriate number of digits.

The default precision is 6. If precision is 0, or if the period appears without a number following it, no decimal point is printed.

Examples
Values: 5 1.1 -0.523456745

"%f" results in: 5.0 1.1 -0.523457

"%.0f" results in: 5 1 -1

"%+05f" results in: +0005 +01.1 -0.523457

"%10.2f" results in: 5.00      1.10      -0.52