Ops, posting at the same time.

Could you explain the main objective of the script?
I don't understand if you are trying to play different factions along the game, or only taking decisions for the AI in some moments.