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


Joined: 30 Sep 2004
Posts: 14

PostPosted: Fri Jan 21, 2005 9:30 am   

#var makes duplicates an existing variable into root folder
 
Hi there,

to change the value of a variable i use #var varbiablename 1 and sometimes for no reason at all it will make a new variable in the root folder with that name. Sometimes i get conflicts in my system because it's looking up the wrong variable and so on. Does anyone know how to specify where the variable is for #var or how to get aroundt this?

Thanks
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5187

PostPosted: Fri Jan 21, 2005 10:22 am   
 
Looking at the help for #VARIABLE we find the full syntax can be used for what you want.
#VARIABLE name {value} {default value or _nodef} "class"

You can also use the class character (default of /) in the name, this should be findable from the help.
#VARIABLE ./class/subclass/name {value}
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
cstegmann
Beginner


Joined: 30 Sep 2004
Posts: 14

PostPosted: Fri Jan 21, 2005 6:30 pm   
 
Thanks, that worked. Only one problem.
I changed a #var to the #var ClassFolder/ClassSubfolder/VariableName 1 and now a Button which was linked to toggle up or down with the VariableName won't toggle up or down anymore. Know why?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5187

PostPosted: Sat Jan 22, 2005 5:36 pm   
 
You likely have a duplicate of the variable someplace else.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
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