Previous Article | Back to News Summary | Next Article
Announce News Post #2384

Alias Updates

Written by: Ieptix the Anomaly
Date: Saturday, October 25th, 2014
Addressed to: Everyone


I've just added a new option for use with in-game aliases which allows
chaining multiple commands together under one alias.

Specifically, when using SETALIAS to define an alias, you may now
separate commands with the string || (a pair of pipe characters), and
when the alias is later used, each command present in the list will be
executed in order, with target variables expanded in each command.

Each command of a multi-command alias is evaluated separately, which
means that e.g. stupidity has a chance to fire on each of the commands
independently, earlier commands will be interrupted by later commands
when afflicted with aeon, etc.

Note that unlike with single-command aliases, multi-command aliases will
not automatically append the rest of your command line to any of the
commands. As an example, if I do the following:

SETALIAS blast CAST BLAST

I can then type BLAST XENTHOS to issue the full command CAST BLAST
XENTHOS. However, if I do this:

SETALIAS ruby OGR RUBY || CRYSTALSPIN RUBY

If I now type RUBY XENTHOS, I will execute exactly the commands OGR RUBY
and CRYSTALSPIN RUBY. If I want to be able to modify the commands when I
use them, I have to use and set target variables instead.

Penned by My hand on the 21st of Avechary, in the year 396 CE.


Previous Article | Back to News Summary | Next Article