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


Joined: 14 Feb 2008
Posts: 9

PostPosted: Thu Dec 30, 2010 6:12 am   

Dynamic Trigger Creation in LUA
 
Hey, I'm having a slight problem creating triggers on the fly using lua. I'm utilizing the zs.maketrigger{} function and it works great, except one problem. Is there a way to set the scripting language of the trigger you create? I see all the other options, i.e. isregex and such, but have been having a heck of a time creating a lua scripted trigger, as it defaults to zScript. Right now I'm using #LUA and wrapping everything, but that seems a bit counterintuitive. Am I missing a helpfile, or is this not currently available?

Thanks in advance Smile
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Fri Dec 31, 2010 4:08 am   
 
Something like this should do the trick.

Code:
zs.gettrigger("test").Language = "Lua"
_________________
Asati di tempari!
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