— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
Displays a dialogue box with the specified message text. Interaction with the scene will be disabled until the player clicks the left mouse button or presses SPACE to dismiss it. The optional “speaker” parameter, along with the Display Choices function, can be used to create simple, on the fly conversations without the need for a standalone dialogue file.
display_message(message_text, speaker)
Argument | Description | Type | Required |
---|---|---|---|
message_text | Message text to display in the dialogue box. | String | Yes |
speaker | Character who will speak the message. | Entity | No |
You can use placeholder expressions within the message text, or even variables and properties on their own, if you'd like to display dynamic information (for example, the current value of a global property).
display_message("Justin and Sarah's House");
Results: A dialogue box is displayed containing the text “Justin and Sarah's House”.
Use the Display Message function to display information about interactive objects (such as signs) or to inform the player of events that have occurred.