Difference between revisions of "Aliases"

From Wyvern Source
Jump to: navigation, search
Line 1: Line 1:
Aliases are essentially shortcuts that you can type into the command This is different from the button-bar. The button bar is visual (buttons), and aliases are text-binding. Each alias can have up to 4 commands (3 semicolons)
+
== Overview ==
 +
'''Aliases''' are essentially shortcuts that you can type into the command. Each alias can have up to 4 commands (3 semicolons). When the alias shortcut is a single key, simply pressing that key will invoke the command.
  
some helpful commands:
+
Note that aliases are different from the button-bar in that the button bar has visual shortcuts (buttons), whereas aliases are text-bindings.
  
1. alias
+
== Associated Commands ==
  
2. alias <shortcut> <command>
+
; alias : Lists your current aliases
 +
; alias <shortcut> <command> : Creates a new alias
 +
; unalias <shortcut> : Removes the indicated alias
  
3. unalias <shortcut>  
+
For example, typing in <code>alias fs cast firespray</code> will cast firespray whenever you type in <code>fs</code>.
  
For example, typing in (alias fs cast firespray) will cast firespray whenever you type in fs.
+
Other examples:
 +
* <code>alias fs cast fireball; cast fireball; cast blizzard; cast blizzard</code> will cast all 4 spells successfully (almost at same time, no lag).
 +
* <code>alias #atmospheres cast bravery; cast resist fire; cast resist petri; cast resist cold</code> will cast all 4 spells when the atmosphere's button is tapped. Note that you don't need to type in full spell names (same with items, etc).
  
example 1: (alias fs cast fireball; cast fireball; cast blizzard; cast blizzard) will cast all 4 spells successfully (almost at same time, no lag).
+
== Useful Aliases ==
  
example 2: (alias #atmospheres cast bravery; cast resist fire; cast resist petri; cast resist cold) <- you don't need to type in full names.
+
There are 3-4 side buttons you can alias: #social (2nd from top left button), #atmospheres (3rd from top left button), #spells (2nd from bottom right button), and #race (hand button) (it's only possible to alias #race if the character's race doesn't have racial abilities, such as Humans and Dwarves. Haflings, Giants, Pixies, Nagas, etc can't alias #race)
  
Useful aliases:
+
Examples:
 +
* <code>alias #social shrink; cast minor healing; cast minor healing; grow</code> is very useful for giants to heal efficiently
 +
* <code>alias #atmospheres autocast speed; autocast resist fire; autocast see invisible; autocast glimpse</code> would be a useful alias to cast all your helpful "atmospheric" spells
  
There are 3-4 side buttons you can alias: #social (2nd from top left button), #atmospheres (3rd from top left button), #spells (2nd from bottom right button), and race (hand button) (race is only for races like humans and dwarves that don't have racial abilities. Haflings, giants, pixies, nagas, can't alias race)
+
You can also alias shortcuts for speaking:
 +
* <code>alias au auction</code> allows you to much more simply type in the auction [[channel]]; by simply typing <code>au wtb xyz</code>, you will shout "[auction] wtb xyz"
 +
* <code>alias rp reply</code> allows for a shorter <code>reply</code> command
 +
* <code>alias wtb auction want to buy<code> for a quick solicitation on the auction channel, eg: <code>wtb dsm</code>
  
example 1: alias #social shrink; cast minor healing; cast minor healing; grow (this is useful for giants to heal efficiently
+
Invoking taps with aliases is also possible: <code>alias 5 mouse 6 6</code> will alias 5 to tap on the character's tile if the viewport is set to 13x13 tiles (an intuitive alias for numberpad users)
  
example 2: alias #atmospheres autocast speed; autocast resist fire; autocast see invisible; autocast glimpse
+
== More Details ==
  
You can also alias shortcuts for speaking.
+
You cannot call aliases from within an alias. For example, if you have:
  
example 1: alias au auction (if you type in au wtb xyz, you will have shouted [auction] wtb xyz
+
# alias x action 1; action 2
 +
# alias y action 3;
 +
# alias a x y
  
example 2: alias rp reply (instead of typing reply (message) you can just type in rp (message).
+
Then typing "a" will not run the x nor the y aliases.
 
+
example 3: alias wtb auction want to buy (when you type in wtb spell, you will have shouted [auction] want to buy spell)
+
 
+
 
+
You cannot chain aliases.
+
 
+
If you have
+
 
+
1. alias x action 1; action 2; action 3; action 4
+
 
+
2. alias y action 5; action 6; action 7
+
 
+
3. alias z x y : z won't run x and y.
+
  
 +
You can, however, invoke button bar commands: <code>alias ! button-bar-1</code> will make <code>shift + 1</code> use button-bar 1.
  
 
[[Category:Guides]]
 
[[Category:Guides]]

Revision as of 02:59, 14 July 2017

Overview

Aliases are essentially shortcuts that you can type into the command. Each alias can have up to 4 commands (3 semicolons). When the alias shortcut is a single key, simply pressing that key will invoke the command.

Note that aliases are different from the button-bar in that the button bar has visual shortcuts (buttons), whereas aliases are text-bindings.

Associated Commands

alias 
Lists your current aliases
alias <shortcut> <command> 
Creates a new alias
unalias <shortcut> 
Removes the indicated alias

For example, typing in alias fs cast firespray will cast firespray whenever you type in fs.

Other examples:

  • alias fs cast fireball; cast fireball; cast blizzard; cast blizzard will cast all 4 spells successfully (almost at same time, no lag).
  • alias #atmospheres cast bravery; cast resist fire; cast resist petri; cast resist cold will cast all 4 spells when the atmosphere's button is tapped. Note that you don't need to type in full spell names (same with items, etc).

Useful Aliases

There are 3-4 side buttons you can alias: #social (2nd from top left button), #atmospheres (3rd from top left button), #spells (2nd from bottom right button), and #race (hand button) (it's only possible to alias #race if the character's race doesn't have racial abilities, such as Humans and Dwarves. Haflings, Giants, Pixies, Nagas, etc can't alias #race)

Examples:

  • alias #social shrink; cast minor healing; cast minor healing; grow is very useful for giants to heal efficiently
  • alias #atmospheres autocast speed; autocast resist fire; autocast see invisible; autocast glimpse would be a useful alias to cast all your helpful "atmospheric" spells

You can also alias shortcuts for speaking:

  • alias au auction allows you to much more simply type in the auction channel; by simply typing au wtb xyz, you will shout "[auction] wtb xyz"
  • alias rp reply allows for a shorter reply command
  • alias wtb auction want to buy<code> for a quick solicitation on the auction channel, eg: <code>wtb dsm

Invoking taps with aliases is also possible: alias 5 mouse 6 6 will alias 5 to tap on the character's tile if the viewport is set to 13x13 tiles (an intuitive alias for numberpad users)

More Details

You cannot call aliases from within an alias. For example, if you have:

  1. alias x action 1; action 2
  2. alias y action 3;
  3. alias a x y

Then typing "a" will not run the x nor the y aliases.

You can, however, invoke button bar commands: alias ! button-bar-1 will make shift + 1 use button-bar 1.