Scripts/Krystallus: converted to EventMap, removed useless code