A more indepth bit:
Firstly, you will need to know the basics to scripting. You can see that
here. Now, the command used to stop an AI is:
disableAi(#)
The number is the faction number, which is INDEXED (starts at 0). For example:
The first player control mentioned, EVEN IF IT IS CLOSED, is faction 0, the next is 1, and so on.
However...
where the two opposing factions will not attack each other unless I require them to.
That will be tricky (impossible?). There is a way to disable the AI, but no way to renable them, meaning you'd have a crappy ai if they are attacked (ie, if their base is attacked, the individual units must be able to see the attackers, while normally if you attack one person, that ai will know and send its forces out to get you).
Guess GAE/MegaGlest should improve that by making disableAi a toggle command... (or maybe enableAi?).