FORTRESS SHIELD shipsystem AI

From Starsector Wiki
Jump to navigation Jump to search

This is a stock AI. It is used by defining it in the ship system's .system json file under aiType. For example; "aiType":"FORTRESS_SHIELD".

The AI attempts to use the system only when it considers it a tactical and mathematical advantage. It will not use it simply because there is damage incoming: the incoming damage (or rather, the portion of that damage that gets reduced) must be higher than the upkeep cost of the system for the AI to even consider its use.

Even when activating the shield is the correct move mathematically, the AI will not always attempt to use the system. It also takes its own weapon cooldowns and flux generation into consideration, preferring to use the system when it has little opportunity to dish out damage, such as when all its weapons are on cooldown.

Notable information

This AI type determines how much damage reduction its related system gives by running the associated stat-script in a paused state: should the damage reduction not be applied when paused, the AI cannot figure out how much damage reduction the system gives, and defaults to zero.

Thus, it is important that any ship system script that uses this AI has all modifications to shield strength and damage reduction added in such a way that they can take effect in a paused state, or the system AI will not work as intended, if at all.

Icon cross.png
At least two versions out of date. Last verified for version 0.8.1a. Please refer to Version History and update this page.

---

Return to Modding