Upkeep00.txt

This is the deck segment upkeep expense file for the human player in the sandbox. I have added my comments in dark red. 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.

;UPKEEP
:segmentupkeep
if
	turn > segmentupkeep
	segmentupkeep > 1439
then
; segmentdecks is a system variable, that is, it is maintained by Startopia 
; without you having to do anything with it in your script elements
; this is where you change how much energy it costs for upkeep on deck segments	
	addenergy (0 - ((segmentdecks + 2) * (segmentdecks + 2)))
; this is where you change how often upkeep is charged
; 1440 turns is one minute	
	set segmentupkeep (turn + 1440)
end