|
realitythreek Newbie
Joined: 25 Jan 2002 Posts: 2
|
Posted: 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. |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Sat Jan 26, 2002 5:10 am |
@var = %literal(Hi%this~is~a~test)
TonDiening
Uses 6.16 |
|
|
|
Interceptor Newbie
Joined: 25 Jan 2002 Posts: 1
|
Posted: 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. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
|
|