Unknown2010-10-20 12:03:39
Okay, so I'm not sure if anyone's going to understand what I mean by this but I'll try anyway.
I'd like to set up aliases that would call up other aliases, but more than one. Okay, this is just bad.
Example time:
ki
where k would initialize:
send("outr kafe")
send("eat kafe")
and i would initialize:
send("insomnia")
OR
ap
where a would initialize:
send("psi id amnesia "..matches)
and p:
send("psi superstratus psiblade "..matches)
These aliases being sent would function separately, but I could use any combination of them (so, pa or ik would also work)
Does this make sense, and is it possible?
I'd like to set up aliases that would call up other aliases, but more than one. Okay, this is just bad.
Example time:
ki
where k would initialize:
send("outr kafe")
send("eat kafe")
and i would initialize:
send("insomnia")
OR
ap
where a would initialize:
send("psi id amnesia "..matches)
and p:
send("psi superstratus psiblade "..matches)
These aliases being sent would function separately, but I could use any combination of them (so, pa or ik would also work)
Does this make sense, and is it possible?
Vadi2010-10-20 13:12:49
Not really. Are your aliases actually calling other aliases, or do you just want multiple aliases to match in the same command?
Unknown2010-10-20 19:10:33
QUOTE (Vadi @ Oct 20 2010, 10:12 AM) <{POST_SNAPBACK}>
Not really. Are your aliases actually calling other aliases, or do you just want multiple aliases to match in the same command?
I'd like my aliases to actually call other aliases.
Unknown2010-10-20 19:39:10
QUOTE (Kayte @ Oct 20 2010, 08:10 PM) <{POST_SNAPBACK}>
I'd like my aliases to actually call other aliases.
First of all,
CODE
send("outr kafe")
send("eat kafe")
send("eat kafe")
is redundant. Instead, use:
CODE
sendAll("outr kafe", "eat kafe")
Secondly, if I am understanding correctly, what you need is expandAlias()
Unknown2010-10-20 19:48:56
QUOTE (Rampart @ Oct 20 2010, 04:39 PM) <{POST_SNAPBACK}>
CODE
send("outr kafe")
send("eat kafe")
send("eat kafe")
is redundant. Instead, use:
CODE
sendAll("outr kafe", "eat kafe")
-nodnod- I know you can write it that way. I was just quickly scripting the example this morning.
And thank you so much.
Vadi2010-10-23 17:57:49
QUOTE (Kayte @ Oct 20 2010, 03:10 PM) <{POST_SNAPBACK}>
I'd like my aliases to actually call other aliases.
Functions. Learn them.
(or you could go along your way, make a little monster, then learn about functions, convert to them, and be amazed at the speed improvement like somehow I know did!)