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


Joined: 13 Nov 2002
Posts: 2

PostPosted: Tue Apr 06, 2004 10:04 pm   

commas and a database
 
I'm trying to figure out how to add the history of an item to my database, but zMUD seems to have a problem with commas.
I was wondering if there was a way to make zMUD ignore symbols such as commas, parenthesis, etc.

History: Improves the mana regen of necromancers and gives the ability to 'quickchant'
spells to necromancers, as well.

Pattern: ^(*)

Command: #VAR ObjHistory {@ObjHistory" "%trim(%replace(%1,%char(41),*))}

Any help would be appreciated.
Thanks in advance.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Tue Apr 06, 2004 10:37 pm   
 
Sure put quotes around the %1. You should have them there anyway. Also you shouldn't mix delimeters.
#VAR ObjHistory {@ObjHistory} {%trim(%replace("%1",%char(41),*))}
Reply with quote
Archaon
Newbie


Joined: 13 Nov 2002
Posts: 2

PostPosted: Wed Apr 07, 2004 3:20 am   
 
Thanks for the help.
The quotes worked, can't believe I overlooked something that simple.
*smack self*
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Apr 07, 2004 4:53 pm   
 
Oops! [B)]
He's not mixing delimiters. The " " inserts a space between the existing contents of @ObjHistory and the text being added from %trim. Your change will make the output of %trim the default value instead of adding it to the existing value.
#VAR ObjHistory {@ObjHistory" "%trim(%replace("%1",%char(41),*))}
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