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
i8890321
Newbie


Joined: 28 Aug 2008
Posts: 3

PostPosted: Sat Sep 06, 2008 8:24 pm   

questions about alias
 
here's the situation:
my input on command line "ph man",the alias send "punch man" to mud and turn off a trigger named "test" (that is #T- test)
when i input command line "ph woman",the alias send "punch woman" to mud and turn off a trigger named "test" (that is #T- test)

notice that the target is not fixed , can be any name the above cases are man and woman

sorry, i am not familiar to the alias on zmud, can anyone do that for me?
Reply with quote
Progonoi
Magician


Joined: 28 Jan 2007
Posts: 430

PostPosted: Sat Sep 06, 2008 8:52 pm   
 
Code:

#alias ph {punch %1}


Where %1 corresponds to what you type after "ph".

Such like your examples.

Hopefully thats what you're after.
_________________
The Proud new owner of CMud.

--------------------------------
Intel Core i5-650 3,2GHz
4 DD3 RAM
GTX 460 768MB
Win 7 Home Premium 64x
--------------------------------
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat Sep 06, 2008 11:37 pm   
 
%1 is sufficient if all targets will only have one word. If there's more than one word, %1 will only send the first one and the result will probably be an error from the game. Use %-1 to fix, as %-1 holds everything from the first word all the way to the last word sent to the alias.
_________________
EDIT: I didn't like my old signature
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