A script is a small, optional program you can write to customize the way your characters respond to events in the game world.
A script is associated with a specific event or type of event. Within each script, you have access to constants & variables that specify more details about the event. There are also many predefined functions to gather information & to perform certain game functions.
If no script is defined for an event, the default behavior will be used.