Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
OxnyxWS
Newbie


Joined: 23 Oct 2006
Posts: 8

PostPosted: Thu Nov 27, 2008 12:04 am   

Removing Case from a String
 
Hi all,
I'm sure I'm just missing some command in the help file anyway I am running a buyer bot I want people using the bot to tell the bot 20 Blanks but I don't what the bot to care if they say 20 blanks or 20 bLANks. Basicly I just want to strip the case from the @Item. Below is a code snippet as what I have at the this time.

Code:

#TRIGGER ($Cust:%1) tells you '(($Amount:%n)) ((($Product:%w)))
 {#VAR Customer $Cust
tell @Customer Ok So you would like $Amount of $Product?
#VAR NumItem $Amount
#VAR Item $Product
#VAR Sell 0
#IF ($Product = Blank)
{#VAR Sell %eval(@NumItem*@Blank)}}
[/code]
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Thu Nov 27, 2008 2:22 am   
 
You can use the %lower() function to convert something to lowercase. See %lower %upper and %proper functions.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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