Singularity wrote:
You don't need to do any of that. If reqRecording is on your density scan will automatically update the database. Before you start just do a dz*, grab the sector number, and go from there. Then you can use the density in the database for the sectors adj to your current, no need to parse from the stream.
So following your suggestions its more than likely going to be easier using.
SECTOR.DENSITY[inputted sector]
However, I'm confused as to how to go about getting the correct amount of warps out and then comparing there information to what I want the gridder to do? Being as that the script will continually scan then move, I'm curious if any sort of loop will create to many variables and how do i determine the difference between a sector with 2 warps out and a sector with 6. I assume the dz* is to update for sectors but it wont update adjacent density will it?
#------------Get Sectors-------------------
:get_sec
SetVar $Current CURRENTSECTOR
SetVar $SectorIndex 0
send "zd*"
SetVar $Sector1 SECTOR.WARPS[$current][1]
SetVar $Sector2 SECTOR.WARPS[$current][2]
SetVar $Sector3 SECTOR.WARPS[$current][3]
SetVar $Sector4 SECTOR.WARPS[$current][4]
SetVar $Sector5 SECTOR.WARPS[$current][5]
SetVar $Sector6 SECTOR.WARPS[$current][6]
:StartLoop
Add $SectorIndex 1
If ($Sector[$SectorIndex] = "0")
Return
Else
# compare variables for conditional movement
Goto :StartLoop
End
halt
#--------------------------------------------
Is there a easier way? Where it builds the variable as it goes? I'm using the variables for comparision to meet criteria for picking the warp untill which point it can't. Consider it a safe gridder in that it only grids empty space, at least thats my immediate goal, after which I will be adding conditions and the such.