You can make a separate menu at the beginning of the game (random event), which will be responsible for whether such events will occur randomly or according to a script. This may also help solve problems in future updates.