Someone around here has the only current solution to your problem in their signature.
A skinning guy I think so go browse that section of the forum.
I quess you are talking about me?
You can create npc factions:
/faction_create_as
-negativeID factionName playerName [this one doesn't need to be a real player]
And you can set relations to other factions:
/faction_mod_relation
ID otherFactionID enemy
But they do not spawn by themselves and ship with active ai that are part of that faction don't move except they have a enemy. To spawn them check the different spawn commands. For example:
/spawn_mobs shipBlueprint
ID mobCount
Created 6 npc factions once and wrote a small script to spawn random amount of ships of random factions in a random location around a sector.
Here you can three factions in action. Two factions have their relation set to enemy and the third one is neutral to both.
And
here you can see ships of each faction fighting their enemies. Try to ignore the fractals... there was a corrupted shader file that made planet atmosphere look like huge triangles