Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
srl
Newbie


Joined: 06 Jun 2005
Posts: 2

PostPosted: 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
Reply with quote
DeReP
Adept


Joined: 14 Jun 2003
Posts: 222
Location: Chile

PostPosted: Mon Jun 06, 2005 12:36 am   
 
#ALLIAS t {#VARIABLE trg {%0}}
Reply with quote
srl
Newbie


Joined: 06 Jun 2005
Posts: 2

PostPosted: Mon Jun 06, 2005 12:42 am   
 
o.. thanks, never thought of that (doh! it was the same as it was on ytin)
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net