It's been too long since I used these, and I can't get them to work beyond just the basics, and I can't find any of my old scripts that did it. The mudlet manual is pretty vague when it discusses them. So.
I wish to monitor a simple variable. True/False, running the triggers script when there is a change in the value.
Pattern 1, lua func type: return testvar
Pattern 2, lua func type: return not testvar
Trig options: default (i.e. this is an OR type trigger)
Very simple. The actual script will set the CSS of a label, giving me a toggle style button that displays some information, without requiring me to delve into someone else's code (say I am using wsys, svof or trex - at the moment I am leaning more toward wsys for its simplicity). If I can get the above to work, then I can use more complex expressions as well, and easily monitor how/what these other scripts are doing.
I've tried various connotations of 'return testvar', such as
return true testvar
if testvar then return true end
Also, my testing has been with a single pattern, forgetting the OR part - figured I should get a single one working first.
But it won't fire...