View unanswered posts | View active topics It is currently Thu Apr 18, 2024 11:33 am



Reply to topic  [ 1 post ] 
 Unexplored explorer 
Author Message
Chief Warrant Officer

Joined: Sun Mar 06, 2011 12:22 am
Posts: 183
Unread post Unexplored explorer
With the heavily-armed aliens in my current game, I wanted to be careful exploring. I have found and taken two homeworlds, but there should be one more out there, and then I hope that the aliens spawn less, although it seems like they are barely bothering me anymore.

I decided to write a script that would send a probe from Stardock and then warp out as far as the probe got before returning to SD and starting over. It does not sound efficient, but it should have been safe. I should post that, maybe someone can figure out where my mind should have been going. Meanwhile, I ran across a quick script that I shared in another post, so I elaborated on it. This merely travels to the first unknown sector listed in the computer, travels out, and lays a fighter. Without a ZTM, it cannot do anything as intelligent as exploring the furthest sectors first, thereby exploring more intermediate sectors.

SWATH automatically takes out fighters, but I will incorporate that into this script at some point, among other things. It does automatically kill Ferrengi. That is kind of entertaining. You are just flying along, some short guy with big ears starts a prepared speech, and you hardly slow down as you blow him to pieces.

The one thing that I need to do is make it loop. I ran it a few dozen times to explore the first hundred sectors.

It just express-warps and then lays a fighter. I could have it catch the trip length and have it spam a macro, but that needs to wait.

Well, how ugly is this? :)

Code:
echo "*Quick Unknown Sector Lookup*"
setVar $i 0
:start
setVar $result 0
send "cku"
waitFor "  "
send "  "
while $result = 0
setVar $unknown0 CURRENTLINE
getWord $unknown0 $unknown 1
isNumber $result $unknown
end
send "q" $unknown "*"
:resume
setTextTrigger express :notAdjacent "Engage the Autopilot? (Y/N/"
setTextTrigger fighters :continue "Stop in this sector (Y,N"
setTextTrigger ferrengi :kill "Ferrengi Ship Encountered!"
setTextTrigger areWeThereYet :yes "Autopilot disengaging."
pause

:yes
killAllTriggers
waitFor "Command [TL="
send "f1*t"
halt
if ($i > 4)
   halt
end
add $i 1
goto :start

halt

:notAdjacent
killTrigger fighters
killTrigger ferrengi
killTrigger areWeThereYet
send "e"
goto :resume

:continue
killTrigger ferrengi
killTrigger express
killTrigger areWeThereYet
send "*"
goto :resume

:kill
killTrigger express
killTrigger fighters
killTrigger areWeThereYet
send "ay1000*m*"
goto :resume

_________________
Photons away!


Tue Apr 09, 2013 2:38 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 12 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 STSoftware.