Can someone please walk me through making a variable (i.e. kick @1) which I can use to be in battle and change when I need to in order to attack other creatures of a different name? Right now I am having to go up to aliases every time I need to change my target. *sigh* Thanks!
Help with variable
Posted by Jonnycuest on Sat 30 Sep 2006 01:09 AM — 7 posts, 26,233 views.
Make an alias that sets up the "target" variable like this:
Then in your other aliases, do things like: kick @target, with "expand variables" checked.
<aliases>
<alias
match="target *"
enabled="y"
variable="target"
send_to="9"
sequence="100"
>
<send>%1</send>
</alias>
</aliases>
Then in your other aliases, do things like: kick @target, with "expand variables" checked.
Thanks. I have two questions, what do put as the alias name? and also how do I change the target in the prompt? Thanks.
Alias name? You mean the "label" field when you edit it? It can stay blank if you like.
What do you mean by "target in the prompt"?
You can copy and paste that alias straight into MUSHclient, see:
http://www.gammon.com.au/forum/?id=4777
To use it, just type:
target Fred
... or whatever, and that updates the target variable.
What do you mean by "target in the prompt"?
You can copy and paste that alias straight into MUSHclient, see:
http://www.gammon.com.au/forum/?id=4777
To use it, just type:
target Fred
... or whatever, and that updates the target variable.
I'm having similar issues.. I have a alias called (tar *)that reports my chosen target to the prompt. I am currently trying to figure out how to get it to also get a mud level trigger to hunt but I need it to pull the target from my @traget variable the trigger setup for the mud is (trigger Testname todo do hunt testname)
This is the alias I have so far...
<aliases>
<alias
match="tar *"
enabled="y"
group="pk"
send_to="12"
sequence="100"
>
<send>world.SetVariable("target", "%1")
world.Note("Target set to: %1" )
</send>
</alias>
</aliases>
Thanks
This is the alias I have so far...
<aliases>
<alias
match="tar *"
enabled="y"
group="pk"
send_to="12"
sequence="100"
>
<send>world.SetVariable("target", "%1")
world.Note("Target set to: %1" )
</send>
</alias>
</aliases>
Thanks
It doesn't seem to work when I type in Target Fred. The world I am playing in reacts to that command and doesn't understand it?? Sorry, I don;t know anything about coding. I used to have ZMUD before they made you pay for it. Much easier for me. *Grin* Thanks.
Quote:
I am currently trying to figure out how to get it to also get a mud level trigger to hunt but I need it to pull the target from my @traget variable the trigger setup for the mud is (trigger Testname todo do hunt testname)
I am currently trying to figure out how to get it to also get a mud level trigger to hunt but I need it to pull the target from my @traget variable the trigger setup for the mud is (trigger Testname todo do hunt testname)
Your alias seems to work OK. Can you post the problem trigger?
If you need something like hunting the target, just put something like:
Match: @target leaves *
And check "expand variables".
Quote:
It doesn't seem to work when I type in Target Fred
It doesn't seem to work when I type in Target Fred
Aliases are case sensitive, unless you check "Ignore case". Try typing: target Fred