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
Charbal
GURU


Joined: 15 Jun 2001
Posts: 654
Location: USA

PostPosted: 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
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

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


Joined: 15 Jun 2001
Posts: 654
Location: USA

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


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: 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
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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
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