ArchaicQuest / ArchaicQuest-II

ArchaicQuest II :dragon: is a multiplayer text based RPG known as a Multi User Dungeon (MUD) that is playable from your browser.
https://www.archaicquest.com
MIT License
132 stars 22 forks source link

ALIAS Command #46

Open LiamKenneth opened 2 years ago

LiamKenneth commented 2 years ago

$9 may be used to represent arguments given with an alias.

Examples:

alias killem cast 'fireball' $1; cast 'harm' $2 killem fido mage

Would cast fireball on fido, followed by casting harm on mage. Variables may be used repeatedly and in any order:

alias helpem cast 'heal' $1; cast 'bless' $1; cast 'armor' $1

The special variable $* represents the entire input line after an alias:

alias tr tell rasmussen $* tr hi there, how are you today? You tell Rasmussen, 'hi there, how are you today?'