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
Palomar
Apprentice


Joined: 11 Oct 2000
Posts: 138
Location: Portugal

PostPosted: Mon Jan 21, 2002 5:48 pm   

stripping quotes
 
I have a trigger with a pattern like

^Object (%*) is type (%w)

and in the script field it has a line

item.name = %1

My problem is that a typical mathing line is

Object 'a silly name' is type weapon

but then what gets stored in the variable is just: a silly name, quotes stripped. How can I force zMud to NOT strip the quotes?

Thanx 4 the help,
Palomar
Reply with quote
Jaerin
Apprentice


Joined: 10 Oct 2000
Posts: 132
Location: USA

PostPosted: Mon Jan 21, 2002 6:08 pm   
 
By default it doesn't strip the quotes. I would say that perhaps it may be the properties of the database field that your putting the name into.

Jaerin

Tested without the database on version 6.25a

#trigger {^Object(%*) is type (%w)} {name=%1}
#echo Object 'a silly name' is type weapon
#show @name

Result:

name = 'a silly name'
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