Ancient script conversion to use the event system