|
andrul Beginner
Joined: 09 May 2001 Posts: 25 Location: USA
|
Posted: 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. |
|
|
|
Dharkael Enchanter
Joined: 05 Mar 2003 Posts: 593 Location: Canada
|
Posted: 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." |
|
|
|
andrul Beginner
Joined: 09 May 2001 Posts: 25 Location: USA
|
Posted: 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. |
|
|
|
|
|