MUDBRINGER
Menu

Script Entities

action

Web Client Note: You can also manage actions visually by clicking the Triggers tab in the main sidebar.

Syntax

/action {pattern} {command} {group}

Use Case:

Creates a trigger that executes a command when specific text arrives from the server.

Arguments:

  • {pattern}: The text to look for.
  • {command}: The command to run.
  • {group} : (Optional) The group name.

Examples:

  1. /action {You are hungry.} {eat bread}
  2. /action {^$target is dead!} {get all from corpse} {combat}

See Also:

actions, unaction, group, variable

alias

Pro Tip: Aliases are great for creating short nicknames for long, repetitive commands.

Syntax

/alias {pattern} {command} {group}

Use Case:

Use /alias to create custom shortcuts for long or frequently used commands.

Arguments:

  • {pattern}: The keyword or trigger that you type.
  • {command}: The full command to execute.
  • {group} : (Optional) The name of the group this alias belongs to.

Examples:

  1. /alias {gs} {get all from corpse} {combat}
  2. /alias {buffs} {cast ‘armor’;cast ‘bless’;cast ‘shield’}

See Also:

aliases, unalias, group

array

Syntax

/array {name} {rows} {cols}

Use Case:

Defines a two-dimensional array for storing data in a grid format.

Arguments:

  • {name}: The array identifier.
  • {rows}: Number of rows.
  • {cols}: Number of columns.

Examples:

  1. /array {myMap} {10} {10}

See Also:

unarray, @getarray

event

Syntax

/event {type} {command}

Use Case:

Defines a script to run when a specific system event occurs (e.g. onConnect, onDisconnect).

Arguments:

  • {type} : The event type.
  • {command}: The command to execute.

Examples:

  1. /event {onConnect} {look}

See Also:

unevent

listadd

Syntax

/listadd {listName} {item}

Use Case:

Adds a new string item to a named list.

Arguments:

  • {listName}: The list identifier.
  • {item} : The text to add.

Examples:

  1. /listadd {enemies} {orc}

See Also:

listdelete, listitems, lists

listdelete

Syntax

/listdelete {listName} {item|index}

Use Case:

Removes an item from a list by its value or numeric position.

Arguments:

  • {listName}: The list identifier.
  • {item} : The text or index to remove.

Examples:

  1. /listdelete {enemies} {orc}
  2. /listdelete {enemies} {1}

See Also:

listadd, lists

listitems

Syntax

/listitems {listName}

Use Case:

Displays all items currently stored in a specific list.

Arguments:

  • {listName}: The list identifier.

Examples:

  1. /listitems {enemies}

See Also:

lists, listadd

lists

Syntax

/lists

Use Case:

Lists all currently defined lists in the session.

Arguments:

  • (None)

Examples:

  1. /lists

See Also:

listadd, listitems

macro

Syntax

/macro {key} {command}

Use Case:

Binds a command to a specific keyboard key.

Arguments:

  • {key} : The key name (e.g. F1, CTRL+A).
  • {command}: The command to execute.

Examples:

  1. /macro {F1} {get all from corpse}

See Also:

unmacro

variable

Syntax

/variable {name} {value}

Use Case:

Stores information in a named variable.

Arguments:

  • {name} : The name of the variable.
  • {value}: The text or number to store.

Examples:

  1. /var {target} {orc}
  2. /var {gold} {@Math($gold + 500)}

See Also:

variables, unvar, @Math