View unanswered posts | View active topics It is currently Wed Oct 07, 2026 7:47 pm



Reply to topic  [ 2 posts ] 
 Fighter Scripting 
Author Message
Civilian

Joined: Sat Feb 07, 2026 10:52 pm
Posts: 0
Unread post 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.


Sat Feb 07, 2026 10:57 pm
Profile
Ensign

Joined: Sun Mar 06, 2011 12:22 am
Posts: 208
Unread post 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.

_________________
Photons away!


Tue Sep 29, 2026 8:35 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 26 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by wSTSoftware.