General dynamic scripting logic (e.g., events) core module of SWMH