
Re: Simple read file to an array
The Quest went down about two weeks ago, so I went looking for a quiet place to jury rig my scripts. I also went back to college for summer school, so I really did not not have much attention to spare when someone blew me up, so now I am running a game on my old computer, feeling like the champion of the cupboard under the stairs.
I did not feel that I had time to work on my terribly atrocious world trade script, so I just used SWATH's, but then something would happen and it always irritated me that it would happily jettison my cargo on its own, but did not want me starting the script with anything in my holds. Instead of finding the nearest BBB port or one specific to my cargo, I made a nearest unknown script. Here it is:
Code:
echo "*Quick Unknown Sector Lookup*"
setVar $result 0
send "cku"
waitFor " "
while $result = 0
setVar $unknown0 CURRENTLINE
getWord $unknown0 $unknown 1
isNumber $result $unknown
end
send " q" $unknown "**"
halt
It took me hours. So sad!
I do not like how it displays five lines of sectors, but everything else caused an endless loop.
Cheers.