Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Alcander
Wanderer


Joined: 04 Aug 2001
Posts: 79
Location: USA

PostPosted: 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.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: 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.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Alcander
Wanderer


Joined: 04 Aug 2001
Posts: 79
Location: USA

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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