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
Belmyrddyn
Magician


Joined: 17 Oct 2001
Posts: 371
Location: USA

PostPosted: Sun Jan 20, 2002 4:13 pm   

Refrencing specific variables
 
Whenever I try and access a variable which is in a specific class, or reassign a new value to it, etc. zMUD always creates a new variable in the top level, and doesn't reference the variable that already exists. For example, I need to store a value to a global variable, and then access it on another character, but instead of storing the variable where I want it to, it justs creates a new one in the local settings file. So how exactly do I force the script to read the pre-existing variable, no matter what class the darn thing is in? I can do it with the #VAR command, but I can't always use that command.

Belmyrddyn
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sun Jan 20, 2002 11:48 pm   
 
Use the #CLASS command to change your current class.

Kjata
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Mon Jan 21, 2002 1:51 am   
 
That's also a bug in the older versions of zMUD. The newest beta versions will update an existing variable no matter what class it is in, and will only create a new variable (in the current class) if no other variable with that name can be found.

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