Editing ShowMessage
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
=='''Description'''== | |||
'''ShowMessage''' is used to display [[message]]s to the player. The message itself is an editor object that contains all the data: display text, type of message, buttons. | |||
==Notes== | =='''Syntax'''== | ||
'''ShowMessage''' MessageID, [var1], ..., [var9] sDuration | |||
=='''Notes'''== | |||
* This command replaces the "Message" and "MessageBox" functions of Oblivion and Morrowind. | * This command replaces the "Message" and "MessageBox" functions of Oblivion and Morrowind. | ||
* Buttons are part of the Message form. If no buttons are specified on a MessageBox type message, a default "OK" button will be displayed. | * Buttons are part of the Message form. If no buttons are specified on a MessageBox type message, a default "OK" button will be displayed. | ||
Line 35: | Line 12: | ||
* Variables can be inserted into the displayed text (see below). The message will fail to display if the wrong number of variables are passed into the ShowMessage call. | * Variables can be inserted into the displayed text (see below). The message will fail to display if the wrong number of variables are passed into the ShowMessage call. | ||
* Variables cannot be inserted into a message box's buttons. | * Variables cannot be inserted into a message box's buttons. | ||
* The " | * The "sDuration" parameter doesn't actually do anything | ||
==Formatting messages== | =='''Formatting messages'''== | ||
Variable parameters can be used in conjunction with a Message in order to insert variables into the displayed text. | Variable parameters can be used in conjunction with a Message in order to insert variables into the displayed text. | ||
* Use the formatting notation below in the text of the Message. | * Use the formatting notation below in the text of the Message. |