www.ClassicTW.com
https://www.classictw.com/

Fighter Scripting
https://www.classictw.com/viewtopic.php?f=15&t=35983
Page 1 of 1

Author:  klypto [ Sat Feb 07, 2026 10:57 pm ]
Post subject:  Fighter Scripting

Hi,
I've recently started trying this game again and I have SWATH and J-TWAT doesn't seem to want to run with windows 11. However, I don't see anything with SWATH or any other scripts out there that can either do a buy dump or move from planet to sector. Anyways anything that will actually work for this would be appreciated especially since I don't know players on any games to corp with.

Author:  Grey Gamer [ Tue Sep 29, 2026 8:35 am ]
Post subject:  Re: Fighter Scripting

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.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/