HAHAHAHAHAHAHAHAHA
This system really needs documentation because it is rediculous.
You can't do simple negations or NOTs. You can't do OR. You can't check flags directly, you have to check the event associated with setting or unsetting the flag (though you can set "databases" to act like flags off of those EVENTS).
and oh, if a function is defined with an input and an output, setting the output as a variable saves the output to that variable, but setting it to an integer checks the output versus that integer.
Yeah Demon's solution works, but man, if we could use any standard coding thats used across most languages [you know, like IF (var1 == 0 || var2 >1)] it would be so much easier.
/endRantToBlowOffSteam
Yeah osiris is very simple minded it seems. I had to spend a good two days figuring that out with a guard patrol.
My best advice for this system is the simpler the better.