Added after 27 minutes 55 seconds:
Here's the whole script:
Code: Select all
ACTION KingDeadAction5
SCRIPT WORLD
if ((PlayerInGame(5)) &&(!IsPlayerHumanControlled(5))){
SetAIDiplomacyEnabled(5,true);
ForceSurrenderOffer(5, 1);
SetAIDiplomacyEnabled(5,false);
}
else {
CreateNamedGroup("Group_Korea_4");
AddUnitsByTypeToGroup("Group_Korea_4", "MobileUnits", 5, kPlayerMode_Self, NULL);
AddUnitsByAttributeToGroup("Group_Korea_4", "BareBoneBuilding", 5, kPlayerMode_Self, NULL);
if(NumUnitsInGroup("Group_Korea_4") > 0){
SelectGroupForPlayer("Group_Korea_4", 5);
KillSelection();
ClearSelection();
}
}
END_SCRIPT
END_ACTION
![Rolling Eyes :roll:](./images/smilies/icon_rolleyes.gif)