{
  IF ( INT_GAME_TURN == 0 )
  {
    SET $0                                     0
    DO SET_ATTACK_VARIABLE                     $0
    DO SET_DRUM_TOWER_POS                      10 232
    DO STATE_SPELL_DEFENCE                     14 4 ON
    DO STATE_CONSTRUCT_BUILDING                ON
    DO STATE_FETCH_WOOD                        ON
    SET INT_ATTR_ATTACK_PERCENTAGE             50
    SET INT_ATTR_PREF_SPY_TRAINS               0
    SET INT_ATTR_PREF_RELIGIOUS_TRAINS         0
    SET INT_ATTR_PREF_WARRIOR_TRAINS           0
    SET INT_ATTR_PREF_FIREWARRIOR_TRAINS       0
    SET INT_ATTR_PREF_BOAT_HUTS                0
    SET INT_ATTR_PREF_BALLOON_HUTS             0
    SET INT_ATTR_MAX_BUILDINGS_ON_GO           1
    SET INT_ATTR_HOUSE_PERCENTAGE              0
    DO STATE_SHAMAN_GET_WILDS                  ON
    SET INT_ATTR_EXPANSION                     40
    DO STATE_HOUSE_A_PERSON                    ON
    DO STATE_STATE_BRING_NEW_PEOPLE_BACK       ON
    DO STATE_POPULATE_DRUM_TOWER               OFF
    DO STATE_DEFEND                            ON
    DO STATE_DEFEND_BASE                       ON
    SET INT_ATTR_DEFENSE_RAD_INCR              2
    SET INT_ATTR_MAX_DEFENSIVE_ACTIONS         1
    SET INT_ATTR_USE_PREACHER_FOR_DEFENCE      1
    DO STATE_PREACH                            ON
    SET INT_ATTR_SHAMEN_BLAST                  64
    SET INT_ATTR_SPY_CHECK_FREQUENCY           64
    SET INT_ATTR_RETREAT_VALUE                 20
    SET INT_ATTR_BASE_UNDER_ATTACK_RETREAT     1
    SET INT_ATTR_RANDOM_BUILD_SIDE             0
    DO STATE_TRAIN_PEOPLE                      ON
    SET INT_ATTR_PREF_SPY_PEOPLE               0
    SET INT_ATTR_PREF_RELIGIOUS_PEOPLE         0
    SET INT_ATTR_PREF_WARRIOR_PEOPLE           0
    SET INT_ATTR_PREF_FIREWARRIOR_PEOPLE       0
    DO SET_MARKER_ENTRY                        1 1 2 0 2 0 0
    DO SET_MARKER_ENTRY                        2 3 -1 0 1 0 0
    DO MARKER_ENTRIES                          1 2 -1 -1
    SET INT_ATTR_MAX_TRAIN_AT_ONCE             1
    SET INT_ATTR_GROUP_OPTION                  0
    DO STATE_AUTO_ATTACK                       ON
    SET INT_ATTR_COUNT_PREACH_DAMAGE           1
    SET INT_ATTR_MAX_ATTACKS                   1
    SET INT_ATTR_AWAY_BRAVE                    0
    SET INT_ATTR_AWAY_WARRIOR                  34
    SET INT_ATTR_AWAY_RELIGIOUS                34
    SET INT_ATTR_AWAY_SPY                      0
    SET INT_ATTR_AWAY_FIREWARRIOR              34
    SET INT_ATTR_AWAY_SHAMAN                   0
    SET INT_ATTR_BASE_UNDER_ATTACK_RETREAT     1
    SET $1                                     0
    DO SET_NO_BLUE_REINC
    DO CREATE_MSG_NARRATIVE                    149
    DO SET_MSG_AUTO_OPEN_DLG
  }
  ELSE
  {
    EVERY 64
    {
      IF ( INT_MY_NUM_PEOPLE < 8 && INT_MY_NUM_KILLED_BY_HUMAN > 10 )
      {
        IF ( INT_M_BUILDING_MEDIUM_HUT < 1 && INT_M_BUILDING_LARGE_HUT < 1 )
        {
          IF ( INT_M_BUILDING_SMALL_HUT < 1 )
          {
            DO GIVE_UP_AND_SULK                    ON
          }
          ENDIF
        }
        ENDIF
      }
      ENDIF
    }
    EVERY 256
    {
      DO PUT_PERSON_IN_DT INT_FIREWARRIOR 16 14
      DO MARKER_ENTRIES                         1 2 -1 -1
      IF ( INT_MY_NUM_PEOPLE < 6 && INT_GAME_TURN > 1500 )
      {
        DO SEND_ALL_PEOPLE_TO_MARKER             4
      }
      ENDIF
    }
    EVERY 256 133
    {
      IF ( INT_MY_NUM_PEOPLE < 73 )
      {
        DO SET_BUCKET_USAGE                      ON
        DO SET_BUCKET_COUNT_FOR_SPELL INT_BLAST                 8
        DO SET_BUCKET_COUNT_FOR_SPELL INT_CONVERT               8
        DO SET_BUCKET_COUNT_FOR_SPELL INT_SWARM                 32
        DO SET_BUCKET_COUNT_FOR_SPELL INT_INVISIBILITY          40
        DO SET_BUCKET_COUNT_FOR_SPELL INT_SHIELD                48
        DO SET_BUCKET_COUNT_FOR_SPELL INT_LAND_BRIDGE           66
        DO SET_BUCKET_COUNT_FOR_SPELL INT_LIGHTNING             64
        DO SET_BUCKET_COUNT_FOR_SPELL INT_HYPNOTISM             70
        DO SET_BUCKET_COUNT_FOR_SPELL INT_TORNADO               72
        DO SET_BUCKET_COUNT_FOR_SPELL INT_SWAMP                 80
        DO SET_BUCKET_COUNT_FOR_SPELL INT_FLATTEN               100
        DO SET_BUCKET_COUNT_FOR_SPELL INT_EARTHQUAKE            140
        DO SET_BUCKET_COUNT_FOR_SPELL INT_EROSION               168
        DO SET_BUCKET_COUNT_FOR_SPELL INT_FIRESTORM             320
        DO SET_BUCKET_COUNT_FOR_SPELL INT_ANGEL_OF_DEATH        408
        DO SET_BUCKET_COUNT_FOR_SPELL INT_VOLCANO               640
      }
      ELSE
      {
        DO SET_BUCKET_USAGE                      ON
        DO SET_BUCKET_COUNT_FOR_SPELL INT_BLAST                 4
        DO SET_BUCKET_COUNT_FOR_SPELL INT_CONVERT               4
        DO SET_BUCKET_COUNT_FOR_SPELL INT_SWARM                 16
        DO SET_BUCKET_COUNT_FOR_SPELL INT_INVISIBILITY          20
        DO SET_BUCKET_COUNT_FOR_SPELL INT_SHIELD                24
        DO SET_BUCKET_COUNT_FOR_SPELL INT_LAND_BRIDGE           33
        DO SET_BUCKET_COUNT_FOR_SPELL INT_LIGHTNING             32
        DO SET_BUCKET_COUNT_FOR_SPELL INT_HYPNOTISM             35
        DO SET_BUCKET_COUNT_FOR_SPELL INT_TORNADO               36
        DO SET_BUCKET_COUNT_FOR_SPELL INT_SWAMP                 40
        DO SET_BUCKET_COUNT_FOR_SPELL INT_FLATTEN               50
        DO SET_BUCKET_COUNT_FOR_SPELL INT_EARTHQUAKE            70
        DO SET_BUCKET_COUNT_FOR_SPELL INT_EROSION               84
        DO SET_BUCKET_COUNT_FOR_SPELL INT_FIRESTORM             180
        DO SET_BUCKET_COUNT_FOR_SPELL INT_ANGEL_OF_DEATH        204
        DO SET_BUCKET_COUNT_FOR_SPELL INT_VOLCANO               320
      }
      ENDIF
    }
    EVERY 32
    {
      IF ( $1 == 0 )
      {
        DO FLYBY_CREATE_NEW
        DO FLYBY_ALLOW_INTERRUPT                 ON
        DO FLYBY_SET_END_TARGET                  234 24 345 0
        DO FLYBY_SET_EVENT_POS                   248 30 1 20
        DO FLYBY_SET_EVENT_ANGLE                 1131 1 40
        DO FLYBY_SET_EVENT_ZOOM                  -80 1 44
        DO FLYBY_SET_EVENT_POS                   38 22 38 30
        DO FLYBY_SET_EVENT_ANGLE                 1600 41 40
        DO FLYBY_SET_EVENT_ZOOM                  50 45 30
        DO FLYBY_SET_EVENT_POS                   238 48 76 25
        DO FLYBY_SET_EVENT_ZOOM                  -30 78 35
        DO FLYBY_SET_EVENT_ANGLE                 171 81 40
        DO FLYBY_SET_EVENT_POS                   170 78 115 25
        DO FLYBY_SET_EVENT_ZOOM                  0 118 40
        DO FLYBY_SET_EVENT_ANGLE                 1901 121 40
        DO FLYBY_SET_EVENT_POS                   4 106 155 30
        DO FLYBY_SET_EVENT_ANGLE                 509 161 30
        DO FLYBY_SET_EVENT_ZOOM                  10 158 30
        DO FLYBY_SET_EVENT_POS                   54 116 185 30
        DO FLYBY_SET_EVENT_ANGLE                 1253 191 40
        DO FLYBY_SET_EVENT_ZOOM                  -80 190 20
        DO FLYBY_SET_EVENT_ZOOM                  -20 211 19
        DO FLYBY_SET_EVENT_POS                   234 24 230 30
        DO FLYBY_SET_EVENT_ANGLE                 345 231 29
        DO FLYBY_SET_EVENT_ZOOM                  0 230 25
        DO FLYBY_START
        SET $1                                   1
      }
      ENDIF
    }
  }
  ENDIF
}
SCRIPT_END
