Hey guys, since I took an interest in op2, and since I am a AI Coder, I figured I'd check out the AI stuf! :-D
Anyways, I really like what you have here, and I wanted to add on to this topic.
So, here I go.
The way the AI choses between certain "Goals", like which building to build, or what weaponn\technology to research (I haven't played but a few minutes of OP2, so I'm generalizing), by giving each goal a "weight", a number that represents that goal's importance. The way the goal's weight is set is determined by the specific need for that goal. This need could be a lotta of things in a lot of game situations.
Oh, and this also can be used to make a desired goal list, where the most important and primary goal is put at the top, then the ones that are secondary are right below, and it continues down. But, when one goal is finished, the goals in this list are re-evaluated, and resorted, based on their *current* weight, determined, again, by changing game situations.
Hey, is this making any sense? lol.
Cause, I'm not really great at explaining stuff...
I hope it helps, at least! :-D
I'll be back for more AI goodies!