ALIAS

From CoffeeMud Wiki
Revision as of 14:20, 5 August 2022 by Loki (talk | contribs)
Jump to navigation Jump to search
CoffeeMUD
Administrator                                                  Builder                                                              Player
=CoffeeMUD Player Information=
Basics Info     Commands     Socials     Combat     Groups Character Stats     Races     Classes     Abilities     Expertises     Achievements
World Deities     Areas     Property     Quests     Clans     Triumphs Items Items     Crafting     Ships
=CoffeeMUD Commands=
Account        Character        Combat        Commerce        Communication        Configuration        Items        Movement        Role Play        Sailing Ships       
Special    A       B       C       D       E       F       G       H       I       J       K       L       M        N       O       P       Q       R        S       T        U       V       W       Y
===ALIAS===
Usage: ALIAS (DEFINE/TEST "KEY" ("COMMANDS"))
Examples: alias

alias define fk flykick alias define fk alias test fk args

Shorts:
Description: This command will allow a player to manage a list of alias command strings. Any command string a player enters which begins with one of the listed alias names will be replaced with the given alias value. This allows players to create shorter keywords for activating commands which might normally require longer strings. Multiple commands may be combined by putting a tilde ~ character between them. You may also prefix an entire alias command string with the word NOECHO to prevent the commands from being echoed. When playing, any arguments given after the alias are also appended to each command in the alias definition, unless variable(s) such as @x1, @x2, etc.. are found in the definition.


New aliases can also be added or removed on the command line using the define argument. The alias key is always required for a define, but you can also give the aliased commands to add, or leave them out to remove the key. They can then be tested by using the TEST argument.

Notes

.