Alas, there is no (working) script command for that and other than a fixed lookup table, noone had a solid solution for how to find out.
So I had to write my own.
Code: Select all
@ $Test = [THIS] -> call script 'lib.gz.is.a.core.sector' : Sector=$sector
1 . . . if the provided sector is a CORE sector
null . . . if it's not
null . . . if the sector does not exist.
Unknown or pirate sectors all follow the same rules as border sectors so my script can not tell the difference.
If a sector is given to the player with the set owner instruction, the library will return the same result as before.
If Argon Prime is player owned it is still a core sector, Ore Belt is not.
Tested with X3 v2.5. Results were 100 % on target.
It will work with other versions but I have no idea if the results will be correct.
Download
This is freeware for all I care.
Everyone has my permission to use it and include it in script packages.