(The GUI will simplify this even further)
There are basically stages, conditions, and actions. If all of the conditions are met the computer will perform the specified actions,
It will only check for certain conditions and perform a certain actions based on what "stage" it's in,
Ex: Structure could be attacked and the computer could attack the player with all units, and then change its "stage," then playing an entirely different way.
There's lots of dynamic control with this structure.