ALIASES

reference

Also known as: ALIAS · COMPLEX-ALIAS · COMPLEXALIAS

Player Utility - Command Customization Aliases let you replace long commands with short, fast, personalized shorthands. They are one of the strongest quality-of-life tools in the wastes. Usage: alias — list all aliases alias <name> <command> — create or update an alias alias <name> — delete an alias ------------------------------------------------------------------------------ WHAT IS AN ALIAS? An alias is a short command that expands into one or more other commands. Example: alias gbb get bread bag Now typing: gbb Expands to: get bread bag Aliases cannot call themselves and cannot form loops. ------------------------------------------------------------------------------ SIMPLE VS COMPLEX ALIASES Simple Alias: - Contains no variables ($1–$9, $*) - Contains no semicolons - Runs exactly one command Example: alias gac get all corpse → Typing gac runs: get all corpse Complex Alias: - Uses variables ($1, $2 … $9, $*) - OR contains semicolons to chain actions - Performs multiple actions or dynamic substitution Example: alias eat get bread bag; eat breadeat expands to two commands: 1) get bread bag 2) eat bread ------------------------------------------------------------------------------ VARIABLES Variables let your alias use whatever arguments you type after its name. $1 first argument $2 second argument … up to … $9 ninth argument $* everything after the alias name (full tail of the line) Examples: alias killem sling 'fireball' $1; sling 'harm' $2 killem fido mage → sling fireball fido → sling harm mage alias shoutall shout $* shoutall we move at dawn → shout we move at dawn ------------------------------------------------------------------------------ MULTIPLE COMMANDS (; SEPARATOR) Use semicolons to chain several commands: alias prep stand; cast 'armor' self; cast 'bless' self Typing prep runs all three in sequence. Note: Some players might encounter client-side parsing problems with the semicolon. You likely will need to use some kind of escape within the client if you want to use ; with you in-game alias. ------------------------------------------------------------------------------ DELETING AN ALIAS Just type the alias name alone: alias gbb → Removes the alias “gbb” ------------------------------------------------------------------------------ INSPECTING YOUR ALIASES Typing alias shows a sorted list with types: # Type Alias → Replacement 1 [S] gbb → get bread bag 2 [C] killem → sling 'fireball' $1; sling 'harm' $2 Legend: [S] — Simple alias [C] — Complex alias ------------------------------------------------------------------------------ Mastery Hint: Effective aliases dramatically speed up movement, combat chains, looting, scouting, and comms. Every veteran in Nukefire uses them.