- The object to get the event script from
- An EVENT_SCRIPT_* constant matching the event to get the script from.
Returns the event script for the given object and handler.
Will return "" if unset, the object is invalid, or the object cannot have the requested handler.
While this can get creature events from the PC, the only events that actually work on PCs are OnConversation, OnDeath, OnHeartbeat, and OnUserDefined. In development build 1.74.8171, OnCombatRoundEnd, OnPerception, and OnSpellCastAt now work for PCs as well.
|constants:||EVENT_SCRIPT_* Constant Group|