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
jurz
Novice


Joined: 22 Feb 2002
Posts: 48
Location: Latvia

PostPosted: Fri Mar 01, 2002 11:12 am   

Question on check triggers
 
Can you somehow check if trigger or trigger class is on or off?

i.e. I have a trigger that sets combat trigger class off
and I also have tick timer every 60 sec to do command pklist

What I want is to get it to work so that if "combat" trigger class is off
then pklist isn't executed

Thanks in advance

-Jurz
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Fri Mar 01, 2002 11:20 am   
 
Two related things that will help you with is this on/off:

For classes:
quote:

trigger

Syntax: %trigger(class)

return true if the specified trigger class is enabled. If the class does not exist, -1 is returned. (Same as the %class function)



and for all else:
quote:

defined

Syntax: %defined(s)

returns true of s is a defined alias, variable, macro, or path.



TonDiening
Beta Upgrading to 6.26
Reply with quote
jurz
Novice


Joined: 22 Feb 2002
Posts: 48
Location: Latvia

PostPosted: Fri Mar 01, 2002 11:29 am   
 
Great, thanks

-Jurz
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