View unanswered posts | View active topics It is currently Tue Apr 21, 2026 4:28 pm



Reply to topic  [ 2 posts ] 
 Tracking fig hits. 
Author Message
Gameop
User avatar

Joined: Tue Nov 19, 2002 3:00 am
Posts: 1050
Location: USA
Unread post Tracking fig hits.
One of the features im entertaining is to create a fig array of x-hops from jumppoint or home base and have the script respond to the fighits as needed. Kinda like a sentry script, eventually I'd like to be able to remove completely the need for a t-lock by having the script check right before lock for fig integrity or the defined figs. My issue is im not quite sure how to attack the problem.

-My guess is I could use a array (static I'd assume) and while statement from homebase or jumppoint?

-Would a BFS be more effiecent over a while statement, assuming I'm looking to only create a array or 6- <100 figs depending on how many jumppoints or home figs are out?

-How do most scripters remove fighits from a static array?

_________________
Dark Dominion TWGS
Telnet://twgs.darkworlds.org:23
ICQ#31380757, -=English 101 pwns me=-
"This one claims to have been playing since 1993 and didn't know upgrading a port would raise his alignment."


Wed Dec 17, 2008 6:12 pm
Profile ICQ
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post Re: Tracking fig hits.
For distance, use the getAllCourses...

Linky:
http://www.navhaz.com/files/script.html#CMD_94

Gives you a 2d array of distance to a specified sector. Great for monitoring a limited number of points.

Quote:
How do most scripters remove fighits from a static array?


I just use parms. I write to them as they get hit, read from them as needed.

But I still use tlock checking. During a grid fest sometimes the exact order of things gets a bit off, especially if they happen very very close to one another. Not a good idea to risk fusing.

_________________
May the unholy fires of corbomite ignite deep within the depths of your soul...

1. TWGS server @ twgs.navhaz.com
2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads
3. Open IRC chat @ irc.freenode.net:6667 #twchan
4. Parrothead wrote: Jesus wouldn't Subspace Crawl.

*** SG memorial donations via paypal to: dpocky68@booinc.com
Image


Thu Dec 18, 2008 2:31 am
Profile ICQ WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

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 wSTSoftware.