
Terra Plots Tracker -New Scripter Challenge
Been while since I visited this forum, below is some earlier beta code of Terra_Plots_Tracker.ts
My challenge to non-veteran scripters is to tell me what they would add or remove to make the result's more dependable.
Synopsis:
What Terra_Plots_Tracker does it create a list of deadend's which are unfigged and meets the user specified number of hops from terra. I have included some echo's to hopefully make it easier to understand and read as the script load's, just remove the # and let it run
The script requires a full ZTM and a refreshed FIGSEC.
Code:
setVar $file "_" & GAMENAME & "_SectorMatch.txt"
delete $file
SetVar $idx 1
getallcourses $Check 1
GetInput $Num "How Deep?"
While ($idx <= Sectors)
If ($Check[$idx] = $Num)
SetVar $Testsec $idx
GetSectorParameter $TestSec "FIGSEC" $IfFigged
If ($IfFigged = 1)
goto :Next
end
If ((SECTOR.WARPCOUNT[$idx] = 1) AND (SECTOR.WARPINCOUNT[$idx] = 1))
SetVar $adj SECTOR.WARPSIN[$idx][1]
# Echo "*" ANSI_11 $idx "*"
# Echo ANSI_11 SECTOR.WARPCOUNT[$idx] "*"
# Echo ANSI_11 $adj "*"
# Echo ANSI_11 SECTOR.WARPINCOUNT[$adj] "*"
If (SECTOR.WARPCOUNT[$adj] = 2)
Write $file $idx
end
goto :Next
end
end
:Next
Add $idx 1
end
Echo ANSI_12 & "**Writing Specified Warps to file: _" & GAMENAME & "_SectorMatch.txt"
halt
#///////////////////////////////////////////////////////////////////////////
#While $IDX is less than total sectors (SECTORS)
#load a array of number's which have a course plotted from 1 into $check
#if the $check variable ='s $num which was set by user
#set a $testsec variable with the current sector $idx
#Check our sector against our fig array "FIGSEC" and if its true (1)
#check if it has 1 warpcount and 1 warpin
#if $idx passes our previous check set a variable $adj to the 1 warpin
#if the warpcount of the $adj variable is 2 then write our original $idx to file
#continue untill we have no more sectors that match our criteria