This moves all of the fighters from a planet to the sector:
Code:
# check if we can run it from here
cutText CURRENTLINE $location 1 7
if ($location <> "Planet ")
clientMessage "*This script must be run from the surface of a planet!*"
halt
end
:planet
send "*"
waitFor "Planet #"
getWord CURRENTLINE $planetNumber 2
stripText $planetNumber "#"
#waitFor "Fuel Ore"
#waitFor "Organics"
#waitFor "Equipment"
waitOn "Fighters"
getWord CURRENTLINE $availableFighters 5
stripText $availableFighters ","
echo "***" $availableFighters "***"
if ($availableFighters < 1)
clientMessage "*There are no fighters on this planet!*"
halt
End
send "mnt*qf"
waitFor "fighters available."
getWord CURRENTLINE $availableFighters 3
stripText $availableFighters ","
send $availableFighters "*"
:drop
killAllTriggers
setTextTrigger 1 :Corporate "(C)orporate fighters"
setTextTrigger 2 :typeOfFighters "(D)efensive, (O)ffensive"
Pause
:Corporate
killAllTriggers
send "c"
goto :drop
:typeOfFighters
killAllTriggers
send "dl" $planetNumber "*"
goto :planet
I wanted to make a version to move a specific percent and move all of the fighters from all of the planets in the sector if it started at the sector prompt, but I never got that far.