Spies00.txt

These are the spy 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.

The file spies00.txt consists of nothing but conditional file includes. Therefore I'm just going to present the include files. To get the frequency of spies desired, include one of the files shown below directly into your missions.

; Never - spies000.txt
Complete empty, so don't bother including it.

; Low Frequency - spies001.txt
;SPIES********************************************************************
:Spies100
if
	spymessage = 0
	spytype = 0
	turn > spytime
	energy > 10000
	enemy_count > 0
then
	incoming local_comms icon 18 respond spy_wanted within 1000 "general_assassin01"
	set spymessage 1
end

:Spies101
if
	spy_wanted = YES
	spytype = 0
then
	place_peep spy assasin enemies
	addenergy (0-(1000*enemy_count))
	set spy_wanted 3
	set spytype (rnd%2)
	set spytime ((turn + 30000) + (rnd%10000))
	set spymessage 0
end


:Spies102
if
	spymessage = 0
	spytype = 1
	turn > spytime
	energy > 10000
	enemy_count > 0
then
	incoming local_comms icon 18 respond spy_wanted within 1000 "general_bomber01"
	set spymessage 1
end

:Spies103
if
	spy_wanted = YES
	spytype = 1
then
	place_peep spy saboteur enemies
	addenergy (0-(1000*enemy_count))
	set spy_wanted 3
	set spytype (rnd%2)
	set spytime ((turn + 30000) + (rnd%10000))
	set spymessage 0
end

:spies104
if
	spy_wanted < 2
then
	set spy_wanted 3
	set spytime ((turn + 30000) + (rnd%10000))
	set spytype (rnd%2)
	set spymessage 0
end

:spies105
if
	spymessage = 0
	turn > spytime
	enemy_count < 1
then
	set spytime ((turn + 3000) + (rnd%1000))
end


;PEEPSPIES
:AlienSpies
if
	turn > 40000
	turn > alienspy
then
	place_peep ((rnd%10)+ 5) skill 1 saboteur
	set alienspy ((turn + 30000) + (rnd%10000))
end

;PEEPASSASSINS
:AlienKiller
if
	turn > 40000
	turn > alienkiller
then
	place_peep ((rnd%4)+ 5) assasin
	set alienkiller ((turn + 30000) + (rnd%10000))
end

; Medium Frequency - spies002.txt
;SPIES********************************************************************
:Spies100
if
	spymessage = 0
	spytype = 0
	turn > spytime
	energy > 10000
	enemy_count > 0
then
	incoming local_comms icon 18 respond spy_wanted within 1000 "general_assassin01"
	set spymessage 1
end

:Spies101
if
	spy_wanted = YES
	spytype = 0
then
	place_peep spy assasin enemies
	addenergy (0-(1000*enemy_count))
	set spy_wanted 3
	set spytype (rnd%2)
	set spytime ((turn + 20000) + (rnd%10000))
	set spymessage 0
end


:Spies102
if
	spymessage = 0
	spytype = 1
	turn > spytime
	energy > 10000
	enemy_count > 0
then
	incoming local_comms icon 18 respond spy_wanted within 1000 "general_bomber01"
	set spymessage 1
end

:Spies103
if
	spy_wanted = YES
	spytype = 1
then
	place_peep spy saboteur enemies
	addenergy (0-(1000*enemy_count))
	set spy_wanted 3
	set spytype (rnd%2)
	set spytime ((turn + 20000) + (rnd%10000))
	set spymessage 0
end

:spies104
if
	spy_wanted < 2
then
	set spy_wanted 3
	set spytime ((turn + 20000) + (rnd%10000))
	set spytype (rnd%2)
	set spymessage 0
end

:spies105
if
	spymessage = 0
	turn > spytime
	enemy_count < 1
then
	set spytime ((turn + 2000) + (rnd%1000))
end

;PEEPSPIES
:AlienSpies
if
	turn > 20000
	turn > alienspy
then
	place_peep ((rnd%10)+ 5) skill 1 saboteur
	set alienspy ((turn + 20000) + (rnd%10000))
end

;PEEPASSASSINS
:AlienKiller
if
	turn > 20000
	turn > alienkiller
then
	place_peep ((rnd%4)+ 5) assasin
	set alienkiller ((turn + 20000) + (rnd%10000))
end

; High Frequency - spies003.txt
;SPIES********************************************************************
:Spies100
if
	spymessage = 0
	spytype = 0
	turn > spytime
	energy > 10000
	enemy_count > 0
then
	incoming local_comms icon 18 respond spy_wanted within 1000 "general_assassin01"
	set spymessage 1
end

:Spies101
if
	spy_wanted = YES
	spytype = 0
then
	place_peep spy assasin enemies
	addenergy (0-(1000*enemy_count))
	set spy_wanted 3
	set spytype (rnd%2)
	set spytime ((turn + 10000) + (rnd%10000))
	set spymessage 0
end


:Spies102
if
	spymessage = 0
	spytype = 1
	turn > spytime
	energy > 10000
	enemy_count > 0
then
	incoming local_comms icon 18 respond spy_wanted within 1000 "general_bomber01"
	set spymessage 1
end

:Spies103
if
	spy_wanted = YES
	spytype = 1
then
	place_peep spy saboteur enemies
	addenergy (0-(1000*enemy_count))
	set spy_wanted 3
	set spytype (rnd%2)
	set spytime ((turn + 10000) + (rnd%10000))
	set spymessage 0
end

:spies104
if
	spy_wanted < 2
then
	set spy_wanted 3
	set spytime ((turn + 10000) + (rnd%10000))
	set spytype (rnd%2)
	set spymessage 0
end

:spies105
if
	spymessage = 0
	turn > spytime
	enemy_count < 1
then
	set spytime ((turn + 1000) + (rnd%1000))
end

;PEEPSPIES
:AlienSpies
if
	turn > 20000
	turn > alienspy
then
	place_peep ((rnd%10)+ 5) skill 1 saboteur
	set alienspy ((turn + 10000) + (rnd%10000))
end

;PEEPASSASSINS
:AlienKiller
if
	turn > 20000
	turn > alienkiller
then
	place_peep ((rnd%4)+ 5) assasin
	set alienkiller ((turn + 10000) + (rnd%10000))
end