Frenzy AI version 1.04

Basic Info:

The code is quite simple.  Each cpu player is given a hate level toward the human player.  As human players capture cities, do battles, or nuke the cpu players, that cpu's hate level will rise.  When its high enough, it'll enter Frenzy stage 1.  Hate level will also automatically rise, whenever the human player advance through an age.

There are 5 stages of Frenzy:
Frenzy stage 0: game uses the normal game ai routine.
Frenzy stage 1: cpu will dedicate 1 large stack to attack the human player.  If cpu has twice as many units as the human player, it'll dedicate a second stack to attack the human player.
Frenzy stage 2: cpu will launch any large stacks that is found, to assault the human player.
Frenzy stage 3: cpu will launch even small stacks that is found, to assault the human player.
Frenzy stage 4: cpu will launch any stacks that is greater than size 2, to assault the human player.  Plus, once any cpu enter this Frenzy stage, ALL cpu will automatically be set to Frenzy Stage 4.  This is to simulate a massive AI alliance to defeat the over-aggressive human player, and to prevent the human player from deviously divide and conquer the AI players.  Once the AI enters stage 4, it'll remain in stage 4 ... forever!

If you wish to reset the hatelevel during midgame, you can bring up the editor, and do a reloadslic.  That'll reload the slic code, and initialize all hate level and frenzy back to 0.

--------------------------------------------------------------------------------------------------------------------------
Version 1.04
-bug fixed, so now, cpu special units shouldn't be forced group any more, really!
-bug fixed, so now, hatelevel rises only when the human player advance through the ages.  Previously, each cpu player who advances through the ages, raise the hatelevel for all cpu players.  That was a mistake.
-hate level change is tweaked.  It'll now rise slower than before.
[note: overall, version 1.04 should be much more fair than previously version.  This may mean an easier game..]

Version 1.03
-name changed to Frenzy AI.
-code optimized by Locutus to run faster.
-cpu special units won't be forced group any more.
-cpu units in cities won't be forced group any more.
-armies will attempt to target closest human city, not the human 1st city.
[note: currently, hate level is set so that after capturing 5-6 cities or 3-4 nukes, all ai will gang up on you.  Too extreme? shrug]

Version 1.02
-some bugs fixed.
-lots weird statements that made no sense whatsoever removed. :p
-the FRENZY messages removed.
-Capturing any AI city will make rest of the AI players hate you more, though not as much as the AI you captured the city from.
-AI players will hate you more, as you advance through the ages.


NOTE: as always, feel free to change any part of the mod to suit your purposes.  If you want to use any part of this code for your own mod, feel free to do so.  No permission needed.