Here's my first released plugin for X². It's mainly aimed at those who find the Pirates useless and/or boring. Pirates will fly with ships from other races, and they will be stronger and better organised.
[AL Plugin] Pirate Guild v1.20 - Intelligent Pirate Behaviours
Changelog:This Plugin for X² give to the Pirates a kind of global A.I.
When the plugin starts, a fixed amount of money is given to the pirates, and a HQ is randomly chosen between the Pirate Bases. This HQ will choose to focuse the attacks on a specific race (the player IS a race) and it will give orders to the other pirates bases. These orders can be :
- Make money : If funds are low, it will give money to the Guild.
- Weaken Defenses : The pirate base will try to destroy the nearest M6 of the target race
- Pillage Sector : The pirate base will send a massive fleet to raid a sector
- Patrol : Some pirate ships will patrol to another pirate owned sector
- Reinforce : The pirate base will build some ships
- Send fleet to HQ : Some ships will be sent to the HQ.
- Attack TL / TS : Attacking transport ships
By the way, each pirate base will defend itself against offenders. They will also try to hack nearby enemy M3 ships in order to get control over them. They will also attack specific TS in order to make money. The pirate bases will also buy M3 ships from different races. When the funds are high enough the HQ can decide to buy a Teladi M6 Corvette to protect one of its sectors.
Finally, when the HQ reach a given amount of docked ships, it will decide to launch a massive attack fleet against a sector of the targeted race. After this assault, a new random HQ is set and a new target race will be selected.
Code: Select all
Version 1.20
(+) Pirates bases can buy LaserTowers (up to 4 by pirate base)
(+) If Jumpfleet 1.6 or more is installed and factory respawn is activated, the Pirate Guild can attack stations
(+) You are paid for killing Pirate M6 (50k)
(+) You are paid for the destruction of Pirate Bases (100k)
Version 1.16
(+) Small code improvements
(*) Major CTD fixed (READ THE README.TXT)
(*) AI always check if the Pirate base still exists before giving orders to it
(*) Patrol Fix : Less ships used.
(*) Patrol Fix : If no pirate sector found in range, the patrol will be sent in a random sector
(*) Invasion Fix : Using a timer to recall ships
(*) Defense Fix : Base defense radius reduced from 100km to 30km
(-) Pirates cannot buy LaserTowers anymore (will be fixed soon i hope)
Version 1.15
(+) Pirates bases can buy LaserTowers
(+) Fleets sent against a M6 or a TL has been reduced
(+) Maximum amount of ships owned by a same Pirate Base has been reduced
(*) Bugfix : Plugin is compatible with X² Firelance mod
Version 1.10
(+) Lot of scripts rewritten from scratch
(+) Pirates can now target TL ships
(+) Pirate Bases can attack from a greater distance
(+) Rebalanced the size of some fleets
(+) Better Weapons in pirate M3 and M6
(*) BUGFIX : Pirates aren't able anymore to hack the playership
Compatibility: The v1.4 of X² is required. This plugin can be used in any universe that have some pirate bases inside. This plugin can be activated or desactivated easily in the Artificial Life Menu located in the Option Panel ([Shift]+O). It should be compatible with all other mods and plugins and no restart is needed.
Best Played with:
- Terradine Universe mod.
- XaiCorp Advanced Combat Project from Moggy2.
- Race Response Fleets plugin from LV.
- Pirate Base respawn set to ON
Download Link: HERE
(Please read the Readme.txt for installation details)
If you are updating from a previous version, It's more secure to desactivate the plugin, wait about 20-30 game minutes, and save your game before overwritting the files.
Enjoy