How to more efficiently manage your equipment
(and create aliases and variables)

If you have lots of different equipment sets, and are changing in and out of them all the time like Locane, then this guide is for you. With the help of variables and aliases, you can manage your entire equipment list with a change to 1 text file and a simple command in the mud. Below is an FAQ that you can skip if you already know the answers to the questions.

1. What is an alias?

An alias is a command that you can type into the mud that represents multiple commands. For example, if you have two commands like

get all corpse and
sacrifice corpse

you can create an alias for them to type them in one command! I personally use the name "sacc", short for sacrifice corpse, but you can use whatever you like. When you type your word into the mud (in my case, "sacc"), the mud will perform the commands you've listed for that alias.


2. How do I make an alias?

You can make an alias in the mud by using the "alias" command. To make an alias simply type

alias = (your alias word here)

Or, for example,
alias = sacc. Note that you do not include any kind of punctuation in or around your alias word.  This will bring you to enter mode. Enter mode is characterized by a right bracket character on the left side of your screen. Now you type the commands you want to fall under this alias. 

At this point, if we were making my "sacc" alias, we would type "get all corpse" and hit enter, followed by "sacrifice corpse" and hit enter. Your alias can be extremely long, so feel free to type in as many commands as you like. When you're finished typing the commands, or if you made a mistake, use the "@" symbol to get out of enter mode. (Some mud clients trap out characters like this one when you enter them, if you are entering "@" into the game and it's doing nothing, you might want to refer to the help section on your client.)

Now we should see the right bracket character turn into the word "edit>".
Now we are in edit mode, where we can manipulate the commands and text we have entered into the alias so far. The basic commands in this mode are:

To see what you have in the alias, type "
To change a line to something else, type "
change (line number you want to change) (the text you want it changed to)", or for example, "change 2 wield sword".
To insert text *before* a line in the alias, type "
insert (line number you want to insert before)". This will bring you back to enter mode, which is discussed above. Get back to edit mode with the @ symbol.
To put text *after* a line in the alias, type "
append (line number you want to add text after)". This will bring you back to enter mode, which is discussed above. Get back to edit mode with the @ symbol.
To delete a line, simply type "
delete (line number you want deleted)".
If you mess up and just want to stop making the alias altogether, get into edit mode and type "
abort", or "abandon".

When you are finished with edit mode, use the @ symbol again to leave and save your alias!

Remember that you can always use the help files in the mud as well - once you have your normal prompt back you can type "help 1.alias" or "help 2.alias" and read the help files available on the mud.


3. What is a variable?

A variable is similar to an alias in that you use a single word or phrase to mean something else.  We use the variable command like this:

variable (your variable name) (what you want in the variable)

For example, if I am wielding a sword, and I want a variable named "weapon" to be my sword, I would type "variable weapon sword".


3. Right, but so what?  What does that do for me?

A variable will allow you to reference one thing from multiple different aliases.  For example, if you have 3 different aliases that all have you wielding a specific weapon, you can have the alias wield the variable instead:

alias 1 happens to be:  get sword pocket; wield sword

alias 2 happens to be: get sword; wield sword

alias 3 happens to be: r sword; hold book; put sword pocket

Now, rather than having "sword" in all those instances, we can put the weapon variable in there instead.

alias 1 is now:  get $weapon pocket; wield $weapon

alias 2 is now: get $weapon; wield $weapon

alias 3 is now: r $weapon; hold book; put $weapon pocket

The $ is put in front of the variable to tell the mud, "Hey, this isn't a normal word, this is a variable.  Treat it like one."  Otherwise the mud doesn't know the difference between a variable you want and the actual word "weapon".

What this allows us to do is simply change the variable to work with all 3 aliases.  So, rather than going through each alias and changing them one by one when you decide to use a new weapon, you can simply change the weapon variable.  For example, you no longer want to use a sword.  Now you want to use a new axe you found.  You would simply set your "weapon" variable to "axe" instead of "sword" by typing "variable weapon axe", and you're golden!  No need to change all of those aliases, just the variable they reference.

It is important to remember that variables do not save when you log out of the game. Aliases do save however, so what we do is make an alias to set our variables for us.  For example:

alias = setvars

variable weapon axe

variable headgear helmet



Typing the above will make an alias called "setvars" which will set 2 variables for you, weapon, which we've set to "axe", and headgear, which we've set to "helmet".  Now, whenever you log in to the mud after a break, you can type "setvars" and your variables will be all set for you!

Always remember that you can type "help variables" and "help alias" in game to read the help file written by Dentin.



Once you've mastered the use of aliases and variables, it's time to move on to the meat of this web page, the equipment management.



Equipment management


Step 1:

Decide how many different sets of equipment you have.  Do you have just normal and regen gear? Do you have tanking, regen, normal, hit/dam, and spell casting gear?  However many sets you have, decide how many you would like aliases for.  For the purpose of example, I currently have 3 sets of equipment.


Step 2:

Open a text editor.  Any text editor will do, I personally use windows' Notepad because it's simple and streamlined.


Step 3:

Decide on a naming scheme for your variables - you'll need 1 variable for each wear location in each set.  For example, I used a naming scheme where I altered only the first character, so my text file looks something like:

variable d_head helmet 
variable d_neckfirst spiked
variable d_necksecond spiked
(list of all other wear locations for default gear)

variable t_head hanburi
variable t_neckfirst spiked
variable t_necksecond spiked
(list of all other wear locations for tanking gear)

variable r_head crown
variable r_neckfirst charm
variable r_necksecond charm
(list of all other wear locations for regen gear)

This is a truncated example of my text file.  It sets the variables for the various wear locations and different sets of equipment I have, all in one place.  The first is my default gear set, the second is my tanking set, the third is my regen set. Keep in mind that you can use whatever you want for a variable naming scheme - I've chosen this simply because it makes the most sense to me.  What I like may not be good for you, or you may wish to improve upon it.

Remember!  You will need to name separate variables for the wear locations that have 2 slots: neck and fingers.  I use "neckfirst" and "necksecond" and "rightring" and "leftring"


Step 4:

Once you have your naming scheme, build your equipment lists.  Put on all your regen gear, and go down the list with the names of your equipment.  Set each appropriate variable to the appropriate name for the equipment.  Remember that you can easily copy / paste.  Then move to your tank gear, default gear, etc.  Do all of them.  Make sure they are all in the same text file.

A feature of notepad I use quite a bit is "replace".  I take a section of text that I want to change slightly, put it into a NEW text document, and go to Edit -> Replace.  There, I can enter what I want the program to look for, and then what I want it to replace it with.  You can do the whole section you pasted into the new document all at once by hitting "replace all".  Then, you can put the changed text back into the original document and save it.  Voila.

Some names for equipment are common and tricky to use.  If you run into this, use the "sort" command on your container and then specify the piece of equipment you want with the (number). commands.  All of your changing aliases should have a "sort (container)" at the top of them before you go digging things out.


Step 5:

Make your variable setting alias.  Once you have all of your equipment sets fleshed out in the text file, you'll need to set an alias in the mud that will allow you to set all these variables.  I use the name "setvars", but you can use whatever you like.  Simply type "alias = (your set variable short name here)" and then paste in the text file you've created.  Hit the @ sign twice, and you're good to go!  Now, whenever you log in or tweak your equipment sets, you can simply type (in my case) "setvars" and it will set all of your variables for you!


Step 6:

Set up your changing aliases for your equipment.  I use a text file for these as well simply because I'm lazy and it's much easier to manipulate.  My particular regen alias looks like this:

remove all
put all pocket
sort pocket
get $r_head pocket
wear $r_head

get $r_neckfirst pocket
wear $r_neckfirst
Etc.  The alias continues like this all the way to the end.  Essentially, you're piecing together your regen set by taking the variable out of the pocket and wearing it. 

Do this with each set of equipment you have, and in the mud set an alias for it.  Simply paste the text file into your mud client.  Voila! You're done!

Remember!  If you rely on a candle in your inventory to provide light, you'll need to drop it into the room first if you're in the dark.  If you're getting errors of  "you do not see that here" then you are in a dark room.


Now, when you need to tweak a specific set or change something out, you can open your variable setting text file, change it, and reset your variable setting alias.  Again, I use "setvars", so I tweak my text file, and then go to the mud and type "alias = setvars" and paste in the text.  Don't forget that you'll need to actually invoke the alias once you have the new information in it.


Overall, this will let you manage your equipment more easily and efficiently, and also allow you to produce mixed sets - if you want to tank but want cast gear as well, you can set an alias to use whatever different equipment pieces you need for both.  For example, an alias that uses d_head but might use r_neckfirst, or the other way around, maybe it will use my default neck gear but my regen headgear for r_head and d_neckfirst.  You have complete control over your equipment now.  Enjoy!






This guide written by Locane.  For questions and comments, email