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


Joined: 28 Aug 2003
Posts: 8
Location: USA

PostPosted: Thu Aug 28, 2003 10:00 am   

Does zMud have a lowercase function?
 
Hello,

I'm trying to setup a trigger in zMud using the zMud script, and in doing so I need to make the player name, which is echoed with the first letter capitalized, into a lowercase name.

This is the trigger in the help file:

#TRIGGER {(%w) tells you} {tell %1 I am busy}

It works fine, but the the command I want to execute will not accept any uppercase in the name.

#TRIGGER {(%w) says, 'acu'} {acupuncture %1}

Is there a lowercase function in zMud? If not is there an easy way to do this in VBscript or Jscript?

Thanks,

Harley
Reply with quote
moksha
Novice


Joined: 13 Oct 2002
Posts: 37
Location: United Kingdom

PostPosted: Thu Aug 28, 2003 10:41 am   
 
Hi

Check out the %lower function in the help file.

#TRIGGER {(%w) says, 'acu'} {acupuncture %lower(%1)}

Moksha
Reply with quote
harleyx
Newbie


Joined: 28 Aug 2003
Posts: 8
Location: USA

PostPosted: Thu Aug 28, 2003 11:08 am   
 
works like a charm. 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