Replaced all direct access to level.player.vars.stored_events with level.player.vars.get_stored_events().