I've got this code :
Code: Select all
$Target.Ship = [THIS]-> call script 'xmr.prepare.ship' : NeededClass=null NeededType=$Target.Type NeededRace=[Pirates] Sector=$CounterWave.StartSector PosX=$PosX PosY=$PosY PosZ=$PosZ MaxTuningOffset=0 ShipCustomName=$Target.Name ShipNameColor=null
$RandomConqueredSector.Outpost = find station: sector=$RandomConqueredSector class or type={Argon Military Outpost} race=[Argon] flags=0 refobj=null maxdist=0 maxnum=0 refpos=null
START $Target.Ship-> call script '!fight.attack.object' : victim=$RandomConqueredSector.Outpost follow=0 onlyShields=[FALSE]
*debug
$Target.Ship -> set owner race to [Pirates]
$Target.Ship.Race = $Target.Ship -> get owner race
write to player logbook $Target.Ship.Race
What I did in this game was to change the owner race of the sector, and create an Outpost... (so it's no more pirates, it's Argon)
I'm running on Litcube Universe, with no biggy scripts.