Protect calls to user defined condition and action functions so that the main script stays running in case a broken event is enabled.
If the condition function fails to run, the first message will be displayed: Failed to invoke condition for event: {name}
If the action function fails to run, the second message will be displayed: Failed to invoke action for event: {name}
Some things I may consider if broken events are too common and spammy:
- Automatically disable event if it gets so many errors
- Throttle printing out the errors
This only applies to condition event functions (the react-like ones), as events are called separately by MQ and will already be caught.
Don't just the macroquest2 folder name in my folders!