Script Main ExternalEvents.txt (SEV)
From SEWiki
This script file determines the random Events that can occur. The compiled version of this file is placed in the data folder.
The compiled script is run during the end of turn processing phase. The script essentially cycles through each player and randomly chooses an event to occur based on game settings such as event severity and frequency.
Since this script runs exactly once per turn, enterprising modders have found other uses for it besides random events - it can be used to randomize research, or convert between ordnance and supplies for a "reactors & batteries" system, or generate various bonuses such as research bonuses for having specialized research facilities or even for having ships in a black-hole system, or any of an endless variety of possibilities.
