This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
display_message [2017/04/12 14:33] – justin | display_message [2021/06/29 19:08] – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Displays a dialogue box with the specified message text. Interaction with the scene will be disabled until the player clicks | + | Displays a [[dialogue]] box with the specified message text. Interaction with the scene will be disabled until the player clicks the left mouse button |
+ | ====Signature: | ||
<code python> | <code python> | ||
- | display_message(message_text) | + | display_message(message_text, speaker) |
</ | </ | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |message_text|Message text to display in the dialogue box.|[[String]]|Yes| | + | |message_text|Message text to display in the [[dialogue]] box.|[[String]]|Yes| |
+ | |speaker|[[character|Character]] who will speak the message.|[[Entity]]|No| | ||
+ | |||
+ | <WRAP center round info 100%> | ||
+ | You can use [[placeholder_expression|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_properties|global property]]). | ||
+ | </ | ||
====Example: | ====Example: | ||
- | < | + | < |
- | display_message(" | + | display_message(" |
</ | </ | ||
- | // | + | // |
- | <WRAP center round info 100%> | + | <WRAP center round tip 100%> |
- | You can use [[placeholder_expression|placeholder expressions]] within the message text if you'd like to display dynamic information | + | Use the **Display Message** function to display information about interactive |
</ | </ | ||
+ | |||
+ | ---- | ||
<WRAP group> | <WRAP group> |