|
snoop_bob Newbie
Joined: 28 Dec 2004 Posts: 5 Location: Putz
|
Posted: Tue Dec 28, 2004 9:47 pm
cap sensitive... |
okay,.. I got this problem in my mud, that if i track a person with a title, using a track that tracks the WHOLE wholist... it doesn't work because of their title...
Now, this mud also has the short description and you have to introduce to know others names and see their names (not just short desc's) on the wholist.
what I want to happen is:
the wholist has a BIG gap, about 15 spaces, then the name or short desc.
i have things set to track everything... but I want it to do this=
if it see's a CAPITAL letter at the start of the name/short desc, then I want it to track just the first word instead of the whole name and title. |
|
_________________ WASSSSSSSUUUUP |
|
|
|
Hibio Beginner
Joined: 19 Mar 2004 Posts: 22
|
Posted: Tue Dec 28, 2004 10:32 pm |
The %ascii() might be of help, I believe ASCII for cap characters are from 65 for A to 90 for Z and for lower case 97 for a to 122 for z.
There are also the %proper() and %upper() functions which allow you to manipulate casing of the char/word.
pattern matchings that might help
? = matching a single char
%w = matching for a-z
I hope the hints help |
|
|
|
|
|
|
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
|
|