What's custom event trigger?
Anything that's not auto or look around I guess...
What's custom_condition?
Method that can be written if someone inherits from the event class. There is a half baked system in place to help set it up.
What's simple_conditions, especially since we kinda have (and use) run_conditions for "simple" conditions?
Run Conditions will only be evaluated (right) before the event is actually ran, using simple conditions you can prevent an event from ever making it to the event cache. There are not many cases where this is useful, the main reason I wrote that for (and structured the event like I have) was because I've read that string evaluations were really slow in Python. It was however long before I realized that "really slow" was still in range of nano/micro seconds not mentioning that strings could have been converted to byte code which would have worked a lot faster.
Long story short, you can add some conditions there to make sure that an event doesn't make it to cache until they are true.It currently works like this:
- We check all event once per day to create cache, so if we ever have a few hundred, we would not have to check 85 event during runtime that don't have even a remote chance to be triggered.
- We run checks on events in cache during runtime, looking at priority/run_conditions and etc.