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
andrul
Beginner


Joined: 09 May 2001
Posts: 25
Location: USA

PostPosted: Thu Mar 17, 2005 4:39 pm   

Removing format characters from player names
 
The following trigger autoheals other players on request.

#Trigger (&healreq tells you: heal please) {mheal %lower(@healreq)}

The problem is that this mud allows new characters to choose special display formatting for the names which I need to strip. Ex: shangchi has elected to have a space and capitals in his name so I receive "Shang Chi tells you: heal please". mheal Shang Chi will not work. I really need to use a list of characters to be removed because they can also use ',`,-, etc...
Unfortunately the mud does not allow players to remove formatting once chosen.
_________________
I'm not paranoid because they ARE out to get me.
Reply with quote
Dharkael
Enchanter


Joined: 05 Mar 2003
Posts: 593
Location: Canada

PostPosted: Thu Mar 17, 2005 5:17 pm   
 
Code:
#Trigger (&healreq tells you: heal please) {mheal %lower(%subregex(@healreq,"[- '`]"))}

_________________
-Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style."
Reply with quote
andrul
Beginner


Joined: 09 May 2001
Posts: 25
Location: USA

PostPosted: Thu Mar 17, 2005 11:15 pm   
 
Thanks, i'll be giving that a try tonight.

Edit: That worked great. Thanks!
_________________
I'm not paranoid because they ARE out to get me.
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