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 [2020/04/22 17:16] – justin | display_message [2021/06/29 18:50] – 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 the left mouse button 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 the left mouse button or presses SPACE to dismiss it. It can be used along with the [[Display Choices]] function to create some simple, on-the-fly dialogue. |
====Signature: | ====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]] that will speak the message.|[[Entity]]|No| | ||
<WRAP center round info 100%> | <WRAP center round info 100%> | ||
Line 18: | Line 19: | ||
====Example: | ====Example: | ||
<code bauxite> | <code bauxite> | ||
- | display_message(" | + | display_message(" |
</ | </ | ||
// | // |