LuaBootstrap usually raises an error for script.on_event or script.get_event_handler if the given event_name is invalid, except get_event_handler() if the event_name is a number.
Code: Select all
/c game.print(type(script.get_event_handler(99999)))
Why?
Debugging and given better feedback to users of my library. Having something like script.is_valid_event_name() would be much better, but i doubt chances are very good for that?