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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
BobMc
Newbie


Joined: 24 Oct 2006
Posts: 3

PostPosted: Fri Apr 10, 2009 6:14 pm   

class properties
 
Hopefully this is a really easy one, but is there a way to determine if a class (or any other object for that matter) is enabled or not ?
I dont want to change its status in any way, just to find out what its currently set to

Cheers
Bob
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Fri Apr 10, 2009 6:35 pm   
 
Easy way. :P

#SAY %class("Classname")

It'll return 1 if enabled, 0 if disabled.

For triggers, it's %trigger("TriggerID")

Charneus
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4715
Location: Pensacola, FL, USA

PostPosted: Fri Apr 10, 2009 7:58 pm   
 
I thought that the two functions were interchangeable
_________________
Discord: Shalimarwildcat
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sat Apr 11, 2009 1:51 am   
 
They probably are, but I tend to use them for the appropriate setting. ;)

Charneus
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Apr 11, 2009 4:48 pm   
 
They both will search for a other setting types. The difference is that %class looks at classes first, and %trigger looks for triggers first. Using the correct one for what you intend will be slightly faster.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
BobMc
Newbie


Joined: 24 Oct 2006
Posts: 3

PostPosted: Sun Apr 12, 2009 12:32 am   
 
Gee thanks guys. Not sure how I missed that one Confused
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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