In the opening scene of Temple of the Twelve, the heroes are attacked by a Thaumtech Cairncarver.
The gunners have "gunnery +12."
What? How? What does this mean?
Gunnery Check = 1d20 + the gunner’s base attack bonus or the gunner’s ranks in the Piloting skill + the gunner’s Dexterity modifier + bonuses from computer systems + bonuses from the captain and science officers + range penalty
So the entire crew is around level 2 based on the "2 ranks" next to everything the entire crew has. Gunnery is BAB or Piloting (so probably +3 BAB), then DEX. So +4 DEX? That gives +7. How do they have +12? Where is this extra +5 coming from?
Does "ranks" mean the full skill, then DEX mod again? How are they getting such a high number?
I wish the enemy ship stat block was easier to read as "+12 gunnery" is obviously a typo and I wish I could reverse-engineer this myself.
EDIT: In fact, looking at the stats, I'm certain that they took their full Piloting skill and added their Dex Mod again and then the bonus +1 to Piloting checks by the computer. That would give them +8 Piloting, +3 Dex and +1 bonus Piloting.
Meanwhile if you give them a gun they shoot at +5. And the AC of space ships is lower because there's no cover in space.