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
Seyen
Beginner


Joined: 31 Aug 2005
Posts: 15

PostPosted: Sat Sep 17, 2005 7:24 am   

Showing variable content with "
 
I have a variable set to #SHOW. The problem is, the contents of the variable contain " , so when it's shown, the parser strips the " character.
example

VarContent: Tia, "No Skill, Just Luck" is here.

Show Output: Tia, No Skill, Just Luck is here.

How do I show the " without modifying the var to contain ~" instead of ", or at leat, how do I do that? I can't figure how to make %replace not consider " a quote character.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat Sep 17, 2005 8:37 pm   
 
Since %literal() or %quote() by necessity require you to modify the variable...maybe you could try unchecking the Strip Quotes item in Prefernces?
_________________
EDIT: I didn't like my old signature
Reply with quote
billaben
Wanderer


Joined: 02 Sep 2005
Posts: 60

PostPosted: Tue Sep 20, 2005 10:45 pm   
 
Personally I'd reccomend just subbing out any quotes your mud sends since frankly they are going to be a royal PITA to deal with you you don't.

#TRIGGER {~"} {#SUB {'}}

You can sub out any special characters this way if they are too troublesome to work around.
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