Implement potentially arbitrary scripted events.