I've added support for having a function in all of the temp*Trigger functions (tempTrigger(), tempColorTrigger(), tempLineTrigger(), tempComplexRegexTrigger(), tempRegexTrigger(), tempBeginOfLineTrigger(), and tempExactMatchTrigger()) as well as raised their error messages up to standard.
If you're keen, try out a preview of it to help us test! Download for
macOS,
Linux, or
Windows.
An example of a function you can now do is:
mytriggerID = tempExactMatchTrigger("You have recovered balance on all limbs.", function()
echo("We matched!")
end)
The nice thing about this is that you can capture local variables or run private functions without having to expose them globally.