Ah, that should be pretty easy. Just copy the
default_ai.mach_ and
default_obj.mach_, rename them to whatever you like (
stargate_ai.mach_ for example) and add these lines to the first rule in the AI or Objectives MACHINE:
SelectShips(1, s.race=@race0@);
Execlist(1, S.this:shieldIntegrity:=4500000;);
SelectShips(2, s.race=@race1@);
Execlist(2, S.this:shieldIntegrity:=4500000;);
@race0@ and @race1@ are placeholders for whatever the player chooses as his or the enemy's race.
Actually you could shorten this a bit, if you're going to set shield integrity to identical values for both fleets. I'd also suggest giving the list a more meaningful name or you may risk colliding with other lists in the AI/Objectives script
For example:
SelectShips(MoreShieldIntegrity, 1);
ExecList(MoreShieldIntegrity, S.this:shieldIntegrity:=4500000;);
Haven't tested it, but it should work. If you're going to select all ships anyway, you don't even need a condition, since SelectShips() already does that for you. (
SelectShips(, ) is actually the same as
Select(, S.ship & ))
To avoid list collisions or other problems, you can even move these lines of code into their own MACHINE and start this new MACHINE with the usual GetMachine()-command from the AI or Objectives MACHINE.