IMPERIAN'S INTERNAL ALIAS SYSTEM - Imperian Online Help

2.7 IMPERIAN'S INTERNAL ALIAS SYSTEM

An alias in Imperian is a combination of letters and/or numbers, with no
spaces.  Linked with this 'word' is a command. When you type the alias, the
command will be executed instead.

For example, if your alias was, 'sayhi' and the command associated with it
was 'say Hi everyone!' then every time you entered 'sayhi', then Imperian
would turn it into 'say Hi everyone!'.

Within aliases, you may embed what are called targets. Think of targets as
an alias within an alias. All targets in an alias must be preceded with a
& character.

So, for example, let's make the 'sayhi' alias from above a bit more
functional, so that it may be targeted to your guildmaster, whoever that
happened to be at the time.

You would first set your 'sayhi' alias to equal 'hi &gm', where 'gm' is the
target. You would then set that target to be the name of whoever your
guildmaster is. If you set the 'gm' target to be 'Gawain' then 'sayhi &gm'
would execute 'hi Gawain'.

It should be pointed out that generally you do NOT need 10 maul (for
instance) aliases. Instead of different aliases for 'maul hyena', 'maul
rat', etc, all you need to do is use a target. For example:

setalias ml maul &tar
settarget tar <whatever>

Set up all your attacking aliases to use target, and then when you want to
attack a new opponent, simply change the target, and all your attacking
aliases will now work on the new target.

You may name your aliases and your targets whatever you want, provided they
are 12 or fewer characters long. It is important that you do _not_ name
your aliases the same as any commands that you want to use, else the
commands will not work for you. When you type in EAT ASH, for instance,
Imperian will first search to see if you have an alias called "eat". If you
do, then it will try to execute that.

Command list:

SETALIAS <alias name> <substituted text> : Makes a new alias.
ALIASLIST/AL                             : Lists your aliases.
CLEARALIAS <alias name>                  : Clears an alias.

SETTARGET/ST <target name> <text>        : Makes a new target.
TARGETLIST/TARLIST                       : Lists your targets.
CLEARTARGET <target>                     : Clears a target.