Starquakes00.txt

These are the starquake files for the human player in the sandbox. I have added my comments in dark red. Include file text is added in dark green. These comments are based on my own analysis of the code and my experience in working with it. I do not have any special inside information from MuckyFoot about these files, and I may in some instances be wrong.

;STARQUAKE****************************************************

; This file loades the element :starquake100 from just one of the files
; based on the sandbox setting for frequency of quakes.
; To use this in a custom mission, make a copy of this file and replace 
; the file includes with :starquake100 from just one of the files.

{missions\00\starquakes000.txt|OPT_QUAKES=0}
; Never
:starquake100
if
	turn > starquake
then
	disable
end
{missions\00\starquakes001.txt|OPT_QUAKES=1}
; Low Frequency
:starquake100
if
	turn > starquake
then
	set starquake (((rnd%50000) + 100000) + turn)
	incoming stellar_event within 1900 skill ((rnd%20000) + 100) icon 16 "events_quake00"
	set quakearrive (turn + 2000)
	set quakeincoming 1
end
{missions\00\starquakes002.txt|OPT_QUAKES=2}
; Medium Frequency
:starquake100
if
	turn > starquake
then
	set starquake (((rnd%37500) + 75000) + turn)
	incoming stellar_event within 1900 skill ((rnd%20000) + 100) icon 16 "events_quake00"
	set quakearrive (turn + 2000)
	set quakeincoming 1
end
{missions\00\starquakes003.txt|OPT_QUAKES=3}
; High Frequency
:starquake100
if
	turn > starquake
then
	set starquake (((rnd%25000) + 50000) + turn)
	incoming stellar_event within 1900 skill ((rnd%20000) + 100) icon 16 "events_quake00"
	set quakearrive (turn + 2000)
	set quakeincoming 1
end

:starquake200
if
	quakeincoming > 0
	turn > quakearrive
then
	quake (((rnd%2) + (rnd%3)) + 1)
;	status_message "SHAKE!!!!RUMBLE!!!!QUAKE!!!!"
	set quakeincoming 0
end