|
Charbal GURU
Joined: 15 Jun 2001 Posts: 654 Location: USA
|
Posted: Thu Jan 24, 2002 5:58 pm
Class Properties |
Is there a way to retrieve the hidden or enabled at connect property of a class after it has been created?
- Charbal |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Thu Jan 24, 2002 6:12 pm |
You can find or change those properties in the Editor by clicking the Class button and selecting the class you are interested in.
LightBulb
All scripts untested unless otherwise noted |
|
|
|
Charbal GURU
Joined: 15 Jun 2001 Posts: 654 Location: USA
|
Posted: Fri Jan 25, 2002 4:26 am |
Duh. :P I meant in a script/plugin (plugin interface doesn't seem to have any useful functions but it can access all scripting so that's where I'm hoping the solution will be). Sorry I didn't specify that.
- Charbal |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Fri Jan 25, 2002 1:28 pm |
The only way I can think of is to use the export capabilities of zMUD to export classes to a text file and then parse the text file to see the what options are set for the class you want. Now the problem would be how to programatically make zMUD export a settings file.
Kjata |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Fri Jan 25, 2002 7:44 pm |
I suppose you could use the #RESET command in conjunction with the %trigger(class) function to check whether or not its enabled at startup. If you get the status first, you can even change it back to what it was after you finish checking it.
#AL getclass {#IF (%1) {#VAR Class %1;#VAR ClassStat %trigger(%1);#RESET %1;checkclass} {#NOOP}}
#AL checkclass {#VAR ClassStart {%trigger(@Class)};#IF (@ClassStat) {#T+ @Class} {#T- @Class}}
LightBulb
All scripts untested unless otherwise noted |
|
|
|
|
|