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


Joined: 25 Feb 2003
Posts: 10

PostPosted: Thu Feb 27, 2003 6:10 am   

Recreating Variables
 
I imported my .mud file from a previous version of zmud into 6.53 and everything loaded up just fine. Except it doesn't seem to 'see' the variables that are in the system unless they're not put in any folders. Even when I killed all the original variables and made new ones, the moment I put them into a separate folder, the system didn't see them and started creating duplicates in the 'root' folder. Is there some setting I don't have on or something?

glor
Reply with quote
wilh
Wanderer


Joined: 08 Feb 2001
Posts: 89
Location: USA

PostPosted: Thu Feb 27, 2003 8:56 am   
 
I think I remember running into this when using the #VAR syntax for writing to variables. I fixed that by including the class name in the command...



#VAR varName <value> <defaultValue> <class>


If you don't want to deal with that, I think the syntax of



varName=<value>


doesn't suffer from the problems you described.


..... I think. ;)

Wil

Wil Hunt
Reply with quote
glor
Beginner


Joined: 25 Feb 2003
Posts: 10

PostPosted: Thu Feb 27, 2003 3:23 pm   
 
Hehe, thanks for the help, I actually use the varname=value thing, but the solution you gave seems to solve some of the problem. But when I have a 'check' for the variable value, like #if (varname = value) how do I replace that? Thanks!!

glor
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Thu Feb 27, 2003 3:36 pm   
 
#IF is smart enough to know that you want to do a comparison and not an assignment.

Kjata
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