|
srl Newbie
Joined: 06 Jun 2005 Posts: 2
|
Posted: Mon Jun 06, 2005 12:30 am
Target alias help please |
Hi, i was just wondering how i could do a targetting alias for my mud
basically what it's suppose to do is this:
i type something like:
trg this monster
it should then set a variable called @trg to this monster
the problem right now is that my alias only takes a single word when passing it to the variable assigment
currently i have it as:
#ALIAS t {#variable trg %1}
so what ends up happening is instead of trg getting set to this monster, it gets set to this
how would i make it so that when i type trg this monster, @trg will be set to this monster, not just this
thanks for your time |
|
|
|
DeReP Adept
Joined: 14 Jun 2003 Posts: 222 Location: Chile
|
Posted: Mon Jun 06, 2005 12:36 am |
#ALLIAS t {#VARIABLE trg {%0}}
|
|
|
|
srl Newbie
Joined: 06 Jun 2005 Posts: 2
|
Posted: Mon Jun 06, 2005 12:42 am |
o.. thanks, never thought of that (doh! it was the same as it was on ytin)
|
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Mon Jun 06, 2005 10:00 am |
While %0 currently works. It is not documented and not actually supported. The correct syntax to use is %-1.
|
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
|
|