Cleaner's RotJ Page

Help! I'm new! Zmud help RotJ Tables About the author Quick Navigate Disclaimer Links

Home > Zmud help > Aliases

Also in this section: Variables | Triggers | Examples and importable scripts

Aliases

An alias is a pre-programmed set of commands that can be called simply by typing the alias name. An example would be making an alias named "ali" to send "conc 'detect alignment' " to the mud. So when you type "ali" in the command line, "conc 'detect alignment'" is actually sent to the mud.
Aliases can only be called at the start of a new line of commands, or immediately after a ;    Thus, "say hello ali" will send that exact line to the mud, while "say hello ; ali" will send "say hello" and on the next line "conc 'detect alignment' " to the mud. Aliases can be simple like 'ali' to cast detect alignment, or much more complex, like my space walk alias.

There are again two ways to create an alias.
You can click alias, click new, and enter the command(s).

Or, if it is a new alias, you can type all the commands in the command line, and press CTRL-A, and then type the alias name.

You edit aliases by clicking on "alias", selecting the alias, and then you can change what you like.

Aliases become really useful when combining them with variables. An example would be making a variable named "buddy1" and having an alias called "h1" that sends "c 'cure critic' @buddy1" to the mud. So you just have to change the value of "buddy1" and you'll be quick on the draw to send that person a cure crit, because you'll only have to type "h1" and press enter. So if you make three aliases and three variables h1, h2, h3, buddy1, buddy2 and buddy3, you can send cure crits around with way less typing than most other people.

 

You can use an alias with multiple parameters, like my unlock alias, where what you type after typing the alias name is used in the alias to perform a specific function. In my unlock alias, it selects the two words you typed right after typing "unl" and uses them. I made the alias so that the first word is used for the door name, and the second word is used for the direction. So by typing "unl door w" I will send to the mud: "unlock door w" and on the next line "open door w"

 

 

Help! I'm new! Zmud help RotJ Tables About the author Quick Navigate Disclaimer Links

Home > Zmud help > Aliases

Also in this section: Variables | Triggers | Examples and importable scripts

1