How to get AI ships to protect their sector

The place to discuss scripting and game modifications for X²: The Threat.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

Slocket
Posts: 501
Joined: Thu, 27. Nov 03, 21:54
x2

Post by Slocket »

Was not the Collasus (under patch 1.1) disabled to stop a bug from v.0 where it attacking the priate base way north of there and the laset Tower firing caused a savegame curruption bug? It is in the read txt of the patch.

If you re-enable the Collosus to attack, will not cause the bug to re-appear? Or for that matter, anything that causes the Pirate bases Laser Towers to fire? :?
User avatar
Reven
Posts: 1133
Joined: Thu, 10. Jul 03, 07:42
x4

Post by Reven »

The lasertower issue was a big in the code where a lasertower that was off the grid by a certain distance would cause the game to crash when it fired. They fixed the bug, so now lasertowers off the edge of the map don't do this any more.

As mentioned in the instructions, though, if you don't want the ship to attack enemies past the edge of the map, then you can use the ForceProtectLocation scriptlet that will allow you to set a location and a radius for the ship to protect. The ship will then not engage any ship beyond that kill radius from the location you specify.
You were warned... pirates will be hunted down like vermin.

Ex Turbo Modestum
PegasusJF31
Posts: 76
Joined: Thu, 18. Dec 03, 02:19
x2

The possiblities

Post by PegasusJF31 »

Theoretically, you could use this for one of your ships to keep watch over a sector, right?
PegasusJF31
Posts: 76
Joined: Thu, 18. Dec 03, 02:19
x2

The possiblities

Post by PegasusJF31 »

Theoretically, you could use this for one of your ships to keep watch over a sector, right?
User avatar
ShaggyMoose
Posts: 241
Joined: Sun, 30. Nov 03, 07:42
x2

Re: How to get AI ships to protect their sector

Post by ShaggyMoose »

Reven wrote:Make sure you are not in the sector where the target ship is located. This is important.
Why?
Orion1632
Posts: 1334
Joined: Sun, 14. Dec 03, 09:55
x4

Post by Orion1632 »

well just destroy the pirate base and then set the colossus to protect the sector!

even if you want to use your own ship to protect the sector you still have to get rid of the base, or set pirates to friend.
Omicron
Posts: 1113
Joined: Tue, 8. Jul 03, 21:21
x2

Post by Omicron »

um, cant seem to dload the scripts, are they on xscripting.com?

EDIT: sorted, just saw the 'save target link as' note, :D
Animated signature removed - Abyss
[ external image ]
Starkindler
Posts: 29
Joined: Mon, 2. Feb 04, 01:33
x2

Post by Starkindler »

this always gives me a ctd. why?
proteus2
Posts: 291
Joined: Wed, 6. Nov 02, 20:31
x4

Post by proteus2 »

UTTERLY SHAMELESS MEGA-UBER-MONDO-BUMP!
Sig? What sig?
User avatar
JustHere4Coffee
Posts: 1075
Joined: Wed, 6. Nov 02, 20:31
x2

Post by JustHere4Coffee »

ooh, nicely bumped...

not sure I'll be changing that ship, but it'll be fun to disassemble these scripts and see if they can't be applied to my own ships

Return to “X²: The Threat - Scripts and Modding”