This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
display_message [2017/04/12 15:56] – justin | display_message [2020/03/12 11:00] – justin | ||
---|---|---|---|
Line 4: | Line 4: | ||
Displays a dialogue box with the specified message text. Interaction with the scene will be disabled until the player clicks on the dialogue box or presses SPACE to dismiss it. | Displays a dialogue box with the specified message text. Interaction with the scene will be disabled until the player clicks on the dialogue box or presses SPACE to dismiss it. | ||
+ | ====Signature: | ||
<code python> | <code python> | ||
display_message(message_text) | display_message(message_text) | ||
Line 12: | Line 13: | ||
<WRAP center round info 100%> | <WRAP center round info 100%> | ||
- | You can use [[placeholder_expression|placeholder expressions]] within the message text if you'd like to display dynamic information (for example, the current value of a global property). | + | You can use [[placeholder_expression|placeholder expressions]] within the message text, or even variables and properties directly, |
</ | </ | ||
====Example: | ====Example: | ||
- | < | + | < |
display_message(" | display_message(" | ||
</ | </ | ||
Line 24: | Line 25: | ||
Use the **Display Message** function to display information about interactive objects (such as signs) or to inform the player of events that have occurred. | Use the **Display Message** function to display information about interactive objects (such as signs) or to inform the player of events that have occurred. | ||
</ | </ | ||
+ | |||
+ | ---- | ||
<WRAP group> | <WRAP group> |