Nope. Doesn't work.
First I copied the Beginner script thing and then I edited it:
<?xml version="1.0" encoding="utf-8"?>
<root
GrammarVersion="2"
SortOrder="1"
Name="test2"
Description="test.">
<LobbySetupScriptOperations>
DeclareVariable("Int","RandomRoll");
SetNumberOfPlanets(80);
SetMapStyle("Simple");
SetCampaignType("Conquest");
SetShipDifficulty("Complex");
SetCombatStyle("FastAndDangerous");
SetUnitCapScale("Normal");
SetFogOfWarType("Full");
SetShowUnexploredPlanets(1);
SetAutoAIPMagnitude(0);
SetAutoAIPInterval(0);
SetFirstAIDifficulty(10,0);
SetFirstAIHandicap(0);
SetSecondAIDifficulty(10,0);
SetSecondAIHandicap(0);
SetIntVariableToRandom("RandomRoll",1,3);
IfLeftIntEqualToRightInt(RandomRoll,1)
{
SetFirstAIType("Raid_Engine");
SetSecondAIType("OneWayDoormaster");
}
IfLeftIntEqualToRightInt(RandomRoll,2)
{
SetFirstAIType("SpeedRacer");
SetSecondAIType("TagTeamer");
}
IfLeftIntEqualToRightInt(RandomRoll,3)
{
SetFirstAIType("SpireHammer");
SetSecondAIType("SupportCorps");
}
RemoveAllAIModifiers();
RemoveAllFirstPlayerAIPlots();
RemoveAllSecondPlayerAIPlots();
RemoveAllMinorFactions();
SetFirstAIPlayerAIPlotIntensity("Avenger",1);
SetSecondAIPlayerAIPlotIntensity("Avenger",1);
SetFirstAIPlayerAIPlotIntensity("AstroTrains",1);
SetSecondAIPlayerAIPlotIntensity("AstroTrains",1);
SetFirstAIPlayerAIPlotIntensity("EXP2_Subroutines",3);
SetSecondAIPlayerAIPlotIntensity("EXP2_Subroutines",3);
SetFirstAIPlayerAIPlotIntensity("EXP2_AdvancedSubroutines",7);
SetMinorFactionIntensity("HumanResistanceFighters",2);
SetMinorFactionIntensity("ZenithTraders",1);
SetMinorFactionIntensity("ZenithMiners",6);
SetMinorFactionIntensity("ZenithDysonSphere",2);
SetMinorFactionIntensity("ZenithDevourer",1);
SetMinorFactionIntensity("NeinzulRocketryCorps",10);
SetMinorFactionIntensity("NeinzulRoamingEnclaves",2);
SetMinorFactionIntensity("BrokenGolemsHard",4);
SetMinorFactionIntensity("SpirecraftHard",4);
</LobbySetupScriptOperations>
</root>
THIS works as intended but..
..adding "RemoveOptionalShipCategory("x"); or "AddAIModifier("Schizophrenic");" in those 2 places or anywhere else causes the script to stop working.
I tried removing "RemoveAllAIModifiers();" and "AddAllOptionalShipCategories();" but didn't help. I also tried removing all optional ship categories and adding those I want but Nnnope..