P

PlayMUD.online

Aliases

Aliases

Write shorter commands without losing flexibility.

Aliases expand before variables. This lets aliases output commands that still contain placeholders like {target}.

Simple Alias

Alias: l
Command: look
Input: l
Sent: look

Positional Arguments

If an alias command uses $1, $2, or another positional token, text after the alias becomes arguments.

Alias: k
Command: kill $1
Input: k troll
Sent: kill troll

$* inserts all arguments exactly as one string.

Alias: party
Command: party report $*
Input: party low on spr
Sent: party report low on spr

$$ inserts a literal dollar sign.

Wildcard Pattern

An alias pattern ending in * explicitly accepts the rest of the command.

Alias: say *
Command: say $*
Input: say hello there
Sent: say hello there

Using Variables

Alias: kt
Command: kill {target}
Input: kt
Sent: kill orc

See Variables for the {target} syntax.

When You Need Logic

Use Lua Aliases when an alias should set variables, send multiple commands, use regex captures, or echo colored feedback.