
Re: As usual, I am stumped.
I wish that I had just thought to hit [Ctrl] + z so see what change I had just made, I did not have any idea, and having spent all day on it, it was disheartening.
It turned out that the error was something along the lines of:
echo "I am scripting without a license!"*
So, fixing that made a big difference, it started running again, but I do not have any idea how many other errors I have. Right now I am trying to make my own version of proMassCitBuilder. I just prefer writing my own scripts. That will get me podded some day.

My original idea would do a corporate and then personal planet list, writing the sectors of populated planets in a file, although I guess that an array would make more sense. I figured that it would be a difficult project for me. I already had a simple script that would pull a load of fighters off of a planet. I decided that I would start out having it automatically land, determine how many loads of fighters to pull, and get to it. As I mentioned, once I got started I started integrating everything, without making sure that one part worked before another.
This seemed to be working:
# Warp to the next sector, engaging Transwarp if necessary
send "*yqzn"
waitFor "Warping to"
setVar $getSector CURRENTLINE
getWord $getSector $sector 4
setTextTrigger one :express "enough Fuel Ore"
waitFor "Sector :"
# try to fill up on sector fighters
send "f"
waitFor "Fighters, leaving"
setVar $sectorFighters CURRENTLINE
stripText $sectorFighters ","
getWord $sectorFighters $fighters 10
send $fighters "*co"
:getPlanet
killTrigger one
send "l"
# Get planet number
setTextTrigger zero :planet "> Planet"
setTextTrigger half :terminate "<Q to abort> ?"
pause
halt
:planet
killTrigger half
killTrigger eleven
setVar $getPlanet CURRENTLINE
stripText $getPlanet "<"
stripText $getPlanet ">"
getWord $getPlanet $planet 1
send $planet "*"
:finished
echo "finished"
killAllTriggers
# Check for additional planets
# echo "$planet: " $planet "*"
send "ql"
waitFor $planet
waitFor "Owned by:"
setTextTrigger ten :planet "> Planet"
setTextTrigger eleven :terminate "<Q to abort> ?"
pause
:terminate
send "q*"
halt
It would land on each planet in a sector, blast off, and halt. When I had it check the citadels it did that properly, but would endlessly land on the second planet.
You simply type in the sector number and start the script, it moves to the sector or triggers a "You are already in that sector!" and does its thing. Each of my planets is named "Planet," so in the beginning of the script it sees:
<Preparing ship to land on planet surface>
<Atmospheric maneuvering system engaged>
Registry# and Planet Name Citadel RLvl Fighters QCanRLvl Cl
------------------------------------------------------------------------------
< 374> Planet Level 6 0% 5T 0% H
Owned by: Empire [1]
< 379> Planet Level 3 0% 422T 0% H
Owned by: Grey Gamer
< 387> Planet Level 3 0% 460T 0% H
Owned by: Grey Gamer
< 388> Planet Level 3 0% 457T 0% H
Owned by: Empire [1]
< 389> Planet Level 6 0% 505T 0% H
Owned by: Empire [1]
Land on which planet <Q to abort> ?
watches for "> Planet" and grabs the preceding number, which is 374. At the end it waits for 374, then "Owned by," and then watches for "> Planet" to see if there is another planet, and lands on 379, but instead of grabbing 387 the next time around, it maintains 379.
Can anyone give me some help besides telling me to write shorter messages?
