Ok, in the mud I play I am currently playing 2 different attack setups that require the same aliases to pull of successfully. So I need a way to switch what my aliases do really quickly. It would be like this:
"b" would go from bash to backstab
"h" would go from rescue to hide
and visa versa. Thanks in advance!
more alias help
-
- Posts: 186
- Joined: Sun Nov 14, 2010 5:57 am
Re: more alias help
I'm baffled why you can't use multiple alias'...doesn't make sense to me.
alias b:
alias b:
Re: more alias help
Ok, so I tried this and just kinda alternated between bash/backstab. Sorry if I am being dense.
The reason I don't use multiple aliases, btw, is that most of the rest of the easy to reach keys on my keyboard are actually used up atm .
Edited to make more sense.
The reason I don't use multiple aliases, btw, is that most of the rest of the easy to reach keys on my keyboard are actually used up atm .
Edited to make more sense.
Last edited by syrik on Mon Nov 29, 2010 7:00 am, edited 1 time in total.
-
- Posts: 186
- Joined: Sun Nov 14, 2010 5:57 am
Re: more alias help
the first time you typed b (since this is the alias) it will send bash to the mud, then backstab, so on and so forth.
Re: more alias help
Oh, maybe I didn't make this clear at the beginning, sorry! I would like to be able to switch in between them when I want to. So if I am in my bash setup, but want to switch to stab, I can just type like "change" or something and it will switch my aliases.
-
- Posts: 186
- Joined: Sun Nov 14, 2010 5:57 am
Re: more alias help
Are you doing this for two different characters? If you are there's an easier approach.
Re: more alias help
Check the API reference in the manual for enableAlias(name) and disableAlias(name). You can define as many input trigger patterns (=alias) as you like and enable or disable them when necessary.
Re: more alias help
here's what I'd do:
create my alias "change" =
create my alias "change" =
then the "b" would have:
and the "h"
now with those set up you don't have to create a variable as it will create it by default the first time you hit any of those aliases.
Re: more alias help
That looks pretty sweet, thanks.
-
- Posts: 186
- Joined: Sun Nov 14, 2010 5:57 am
Re: more alias help
I use the same alias', and some triggers, for multiple characters many with different commands.
I log my characters with buttons that when pressed set various values that those alias' work from. So if you want to bash on a warrior and backstab on your thief you can press the same button, you just make a group with your characters name, put the alias b with the command send("bash") in the warrior's folder, and send("backstab") in the thieves. Now with your login button you disableAlias("OTHERCHARS") so you don't get double fires.
I log my characters with buttons that when pressed set various values that those alias' work from. So if you want to bash on a warrior and backstab on your thief you can press the same button, you just make a group with your characters name, put the alias b with the command send("bash") in the warrior's folder, and send("backstab") in the thieves. Now with your login button you disableAlias("OTHERCHARS") so you don't get double fires.