|
Belmyrddyn Magician
Joined: 17 Oct 2001 Posts: 371 Location: USA
|
Posted: 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 |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Sun Jan 20, 2002 11:48 pm |
Use the #CLASS command to change your current class.
Kjata |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: 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.
|
|
|
|
|
|
|
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
|
|