Skip to content

Dismiss Message

Dismiss Message

Dismisses one or all active dynamic message boxes currently displayed on screen.

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
Dismiss All Dynamic Messages When enabled, all active dynamic messages are dismissed. When disabled, only the message matching the specified unique ID is dismissed. Toggle
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
Message Unique ID The unique ID of the specific message to dismiss. Ignored when dismissing all messages. Variable or Value
Offset The pixel offset applied to the message box position. Point
Options The list of dialogue options the player can choose from. Array

Examples

Dismiss All Active Dynamic Messages

This dismisses all currently active dynamic message boxes on screen.

dismiss_message();
{"Data":{"Identifier":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":0,"Metadata":null},"IsDismissingAll":true,"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Message.DismissMessageCommand"}

Dismiss a Specific Message by Unique Identifier

This dismisses only the message whose unique ID was previously stored in global variable 0.

dismiss_message($gv[0]);
{"Data":{"Identifier":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":0,"Metadata":null},"IsDismissingAll":false,"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Message.DismissMessageCommand"}