eventscript: introduce enum for different event script calls.