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


Joined: 25 Jan 2002
Posts: 2

PostPosted: Fri Jan 25, 2002 7:55 pm   

special characters
 
I want to do something like:
@var = Hi%this~is~a~test
but zmud parses the ~'s and %'s.

Is there anyway I can make the whole string literal?

Putting a ~ in front of each character is not feasible because the string isn't the same every time.
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Sat Jan 26, 2002 5:10 am   
 
@var = %literal(Hi%this~is~a~test)

TonDiening
Uses 6.16
Reply with quote
Interceptor
Newbie


Joined: 25 Jan 2002
Posts: 1

PostPosted: Sat Jan 26, 2002 6:01 pm   
 
Is there a way to do that within a trigger? If "Hi%this~is~a~test" is in the text that the trigger fires off of, then it strips out the tildes and the percent sign.

It does work on the the command line, though.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat Jan 26, 2002 10:37 pm   
 
quote:

Is there a way to do that within a trigger? If "Hi%this~is~a~test" is in the text that the trigger fires off of, then it strips out the tildes and the percent sign.

It does work on the the command line, though.



In the above example, you should use a verbatim trigger. The verbatim checkbox is located in the Options tab of the trigger. With that checked, Zmud will not do any parsing of the trigger pattern.

If you need to employ the parser, then you'll have to use ~'s everywhere, like this:

Hi~%this~~is~~a~~test

li'l shmoe of Dragon's Gate MUD
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