Audience: New scripting users
What This Guide Covers
This is the reference guide to read before the other guides.
It explains:
- Command format (
/command {arguments}) - Braces, chaining, and argument parsing
- Wildcards and variables
@Procedures()- Local vs remote evaluation rules for poll procedures
- The main scripting wizards and where to open them
- Script sharing, export, and import workflow
1) Command Format
Most scripting commands use this shape:
/command {name} {arg1} {arg2...} {Group}
Examples:
/alias {loot} {get all from corpse} {combat}
/action {You are hungry.} {eat bread} {survival}
/substitute {You are thirsty.} {Drink soon.} {survival}
Use braces when arguments contain spaces. This keeps each argument together as one token.
2) Braces, Semicolons, and Nesting
MudBringer splits command lines on ; and newlines, but only when not inside braces or parentheses.
That means this stays intact as one command body:
/alias {buffs} {cast armor;cast bless;cast shield} {prep}
Because the semicolons are inside {...}, they are not treated as top-level command separators.
3) Wildcards and Variables
Wildcards and variables are related, but different:
%0through%9are wildcard capture slots in patterns.$0through$9read captured wildcard values in commands.$namereads a normal variable.$shared.namereads a shared(global) variable.$SessionName.namereads another session’s variable.
Example:
/action {%0 attacks you!} {say $0 just attacked me} {combat}
In editor terms:
- Trigger/pattern side uses
%0-%9wildcard positions. - Command side uses
$0-$9to reference the captured values.
4) Procedures: @Procedure(…)
Procedures are inline functions evaluated during command processing.
Examples:
/showme {@len($target)}
/showme {@upper($target)}
/showme {@math(5+3*2)}
Nested procedures are evaluated from the inside out:
/showme {@math(@len($target) * 2)}
Resolution Order: 1: $target is resolved inside @len(), 2: @len() is resolved inside @math() 3: @math() is resolved inside /showme{}.
5) The 6 Main Scripting Wizards
The primary day-to-day scripting wizards are:
- Automation (Actions, Aliases, and Threshholds)
- Timing (Events and Trains)
- Interactibles (Buttons and Macros)
- Filters (Gags, Subs, Highlights)
- Data (Variables, Lists, Arrays)
- Dashboards
Open them from:
- Top menu:
Scripts - Top menu:
Windowwith shortcuts (A,T,B,F,V,D) - Toolbar buttons:
[A] [T] [B] [F] [V] [D] - Tablet panel quick access (when visible)
Note: Status Bar wizard exists as a legacy MudMaster/deprecated path in some builds. Found on the Window> menu.
7) Share, Export, Import Script Workflow
In scripting wizards and script-management views, use group-level actions:
Share Group: copy a script group to other character script folders.Export Group: save group commands to a.mbsfile.Import: load a script file into your current setup (when available in your UI path).
Common entry points:
- Tools/buttons.
- Top menu
Scriptspaths.
Universal import fallback is always:
/read {path-to-file.mbs}
That reads and executes script lines from a file.
8) Quick Reference
Core syntax:
/command {arg}command style%0-%9wildcard captures in patterns$0-$9wildcard values in commands$name,$shared.name,$Session.namevariable reads@proc(args)procedure calls@poll(GROUP, value)local value mode@poll(GROUP, {expr})remote deferred mode
Version Notes
- New Scripting Basics baseline reference.
- Intended as pre-read for subsequent guides.