
Re: Using Terminal Menu's in a script
Thanks Singularity. When I use getCourse in a script, it just returns the length of the course, what I wanted was the actual sectors along the route.
So I was going to have the script go to the Computer Prompt in the game, plot a course and capture the lines as they came out, then strip out the > and ( ) and be left with the numbers (after I used mergeText to combine the lines). Thanks for reminding me about CIM, the CIM would probably be faster I'm guessing.
I was just thinking that TWX_PLOTCOURSE might work if it saved the course as one variable and then dumped that to the screen when you used the menu's in TWX under 'data' and selected 'plot course' or whatever it was.
My idea if TWX_PLOTCOURSE worked like that was to pluck out each sector in the route, and use them to populate an array, then you could use it for various things - such as keeping track of your route so like if you are moving and don't want to run up on an enemy sector you could have your script run scans and check the next sector in your route to see if there's anything in there.
I know there are scripts out there that already have that in there, like world trade and world SSM scripts with protection, was just using it as a simple scripting exercise to try to get back into the swing of things, my skills are a *bit* rusty
