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
onnoj
Newbie


Joined: 24 Jun 2011
Posts: 4

PostPosted: Mon Jul 18, 2011 8:30 am   

Creating triggers from LUA, missing settings?
 
Hi all,

Is there any way to set the trigger type for triggers created using zs.maketrigger? I'd like to make a trigger with a LUA body (now I have to hack around with #LUA).
Additionally, there doesn't seem to be a field exposed to set the TriggerOnTrigger setting. I believe the exclusive field is for the "stop further processing" setting.
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Mon Jul 18, 2011 6:03 pm   
 
For the trigger type, there are several properites:

IsCommand - set to True for a command input trigger
IsAlarm - set to True for an alarm trigger
IsRegEx - set to True for a regex trigger
IsExp - set to True for an expression trigger

The CondKind and CondValue can be used to set trigger condition types and parameter values, but these are not documented so you'll need to experiment with them on your own.

It's not in the documentation, but try the "TrigTrig" property of your trigger object for the "Trigger on Trigger" setting.
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