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
sheol
Newbie


Joined: 13 Feb 2003
Posts: 6
Location: China

PostPosted: Thu Feb 13, 2003 4:04 pm   

#add
 
I want to add a var 1,use this command:
#add search_count 1
but,the var search_count is not changed,i put it in the current class or in root class,it not work,and create a new var named search_count in another class.
The command #add have a parameter about class?How is it used?
Reply with quote
Emit
Magician


Joined: 24 Feb 2001
Posts: 342
Location: USA

PostPosted: Thu Feb 13, 2003 4:36 pm   
 
well, classes and such can get a bit tricky. variables by default are created in class 0 (top class). If you have previously changed the current class via #class command, you can change it back using:
#class 0
if you need to reference a variable in a sub class, (in version 6.53 at least) you can use the "/" operater to designate the correct path

#add mxp/search_count 1

would operate on the search_count variable in the mxp class. it sounds like your class got changed via the #class command, hence creating the variable in another class.

--------

moon.icebound.net:9000
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Thu Feb 13, 2003 11:16 pm   
 
Also if the script (ie trigger, alias, etc)that is doing the #ADD is in a sub-class; and that sub-class has the "Set as Default when Executing" option selected then all settings that are created or modified will be done in that sub-class.
Reply with quote
sheol
Newbie


Joined: 13 Feb 2003
Posts: 6
Location: China

PostPosted: Fri Feb 14, 2003 2:00 pm   
 
Classes (* is default, + enabled, - disabled):
I use the command "#class",I can't see any class with "*",which is the default class?
I use version 6.39a,if I could use the command #add mxp/search_count 1 ?
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