Does anyone have any idea where is the AI script for FORTRESS_SHIELD? I can find the stats script, but not the AI version.
Pretty sure only one ShipSystemAI example is provided and it's a dummy script with nothing or almost nothing in it - that's why I volunteered my own scripts as templates.
I am studying your code, but i would like to know what exactly is in the fortress shield AI since I am implementing a slightly different version of it.
Also guys how do i get the parent module of a module in a ship?
ship.getParentStation() is returning null, my ship does have SHIP_WITH_MODULES tag and all.
Edit to make things clear
This is the ship
Rottweiler,edshipyard_rottweiler,Heavy Cruiser,ED Shipyard,fortressshield,17,8000,1500,10000,9000,450,175,,30,20,10,12,12,2250,FRONT,,150,0.6,0.6,,,200,300,150,150,5,30,8,175000,4,12,540,0.25,28,28,SHIP_WITH_MODULES,rare_bp,,0.4,2,3,404
This is the module
,edshipyard_leonberger_midplate,Shield Module,,module_fortressshield,1,2000,1200,7400,5000,250,24,,0,0,0,10,10,600,FRONT,,90,0.1,1,,,0,0,0,0,1,0,,75000,,1,840,0.25,0,0,"UNBOARDABLE, HIDE_IN_CODEX",,,0.5,2,3,2100
I am editing the module_fortressshield, so that the module don't use it while the parent shield is on.