Yet another banal alias targetting system question. Sorry. ;)
Tried to make it as lucid as possible.
SCRIPT:
ALIASES:
I'd like to have my aliases work without an argument against my @target, but also work with an argument. Thus, I'd like both of the following to work using the 'ii' alias, for example.
ii
"o all bash @target"
ii human
"o all bash human"
I know this is pretty simple, but I've searched for a few hours in the forums and I haven't come across anything that explains it clearly. Not sure if it'd be easier to write out the extra code I need or just paste me a link to some information that I missed.
In any regard, thanks in advance. You guys do a great job of keeping up on this forum, and it's a credit to Mushclient all around. I've recommended the client to everyone I mud with.
Tried to make it as lucid as possible.
SCRIPT:
Quote:
sub SetTarget (sName, sLine, wildcards)
world.SetVariable "target", wildcards (1)
world.Note "Target: " & World.GetVariable("target")
end sub
ALIASES:
Quote:
<aliases>
<alias
script="SetTarget"
match="targ *"
enabled="y"
>
</alias>
<alias
match="ii"
enabled="y"
expand_variables="y"
sequence="100"
>
<send>o all bash @target</send>
</alias>
<alias
match="cs"
enabled="y"
expand_variables="y"
sequence="100"
>
<send>c 'color spray' @target</send>
</alias>
</aliases>
I'd like to have my aliases work without an argument against my @target, but also work with an argument. Thus, I'd like both of the following to work using the 'ii' alias, for example.
ii
"o all bash @target"
ii human
"o all bash human"
I know this is pretty simple, but I've searched for a few hours in the forums and I haven't come across anything that explains it clearly. Not sure if it'd be easier to write out the extra code I need or just paste me a link to some information that I missed.
In any regard, thanks in advance. You guys do a great job of keeping up on this forum, and it's a credit to Mushclient all around. I've recommended the client to everyone I mud with.