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
Caled
Sorcerer


Joined: 21 Oct 2000
Posts: 821
Location: Australia

PostPosted: Wed Feb 25, 2004 4:26 pm   

parsing question - quotes
 
#AL mt {clan 5 tell %-1}
#AL mt {clan 5 tell }
#AL mt {clan 5 tell "%-1"}

I use the alias to speak to clan number 5. I have similar aliases for all clans I am a part of. If I want to say something with quotes in it, though - they get stripped.

For example... I enter
mt some words here "quoted part" end of sentence.
and I want to see this returned:

(clanname): You say, "Some words here "quoted part" end of sentence."

but what I see is:
(clanname): You say, "Some words here quoted part end of sentence."
which makes for a confusing sentence.


How can I make it send exactly what I type in?
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Wed Feb 25, 2004 6:28 pm   
 
#AL mt {clan 5 tell %literal(%-1)}
Reply with quote
Caled
Sorcerer


Joined: 21 Oct 2000
Posts: 821
Location: Australia

PostPosted: Wed Mar 10, 2004 3:13 am   
 
When I try to do this as nexela suggests.. the problem lies in when I try to use commas in anything I say.

%-1 appears to reference only the parameters after the alias, yet before the first comma.

so..
mt hi, how are you?
sends:
clan 5 tell hi
to the mud.

How can I get around this?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Mar 10, 2004 6:07 pm   
 
Set your Script Parser preferences to disable Strip " quotes
#AL mt {clan 5 tell}
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