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
PHLN
Adept


Joined: 30 Dec 2001
Posts: 220
Location: Canada

PostPosted: Tue Oct 15, 2002 2:46 am   

Name variable, NEW!
 
I know how to use (%W) to capure a person name as a variable, but how would I go about in tweaking it to allow dash character in the name? .. Like Al-Amaz .. or maybe A'Skkz
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Oct 15, 2002 4:01 am   
 
%x match any amount of non-white space

See the helpfile Pattern Matching for a complete list of wildcards.

LightBulb
Senior Member
Reply with quote
PHLN
Adept


Joined: 30 Dec 2001
Posts: 220
Location: Canada

PostPosted: Tue Oct 15, 2002 8:34 am   
 
I read the helpfile, but it still doesn't show me how to incorporate %x to %w, how do I do it so that it will have the regular one word and those space words?
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Tue Oct 15, 2002 12:51 pm   
 
Just use %x instead of %w.

Kjata
Reply with quote
PHLN
Adept


Joined: 30 Dec 2001
Posts: 220
Location: Canada

PostPosted: Wed Oct 16, 2002 4:52 pm   
 
but then do I still use %1 to call on the variable? I mean some people have pretitle like Sir Name, Duke Name, and you can't use the pretitle to call on them, that is why I use %w, umm, am I making sense? .. hehe
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Oct 16, 2002 5:11 pm   
 
Yes. Use %1 to call the variable.
No. It won't match the pretitle.
Yes. You are making sense. So are we. Believe it or not, we actually understand what you are trying to do and know the answer. Use %x.

LightBulb
Senior Member
Reply with quote
PHLN
Adept


Joined: 30 Dec 2001
Posts: 220
Location: Canada

PostPosted: Wed Oct 16, 2002 10:43 pm   
 
hehe, thanks
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