OK, I'm not really into that for now, but the main problem I had was to modify the skirmish games in order to make the game check periodically for fighters docked. In that case, corvettes, since czacen had the great idea of putting all the bombers in that category, which simplify everything. Once a SOB group is created with all the corvettes currently sitting inside a dock, the game ought to repair a specific subsystem, which is, in some WIP versions of mine, holding the torpedoes. The ammunition system work as follows: there are two nearly identical launchers in the subs, but one will not throw the munition far enough and it will crash on launch, dealing some zone damage, thus damaging the subsystem (this being called "Torpedo Ammunition" and the player can click on it to see how much ammo his/her flight has left), while the true torp is flying away, ready to vent a capship. This subs doesn't regenerate manually, and, once knocked out, doesn't fire any longer.
But when the corvette docks, the subs isn't repaired by the carrier, so I have to select all those docked ships and do that specific action, which is linked to SOB groups, if some advice given on Tanis was right.