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


Joined: 26 Jul 2005
Posts: 34

PostPosted: Sun Aug 14, 2005 8:38 pm   

Variables quick questions
 
Why does zmud save newly created variables into random class folders? Is there a setting I'm not aware of that I can change and if so where is it? On occassion I've noticed that if i move the variables to a different folder it will create a duplicate one in whatever folder it was origenally in(or rarely a different folder folder all together) which can cause a few problems.
I havn't been able to figure out how it decides where to save them, and I've check all of the duplicates for possible spelling differences.
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Sun Aug 14, 2005 9:21 pm   
 
You can specify the class you want a variable created in.
#var myVariable {val} {default} "putItIn|thisClass"

would put myVariable inside thisClass, within putItIn

If you're trying to adjust a variable using
myVariable = asdf

and the folder that the variable is already in is disabled then it'll create a new one, normally at the root
_________________
CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;)
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Aug 14, 2005 9:45 pm   
 
ZMud maintains a default class setting. The default is set via the #CLASS command like so:

#class Tells
#class Magic
etc

To set the default back to the none folder you use #CLASS 0.

Variables that need to be created are created in the default class, if another class is not specified AND the default class is not disabled. The same also applies to other created settings. Some commands, like #UNVAR, seem to only work in the default class and will not find existing variables elsewhere (well, at least it used to, dunno if Zugg ever changed this).
_________________
EDIT: I didn't like my old signature
Reply with quote
trpstrife
Novice


Joined: 26 Jul 2005
Posts: 34

PostPosted: Sun Aug 14, 2005 10:23 pm   
 
alright cool. thanks for the info. I'll try to fix that up and see if it doesn't help.
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