Display Dialogue Options
Display Dialogue Options¶
Displays a dialogue box with multiple options for the player to choose from, each with its own set of commands to execute.
Properties¶
System¶
| Name | Explanation | Type |
|---|---|---|
| Audio | The audio clip to play when the message is displayed. | Sound Effect |
| Block Input | When enabled, player input is blocked while the message is displayed. | Toggle |
| Canceled Commands | The commands to execute when the player cancels the dialogue. | Script |
| Dialogue Template | The user interface template used to render the dialogue options. | User Interface |
| Is Cancelable | When enabled, the player can cancel the message or dialogue. | Toggle |
| Maintain Last Message Displayed | When enabled, the previous message remains visible while the dialogue is displayed. | Toggle |
| Message Template | The user interface template used to render the message box. | User Interface |
| Offset | The pixel offset applied to the message box position. | Point |
| Options | The list of dialogue options the player can choose from. | Array |
Examples¶
Display a Simple Dialogue with Two Choices¶
This displays a dialogue box with two options, each executing different commands when selected.
{"Data":{"UserInterfaceID":"00000000-0000-0000-0000-000000000000","CanceledCommands":[],"IsTimeConstrained":1,"AudioMessage":{"Name":null,"Pan":0,"Pitch":0,"Volume":1,"IsPreventingMultiple":false},"IsCancelable":0,"IsMaintainingLastMessage":0,"Offset":"0,0","Options":[{"Commands":[],"Conditions":[],"IsCancelationSet":0,"Name":"Accept","Metadata":null},{"Commands":[],"Conditions":[],"IsCancelationSet":0,"Name":"Decline","Metadata":null}],"IsBlockingInput":1,"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Message.DialogueOptionsCommand"}
Display Dialogue Options with a Cancel Handler¶
This displays a dialogue with a conditional option and a default cancel handler that runs when the player presses cancel.
{"Data":{"UserInterfaceID":"00000000-0000-0000-0000-000000000000","CanceledCommands":[],"IsTimeConstrained":1,"AudioMessage":{"Name":null,"Pan":0,"Pitch":0,"Volume":1,"IsPreventingMultiple":false},"IsCancelable":1,"IsMaintainingLastMessage":1,"Offset":"0,0","Options":[{"Commands":[],"Conditions":[],"IsCancelationSet":0,"Name":"Yes","Metadata":null},{"Commands":[],"Conditions":[],"IsCancelationSet":0,"Name":"No","Metadata":null}],"IsBlockingInput":1,"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Message.DialogueOptionsCommand"}