Parrothead wrote:
1)Will my script photon base giving all your corpies the fine gift of a night off?
Hopefully they have an ore limit to prevent that. Or at the
very least, a limited number of shots on the torper ship.
Parrothead wrote:
2)Will it fire at peeps retreating off of figs?
Good lord, sadly that happens on some of the older stuff.
It's so easy to fix tho.
Parrothead wrote:
3)Will it fire at peeps playing silly buggers from dock/fed?
Hehe. Yeh, a fedADJ check is nice.
Code:
:get_fed_adjacents
setArray $FEDadj SECTORS
:search_around_terra
setVar $idx 1
while ($idx <= 10)
setVar $chk_idx 1
while ($chk_idx <= SECTOR.WARPCOUNT[$idx])
if (SECTOR.WARPS[$idx][$chk_idx] > 10)
setVar $FEDadj[SECTOR.WARPS[$idx][$chk_idx]] TRUE
end
add $chk_idx 1
end
add $idx 1
end
:search_dock
isNumber $result STARDOCK
if ($result < 1)
goto :wheres_dock
end
if (STARDOCK < 1) OR (STARDOCK > SECTORS)
goto :wheres_dock
end
setVar $chk_idx 1
while ($chk_idx <= SECTOR.WARPCOUNT[STARDOCK])
setVar $FEDadj[SECTOR.WARPS[STARDOCK][$chk_idx]] TRUE
add $chk_idx 1
end
:wheres_dock
return
Call that simple subroutine at the top of the script, then
check for $FEDadj before looking for adjacent figs. Problem
solved.
Parrothead wrote:
4)Will it run out of gas stranding the planet?
Hopefully people, at least by now, use a script with an ore
limit option.
Parrothead wrote:
5)Will it protect itself from attack?
That's a double edged sword tho. If you've got citkilla running,
and someone finds your planet, you could be handing it to them.
Even a photon script that automatically runs away if someone
moves in on you has a downside, ex: you lose slide-in kills.
I'd add two more tho. This was a bug in oz's torp, make sure you
know the difference between warps in and warps out. Used to
be it would look for adj figs on the warps out, so that if the sector
was a 1-way out, you'd try to torp the wrong way... the script
failed to trigger on that, and would hang.
Second, don't torp aliens. There's no point.