Skip to content

Dialog

Auto-generated from src/stdlib/dialog.mcrs — do not edit manually.

API


dialog_say v1.0.0

Sends a plain white chat message to a player or selector.

redscript
fn dialog_say(p: selector, msg: string)

Parameters

ParameterDescription
pRecipient selector
msgPlain text message content

Example

redscript
dialog_say(@p, "Quest updated")

dialog_broadcast v1.0.0

Broadcasts a plain white chat message to all players.

redscript
fn dialog_broadcast(msg: string)

Parameters

ParameterDescription
msgPlain text message content

Example

redscript
dialog_broadcast("Server restart in 60 seconds")

dialog_say_color v1.0.0

Sends a colored chat message to a player or selector.

Color mapping: 0=white, 1=red, 2=green, 3=gold, 4=aqua. Any other value falls back to white.

redscript
fn dialog_say_color(p: selector, msg: string, color: int)

Parameters

ParameterDescription
pRecipient selector
msgPlain text message content
colorColor selector integer (0=white, 1=red, 2=green, 3=gold, 4=aqua)

Example

redscript
dialog_say_color(@s, "You died!", 1)

dialog_title v1.0.0

Displays a title and subtitle on a player's screen.

redscript
fn dialog_title(p: selector, title: string, subtitle: string)

Parameters

ParameterDescription
pRecipient selector
titleLarge title text
subtitleSubtitle text shown below the title

Example

redscript
dialog_title(@s, "Stage 2", "Defeat the boss")

dialog_title_clear v1.0.0

Clears any currently displayed title for the target selector.

redscript
fn dialog_title_clear(p: selector)

Parameters

ParameterDescription
pRecipient selector

Example

redscript
dialog_title_clear(@s)

dialog_actionbar v1.0.0

Displays a short message in the player's actionbar.

redscript
fn dialog_actionbar(p: selector, msg: string)

Parameters

ParameterDescription
pRecipient selector
msgPlain text message content

Example

redscript
dialog_actionbar(@s, "Mana: 80/100")

Released under the MIT License.