|
Alcander Wanderer
Joined: 04 Aug 2001 Posts: 79 Location: USA
|
Posted: Sun Mar 18, 2007 5:14 pm
[1.26] #UNV |
According to helpfile, if I had a variable @target_list, I should be able to do the following
#UNV target_list
This should remove the contents of the variable, but it does not seem to do anything. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sun Mar 18, 2007 5:41 pm |
I don't think Zugg changed the behavior of this and similar commands, but in ZMud you have to explicitly set the default class using #CLASS in order for it to work (unless it is already set to that folder). #UNVAR (and I would assume the entire series of #UNsetting commands) simply don't go looking for the variable in other places the way other commands do, probably to avoid accidentally finding and deleting the wrong one.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sun Mar 18, 2007 6:55 pm |
Matt's right abou the way #unvar searches for variables in CMUD. In addition, it won't just remove the contents of the variable Alcander, it'll delete the variable entirely.
It'd be nice if #RESET (or another command) could take a variable as an argument instead of applying to all variables in a class. |
|
|
|
Alcander Wanderer
Joined: 04 Aug 2001 Posts: 79 Location: USA
|
Posted: Sun Mar 18, 2007 10:12 pm |
Thanks Guy,
I remembered after the fact that I moved the variables into their correct class and once I applied that it worked fine. |
|
|
|
|
|