|
treimor Newbie
Joined: 14 Feb 2008 Posts: 9
|
Posted: 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 |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Fri Dec 31, 2010 4:08 am |
Something like this should do the trick.
Code: |
zs.gettrigger("test").Language = "Lua" |
|
|
_________________ Asati di tempari! |
|
|
|
|
|
|
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
|
|