|
sheol Newbie
Joined: 13 Feb 2003 Posts: 6 Location: China
|
Posted: 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? |
|
|
|
Emit Magician
Joined: 24 Feb 2001 Posts: 342 Location: USA
|
Posted: 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 |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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.
|
|
|
|
sheol Newbie
Joined: 13 Feb 2003 Posts: 6 Location: China
|
Posted: 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 ? |
|
|
|
|
|