descr formations ai

Upload: nikolas-hatzipolitis

Post on 02-Jun-2018

244 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/10/2019 Descr Formations Ai

    1/361

    ;; Rome Total War: "Sinuhet's AI Battle Formations Mod" by Sinuhet/Pavel Vesely; version 6.5, only for RTW 2.0 (vanilla and mods based on the RTW with patch 1.5), September 6, 2006; Corrections and some changes by DVK901 8-14-2009;; (This file was manually modified for a bit more challenging AI in battles - Sinuhet.);; This file describes the unit group formation templates, any number of group formations can be specified; these templates are used to give a group of units a formation, the units available in the group may not; totally fit the template in which case a best-fit is determined when the formation is created;; Formation block positions can either be specified with a relative normalised (x,z) or they can be specified; relative to another formation block (when specifying in this manner rotation CANNOT be given); a formation must be described entirely in one method or the other;;; formation the name given t

    o this formation template;; formation purposes hints to ai for using this formation;; ai_priority hint to the ai,denotes priority of using this template;; BLOCK SPEC;; unit_type specifies unitsthat can be allocated to the block; either :

    -;any;phalanx;non_phalanx_spear;chanting_screeching;ranged_missile_infantry;elephants

    ;heavy_chariots;pilum_infantry; ; the priority dictates the order of assigning different unit types; a priority of zero means that type will only ever be assigned to this block

  • 8/10/2019 Descr Formations Ai

    2/361

    ; to fulfill block minimums; default_melee_state the melee state that will be assigned to units; in the formation; unit_formation the formation the unitswithin this block will be in (wedge, square, ...); unit_density either loose or close; block_formation the formation to organise the block into (square, column, line); normalised_pos (x,z) position relativeto the center of the template (in normalised coords); normalised_rot rotation in degress relative to the orientation of the template; block_relative_pos b x z (x,z) position (in metres) relative to formation block b; inter_unit_spacing distance to space units(in metres); priority dictates the order in which units are assigned to the block

    ;****************************************************************

    ;****************************************************************; Phalanx section;****************************************************************;****************************************************************

    ;*******************************************************************************; Phalanx multiwave attack formation, max 7 phalanx units (created by Sinuhet);*******************************************************************************

    begin_formation phalanx_with_infantry_1d

    ;;; purpose flags - defendingdefend

    ai_priority 2.8

    ; Screen of missile infbegin_block 0

    max_units 5unit_type skirmish infantry

    1.0unit_type chanting_screeching 0.9unit_type missile infantry

    0.8default_melee_state skirmishunit_density close

    max_unit_width 40block_formation lineblock_relative_pos 0 0.0 0.0inter_unit_spacing 2.0priority 0.6

    end_block

    ;; heavy and light infantry before the spearmen

    ;; light and heavy infantry

  • 8/10/2019 Descr Formations Ai

    3/361

    begin_block 1min_units 7unit_type light infantry 1.0

    unit_type heavy infantry 0.9default_melee_state fire_at_willunit_density closeblock_formation lineblock_relative_pos 0 0.0 -7.0inter_unit_spacing 2.0priority 0.90

    end_block

    ;; non_phalanx spearmen infantrybegin_block 2

    min_units 1max_units 7unit_type non_phalanx_spear 1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 1 0.0 -10.0inter_unit_spacing 2.0priority 0.90

    end_block

    ;; phalanx line, maximal 7 phalangesbegin_block 3

    min_units 1max_units 7unit_type phalanx 1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 2 0.0 -10.0inter_unit_spacing 0.3priority 0.95

    end_block

    ;; missile troops behind the spearmenbegin_block 4

    unit_type ranged_missile_infantry1.0

    unit_type missile infantry0.5

    unit_type chanting_screeching 0.3unit_type skirmish infantry

    0.4default_melee_state fire_at_will

    max_unit_width 40block_formation line

    block_relative_pos 3 0.0 -10.0inter_unit_spacing 2.0priority 0.5

    end_block

    begin_dummy_block 5spans 1 2 3 4

    end_dummy_block

  • 8/10/2019 Descr Formations Ai

    4/361

    ;; cavalry on the flanks and back a bit

    ;; left flankbegin_block 6

    not_generalunit_type cavalry 1.0;default_melee_state defendunit_formation squareunit_density closeblock_formation columnblock_relative_pos 3 -10.0 -30.0inter_unit_spacing 4.0priority 0.5

    end_block

    ;; right_flankbegin_block 7

    not_generalunit_type cavalry 1.0;default_melee_state defendunit_formation squareunit_density closeblock_formation columnblock_relative_pos 3 10.0 -30.0

    inter_unit_spacing 4.0priority 0.5end_block

    ;; left flank missile cavbegin_block 8

    not_generalunit_type missile cavalry 1.0default_melee_state skirmishunit_formation squareunit_density closeblock_formation columnblock_relative_pos 6 -5.0 0.0

    inter_unit_spacing 4.0priority 0.6end_block

    ;; right_flank missile cavbegin_block 9

    not_generalunit_type missile cavalry 1.0default_melee_state skirmishunit_formation squareunit_density closeblock_formation columnblock_relative_pos 7 5.0 0.0

    inter_unit_spacing 4.0priority 0.6end_block

    ;; general at the backbegin_block 10

    max_units 1unit_type general_unit

    1.0;default_melee_state defend

  • 8/10/2019 Descr Formations Ai

    5/361

    unit_density closeblock_formation lineblock_relative_pos 5 0.0 -30.0inter_unit_spacing 3.0priority 1.0

    end_block

    ;; any behindbegin_block 11

    unit_type any0.5

    block_formation lineblock_relative_pos 3 0.0 -50.0inter_unit_spacing 0.3priority 0.1

    end_block

    ;; artillery and handler behindbegin_block 12

    unit_type handler1.0

    unit_type siege1.0

    ;;default_melee_state defend

    block_formation lineblock_relative_pos 11 0.0 -20.0inter_unit_spacing 3.0priority 0.1

    end_block

    end_formation

    begin_formation phalanx_with_infantry_1a

    ;;; purpose flags - approachingdefend

    attackai_priority 2.8

    ; Screen of missile infbegin_block 0

    max_units 5unit_type skirmish infantry

    1.0unit_type chanting_screeching 0.9unit_type missile infantry

    0.8default_melee_state fire_at_will_and_skirmish

    unit_density close max_unit_width 40block_formation lineblock_relative_pos 0 0.0 0.0inter_unit_spacing 2.0priority 0.6

    end_block

    ;; heavy and light infantry before the spearmen

  • 8/10/2019 Descr Formations Ai

    6/361

    ;; light and heavy infantrybegin_block 1

    min_units 7unit_type light infantry 1.0

    unit_type heavy infantry 0.9unit_density closeblock_formation lineblock_relative_pos 0 0.0 -7.0inter_unit_spacing 2.0priority 0.90

    end_block

    ;; non_phalanx spearmen infantrybegin_block 2

    min_units 1max_units 7unit_type non_phalanx_spear 1.0;;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 1 0.0 -10.0inter_unit_spacing 2.0priority 0.90

    end_block

    ;; phalanx line, maximal 7 phalangesbegin_block 3

    min_units 1max_units 7unit_type phalanx 1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 2 0.0 -10.0inter_unit_spacing 0.3priority 0.95

    end_block

    ;; missile troops behind the spearmenbegin_block 4

    unit_type ranged_missile_infantry1.0

    unit_type missile infantry0.5

    unit_type chanting_screeching 0.3unit_type skirmish infantry

    0.4default_melee_state fire_at_will

    max_unit_width 40block_formation line

    block_relative_pos 3 0.0 -10.0inter_unit_spacing 2.0priority 0.5

    end_block

    begin_dummy_block 5spans 1 2 3 4

    end_dummy_block

  • 8/10/2019 Descr Formations Ai

    7/361

    ;; cavalry on the flanks and back a bit

    ;; left flankbegin_block 6

    not_generalunit_type cavalry 1.0;default_melee_state defendunit_formation squareunit_density closeblock_formation columnblock_relative_pos 3 -10.0 -30.0inter_unit_spacing 4.0priority 0.5

    end_block

    ;; right_flankbegin_block 7

    not_generalunit_type cavalry 1.0;default_melee_state defendunit_formation squareunit_density closeblock_formation columnblock_relative_pos 3 10.0 -30.0

    inter_unit_spacing 4.0priority 0.5end_block

    ;; left flank missile cavbegin_block 8

    not_generalunit_type missile cavalry 1.0;default_melee_state skirmishunit_formation squareunit_density closeblock_formation columnblock_relative_pos 6 -5.0 0.0

    inter_unit_spacing 4.0priority 0.6end_block

    ;; right_flank missile cavbegin_block 9

    not_generalunit_type missile cavalry 1.0;default_melee_state skirmishunit_formation squareunit_density closeblock_formation columnblock_relative_pos 7 5.0 0.0

    inter_unit_spacing 4.0priority 0.6end_block

    ;; general at the backbegin_block 10

    max_units 1unit_type general_unit

    1.0;default_melee_state defend

  • 8/10/2019 Descr Formations Ai

    8/361

    unit_density closeblock_formation lineblock_relative_pos 5 0.0 -30.0inter_unit_spacing 3.0priority 1.0

    end_block

    ;; any behindbegin_block 11

    unit_type any0.5

    block_formation lineblock_relative_pos 3 0.0 -50.0inter_unit_spacing 0.3priority 0.1

    end_block

    ;; artillery and handler behindbegin_block 12

    unit_type handler1.0

    unit_type siege1.0

    default_melee_state fire_at_will

    block_formation lineblock_relative_pos 11 0.0 -20.0inter_unit_spacing 3.0priority 0.1

    end_block

    end_formation

    begin_formation phalanx_with_infantry_1b

    ;;; purpose flagsattack

    ai_priority 2.8

    ; Screen of missile infbegin_block 0

    max_units 5unit_type skirmish infantry

    1.0unit_type chanting_screeching 0.9unit_type missile infantry

    0.8default_melee_state fire_at_will_and_skirmishunit_density close

    max_unit_width 40block_formation lineblock_relative_pos 0 0.0 0.0inter_unit_spacing 2.0priority 0.6

    end_block

    ;; heavy and light infantry before the spearmen

    ;; light and heavy infantry

  • 8/10/2019 Descr Formations Ai

    9/361

    begin_block 1min_units 7unit_type light infantry 1.0

    unit_type heavy infantry 0.9default_melee_state fire_at_willunit_density closeblock_formation lineblock_relative_pos 0 0.0 -7.0inter_unit_spacing 2.0priority 0.90

    end_block

    ;; non_phalanx spearmen infantrybegin_block 2

    min_units 1max_units 7unit_type non_phalanx_spear 1.0unit_density closeblock_formation lineblock_relative_pos 1 0.0 -10.0inter_unit_spacing 2.0priority 0.90

    end_block

    ;; phalanx line, maximal 7 phalangesbegin_block 3min_units 1max_units 7unit_type phalanx 1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 2 0.0 -10.0inter_unit_spacing 0.3priority 0.95

    end_block

    ;; missile troops behind the spearmenbegin_block 4unit_type ranged_missile_infantry

    1.0unit_type missile infantry

    0.5unit_type chanting_screeching 0.3unit_type skirmish infantry

    0.4default_melee_state fire_at_will_and_skirmish

    max_unit_width 40block_formation lineblock_relative_pos 3 0.0 -10.0

    inter_unit_spacing 2.0priority 0.5end_block

    begin_dummy_block 5spans 1 2 3 4

    end_dummy_block

    ;; cavalry on the flanks and back a bit

  • 8/10/2019 Descr Formations Ai

    10/361

    ;; left flankbegin_block 6

    not_generalunit_type cavalry 1.0default_melee_state im_an_invalid_commandunit_formation squareunit_density closeblock_formation columnblock_relative_pos 5 -20.0 -40.0inter_unit_spacing 4.0priority 0.5

    end_block

    ;; right_flankbegin_block 7

    not_generalunit_type cavalry 1.0default_melee_state im_an_invalid_commandunit_formation squareunit_density closeblock_formation columnblock_relative_pos 5 20.0 -40.0inter_unit_spacing 4.0

    priority 0.5end_block

    ;; left flank missile cavbegin_block 8

    not_generalunit_type missile cavalry 1.0default_melee_state fire_at_will_and_skirmishunit_formation squareunit_density closeblock_formation columnblock_relative_pos 6 -5.0 0.0inter_unit_spacing 4.0

    priority 0.6end_block

    ;; right_flank missile cavbegin_block 9

    not_generalunit_type missile cavalry 1.0default_melee_state fire_at_will_and_skirmishunit_formation squareunit_density closeblock_formation columnblock_relative_pos 7 5.0 0.0inter_unit_spacing 4.0

    priority 0.6end_block

    ;; general at the backbegin_block 10

    max_units 1unit_type general_unit

    1.0;default_melee_state defendunit_density close

  • 8/10/2019 Descr Formations Ai

    11/361

    block_formation lineblock_relative_pos 5 0.0 -30.0inter_unit_spacing 3.0priority 1.0

    end_block

    ;; any behindbegin_block 11

    unit_type any0.5

    block_formation lineblock_relative_pos 5 0.0 -50.0inter_unit_spacing 0.3priority 0.1

    end_block

    ;; artillery and handler behindbegin_block 12

    unit_type handler1.0

    unit_type siege1.0

    block_formation lineblock_relative_pos 11 0.0 -20.0

    inter_unit_spacing 3.0priority 0.1end_block

    end_formation

    ;*********************************************************************************************; Phalanx multiwave attack formation - 2nd version, max 7 phalanx units (created by Sinuhet);*********************************************************************************************

    begin_formation phalanx_with_infantry_2d

    ;;; purpose flags - defenddefend

    ai_priority 2.8

    ; Screen of missile infbegin_block 0

    max_units 5unit_type skirmish infantry

    1.0

    unit_type chanting_screeching 0.9unit_type missile infantry0.8

    ;default_melee_state skirmishunit_density close

    max_unit_width 40block_formation lineblock_relative_pos 0 0.0 0.0inter_unit_spacing 2.0priority 0.6

  • 8/10/2019 Descr Formations Ai

    12/361

    end_block

    ;; heavy and light infantry before the spearmen

    ;; light infantrybegin_block 1

    min_units 3max_units 9unit_type light infantry 1.0

    unit_type heavy infantry 0.8default_melee_state fire_at_willunit_density closeblock_formation lineblock_relative_pos 0 0.0 -7.0inter_unit_spacing 2.0priority 0.90

    end_block

    ;; heavy infantrybegin_block 2

    min_units 4max_units 10unit_type heavy infantry 1.0unit_type light infantry 0.8

    default_melee_state fire_at_willunit_density closeblock_formation lineblock_relative_pos 1 0.0 -10.0inter_unit_spacing 2.0priority 0.90

    end_block

    ;; phalanx line, maximal 7 phalangesbegin_block 3

    min_units 1max_units 7unit_type phalanx 1.0

    ;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 2 0.0 -10.0inter_unit_spacing 0.3priority 0.95

    end_block

    ;; missile troops behind the spearmenbegin_block 4

    unit_type ranged_missile_infantry1.0

    unit_type missile infantry

    0.5 unit_type chanting_screeching 0.3unit_type skirmish infantry

    0.4default_melee_state fire_at_will

    max_unit_width 40block_formation lineblock_relative_pos 3 0.0 -10.0inter_unit_spacing 2.0priority 0.5

  • 8/10/2019 Descr Formations Ai

    13/361

    end_block

    begin_dummy_block 5spans 1 2 3 4

    end_dummy_block

    ;; cavalry on the flanks and back a bit

    ;; left flankbegin_block 6

    not_generalunit_type cavalry 1.0;default_melee_state defendunit_formation squareunit_density closeblock_formation columnblock_relative_pos 3 -10.0 -30.0inter_unit_spacing 4.0priority 0.5

    end_block

    ;; right_flankbegin_block 7

    not_generalunit_type cavalry 1.0;default_melee_state defendunit_formation squareunit_density closeblock_formation columnblock_relative_pos 3 10.0 -30.0inter_unit_spacing 4.0priority 0.5

    end_block

    ;; left flank missile cavbegin_block 8

    not_generalunit_type missile cavalry 1.0;default_melee_state skirmishunit_formation squareunit_density closeblock_formation columnblock_relative_pos 6 -5.0 0.0inter_unit_spacing 4.0priority 0.6

    end_block

    ;; right_flank missile cavbegin_block 9

    not_generalunit_type missile cavalry 1.0;default_melee_state skirmishunit_formation squareunit_density closeblock_formation columnblock_relative_pos 7 5.0 0.0inter_unit_spacing 4.0priority 0.6

    end_block

  • 8/10/2019 Descr Formations Ai

    14/361

    ;; general at the backbegin_block 10

    max_units 1unit_type general_unit

    1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 5 0.0 -30.0inter_unit_spacing 3.0priority 1.0

    end_block

    ;; any behindbegin_block 11

    unit_type any0.5

    block_formation lineblock_relative_pos 3 0.0 -50.0inter_unit_spacing 0.3priority 0.1

    end_block

    ;; artillery and handler behindbegin_block 12unit_type handler

    1.0unit_type siege

    1.0default_melee_state fire_at_willblock_formation lineblock_relative_pos 11 0.0 -20.0inter_unit_spacing 3.0priority 0.1

    end_block

    end_formation

    begin_formation phalanx_with_infantry_2a

    ;;; purpose flags - approachingdefendattack

    ai_priority 2.8

    ; Screen of missile infbegin_block 0

    max_units 5unit_type skirmish infantry1.0

    unit_type chanting_screeching 0.9unit_type missile infantry

    0.8default_melee_state fire_at_will_and_skirmishunit_density close

    max_unit_width 40block_formation line

  • 8/10/2019 Descr Formations Ai

    15/361

    block_relative_pos 0 0.0 0.0inter_unit_spacing 2.0priority 0.6

    end_block

    ;; heavy and light infantry before the spearmen

    ;; light infantrybegin_block 1

    min_units 3max_units 9unit_type light infantry 1.0

    unit_type heavy infantry 0.8unit_density closeblock_formation lineblock_relative_pos 0 0.0 -7.0inter_unit_spacing 2.0priority 0.90

    end_block

    ;; heavy infantrybegin_block 2

    min_units 4max_units 10

    unit_type heavy infantry 1.0unit_type light infantry 0.8unit_density closeblock_formation lineblock_relative_pos 1 0.0 -10.0inter_unit_spacing 2.0priority 0.90

    end_block

    ;; phalanx line, maximal 7 phalangesbegin_block 3

    min_units 1max_units 7

    unit_type phalanx 1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 2 0.0 -10.0inter_unit_spacing 0.3priority 0.95

    end_block

    ;; missile troops behind the spearmenbegin_block 4

    unit_type ranged_missile_infantry1.0

    unit_type missile infantry0.5unit_type chanting_screeching 0.3unit_type skirmish infantry

    0.4default_melee_state fire_at_will

    max_unit_width 40block_formation lineblock_relative_pos 3 0.0 -10.0inter_unit_spacing 2.0

  • 8/10/2019 Descr Formations Ai

    16/361

    priority 0.5end_block

    begin_dummy_block 5spans 1 2 3 4

    end_dummy_block

    ;; cavalry on the flanks and back a bit

    ;; left flankbegin_block 6

    not_generalunit_type cavalry 1.0;default_melee_state defendunit_formation squareunit_density closeblock_formation columnblock_relative_pos 3 -10.0 -30.0inter_unit_spacing 4.0priority 0.5

    end_block

    ;; right_flank

    begin_block 7not_generalunit_type cavalry 1.0;default_melee_state defendunit_formation squareunit_density closeblock_formation columnblock_relative_pos 3 10.0 -30.0inter_unit_spacing 4.0priority 0.5

    end_block

    ;; left flank missile cav

    begin_block 8not_generalunit_type missile cavalry 1.0;default_melee_state skirmishunit_formation squareunit_density closeblock_formation columnblock_relative_pos 6 -5.0 0.0inter_unit_spacing 4.0priority 0.6

    end_block

    ;; right_flank missile cav

    begin_block 9not_generalunit_type missile cavalry 1.0;default_melee_state skirmishunit_formation squareunit_density closeblock_formation columnblock_relative_pos 7 5.0 0.0inter_unit_spacing 4.0priority 0.6

  • 8/10/2019 Descr Formations Ai

    17/361

    end_block

    ;; general at the backbegin_block 10

    max_units 1unit_type general_unit

    1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 5 0.0 -30.0inter_unit_spacing 3.0priority 1.0

    end_block

    ;; any behindbegin_block 11

    unit_type any0.5

    block_formation lineblock_relative_pos 3 0.0 -50.0inter_unit_spacing 0.3priority 0.1

    end_block

    ;; artillery and handler behindbegin_block 12

    unit_type handler1.0

    unit_type siege1.0

    ;default_melee_state defendblock_formation lineblock_relative_pos 11 0.0 -20.0inter_unit_spacing 3.0priority 0.1

    end_block

    end_formation

    begin_formation phalanx_with_infantry_2b

    ;;; purpose flagsattack

    ai_priority 2.8

    ; Screen of missile infbegin_block 0

    max_units 5unit_type skirmish infantry1.0

    unit_type chanting_screeching 0.9unit_type missile infantry

    0.8default_melee_state fire_at_will_and_skirmishunit_density close

    max_unit_width 40block_formation line

  • 8/10/2019 Descr Formations Ai

    18/361

    block_relative_pos 0 0.0 0.0inter_unit_spacing 2.0priority 0.6

    end_block

    ;; heavy and light infantry before the spearmen

    ;; light infantrybegin_block 1

    min_units 3max_units 9unit_type light infantry 1.0

    unit_type heavy infantry 0.8default_melee_state fire_at_willunit_density closeblock_formation lineblock_relative_pos 0 0.0 -7.0inter_unit_spacing 2.0priority 0.90

    end_block

    ;; heavy infantrybegin_block 2

    min_units 4

    max_units 10unit_type heavy infantry 1.0unit_type light infantry 0.8default_melee_state fire_at_willunit_density closeblock_formation lineblock_relative_pos 1 0.0 -10.0inter_unit_spacing 2.0priority 0.90

    end_block

    ;; phalanx line, maximal 7 phalangesbegin_block 3

    min_units 1max_units 7unit_type phalanx 1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 2 0.0 -10.0inter_unit_spacing 0.3priority 0.95

    end_block

    ;; missile troops behind the spearmenbegin_block 4

    unit_type ranged_missile_infantry1.0unit_type missile infantry

    0.5unit_type chanting_screeching 0.3unit_type skirmish infantry

    0.4default_melee_state fire_at_will_and_skirmish

    max_unit_width 40block_formation line

  • 8/10/2019 Descr Formations Ai

    19/361

    block_relative_pos 3 0.0 -10.0inter_unit_spacing 2.0priority 0.5

    end_block

    begin_dummy_block 5spans 1 2 3 4

    end_dummy_block

    ;; cavalry on the flanks and back a bit

    ;; left flankbegin_block 6

    not_generalunit_type cavalry 1.0default_melee_state im_an_invalid_commandunit_formation squareunit_density closeblock_formation columnblock_relative_pos 5 -20.0 -40.0inter_unit_spacing 4.0priority 0.5

    end_block

    ;; right_flankbegin_block 7

    not_generalunit_type cavalry 1.0default_melee_state im_an_invalid_commandunit_formation squareunit_density closeblock_formation columnblock_relative_pos 5 20.0 -40.0inter_unit_spacing 4.0priority 0.5

    end_block

    ;; left flank missile cavbegin_block 8

    not_generalunit_type missile cavalry 1.0default_melee_state fire_at_will_and_skirmishunit_formation squareunit_density closeblock_formation columnblock_relative_pos 6 -5.0 0.0inter_unit_spacing 4.0priority 0.6

    end_block

    ;; right_flank missile cavbegin_block 9

    not_generalunit_type missile cavalry 1.0default_melee_state fire_at_will_and_skirmishunit_formation squareunit_density closeblock_formation columnblock_relative_pos 7 5.0 0.0

  • 8/10/2019 Descr Formations Ai

    20/361

    inter_unit_spacing 4.0priority 0.6

    end_block

    ;; general at the backbegin_block 10

    max_units 1unit_type general_unit

    1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 5 0.0 -30.0inter_unit_spacing 3.0priority 1.0

    end_block

    ;; any behindbegin_block 11

    unit_type any0.5

    block_formation lineblock_relative_pos 5 0.0 -50.0inter_unit_spacing 0.3

    priority 0.1end_block

    ;; artillery and handler behindbegin_block 12

    unit_type handler1.0

    unit_type siege1.0

    block_formation lineblock_relative_pos 11 0.0 -20.0inter_unit_spacing 3.0priority 0.1

    end_blockend_formation

    ;****************************************************************************************************; Simplified Phalanx attack formation "Philip of Macedon", max 7 phalanx units (created by Sinuhet);****************************************************************************************************

    begin_formation phalanx_attack_1d

    ;;; purpose flags - defendingdefend

    ai_priority 2.8

    supported_factions egypt, seleucid, macedon

    ;; Skirmishing and front attackbegin_block 0

  • 8/10/2019 Descr Formations Ai

    21/361

    max_units 3not_generalunit_type elephants

    1.0unit_type heavy_chariots

    1.0unit_type missile cavalry

    0.9unit_type skirmish infantry

    0.6unit_type chanting_screeching 0.5;default_melee_state skirmishblock_formation lineblock_relative_pos 0 0.0 0.0inter_unit_spacing 4.0priority 1.0

    end_block

    ;; phalanx unitsbegin_block 1

    min_units 3max_units 7unit_type phalanx 1.0;default_melee_state defend

    unit_density closeblock_formation lineblock_relative_pos 0 0.0 -20.0inter_unit_spacing 0.3priority 1.0

    end_block

    ;; infantry troops behind the spearmenbegin_block 2

    max_units 3unit_type heavy infantry 0.9unit_type non_phalanx_spear 0.7unit_type light infantry 0.9

    ;;default_melee_state defendblock_formation lineblock_relative_pos 1 0.0 -15.0inter_unit_spacing 2.0priority 0.8

    end_block

    ;; cavalry left to the phalangesbegin_block 3

    min_units 3max_units 7not_generalunit_type heavy cavalry 1.0

    unit_type light cavalry 0.75;default_melee_state defendunit_formation squareunit_density closeblock_formation columnblock_relative_pos 1 -40.0 -50.0inter_unit_spacing 4.0priority 1.0

    end_block

  • 8/10/2019 Descr Formations Ai

    22/361

    ;; missile troops on both sides

    ;; left sidebegin_block 4

    max_units 3unit_type skirmish infantry

    1.0unit_type missile infantry

    0.6unit_type chanting_screeching 0.5;default_melee_state skirmish

    min_unit_width 30 max_unit_width 35

    block_formation lineblock_relative_pos 1 -3.0 0.0inter_unit_spacing 2.0priority 0.7

    end_block

    ;; right sidebegin_block 5

    max_units 1unit_type skirmish infantry

    1.0

    unit_type missile infantry0.6;default_melee_state skirmish

    min_unit_width 30 max_unit_width 35

    block_formation lineblock_relative_pos 1 3.0 0.0inter_unit_spacing 2.0priority 0.7

    end_block

    ;; missile troops backbegin_block 6

    unit_type ranged_missile_infantry1.0unit_type missile infantry

    0.5default_melee_state fire_at_will

    min_unit_width 30 max_unit_width 35

    block_formation lineblock_relative_pos 2 0.0 -10.0inter_unit_spacing 2.0priority 0.6

    end_block

    ;; general at the backbegin_block 7max_units 1unit_type general_unit

    1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 6 0.0 -5.0inter_unit_spacing 3.0

  • 8/10/2019 Descr Formations Ai

    23/361

    priority 1.0end_block

    ;; any behindbegin_block 8

    max_units 0unit_type any

    0.01block_formation lineblock_relative_pos 7 0.0 -20.0inter_unit_spacing 0.3priority 0.01

    end_block

    ;; artillery and handler behindbegin_block 9

    unit_type handler1.0

    unit_type siege1.0

    default_melee_state fire_at_willblock_formation lineblock_relative_pos 8 0.0 -20.0inter_unit_spacing 3.0

    priority 0.1end_block

    ;; infantry troops prepared in the right wingbegin_block 10

    max_units 3unit_type heavy infantry 0.9unit_type non_phalanx_spear 0.7unit_type light infantry 0.9block_formation columnblock_relative_pos 5 10.0 0.0inter_unit_spacing 2.0priority 0.9

    end_block;; missile cavalry in the right wingbegin_block 11

    max_units 2not_generalunit_type missile cavalry 1.0unit_type light cavalry 0.5;default_melee_state skirmishunit_formation squareunit_density closeblock_formation columnblock_relative_pos 10 10.0 -20.0

    inter_unit_spacing 4.0priority 0.4end_block

    end_formation

    begin_formation phalanx_attack_1a

    ;;; purpose flags - approaching

  • 8/10/2019 Descr Formations Ai

    24/361

    defendattack

    ai_priority 2.8

    supported_factions egypt, seleucid, macedon

    ;; Skirmishing and front attackbegin_block 0

    max_units 3not_generalunit_type elephants

    1.0unit_type heavy_chariots

    1.0unit_type missile cavalry

    0.9unit_type skirmish infantry

    0.6unit_type chanting_screeching 0.5default_melee_state fire_at_will_and_skirmishblock_formation lineblock_relative_pos 0 0.0 0.0inter_unit_spacing 4.0

    priority 1.0end_block

    ;; phalanx unitsbegin_block 1

    min_units 3max_units 7unit_type phalanx 1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 0 0.0 -20.0inter_unit_spacing 0.3

    priority 1.0end_block

    ;; infantry troops behind the spearmenbegin_block 2

    max_units 3unit_type heavy infantry 0.9unit_type non_phalanx_spear 0.7unit_type light infantry 0.9block_formation lineblock_relative_pos 1 0.0 -15.0inter_unit_spacing 2.0priority 0.8

    end_block

    ;; cavalry left to the phalangesbegin_block 3

    min_units 3max_units 7not_generalunit_type heavy cavalry 1.0unit_type light cavalry 0.75;default_melee_state defend

  • 8/10/2019 Descr Formations Ai

    25/361

    unit_formation squareunit_density closeblock_formation columnblock_relative_pos 1 -40.0 -50.0inter_unit_spacing 4.0priority 1.0

    end_block

    ;; missile troops on both sides

    ;; left sidebegin_block 4

    max_units 3unit_type skirmish infantry

    1.0unit_type missile infantry

    0.6unit_type chanting_screeching 0.5default_melee_state fire_at_will_and_skirmish

    min_unit_width 30 max_unit_width 35

    block_formation lineblock_relative_pos 1 -3.0 0.0inter_unit_spacing 2.0

    priority 0.7end_block

    ;; right sidebegin_block 5

    max_units 1unit_type skirmish infantry

    1.0unit_type missile infantry

    0.6default_melee_state fire_at_will_and_skirmish

    min_unit_width 30 max_unit_width 35

    block_formation lineblock_relative_pos 1 3.0 0.0inter_unit_spacing 2.0priority 0.7

    end_block

    ;; missile troops backbegin_block 6

    unit_type ranged_missile_infantry1.0

    unit_type missile infantry0.5

    default_melee_state fire_at_will

    min_unit_width 30 max_unit_width 35block_formation lineblock_relative_pos 2 0.0 -10.0inter_unit_spacing 2.0priority 0.6

    end_block

    ;; general at the backbegin_block 7

  • 8/10/2019 Descr Formations Ai

    26/361

    max_units 1unit_type general_unit

    1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 6 0.0 -30.0inter_unit_spacing 3.0priority 1.0

    end_block

    ;; any behindbegin_block 8

    max_units 0unit_type any

    0.01block_formation lineblock_relative_pos 7 0.0 -20.0inter_unit_spacing 0.3priority 0.01

    end_block

    ;; artillery and handler behindbegin_block 9

    unit_type handler1.0unit_type siege

    1.0default_melee_state fire_at_willblock_formation lineblock_relative_pos 8 0.0 -20.0inter_unit_spacing 3.0priority 0.1

    end_block

    ;; infantry troops prepared in the right wingbegin_block 10

    max_units 3unit_type heavy infantry 0.9unit_type non_phalanx_spear 0.7unit_type light infantry 0.9block_formation columnblock_relative_pos 5 10.0 0.0inter_unit_spacing 2.0priority 0.9

    end_block

    ;; missile cavalry in the right wingbegin_block 11

    max_units 2

    not_generalunit_type missile cavalry 1.0unit_type light cavalry 0.5;default_melee_state skirmishunit_formation squareunit_density closeblock_formation columnblock_relative_pos 10 10.0 -20.0inter_unit_spacing 4.0priority 0.4

  • 8/10/2019 Descr Formations Ai

    27/361

    end_block

    end_formation

    begin_formation phalanx_attack_1b

    ;;; purpose flags - attackingattack

    ai_priority 2.8

    supported_factions egypt, seleucid, macedon

    ;; Skirmishing and front attackbegin_block 0

    max_units 3not_generalunit_type elephants

    1.0unit_type heavy_chariots

    1.0unit_type missile cavalry

    0.9

    unit_type skirmish infantry0.6unit_type chanting_screeching 0.5default_melee_state fire_at_will_and_skirmishblock_formation lineblock_relative_pos 0 0.0 0.0inter_unit_spacing 4.0priority 1.0

    end_block

    ;; phalanx unitsbegin_block 1

    min_units 3

    max_units 7unit_type phalanx 1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 0 0.0 -20.0inter_unit_spacing 0.3priority 1.0

    end_block

    ;; infantry troops behind the spearmenbegin_block 2

    max_units 3

    unit_type heavy infantry 0.9unit_type non_phalanx_spear 0.7unit_type light infantry 0.9default_melee_state fire_at_willblock_formation lineblock_relative_pos 1 0.0 -10.0inter_unit_spacing 2.0priority 0.8

    end_block

  • 8/10/2019 Descr Formations Ai

    28/361

    ;; missile troops backbegin_block 3

    unit_type ranged_missile_infantry1.0

    unit_type missile infantry0.5

    default_melee_state fire_at_will_and_skirmish min_unit_width 30 max_unit_width 35

    block_formation lineblock_relative_pos 2 0.0 -10.0inter_unit_spacing 2.0priority 0.6

    end_block

    ;; missile troops on both sides

    ;; left sidebegin_block 4

    max_units 2unit_type skirmish infantry

    1.0unit_type missile infantry

    0.6

    unit_type chanting_screeching 0.5default_melee_state fire_at_will_and_skirmish min_unit_width 30 max_unit_width 35

    block_formation lineblock_relative_pos 1 -3.0 0.0inter_unit_spacing 2.0priority 0.7

    end_block

    ;; missile troops right sidebegin_block 5

    max_units 1

    unit_type skirmish infantry1.0unit_type missile infantry

    0.6default_melee_state fire_at_will_and_skirmish

    min_unit_width 30 max_unit_width 35

    block_formation lineblock_relative_pos 1 3.0 0.0inter_unit_spacing 2.0priority 0.7

    end_block

    ;; any behindbegin_block 6max_units 0unit_type any

    0.01block_formation lineblock_relative_pos 3 0.0 -30.0inter_unit_spacing 0.3priority 0.01

    end_block

  • 8/10/2019 Descr Formations Ai

    29/361

    ;; artillery and handler behindbegin_block 7

    unit_type handler1.0

    unit_type siege1.0

    block_formation lineblock_relative_pos 1 0.0 -75.0inter_unit_spacing 3.0priority 0.1

    end_block

    begin_dummy_block 8spans 1 2 3 4 5 6

    end_dummy_block

    ;; general at the backbegin_block 9

    max_units 1unit_type general_unit

    1.0;default_melee_state defendunit_density close

    block_formation lineblock_relative_pos 8 0.0 -30.0inter_unit_spacing 3.0priority 1.0

    end_block

    ;; cavalry in the left wingbegin_block 10

    min_units 3max_units 7not_generalunit_type heavy cavalry 1.0unit_type light cavalry 0.75

    default_melee_state im_an_invalid_commandunit_formation squareunit_density closeblock_formation columnblock_relative_pos 1 -40.0 -60.0inter_unit_spacing 4.0priority 1.0

    end_block

    ;; infantry troops in the right wingbegin_block 11

    max_units 3unit_type heavy infantry 0.9

    unit_type non_phalanx_spear 0.7unit_type light infantry 0.9default_melee_state fire_at_willblock_formation columnblock_relative_pos 8 10.0 20.0inter_unit_spacing 2.0priority 0.9

    end_block

    ;; missile cavalry in the right wing

  • 8/10/2019 Descr Formations Ai

    30/361

    begin_block 12max_units 2not_generalunit_type missile cavalry 1.0unit_type light cavalry 0.5default_melee_state fire_at_will_and_skirmishunit_formation squareunit_density closeblock_formation columnblock_relative_pos 8 10.0 -20.0inter_unit_spacing 4.0priority 0.4

    end_block

    end_formation

    ;********************************************************************************; Phalanx double line formation, min 8 phalanx units (created by Sinuhet);********************************************************************************

    begin_formation phalanx_attack_2d

    ;;; purpose flags - defendingdefend

    ai_priority 2.6

    supported_factions carthage, pontus, armenia, egypt, macedon, seleucid, greek_cities, numidia, britons

    ; Screen of missile infbegin_block 0

    max_units 8unit_type skirmish infantry

    1.0

    unit_type chanting_screeching 0.9unit_type missile infantry0.8

    ;default_melee_state skirmishunit_density close

    max_unit_width 40block_formation lineblock_relative_pos 0 0.0 0.0inter_unit_spacing 2.0priority 0.6

    end_block

    ;; first phalanx line

    begin_block 1min_units 4max_units 6unit_type phalanx 1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 0 0.0 -15.0inter_unit_spacing 0.3priority 1.0

  • 8/10/2019 Descr Formations Ai

    31/361

    end_block

    ;; second phalanx linebegin_block 2

    min_units 4max_units 6unit_type phalanx 1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 1 0.0 -15.0inter_unit_spacing 0.3priority 1.0

    end_block

    ;; archers behind the spearmen

    begin_block 3max_units 5unit_type ranged_missile_infantry

    1.0default_melee_state fire_at_will

    max_unit_width 40block_formation line

    block_relative_pos 2 0.0 -10.0inter_unit_spacing 2.0priority 1.0

    end_block

    ;; heavy and light infantry either side of the spearmen

    ;; left sidebegin_block 4

    unit_type heavy infantry 0.9unit_type non_phalanx_spear 0.7unit_type light infantry 0.8default_melee_state fire_at_will

    block_formation columnblock_relative_pos 1 -1.5 0.0inter_unit_spacing 2.0priority 0.8

    end_block

    ;; right sidebegin_block 5

    unit_type heavy infantry 0.9unit_type non_phalanx_spear 0.7unit_type light infantry 0.8default_melee_state fire_at_willblock_formation column

    block_relative_pos 1 1.5 0.0inter_unit_spacing 2.0priority 0.8

    end_block

    begin_dummy_block 6spans 1 2 3 4 5

    end_dummy_block

    ;; cavalry on the flanks and back a bit

  • 8/10/2019 Descr Formations Ai

    32/361

    ;; left flankbegin_block 7

    not_generalunit_type cavalry 1.0;default_melee_state defendunit_formation squareunit_density closeblock_formation columnblock_relative_pos 2 -10.0 -30.0inter_unit_spacing 4.0priority 0.5

    end_block

    ;; right_flankbegin_block 8

    not_generalunit_type cavalry 1.0;default_melee_state defendunit_formation squareunit_density closeblock_formation columnblock_relative_pos 2 10.0 -30.0inter_unit_spacing 4.0

    priority 0.5end_block

    ;; left flank missile cavbegin_block 9

    not_generalunit_type missile cavalry 1.0;default_melee_state skirmishunit_formation squareunit_density closeblock_formation columnblock_relative_pos 7 -5.0 0.0inter_unit_spacing 4.0

    priority 0.6end_block

    ;; right_flank missile cavbegin_block 10

    not_generalunit_type missile cavalry 1.0;default_melee_state skirmishunit_formation squareunit_density closeblock_formation columnblock_relative_pos 8 5.0 0.0inter_unit_spacing 4.0

    priority 0.6end_block

    ;; general at the backbegin_block 11

    max_units 1unit_type general_unit

    1.0;default_melee_state defendunit_density close

  • 8/10/2019 Descr Formations Ai

    33/361

    block_formation lineblock_relative_pos 6 0.0 -30.0inter_unit_spacing 3.0priority 1.0

    end_block

    ;; any behindbegin_block 12

    max_units 0unit_type any

    0.5block_formation lineblock_relative_pos 2 0.0 -50.0inter_unit_spacing 0.3priority 0.1

    end_block

    ;; artillery and handler behindbegin_block 13

    unit_type handler1.0

    unit_type siege1.0

    default_melee_state fire_at_will

    block_formation lineblock_relative_pos 12 0.0 -20.0inter_unit_spacing 3.0priority 0.1

    end_block

    end_formation

    begin_formation phalanx_attack_2a

    ;;; purpose flags - approachingdefend

    attackai_priority 2.6

    supported_factions carthage, pontus, armenia, egypt, macedon, seleucid, greek_cities, numidia, britons

    ; Screen of missile infbegin_block 0

    max_units 8unit_type skirmish infantry

    1.0unit_type chanting_screeching 0.9

    unit_type missile infantry0.8default_melee_state fire_at_will_and_skirmishunit_density close

    max_unit_width 40block_formation lineblock_relative_pos 0 0.0 0.0inter_unit_spacing 2.0priority 0.6

    end_block

  • 8/10/2019 Descr Formations Ai

    34/361

    ;; first phalanx linebegin_block 1

    min_units 4max_units 6unit_type phalanx 1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 0 0.0 -15.0inter_unit_spacing 0.3priority 1.0

    end_block

    ;; second phalanx linebegin_block 2

    min_units 4max_units 6unit_type phalanx 1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 1 0.0 -15.0inter_unit_spacing 0.3

    priority 1.0end_block

    ;; archers behind the spearmen

    begin_block 3max_units 5unit_type ranged_missile_infantry

    1.0default_melee_state fire_at_will

    max_unit_width 40block_formation lineblock_relative_pos 2 0.0 -10.0

    inter_unit_spacing 2.0priority 1.0end_block

    ;; heavy and light infantry either side of the spearmen

    ;; left sidebegin_block 4

    unit_type heavy infantry 0.9unit_type non_phalanx_spear 0.7unit_type light infantry 0.8default_melee_state fire_at_willblock_formation column

    block_relative_pos 1 -1.5 0.0inter_unit_spacing 2.0priority 0.8

    end_block

    ;; right sidebegin_block 5

    unit_type heavy infantry 0.9unit_type non_phalanx_spear 0.7unit_type light infantry 0.8

  • 8/10/2019 Descr Formations Ai

    35/361

    default_melee_state fire_at_willblock_formation columnblock_relative_pos 1 1.5 0.0inter_unit_spacing 2.0priority 0.8

    end_block

    begin_dummy_block 6spans 1 2 3 4 5

    end_dummy_block

    ;; cavalry on the flanks and back a bit

    ;; left flankbegin_block 7

    not_generalunit_type cavalry 1.0;default_melee_state defendunit_formation squareunit_density closeblock_formation columnblock_relative_pos 2 -10.0 -30.0inter_unit_spacing 4.0priority 0.5

    end_block;; right_flankbegin_block 8

    not_generalunit_type cavalry 1.0;default_melee_state defendunit_formation squareunit_density closeblock_formation columnblock_relative_pos 2 10.0 -30.0inter_unit_spacing 4.0priority 0.5

    end_block;; left flank missile cavbegin_block 9

    not_generalunit_type missile cavalry 1.0;default_melee_state skirmishunit_formation squareunit_density closeblock_formation columnblock_relative_pos 7 -5.0 0.0inter_unit_spacing 4.0priority 0.6

    end_block

    ;; right_flank missile cavbegin_block 10

    not_generalunit_type missile cavalry 1.0;default_melee_state skirmishunit_formation squareunit_density closeblock_formation column

  • 8/10/2019 Descr Formations Ai

    36/361

    block_relative_pos 8 5.0 0.0inter_unit_spacing 4.0priority 0.6

    end_block

    ;; general at the backbegin_block 11

    max_units 1unit_type general_unit

    1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 6 0.0 -30.0inter_unit_spacing 3.0priority 1.0

    end_block

    ;; any behindbegin_block 12

    max_units 0unit_type any

    0.5block_formation line

    block_relative_pos 2 0.0 -50.0inter_unit_spacing 0.3priority 0.1

    end_block

    ;; artillery and handler behindbegin_block 13

    unit_type handler1.0

    unit_type siege1.0

    default_melee_state fire_at_willblock_formation line

    block_relative_pos 12 0.0 -20.0inter_unit_spacing 3.0priority 0.1

    end_block

    end_formation

    begin_formation phalanx_attack_2b

    ;;; purpose flags - attackingattack

    ai_priority 2.6

    supported_factions carthage, pontus, armenia, egypt, macedon, seleucid, greek_cities, numidia, britons

    ; Screen of missile infbegin_block 0

    max_units 8unit_type skirmish infantry

    1.0

  • 8/10/2019 Descr Formations Ai

    37/361

    unit_type chanting_screeching 0.9unit_type missile infantry

    0.8default_melee_state fire_at_will_and_skirmishunit_density close

    max_unit_width 40block_formation lineblock_relative_pos 0 0.0 0.0inter_unit_spacing 2.0priority 0.6

    end_block

    ;; first phalanx linebegin_block 1

    min_units 4max_units 6unit_type phalanx 1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 0 0.0 -15.0inter_unit_spacing 0.3priority 1.0

    end_block

    ;; second phalanx linebegin_block 2

    min_units 4max_units 6unit_type phalanx 1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 1 0.0 -15.0inter_unit_spacing 0.3priority 1.0

    end_block

    ;; archers behind the spearmen

    begin_block 3max_units 5unit_type ranged_missile_infantry

    1.0default_melee_state fire_at_will_and_skirmish

    max_unit_width 40block_formation lineblock_relative_pos 2 0.0 -10.0inter_unit_spacing 2.0priority 1.0

    end_block

    ;; heavy and light infantry either side of the spearmen

    ;; left sidebegin_block 4

    unit_type heavy infantry 0.9unit_type non_phalanx_spear 0.7unit_type light infantry 0.8default_melee_state fire_at_will

  • 8/10/2019 Descr Formations Ai

    38/361

    block_formation columnblock_relative_pos 1 -1.5 0.0inter_unit_spacing 2.0priority 0.8

    end_block

    ;; right sidebegin_block 5

    unit_type heavy infantry 0.9unit_type non_phalanx_spear 0.7unit_type light infantry 0.8default_melee_state fire_at_willblock_formation columnblock_relative_pos 1 1.5 0.0inter_unit_spacing 2.0priority 0.8

    end_block

    begin_dummy_block 6spans 1 2 3 4 5

    end_dummy_block

    ;; cavalry on the flanks and back a bit

    ;; left flankbegin_block 7not_generalunit_type cavalry 1.0default_melee_state im_an_invalid_commandunit_formation squareunit_density closeblock_formation columnblock_relative_pos 6 -20.0 -40.0inter_unit_spacing 4.0priority 0.5

    end_block

    ;; right_flankbegin_block 8not_generalunit_type cavalry 1.0default_melee_state im_an_invalid_commandunit_formation squareunit_density closeblock_formation columnblock_relative_pos 6 20.0 -40.0inter_unit_spacing 4.0priority 0.5

    end_block

    ;; left flank missile cavbegin_block 9not_generalunit_type missile cavalry 1.0default_melee_state fire_at_will_and_skirmishunit_formation squareunit_density closeblock_formation columnblock_relative_pos 7 -5.0 0.0inter_unit_spacing 4.0

  • 8/10/2019 Descr Formations Ai

    39/361

    priority 0.6end_block

    ;; right_flank missile cavbegin_block 10

    not_generalunit_type missile cavalry 1.0default_melee_state fire_at_will_and_skirmishunit_formation squareunit_density closeblock_formation columnblock_relative_pos 8 5.0 0.0inter_unit_spacing 4.0priority 0.6

    end_block

    ;; general at the backbegin_block 11

    max_units 1unit_type general_unit

    1.0;default_melee_state defendunit_density closeblock_formation line

    block_relative_pos 6 0.0 -30.0inter_unit_spacing 3.0priority 1.0

    end_block

    ;; any behindbegin_block 12

    max_units 0unit_type any

    0.5block_formation lineblock_relative_pos 6 0.0 -50.0inter_unit_spacing 0.3

    priority 0.1end_block

    ;; artillery and handler behindbegin_block 13

    unit_type handler1.0

    unit_type siege1.0

    block_formation lineblock_relative_pos 12 0.0 -20.0inter_unit_spacing 3.0priority 0.1

    end_block

    end_formation

    ;*******************************************************************************; Phalanx triple line formation, min 13 phalanx units (created by Sinuhet);*******************************************************************************

    begin_formation phalanx_attack_3d

  • 8/10/2019 Descr Formations Ai

    40/361

    ;;; purpose flags - defendingdefend

    ai_priority 2.7

    supported_factions carthage, pontus, armenia, egypt, macedon, seleucid, greek_cities, numidia, britons

    ; Screen of missile infbegin_block 0

    max_units 8unit_type skirmish infantry

    1.0unit_type chanting_screeching 0.9unit_type missile infantry

    0.8;default_melee_state skirmishunit_density close

    max_unit_width 40block_formation lineblock_relative_pos 0 0.0 0.0inter_unit_spacing 2.0priority 0.6

    end_block

    ;; first phalanx linebegin_block 1

    min_units 4max_units 6unit_type phalanx 1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 0 0.0 -15.0inter_unit_spacing 0.3priority 1.0

    end_block

    ;; second phalanx linebegin_block 2

    min_units 4max_units 7unit_type phalanx 1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 1 0.0 -15.0inter_unit_spacing 0.3priority 1.0

    end_block

    ;; third phalanx linebegin_block 3

    min_units 5max_units 7unit_type phalanx 1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 2 0.0 -5.0

  • 8/10/2019 Descr Formations Ai

    41/361

    inter_unit_spacing 0.3priority 1.0

    end_block

    ;; archers behind the spearmen

    begin_block 4max_units 5unit_type ranged_missile_infantry

    1.0default_melee_state fire_at_will

    max_unit_width 40block_formation lineblock_relative_pos 3 0.0 -10.0inter_unit_spacing 2.0priority 1.0

    end_block

    ;; heavy and light infantry either side of the spearmen

    ;; left sidebegin_block 5

    unit_type heavy infantry 0.9unit_type non_phalanx_spear 0.7

    unit_type light infantry 0.8default_melee_state fire_at_willblock_formation columnblock_relative_pos 1 -1.5 0.0inter_unit_spacing 2.0priority 0.8

    end_block

    ;; right sidebegin_block 6

    unit_type heavy infantry 0.9unit_type non_phalanx_spear 0.7unit_type light infantry 0.8

    default_melee_state fire_at_willblock_formation columnblock_relative_pos 1 1.5 0.0inter_unit_spacing 2.0priority 0.8

    end_block

    begin_dummy_block 7spans 1 2 3 4 5 6

    end_dummy_block

    ;; cavalry on the flanks and back a bit

    ;; left flankbegin_block 8

    not_generalunit_type cavalry 1.0;default_melee_state defendunit_formation squareunit_density closeblock_formation columnblock_relative_pos 3 -10.0 -30.0

  • 8/10/2019 Descr Formations Ai

    42/361

    inter_unit_spacing 4.0priority 0.5

    end_block

    ;; right_flankbegin_block 9

    not_generalunit_type cavalry 1.0;default_melee_state defendunit_formation squareunit_density closeblock_formation columnblock_relative_pos 3 10.0 -30.0inter_unit_spacing 4.0priority 0.5

    end_block

    ;; left flank missile cavbegin_block 10

    not_generalunit_type missile cavalry 1.0;default_melee_state skirmishunit_formation squareunit_density close

    block_formation columnblock_relative_pos 8 -5.0 0.0inter_unit_spacing 4.0priority 0.6

    end_block

    ;; right_flank missile cavbegin_block 11

    not_generalunit_type missile cavalry 1.0;default_melee_state skirmishunit_formation squareunit_density close

    block_formation columnblock_relative_pos 9 5.0 0.0inter_unit_spacing 4.0priority 0.6

    end_block

    ;; general at the backbegin_block 12

    max_units 1unit_type general_unit

    1.0;default_melee_state defendunit_density close

    block_formation lineblock_relative_pos 7 0.0 -30.0inter_unit_spacing 3.0priority 1.0

    end_block

    ;; any behindbegin_block 13

    max_units 0unit_type any

  • 8/10/2019 Descr Formations Ai

    43/361

    0.5block_formation lineblock_relative_pos 3 0.0 -50.0inter_unit_spacing 0.3priority 0.1

    end_block

    ;; artillery and handler behindbegin_block 14

    unit_type handler1.0

    unit_type siege1.0

    default_melee_state fire_at_willblock_formation lineblock_relative_pos 13 0.0 -20.0inter_unit_spacing 3.0priority 0.1

    end_block

    end_formation

    begin_formation phalanx_attack_3a

    ;;; purpose flags - approachingdefendattack

    ai_priority 2.7

    supported_factions carthage, pontus, armenia, egypt, macedon, seleucid, greek_cities, numidia, britons

    ; Screen of missile infbegin_block 0

    max_units 8

    unit_type skirmish infantry1.0unit_type chanting_screeching 0.9unit_type missile infantry

    0.8default_melee_state fire_at_will_and_skirmishunit_density close

    max_unit_width 40block_formation lineblock_relative_pos 0 0.0 0.0inter_unit_spacing 2.0priority 0.6

    end_block

    ;; first phalanx linebegin_block 1

    min_units 4max_units 6unit_type phalanx 1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 0 0.0 -15.0

  • 8/10/2019 Descr Formations Ai

    44/361

    inter_unit_spacing 0.3priority 1.0

    end_block

    ;; second phalanx linebegin_block 2

    min_units 4max_units 7unit_type phalanx 1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 1 0.0 -15.0inter_unit_spacing 0.3priority 1.0

    end_block

    ;; third phalanx linebegin_block 3

    min_units 5max_units 7unit_type phalanx 1.0;default_melee_state defendunit_density close

    block_formation lineblock_relative_pos 2 0.0 -5.0inter_unit_spacing 0.3priority 1.0

    end_block

    ;; archers behind the spearmen

    begin_block 4max_units 5unit_type ranged_missile_infantry

    1.0default_melee_state fire_at_will

    max_unit_width 40block_formation lineblock_relative_pos 3 0.0 -10.0inter_unit_spacing 2.0priority 1.0

    end_block

    ;; heavy and light infantry either side of the spearmen

    ;; left sidebegin_block 5

    unit_type heavy infantry 0.9unit_type non_phalanx_spear 0.7

    unit_type light infantry 0.8default_melee_state fire_at_willblock_formation columnblock_relative_pos 1 -1.5 0.0inter_unit_spacing 2.0priority 0.8

    end_block

    ;; right sidebegin_block 6

  • 8/10/2019 Descr Formations Ai

    45/361

    unit_type heavy infantry 0.9unit_type non_phalanx_spear 0.7unit_type light infantry 0.8default_melee_state fire_at_willblock_formation columnblock_relative_pos 1 1.5 0.0inter_unit_spacing 2.0priority 0.8

    end_block

    begin_dummy_block 7spans 1 2 3 4 5 6

    end_dummy_block

    ;; cavalry on the flanks and back a bit

    ;; left flankbegin_block 8

    not_generalunit_type cavalry 1.0;default_melee_state defendunit_formation squareunit_density close

    block_formation columnblock_relative_pos 3 -10.0 -30.0inter_unit_spacing 4.0priority 0.5

    end_block

    ;; right_flankbegin_block 9

    not_generalunit_type cavalry 1.0;default_melee_state defendunit_formation squareunit_density close

    block_formation columnblock_relative_pos 3 10.0 -30.0inter_unit_spacing 4.0priority 0.5

    end_block

    ;; left flank missile cavbegin_block 10

    not_generalunit_type missile cavalry 1.0;default_melee_state skirmishunit_formation squareunit_density close

    block_formation columnblock_relative_pos 8 -5.0 0.0inter_unit_spacing 4.0priority 0.6

    end_block

    ;; right_flank missile cavbegin_block 11

    not_generalunit_type missile cavalry 1.0

  • 8/10/2019 Descr Formations Ai

    46/361

    ;default_melee_state skirmishunit_formation squareunit_density closeblock_formation columnblock_relative_pos 9 5.0 0.0inter_unit_spacing 4.0priority 0.6

    end_block

    ;; general at the backbegin_block 12

    max_units 1unit_type general_unit

    1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 7 0.0 -30.0inter_unit_spacing 3.0priority 1.0

    end_block

    ;; any behindbegin_block 13

    max_units 0unit_type any0.5

    block_formation lineblock_relative_pos 3 0.0 -50.0inter_unit_spacing 0.3priority 0.1

    end_block

    ;; artillery and handler behindbegin_block 14

    unit_type handler1.0

    unit_type siege1.0default_melee_state fire_at_willblock_formation lineblock_relative_pos 13 0.0 -20.0inter_unit_spacing 3.0priority 0.1

    end_block

    end_formation

    begin_formation phalanx_attack_3b

    ;;; purpose flags - attackingattack

    ai_priority 2.7

    supported_factions carthage, pontus, armenia, egypt, macedon, seleucid, greek_cities, numidia, britons

    ; Screen of missile inf

  • 8/10/2019 Descr Formations Ai

    47/361

    begin_block 0max_units 8unit_type skirmish infantry

    1.0unit_type chanting_screeching 0.9unit_type missile infantry

    0.8default_melee_state fire_at_will_and_skirmishunit_density close

    max_unit_width 40block_formation lineblock_relative_pos 0 0.0 0.0inter_unit_spacing 2.0priority 0.6

    end_block

    ;; first phalanx linebegin_block 1

    min_units 4max_units 6unit_type phalanx 1.0;default_melee_state defendunit_density closeblock_formation line

    block_relative_pos 0 0.0 -15.0inter_unit_spacing 0.3priority 1.0

    end_block

    ;; second phalanx linebegin_block 2

    min_units 4max_units 7unit_type phalanx 1.0;default_melee_state defendunit_density closeblock_formation line

    block_relative_pos 1 0.0 -15.0inter_unit_spacing 0.3priority 1.0

    end_block

    ;; third phalanx linebegin_block 3

    min_units 5max_units 7unit_type phalanx 1.0;default_melee_state defendunit_density closeblock_formation line

    block_relative_pos 2 0.0 -5.0inter_unit_spacing 0.3priority 1.0

    end_block

    ;; archers behind the spearmen

    begin_block 4max_units 5unit_type ranged_missile_infantry

  • 8/10/2019 Descr Formations Ai

    48/361

    1.0default_melee_state fire_at_will_and_skirmish

    max_unit_width 40block_formation lineblock_relative_pos 3 0.0 -10.0inter_unit_spacing 2.0priority 1.0

    end_block

    ;; heavy and light infantry either side of the spearmen

    ;; left sidebegin_block 5

    unit_type heavy infantry 0.9unit_type non_phalanx_spear 0.7unit_type light infantry 0.8default_melee_state fire_at_willblock_formation columnblock_relative_pos 1 -1.5 0.0inter_unit_spacing 2.0priority 0.8

    end_block

    ;; right side

    begin_block 6unit_type heavy infantry 0.9unit_type non_phalanx_spear 0.7unit_type light infantry 0.8default_melee_state fire_at_willblock_formation columnblock_relative_pos 1 1.5 0.0inter_unit_spacing 2.0priority 0.8

    end_block

    begin_dummy_block 7spans 1 2 3 4 5 6

    end_dummy_block

    ;; cavalry on the flanks and back a bit

    ;; left flankbegin_block 8

    not_generalunit_type cavalry 1.0default_melee_state im_an_invalid_commandunit_formation squareunit_density closeblock_formation column

    block_relative_pos 7 -20.0 -40.0inter_unit_spacing 4.0priority 0.5

    end_block

    ;; right_flankbegin_block 9

    not_generalunit_type cavalry 1.0default_melee_state im_an_invalid_command

  • 8/10/2019 Descr Formations Ai

    49/361

    unit_formation squareunit_density closeblock_formation columnblock_relative_pos 7 20.0 -40.0inter_unit_spacing 4.0priority 0.5

    end_block

    ;; left flank missile cavbegin_block 10

    not_generalunit_type missile cavalry 1.0default_melee_state fire_at_will_and_skirmishunit_formation squareunit_density closeblock_formation columnblock_relative_pos 8 -5.0 0.0inter_unit_spacing 4.0priority 0.6

    end_block

    ;; right_flank missile cavbegin_block 11

    not_general

    unit_type missile cavalry 1.0default_melee_state fire_at_will_and_skirmishunit_formation squareunit_density closeblock_formation columnblock_relative_pos 9 5.0 0.0inter_unit_spacing 4.0priority 0.6

    end_block

    ;; general at the backbegin_block 12

    max_units 1

    unit_type general_unit1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 7 0.0 -30.0inter_unit_spacing 3.0priority 1.0

    end_block

    ;; any behindbegin_block 13

    max_units 0

    unit_type any0.5block_formation lineblock_relative_pos 7 0.0 -50.0inter_unit_spacing 0.3priority 0.1

    end_block

    ;; artillery and handler behindbegin_block 14

  • 8/10/2019 Descr Formations Ai

    50/361

    unit_type handler1.0

    unit_type siege1.0

    block_formation lineblock_relative_pos 13 0.0 -20.0inter_unit_spacing 3.0priority 0.1

    end_block

    end_formation

    ;********************************************************************************; Phalanx single line attack formation, max 7 phalanx units (created by Sinuhet);********************************************************************************

    begin_formation phalanx_attack_4d

    ;;; purpose flags - defendingdefend

    ai_priority 2.5

    supported_factions carthage, pontus, armenia, egypt, macedon, seleucid, greek_cities, numidia, britons

    ; Screen of missile infbegin_block 0

    max_units 8unit_type skirmish infantry

    1.0unit_type chanting_screeching 0.9unit_type missile infantry

    0.8;default_melee_state skirmish

    unit_density close max_unit_width 40block_formation lineblock_relative_pos 0 0.0 0.0inter_unit_spacing 2.0priority 0.6

    end_block

    ;; phalanx linebegin_block 1

    min_units 1max_units 7unit_type phalanx 1.0

    ;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 0 0.0 -15.0inter_unit_spacing 0.3priority 1.0

    end_block

    ;; archers behind the spearmen

  • 8/10/2019 Descr Formations Ai

    51/361

    begin_block 2max_units 5unit_type ranged_missile_infantry

    1.0default_melee_state fire_at_will

    max_unit_width 40block_formation lineblock_relative_pos 1 0.0 -10.0inter_unit_spacing 2.0priority 1.0

    end_block

    ;; heavy and light infantry either side of the spearmen

    ;; left sidebegin_block 3

    max_units 3unit_type heavy infantry 0.9unit_type non_phalanx_spear 0.7unit_type light infantry 0.8default_melee_state fire_at_willblock_formation columnblock_relative_pos 1 -1.5 0.0inter_unit_spacing 2.0

    priority 0.8end_block

    ;; right sidebegin_block 4

    max_units 3unit_type heavy infantry 0.9unit_type non_phalanx_spear 0.7unit_type light infantry 0.8default_melee_state fire_at_willblock_formation columnblock_relative_pos 1 1.5 0.0inter_unit_spacing 2.0

    priority 0.8end_block

    begin_dummy_block 5 spans 1 2 3 4 end_dummy_block

    ;; cavalry on the flanks and back a bit

    ;; left flankbegin_block 6

    not_generalunit_type heavy cavalry 1.0

    unit_type light cavalry 1.0;default_melee_state defendunit_formation squareunit_density closeblock_formation columnblock_relative_pos 1 -10.0 -30.0inter_unit_spacing 4.0priority 0.5

    end_block

  • 8/10/2019 Descr Formations Ai

    52/361

    ;; right_flankbegin_block 7

    not_generalunit_type heavy cavalry 1.0unit_type light cavalry 1.0;default_melee_state defendunit_formation squareunit_density closeblock_formation columnblock_relative_pos 1 10.0 -30.0inter_unit_spacing 4.0priority 0.5

    end_block

    ;; left flank missile cavbegin_block 8

    max_units 2not_generalunit_type missile cavalry 1.0;default_melee_state skirmishunit_formation squareunit_density closeblock_formation columnblock_relative_pos 6 -5.0 0.0

    inter_unit_spacing 4.0priority 0.6end_block

    ;; right_flank missile cavbegin_block 9

    max_units 2not_generalunit_type missile cavalry 1.0;default_melee_state skirmishunit_formation squareunit_density closeblock_formation column

    block_relative_pos 7 5.0 0.0inter_unit_spacing 4.0priority 0.6

    end_block

    ;; general at the backbegin_block 10

    max_units 1unit_type general_unit

    1.0;default_melee_state defendunit_density closeblock_formation line

    block_relative_pos 5 0.0 -30.0inter_unit_spacing 3.0priority 1.0

    end_block

    ;; any behindbegin_block 11

    max_units 0unit_type any

    0.5

  • 8/10/2019 Descr Formations Ai

    53/361

    block_formation lineblock_relative_pos 1 0.0 -50.0inter_unit_spacing 0.3priority 0.1

    end_block

    ;; artillery and handler behindbegin_block 12

    unit_type handler1.0

    unit_type siege1.0

    default_melee_state fire_at_willblock_formation lineblock_relative_pos 11 0.0 -20.0inter_unit_spacing 3.0priority 0.1

    end_block

    end_formation

    begin_formation phalanx_attack_4a

    ;;; purpose flags - approachingdefendattack

    ai_priority 2.5

    supported_factions carthage, pontus, armenia, egypt, macedon, seleucid, greek_cities, numidia, britons

    ; Screen of missile infbegin_block 0

    max_units 8unit_type skirmish infantry

    1.0 unit_type chanting_screeching 0.9unit_type missile infantry

    0.8default_melee_state fire_at_will_and_skirmishunit_density close

    max_unit_width 40block_formation lineblock_relative_pos 0 0.0 0.0inter_unit_spacing 2.0priority 0.6

    end_block

    ;; phalanx linebegin_block 1min_units 1max_units 7unit_type phalanx 1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 0 0.0 -15.0inter_unit_spacing 0.3

  • 8/10/2019 Descr Formations Ai

    54/361

    priority 1.0end_block

    ;; archers behind the spearmen

    begin_block 2max_units 5unit_type ranged_missile_infantry

    1.0default_melee_state fire_at_will

    max_unit_width 40block_formation lineblock_relative_pos 1 0.0 -10.0inter_unit_spacing 2.0priority 1.0

    end_block

    ;; heavy and light infantry either side of the spearmen

    ;; left sidebegin_block 3

    max_units 3unit_type heavy infantry 0.9unit_type non_phalanx_spear 0.7

    unit_type light infantry 0.8default_melee_state fire_at_willblock_formation columnblock_relative_pos 1 -1.5 0.0inter_unit_spacing 2.0priority 0.8

    end_block

    ;; right sidebegin_block 4

    max_units 3unit_type heavy infantry 0.9unit_type non_phalanx_spear 0.7

    unit_type light infantry 0.8default_melee_state fire_at_willblock_formation columnblock_relative_pos 1 1.5 0.0inter_unit_spacing 2.0priority 0.8

    end_block

    ;; cavalry on the flanks and back a bit

    begin_dummy_block 5 spans 1 2 3 4 end_dummy_block

    ;; left flankbegin_block 6

    not_generalunit_type heavy cavalry 1.0unit_type light cavalry 1.0;default_melee_state defendunit_formation squareunit_density closeblock_formation column

  • 8/10/2019 Descr Formations Ai

    55/361

    block_relative_pos 1 -10.0 -30.0inter_unit_spacing 4.0priority 0.5

    end_block

    ;; right_flankbegin_block 7

    not_generalunit_type heavy cavalry 1.0unit_type light cavalry 1.0;default_melee_state defendunit_formation squareunit_density closeblock_formation columnblock_relative_pos 1 10.0 -30.0inter_unit_spacing 4.0priority 0.5

    end_block

    ;; left flank missile cavbegin_block 8

    max_units 2not_generalunit_type missile cavalry 1.0

    ;default_melee_state skirmishunit_formation squareunit_density closeblock_formation columnblock_relative_pos 6 -5.0 0.0inter_unit_spacing 4.0priority 0.6

    end_block

    ;; right_flank missile cavbegin_block 9

    max_units 2not_general

    unit_type missile cavalry 1.0;default_melee_state skirmishunit_formation squareunit_density closeblock_formation columnblock_relative_pos 7 5.0 0.0inter_unit_spacing 4.0priority 0.6

    end_block

    ;; general at the backbegin_block 10

    max_units 1

    unit_type general_unit1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 5 0.0 -30.0inter_unit_spacing 3.0priority 1.0

    end_block

  • 8/10/2019 Descr Formations Ai

    56/361

    ;; any behindbegin_block 11

    max_units 0unit_type any

    0.5block_formation lineblock_relative_pos 1 0.0 -50.0inter_unit_spacing 0.3priority 0.1

    end_block

    ;; artillery and handler behindbegin_block 12

    unit_type handler1.0

    unit_type siege1.0

    default_melee_state fire_at_willblock_formation lineblock_relative_pos 11 0.0 -20.0inter_unit_spacing 3.0priority 0.1

    end_block

    end_formation

    begin_formation phalanx_attack_4b

    ;;; purpose flags - attackingattack

    ai_priority 2.5

    supported_factions carthage, pontus, armenia, egypt, macedon, seleucid, greek_cities, numidia, britons

    ; Screen of missile infbegin_block 0max_units 8unit_type skirmish infantry

    1.0unit_type chanting_screeching 0.9unit_type missile infantry

    0.8default_melee_state fire_at_will_and_skirmishunit_density close

    max_unit_width 40block_formation lineblock_relative_pos 0 0.0 0.0

    inter_unit_spacing 2.0priority 0.6end_block

    ;; phalanx linebegin_block 1

    min_units 1max_units 7unit_type phalanx 1.0;default_melee_state defend

  • 8/10/2019 Descr Formations Ai

    57/361

    unit_density closeblock_formation lineblock_relative_pos 0 0.0 -15.0inter_unit_spacing 0.3priority 1.0

    end_block

    ;; archers behind the spearmen

    begin_block 2max_units 5unit_type ranged_missile_infantry

    1.0default_melee_state fire_at_will_and_skirmish

    max_unit_width 40block_formation lineblock_relative_pos 1 0.0 -10.0inter_unit_spacing 2.0priority 1.0

    end_block

    ;; heavy and light infantry either side of the spearmen

    ;; left side

    begin_block 3max_units 3unit_type heavy infantry 0.9unit_type non_phalanx_spear 0.7unit_type light infantry 0.8default_melee_state fire_at_willblock_formation columnblock_relative_pos 1 -1.5 0.0inter_unit_spacing 2.0priority 0.8

    end_block

    ;; right side

    begin_block 4max_units 3unit_type heavy infantry 0.9unit_type non_phalanx_spear 0.7unit_type light infantry 0.8default_melee_state fire_at_willblock_formation columnblock_relative_pos 1 1.5 0.0inter_unit_spacing 2.0priority 0.8

    end_block

    ;; cavalry on the flanks and back a bit

    begin_dummy_block 5 spans 1 2 3 4 end_dummy_block

    ;; left flankbegin_block 6

    not_generalunit_type heavy cavalry 1.0unit_type light cavalry 1.0

  • 8/10/2019 Descr Formations Ai

    58/361

    default_melee_state im_an_invalid_commandunit_formation squareunit_density closeblock_formation columnblock_relative_pos 1 -20.0 -40.0inter_unit_spacing 4.0priority 0.5

    end_block

    ;; right_flankbegin_block 7

    not_generalunit_type heavy cavalry 1.0unit_type light cavalry 1.0default_melee_state im_an_invalid_commandunit_formation squareunit_density closeblock_formation columnblock_relative_pos 1 20.0 -40.0inter_unit_spacing 4.0priority 0.5

    end_block

    ;; left flank missile cav

    begin_block 8max_units 2not_generalunit_type missile cavalry 1.0default_melee_state fire_at_will_and_skirmishunit_formation squareunit_density closeblock_formation columnblock_relative_pos 6 -5.0 0.0inter_unit_spacing 4.0priority 0.6

    end_block

    ;; right_flank missile cavbegin_block 9max_units 2not_generalunit_type missile cavalry 1.0default_melee_state fire_at_will_and_skirmishunit_formation squareunit_density closeblock_formation columnblock_relative_pos 7 5.0 0.0inter_unit_spacing 4.0priority 0.6

    end_block

    ;; general at the backbegin_block 10

    max_units 1unit_type general_unit

    1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 5 0.0 -30.0

  • 8/10/2019 Descr Formations Ai

    59/361

    inter_unit_spacing 3.0priority 1.0

    end_block

    ;; any behindbegin_block 11

    max_units 0unit_type any

    0.5block_formation lineblock_relative_pos 1 0.0 -50.0inter_unit_spacing 0.3priority 0.1

    end_block

    ;; artillery and handler behindbegin_block 12

    unit_type handler1.0

    unit_type siege1.0

    block_formation lineblock_relative_pos 11 0.0 -20.0inter_unit_spacing 3.0

    priority 0.1end_block

    end_formation

    ;********************************************************************************; Mixed spearmen double line formation, max 12 spearmen units (created by Sinuhet);********************************************************************************

    begin_formation mixed_spearmen_attack_1d;;; purpose flags - defendingdefend

    ai_priority 2.59

    supported_factions carthage, pontus, armenia, egypt, macedon, seleucid, greek_cities, numidia, britons

    ; Screen of missile infbegin_block 0

    max_units 8

    unit_type skirmish infantry1.0unit_type chanting_screeching 0.9unit_type missile infantry

    0.8;default_melee_state skirmishunit_density close

    max_unit_width 40block_formation lineblock_relative_pos 0 0.0 0.0

  • 8/10/2019 Descr Formations Ai

    60/361

    inter_unit_spacing 2.0priority 0.6

    end_block

    ;; first phalanx linebegin_block 1

    min_units 2max_units 6unit_type non_phalanx_spear 1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 0 0.0 -15.0inter_unit_spacing 0.3priority 1.0

    end_block

    ;; second phalanx linebegin_block 2

    min_units 2max_units 6unit_type phalanx 1.0;default_melee_state defendunit_density close

    block_formation lineblock_relative_pos 1 0.0 -15.0inter_unit_spacing 0.3priority 1.0

    end_block

    ;; archers behind the spearmen

    begin_block 3max_units 5unit_type ranged_missile_infantry

    1.0default_melee_state fire_at_will

    max_unit_width 40block_formation lineblock_relative_pos 2 0.0 -10.0inter_unit_spacing 2.0priority 1.0

    end_block

    ;; heavy and light infantry either side of the spearmen

    ;; left sidebegin_block 4

    unit_type heavy infantry 0.9unit_type light infantry 0.8

    default_melee_state fire_at_willblock_formation columnblock_relative_pos 1 -1.5 0.0inter_unit_spacing 2.0priority 0.8

    end_block

    ;; right sidebegin_block 5

    unit_type heavy infantry 0.9

  • 8/10/2019 Descr Formations Ai

    61/361

    unit_type light infantry 0.8default_melee_state fire_at_willblock_formation columnblock_relative_pos 1 1.5 0.0inter_unit_spacing 2.0priority 0.8

    end_block

    begin_dummy_block 6spans 1 2 3 4 5

    end_dummy_block

    ;; cavalry on the flanks and back a bit

    ;; left flankbegin_block 7

    not_generalunit_type cavalry 1.0;default_melee_state defendunit_formation squareunit_density closeblock_formation columnblock_relative_pos 2 -10.0 -30.0inter_unit_spacing 4.0

    priority 0.5end_block

    ;; right_flankbegin_block 8

    not_generalunit_type cavalry 1.0;default_melee_state defendunit_formation squareunit_density closeblock_formation columnblock_relative_pos 2 10.0 -30.0inter_unit_spacing 4.0

    priority 0.5end_block

    ;; left flank missile cavbegin_block 9

    not_generalunit_type missile cavalry 1.0;default_melee_state skirmishunit_formation squareunit_density closeblock_formation columnblock_relative_pos 7 -5.0 0.0inter_unit_spacing 4.0

    priority 0.6end_block

    ;; right_flank missile cavbegin_block 10

    not_generalunit_type missile cavalry 1.0;default_melee_state skirmishunit_formation squareunit_density close

  • 8/10/2019 Descr Formations Ai

    62/361

    block_formation columnblock_relative_pos 8 5.0 0.0inter_unit_spacing 4.0priority 0.6

    end_block

    ;; general at the backbegin_block 11

    max_units 1unit_type general_unit

    1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 6 0.0 -30.0inter_unit_spacing 3.0priority 1.0

    end_block

    ;; any behindbegin_block 12

    max_units 0unit_type any

    0.5

    block_formation lineblock_relative_pos 2 0.0 -50.0inter_unit_spacing 0.3priority 0.1

    end_block

    ;; artillery and handler behindbegin_block 13

    unit_type handler1.0

    unit_type siege1.0

    default_melee_state fire_at_will

    block_formation lineblock_relative_pos 12 0.0 -20.0inter_unit_spacing 3.0priority 0.1

    end_block

    end_formation

    begin_formation mixed_spearmen_attack_1a

    ;;; purpose flags - approachingdefend

    attack

    ai_priority 2.59

    supported_factions carthage, pontus, armenia, egypt, macedon, seleucid, greek_cities, numidia, britons

    ; Screen of missile infbegin_block 0

    max_units 8

  • 8/10/2019 Descr Formations Ai

    63/361

    unit_type skirmish infantry1.0

    unit_type chanting_screeching 0.9unit_type missile infantry

    0.8default_melee_state fire_at_will_and_skirmishunit_density close

    max_unit_width 40block_formation lineblock_relative_pos 0 0.0 0.0inter_unit_spacing 2.0priority 0.6

    end_block

    ;; first phalanx linebegin_block 1

    min_units 2max_units 6unit_type non_phalanx_spear 1.0;;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 0 0.0 -15.0inter_unit_spacing 0.3

    priority 1.0end_block

    ;; second phalanx linebegin_block 2

    min_units 2max_units 6unit_type phalanx 1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 1 0.0 -15.0inter_unit_spacing 0.3

    priority 1.0end_block

    ;; archers behind the spearmen

    begin_block 3max_units 5unit_type ranged_missile_infantry

    1.0default_melee_state fire_at_will

    max_unit_width 40block_formation lineblock_relative_pos 2 0.0 -10.0

    inter_unit_spacing 2.0priority 1.0end_block

    ;; heavy and light infantry either side of the spearmen

    ;; left sidebegin_block 4

    unit_type heavy infantry 0.9unit_type light infantry 0.8

  • 8/10/2019 Descr Formations Ai

    64/361

    default_melee_state fire_at_willblock_formation columnblock_relative_pos 1 -1.5 0.0inter_unit_spacing 2.0priority 0.8

    end_block

    ;; right sidebegin_block 5

    unit_type heavy infantry 0.9unit_type light infantry 0.8default_melee_state fire_at_willblock_formation columnblock_relative_pos 1 1.5 0.0inter_unit_spacing 2.0priority 0.8

    end_block

    begin_dummy_block 6spans 1 2 3 4 5

    end_dummy_block

    ;; cavalry on the flanks and back a bit

    ;; left flankbegin_block 7not_generalunit_type cavalry 1.0;default_melee_state defendunit_formation squareunit_density closeblock_formation columnblock_relative_pos 2 -10.0 -30.0inter_unit_spacing 4.0priority 0.5

    end_block

    ;; right_flankbegin_block 8not_generalunit_type cavalry 1.0;default_melee_state defendunit_formation squareunit_density closeblock_formation columnblock_relative_pos 2 10.0 -30.0inter_unit_spacing 4.0priority 0.5

    end_block

    ;; left flank missile cavbegin_block 9not_generalunit_type missile cavalry 1.0;default_melee_state skirmishunit_formation squareunit_density closeblock_formation columnblock_relative_pos 7 -5.0 0.0inter_unit_spacing 4.0

  • 8/10/2019 Descr Formations Ai

    65/361

    priority 0.6end_block

    ;; right_flank missile cavbegin_block 10

    not_generalunit_type missile cavalry 1.0;default_melee_state skirmishunit_formation squareunit_density closeblock_formation columnblock_relative_pos 8 5.0 0.0inter_unit_spacing 4.0priority 0.6

    end_block

    ;; general at the backbegin_block 11

    max_units 1unit_type general_unit

    1.0;default_melee_state defendunit_density closeblock_formation line

    block_relative_pos 6 0.0 -30.0inter_unit_spacing 3.0priority 1.0

    end_block

    ;; any behindbegin_block 12

    max_units 0unit_type any

    0.5block_formation lineblock_relative_pos 2 0.0 -50.0inter_unit_spacing 0.3

    priority 0.1end_block

    ;; artillery and handler behindbegin_block 13

    unit_type handler1.0

    unit_type siege1.0

    default_melee_state fire_at_willblock_formation lineblock_relative_pos 12 0.0 -20.0inter_unit_spacing 3.0

    priority 0.1end_block

    end_formation

    begin_formation mixed_spearmen_attack_1b

    ;;; purpose flags - attackingattack

  • 8/10/2019 Descr Formations Ai

    66/361

    ai_priority 2.59

    supported_factions carthage, pontus, armenia, egypt, macedon, seleucid, greek_cities, numidia, britons

    ; Screen of missile infbegin_block 0

    max_units 8unit_type skirmish infantry

    1.0unit_type chanting_screeching 0.9unit_type missile infantry

    0.8default_melee_state fire_at_will_and_skirmishunit_density close

    max_unit_width 40block_formation lineblock_relative_pos 0 0.0 0.0inter_unit_spacing 2.0priority 0.6

    end_block

    ;; first phalanx linebegin_block 1

    min_units 2max_units 6unit_type non_phalanx_spear 1.0unit_density closeblock_formation lineblock_relative_pos 0 0.0 -15.0inter_unit_spacing 0.3priority 1.0

    end_block

    ;; second phalanx linebegin_block 2

    min_units 2

    max_units 6unit_type phalanx 1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 1 0.0 -15.0inter_unit_spacing 0.3priority 1.0

    end_block

    ;; archers behind the spearmen

    begin_block 3

    max_units 5unit_type ranged_missile_infantry1.0

    default_melee_state fire_at_will_and_skirmish max_unit_width 40

    block_formation lineblock_relative_pos 2 0.0 -10.0inter_unit_spacing 2.0priority 1.0

    end_block

  • 8/10/2019 Descr Formations Ai

    67/361

    ;; heavy and light infantry either side of the spearmen

    ;; left sidebegin_block 4

    unit_type heavy infantry 0.9unit_type light infantry 0.8default_melee_state fire_at_willblock_formation columnblock_relative_pos 1 -1.5 0.0inter_unit_spacing 2.0priority 0.8

    end_block

    ;; right sidebegin_block 5

    unit_type heavy infantry 0.9unit_type light infantry 0.8default_melee_state fire_at_willblock_formation columnblock_relative_pos 1 1.5 0.0inter_unit_spacing 2.0priority 0.8

    end_block

    begin_dummy_block 6spans 1 2 3 4 5

    end_dummy_block

    ;; cavalry on the flanks and back a bit

    ;; left flankbegin_block 7

    not_generalunit_type cavalry 1.0default_melee_state im_an_invalid_commandunit_formation square

    unit_density closeblock_formation columnblock_relative_pos 6 -20.0 -40.0inter_unit_spacing 4.0priority 0.5

    end_block

    ;; right_flankbegin_block 8

    not_generalunit_type cavalry 1.0default_melee_state im_an_invalid_commandunit_formation square

    unit_density closeblock_formation columnblock_relative_pos 6 20.0 -40.0inter_unit_spacing 4.0priority 0.5

    end_block

    ;; left flank missile cavbegin_block 9

    not_general

  • 8/10/2019 Descr Formations Ai

    68/361

    unit_type missile cavalry 1.0default_melee_state fire_at_will_and_skirmishunit_formation squareunit_density closeblock_formation columnblock_relative_pos 7 -5.0 0.0inter_unit_spacing 4.0priority 0.6

    end_block

    ;; right_flank missile cavbegin_block 10

    not_generalunit_type missile cavalry 1.0default_melee_state fire_at_will_and_skirmishunit_formation squareunit_density closeblock_formation columnblock_relative_pos 8 5.0 0.0inter_unit_spacing 4.0priority 0.6

    end_block

    ;; general at the back

    begin_block 11max_units 1unit_type general_unit

    1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 6 0.0 -30.0inter_unit_spacing 3.0priority 1.0

    end_block

    ;; any behind

    begin_block 12max_units 0unit_type any

    0.5block_formation lineblock_relative_pos 6 0.0 -50.0inter_unit_spacing 0.3priority 0.1

    end_block

    ;; artillery and handler behindbegin_block 13

    unit_type handler

    1.0 unit_type siege1.0

    block_formation lineblock_relative_pos 12 0.0 -20.0inter_unit_spacing 3.0priority 0.1

    end_block

    end_formation

  • 8/10/2019 Descr Formations Ai

    69/361

    ;*******************************************************************************; mixed_spearmen triple line formation, min 7 phalanx units (created by Sinuhet);*******************************************************************************

    begin_formation mixed_spearmen_attack_2d

    ;;; purpose flags - defendingdefend

    ai_priority 2.69

    supported_factions carthage, pontus, armenia, egypt, macedon, seleucid, greek_cities, numidia, britons

    ; Screen of missile infbegin_block 0

    max_units 8unit_type skirmish infantry

    1.0unit_type chanting_screeching 0.9unit_type missile infantry

    0.8;default_melee_state skirmish

    unit_density close max_unit_width 40block_formation lineblock_relative_pos 0 0.0 0.0inter_unit_spacing 2.0priority 0.6

    end_block

    ;; first phalanx linebegin_block 1

    min_units 2max_units 6unit_type non_phalanx_spear 1.0

    ;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 0 0.0 -15.0inter_unit_spacing 0.3priority 1.0

    end_block

    ;; second phalanx linebegin_block 2

    min_units 3max_units 7unit_type phalanx 1.0

    ;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 1 0.0 -15.0inter_unit_spacing 0.3priority 1.0

    end_block

    ;; third phalanx linebegin_block 3

  • 8/10/2019 Descr Formations Ai

    70/361

    min_units 4;max_units 7unit_type phalanx 1.0;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 2 0.0 -5.0inter_unit_spacing 0.3priority 1.0

    end_block

    ;; archers behind the spearmen

    begin_block 4max_units 5unit_type ranged_missile_infantry

    1.0default_melee_state fire_at_will

    max_unit_width 40block_formation lineblock_relative_pos 3 0.0 -10.0inter_unit_spacing 2.0priority 1.0

    end_block

    ;; heavy and light infantry either side of the spearmen

    ;; left sidebegin_block 5

    unit_type heavy infantry 0.9unit_type light infantry 0.8default_melee_state fire_at_willblock_formation columnblock_relative_pos 1 -1.5 0.0inter_unit_spacing 2.0priority 0.8

    end_block

    ;; right sidebegin_block 6

    unit_type heavy infantry 0.9unit_type light infantry 0.8default_melee_state fire_at_willblock_formation columnblock_relative_pos 1 1.5 0.0inter_unit_spacing 2.0priority 0.8

    end_block

    begin_dummy_block 7

    spans 1 2 3 4 5 6end_dummy_block

    ;; cavalry on the flanks and back a bit

    ;; left flankbegin_block 8

    not_generalunit_type cavalry 1.0

  • 8/10/2019 Descr Formations Ai

    71/361

    ;default_melee_state defendunit_formation squareunit_density closeblock_formation columnblock_relative_pos 3 -10.0 -30.0inter_unit_spacing 4.0priority 0.5

    end_block

    ;; right_flankbegin_block 9

    not_generalunit_type cavalry 1.0;default_melee_state defendunit_formation squareunit_density closeblock_formation columnblock_relative_pos 3 10.0 -30.0inter_unit_spacing 4.0priority 0.5

    end_block

    ;; left flank missile cavbegin_block 10

    not_generalunit_type missile cavalry 1.0;default_melee_state skirmishunit_formation squareunit_density closeblock_formation columnblock_relative_pos 8 -5.0 0.0inter_unit_spacing 4.0priority 0.6

    end_block

    ;; right_flank missile cavbegin_block 11

    not_generalunit_type missile cavalry 1.0;default_melee_state skirmishunit_formation squareunit_density closeblock_formation columnblock_relative_pos 9 5.0 0.0inter_unit_spacing 4.0priority 0.6

    end_block

    ;; general at the backbegin_block 12

    max_units 1unit_type general_unit1.0

    ;default_melee_state defendunit_density closeblock_formation lineblock_relative_pos 7 0.0 -30.0inter_unit_spacing 3.0priority 1.0

    end_block

  • 8/10/2019 Descr Formations Ai

    72/361

    ;; any behindbegin_block 13

    max_units 0un