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
zeiuszeppo
Novice


Joined: 22 Nov 2001
Posts: 48
Location: Italy

PostPosted: Mon Sep 02, 2002 5:19 pm   

using #WRITE command
 
HI guys,
I need to write to a file the [ char
contained in a var and read it from a file
ie:
#VAR Title "[CDS]"
...
#WRITE 1 @Title
...
...
#READ 1 @Title
....
then have the Title var correctry "[CDS]"

how can I do?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Sep 02, 2002 6:15 pm   
 
quote:

HI guys,
I need to write to a file the [ char
contained in a var and read it from a file
ie:
#VAR Title "[CDS]"
...
#WRITE 1 @Title
...
...
#READ 1 @Title
....
then have the Title var correctry "[CDS]"

how can I do?



Try using the quote character (the tilde by default, ~).

li'l shmoe of Dragon's Gate MUD
Reply with quote
zeiuszeppo
Novice


Joined: 22 Nov 2001
Posts: 48
Location: Italy

PostPosted: Mon Sep 02, 2002 6:28 pm   
 
no way. zMUD "loses" the brackets [ ...
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Sep 02, 2002 10:51 pm   
 
quote:

no way. zMUD "loses" the brackets [ ...



hmm, ok, it's probably parsing them as...evaluation? Whatever it does, there's a setting in Preferances to turn it off. If you're not big on using [] in your scripts for that purpose, you should be able to safely turn this option off without problems.

Not really sure if doing so will turn off the trigger-parser's range-list symbol, but I don't think it will (different purpose, different parser).

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