; ; Rome Total War: "Sinuhet's AI Battle Formations Mod" by Sinuhet/Pavel Vesely ; version 5.0, only for RTW 1.5 (vanilla and all RTW 1.5 - based mods, February 11, 2006 ; ; (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 to 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 units that 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 ; to fulfill block minimums ; default_melee_state the melee state that will be assigned to units ; in the formation ; unit_formation the formation the units within 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 relative to 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 ;**************************************************************** ;**************************************************************** begin_formation phalanx_best_form_created_by_Patrizio ;;; purpose flags attack march defend ai_priority 6.5 ; Screen of missile inf begin_block 0 min_units 0 max_units 5 unit_type skirmish infantry 1.0 unit_type elephants 1.0 unit_density close block_formation line block_relative_pos 0 0.0 0.0 inter_unit_spacing 2.0 priority 0.2 end_block ;; heavy and light infantry before the spearmen ;; light infantry begin_block 1 max_units 6 unit_type light infantry 1.0 unit_type heavy infantry 0.9 unit_density close block_formation line block_relative_pos 0 0.0 -7.0 inter_unit_spacing 2.0 priority 0.2 end_block ;; heavy infantry begin_block 2 max_units 10 unit_type heavy infantry 1.0 unit_type non_phalanx_spear 0.9 unit_type light infantry 0.8 unit_density close block_formation line block_relative_pos 1 0.0 -10.0 inter_unit_spacing 2.0 priority 0.2 end_block ;; phalanx line, maximal 12 phalanges begin_block 3 min_units 3 max_units 12 unit_type phalanx 1.0 default_melee_state defend unit_density close block_formation line block_relative_pos 2 0.0 -10.0 inter_unit_spacing -0.8 priority 5.0 end_block ;; left flank of phalnx begin_block 4 min_units 2 max_units 4 unit_type phalanx 1.0 default_melee_state defend block_formation line block_relative_pos 3 -10.0 -5.0 inter_unit_spacing -0.8 priority 2.0 end_block ;; right_flank of phalanx begin_block 5 min_units 2 max_units 4 unit_type phalanx 1.0 default_melee_state defend block_formation line block_relative_pos 3 10.0 -5.0 inter_unit_spacing -0.8 priority 2.0 end_block ;; other skirm begin_block 6 min_units 1 max_units 1 unit_type skirmish infantry 1.0 ;default_melee_state engage_at_will block_formation line block_relative_pos 3 0.0 -10.0 inter_unit_spacing 10.0 priority 0.2 end_block ;; missile troops behind the spearmen begin_block 7 unit_type ranged_missile_infantry 1.0 unit_type missile infantry 0.5 unit_type chanting_screeching 0.3 unit_type skirmish infantry 0.4 block_formation line block_relative_pos 6 0.0 -10.0 inter_unit_spacing 2.0 priority 0.5 end_block ;; general at the back begin_block 8 max_units 1 unit_type general_unit 1.0 default_melee_state defend unit_density close block_formation line block_relative_pos 5 0.0 -20.0 inter_unit_spacing 3.0 priority 1.0 end_block ;; cavalry on the flanks and back a bit ;; left flank begin_block 9 not_general unit_type cavalry 1.0 block_formation line block_relative_pos 4 -13.0 -8.0 inter_unit_spacing 0.0 priority 0.2 end_block ;; right_flank begin_block 10 not_general unit_type cavalry 1.0 block_formation line block_relative_pos 5 13.0 -8.0 inter_unit_spacing 0.0 priority 0.2 end_block ;; left flank missile cav begin_block 11 not_general unit_type missile cavalry 1.0 block_formation line block_relative_pos 6 -5.0 0.0 inter_unit_spacing 4.0 priority 0.2 end_block ;; right_flank missile cav begin_block 12 not_general unit_type missile cavalry 1.0 block_formation line block_relative_pos 7 5.0 0.0 inter_unit_spacing 4.0 priority 0.6 end_block ;; any behind begin_block 13 unit_type any 0.5 block_formation line block_relative_pos 5 0.0 -30.0 inter_unit_spacing 0.3 priority 0.1 end_block ;; artillery and handler behind begin_block 14 unit_type handler 1.0 unit_type siege 1.0 block_formation line block_relative_pos 10 5.0 -10.0 inter_unit_spacing 3.0 priority 0.1 end_block end_formation begin_formation best_Parthia_form_created_by_Patrizio ;;; purpose flags attack march defend ai_priority 5.5 ; Screen of elephant begin_block 0 unit_type skirmish infantry 1.0 unit_type elephants 1.0 unit_density close block_formation line block_relative_pos 0 0.0 0.0 inter_unit_spacing 2.0 priority 0.1 end_block ;; infantry begin_block 1 unit_type light infantry 1.0 unit_type heavy infantry 0.9 unit_type heavy infantry 1.0 unit_type non_phalanx_spear 0.9 unit_type light infantry 0.8 unit_density close block_formation line block_relative_pos 0 0.0 -7.0 inter_unit_spacing 2.0 priority 0.2 end_block ;; general at the very back begin_block 2 max_units 1 unit_type general_unit 1.0 default_melee_state defend unit_density close block_formation line block_relative_pos 2 0.0 -80.0 inter_unit_spacing 3.0 priority 1.0 end_block ;; cavalry on the flanks of general and back a bit ;; left flank begin_block 3 min_units 3 max_units 10 not_general unit_type cavalry 1.0 block_formation line block_relative_pos 2 -13.0 -8.0 inter_unit_spacing 0.0 priority 3.0 end_block ;; right_flank begin_block 4 min_units 3 max_units 10 not_general unit_type cavalry 1.0 block_formation line block_relative_pos 2 13.0 -8.0 inter_unit_spacing 0.0 priority 3.0 end_block ;; left flank missile cav begin_block 5 min_units 3 max_units 10 not_general unit_type missile cavalry 1.0 default_melee_state defend block_formation line block_relative_pos 1 -40.0 0.0 inter_unit_spacing 2.0 priority 3.0 end_block ;; right_flank missile cav begin_block 6 min_units 3 max_units 10 not_general unit_type missile cavalry 1.0 default_melee_state defend block_formation line block_relative_pos 1 40.0 0.0 inter_unit_spacing 2.0 priority 3.0 end_block ;; any siege and other behiend general so horse archer can act begin_block 7 unit_type any 0.5 block_formation line block_relative_pos 2 0.0 -3.0 inter_unit_spacing 0.3 priority 0.1 end_block end_formation ;**************************************************************** ;**************************************************************** ; Barbarian section ;**************************************************************** ;**************************************************************** ;**************************************************************** ; Non_phalanx_spear single line attack formation (created by Sinuhet) ;**************************************************************** begin_formation barbar_attack_1 ;;; purpose flags attack defend ai_priority 2.20 ;supported_factions persians ; Screen of missile inf begin_block 0 max_units 3 unit_type skirmish infantry 1.0 unit_type chanting_screeching 0.9 unit_type missile infantry 0.8 unit_type elephants 1.0 unit_density close block_formation line block_relative_pos 0 0.0 0.0 inter_unit_spacing 2.0 priority 0.5 end_block ;; spearmen line begin_block 1 min_units 1 max_units 3 unit_type non_phalanx_spear 1.0 unit_formation square unit_density close block_formation line block_relative_pos 0 0.0 -20.0 inter_unit_spacing 0.3 priority 1.0 end_block ;; missile troops behind the spearmen begin_block 2 max_units 4 unit_type ranged_missile_infantry 1.0 block_formation line block_relative_pos 1 0.0 -10.0 inter_unit_spacing 2.0 priority 0.5 end_block ;; heavy and light infantry either side of the spearmen ;; left side begin_block 3 max_units 2 unit_type heavy infantry 1.0 unit_type light infantry 0.8 block_formation line block_relative_pos 1 -0.3 0.0 inter_unit_spacing 0.3 priority 0.8 end_block ;; right side begin_block 4 max_units 2 unit_type heavy infantry 1.0 unit_type light infantry 0.8 block_formation line block_relative_pos 1 0.3 0.0 inter_unit_spacing 0.3 priority 0.8 end_block begin_dummy_block 5 spans 1 2 3 4 end_dummy_block ;; Screen of missile inf on both flanks ;; left flank begin_block 6 max_units 3 unit_type skirmish infantry 1.0 unit_type chanting_screeching 0.9 unit_type missile infantry 0.8 unit_density close block_formation line block_relative_pos 5 -15.0 5.0 inter_unit_spacing 2.0 priority 0.6 end_block ;; right flank begin_block 7 max_units 3 unit_type skirmish infantry 1.0 unit_type chanting_screeching 0.9 unit_type missile infantry 0.8 unit_density close block_formation line block_relative_pos 5 15.0 5.0 inter_unit_spacing 2.0 priority 0.6 end_block ;; cavalry on the flanks and back a bit ;; left flank begin_block 8 not_general unit_type cavalry 1.0 block_formation line block_relative_pos 5 -20.0 -10.0 inter_unit_spacing 4.0 priority 0.5 end_block ;; right_flank begin_block 9 not_general unit_type cavalry 1.0 block_formation line block_relative_pos 5 20.0 -10.0 inter_unit_spacing 4.0 priority 0.5 end_block ;; left flank missile cav begin_block 10 not_general unit_type missile cavalry 1.0 block_formation line block_relative_pos 8 -5.0 0.0 inter_unit_spacing 4.0 priority 0.6 end_block ;; right_flank missile cav begin_block 11 not_general unit_type missile cavalry 1.0 block_formation line block_relative_pos 9 5.0 0.0 inter_unit_spacing 4.0 priority 0.6 end_block ;; general at the back begin_block 12 max_units 1 unit_type general_unit 1.0 ;default_melee_state engage_at_will unit_density close block_formation line block_relative_pos 5 6.0 -8.0 inter_unit_spacing 3.0 priority 1.0 end_block ;; artillery and handler behind begin_block 13 unit_type handler 1.0 unit_type siege 1.0 block_formation line block_relative_pos 12 0.0 -20.0 inter_unit_spacing 3.0 priority 0.1 end_block ;; back line of other units begin_block 14 max_units 1 unit_type any 0.01 block_formation line block_relative_pos 13 0.0 -10.0 inter_unit_spacing 0.3 priority 0.1 end_block end_formation ;**************************************************************** ; Non_phalanx_spear double line attack formation (created by Sinuhet) ;**************************************************************** begin_formation barbar_attack_2 ;;; purpose flags attack defend ai_priority 2.30 ;supported_factions persians ; Screen of missile inf begin_block 0 max_units 3 unit_type skirmish infantry 1.0 unit_type chanting_screeching 0.9 unit_type missile infantry 0.8 unit_type elephants 1.0 unit_density close block_formation line block_relative_pos 0 0.0 0.0 inter_unit_spacing 2.0 priority 0.5 end_block ;; first phalanx line begin_block 1 min_units 2 max_units 6 unit_type non_phalanx_spear 1.0 unit_density close block_formation line block_relative_pos 0 0.0 -15.0 inter_unit_spacing 0.2 priority 2.0 end_block ;; second phalanx line begin_block 2 min_units 2 max_units 6 unit_type non_phalanx_spear 1.0 unit_density close block_formation line block_relative_pos 1 0.0 -15.0 inter_unit_spacing 0.3 priority 1.0 end_block ;; missile troops behind the spearmen begin_block 3 max_units 2 unit_type ranged_missile_infantry 0.9 unit_type missile infantry 1.0 unit_type skirmish infantry 0.8 block_formation line block_relative_pos 2 0.0 -10.0 inter_unit_spacing 2.0 priority 0.8 end_block begin_block 4 max_units 2 unit_type ranged_missile_infantry 1.0 unit_type missile infantry 1.0 unit_type chanting_screeching 0.5 unit_type skirmish infantry 0.8 block_formation line block_relative_pos 3 0.0 -10.0 inter_unit_spacing 2.0 priority 0.7 end_block begin_block 5 max_units 4 unit_type ranged_missile_infantry 1.0 unit_type missile infantry 0.9 unit_type chanting_screeching 0.5 unit_type skirmish infantry 0.8 block_formation line block_relative_pos 4 0.0 -10.0 inter_unit_spacing 2.0 priority 0.6 end_block begin_block 6 max_units 5 unit_type ranged_missile_infantry 1.0 unit_type missile infantry 0.9 unit_type chanting_screeching 0.5 unit_type skirmish infantry 0.8 block_formation line block_relative_pos 5 0.0 -10.0 inter_unit_spacing 2.0 priority 0.5 end_block ;; heavy and light infantry either side of the spearmen ;; left side begin_block 7 max_units 2 unit_type heavy infantry 0.9 unit_type light infantry 0.8 block_formation line block_relative_pos 2 -1.5 1.0 inter_unit_spacing 0.3 priority 0.8 end_block ;; right side begin_block 8 max_units 2 unit_type heavy infantry 0.9 unit_type light infantry 0.8 block_formation line block_relative_pos 2 1.5 1.0 inter_unit_spacing 0.3 priority 0.8 end_block begin_dummy_block 9 spans 0 1 2 3 4 5 6 7 8 end_dummy_block ;; cavalry on the flanks and back a bit ;; left flank begin_block 10 not_general unit_type cavalry 1.0 block_formation line block_relative_pos 9 -20.0 -1.0 inter_unit_spacing 4.0 priority 0.5 end_block ;; right_flank begin_block 11 not_general unit_type cavalry 1.0 block_formation line block_relative_pos 9 20.0 -1.0 inter_unit_spacing 4.0 priority 0.5 end_block ;; left flank missile cav begin_block 12 not_general unit_type missile cavalry 1.0 block_formation line block_relative_pos 10 -5.0 0.0 inter_unit_spacing 4.0 priority 0.6 end_block ;; right_flank missile cav begin_block 13 not_general unit_type missile cavalry 1.0 block_formation line block_relative_pos 11 5.0 0.0 inter_unit_spacing 4.0 priority 0.6 end_block ;; general at the back begin_block 14 max_units 1 unit_type general_unit 1.0 ;default_melee_state engage_at_will unit_density close block_formation line block_relative_pos 9 6.0 -8.0 inter_unit_spacing 3.0 priority 1.0 end_block ;; any behind begin_block 15 max_units 1 unit_type any 0.5 block_formation line block_relative_pos 14 0.0 -30.0 inter_unit_spacing 0.3 priority 0.1 end_block ;; artillery and handler behind begin_block 16 unit_type handler 1.0 unit_type siege 1.0 block_formation line block_relative_pos 15 0.0 -20.0 inter_unit_spacing 3.0 priority 0.1 end_block end_formation ;**************************************************************** ; Non_phalanx_spear triple line attack formation (created by Sinuhet) ;**************************************************************** begin_formation barbar_attack_3 ;;; purpose flags attack defend ai_priority 2.40 ;supported_factions persians ; Screen of missile inf begin_block 0 max_units 3 unit_type skirmish infantry 1.0 unit_type elephants 1.0 unit_type chanting_screeching 0.9 unit_type missile infantry 0.8 unit_density close block_formation line block_relative_pos 0 0.0 0.0 inter_unit_spacing 2.0 priority 0.5 end_block ;; first phalanx line begin_block 1 min_units 4 max_units 6 unit_type non_phalanx_spear 1.0 unit_density close block_formation line block_relative_pos 0 0.0 -15.0 inter_unit_spacing 0.3 priority 1.0 end_block ;; second phalanx line begin_block 2 min_units 4 max_units 7 unit_type non_phalanx_spear 1.0 unit_density close block_formation line block_relative_pos 1 0.0 -15.0 inter_unit_spacing 0.3 priority 1.0 end_block ;; third phalanx line begin_block 3 min_units 5 max_units 7 unit_type non_phalanx_spear 1.0 unit_density close block_formation line block_relative_pos 2 0.0 -5.0 inter_unit_spacing 0.3 priority 1.0 end_block ;; missile troops behind the spearmen begin_block 4 max_units 2 unit_type ranged_missile_infantry 0.9 unit_type missile infantry 1.0 unit_type skirmish infantry 0.8 block_formation line block_relative_pos 3 0.0 -10.0 inter_unit_spacing 2.0 priority 0.8 end_block begin_block 5 max_units 2 unit_type ranged_missile_infantry 1.0 unit_type missile infantry 1.0 unit_type chanting_screeching 0.5 unit_type skirmish infantry 0.8 block_formation line block_relative_pos 4 0.0 -10.0 inter_unit_spacing 2.0 priority 0.7 end_block begin_block 6 max_units 4 unit_type ranged_missile_infantry 1.0 unit_type missile infantry 0.9 unit_type chanting_screeching 0.5 unit_type skirmish infantry 0.8 block_formation line block_relative_pos 5 0.0 -10.0 inter_unit_spacing 2.0 priority 0.6 end_block begin_block 7 max_units 5 unit_type ranged_missile_infantry 1.0 unit_type missile infantry 0.9 unit_type chanting_screeching 0.5 unit_type skirmish infantry 0.8 block_formation line block_relative_pos 6 0.0 -10.0 inter_unit_spacing 2.0 priority 0.5 end_block ;; heavy and light infantry either side of the spearmen ;; left side begin_block 8 max_units 2 unit_type heavy infantry 0.9 unit_type light infantry 0.8 block_formation line block_relative_pos 2 -1.5 1.0 inter_unit_spacing 0.3 priority 0.8 end_block ;; right side begin_block 9 max_units 2 unit_type heavy infantry 0.9 unit_type light infantry 0.8 block_formation line block_relative_pos 2 1.5 1.0 inter_unit_spacing 0.3 priority 0.8 end_block begin_dummy_block 10 spans 0 1 2 3 4 5 6 7 8 9 end_dummy_block ;; cavalry on the flanks and back a bit ;; left flank begin_block 11 not_general unit_type cavalry 1.0 block_formation line block_relative_pos 10 -20.0 -1.0 inter_unit_spacing 4.0 priority 0.5 end_block ;; right_flank begin_block 12 not_general unit_type cavalry 1.0 block_formation line block_relative_pos 10 20.0 -1.0 inter_unit_spacing 4.0 priority 0.5 end_block ;; left flank missile cav begin_block 13 not_general unit_type missile cavalry 1.0 block_formation line block_relative_pos 11 -5.0 0.0 inter_unit_spacing 4.0 priority 0.6 end_block ;; right_flank missile cav begin_block 14 not_general unit_type missile cavalry 1.0 block_formation line block_relative_pos 12 5.0 0.0 inter_unit_spacing 4.0 priority 0.6 end_block ;; general at the back begin_block 15 max_units 1 unit_type general_unit 1.0 ;default_melee_state engage_at_will unit_density close block_formation line block_relative_pos 10 6.0 -8.0 inter_unit_spacing 3.0 priority 1.0 end_block ;; any behind begin_block 16 max_units 1 unit_type any 0.5 block_formation line block_relative_pos 15 0.0 -30.0 inter_unit_spacing 0.3 priority 0.1 end_block ;; artillery and handler behind begin_block 17 unit_type handler 1.0 unit_type siege 1.0 block_formation line block_relative_pos 16 0.0 -20.0 inter_unit_spacing 3.0 priority 0.1 end_block end_formation ;**************************************************************** ;Pseudoromans - Special formation for factions with non-precursor ;weapons, 2 lines of inf, cav on the wings (created by Sinuhet) ;**************************************************************** begin_formation ai_standard_line_1 ;;; purpose flags attack defend ai_priority 2.8 ;supported_factions persians ; Screen of missile inf begin_block 0 max_units 5 unit_type skirmish infantry 1.0 unit_type chanting_screeching 0.9 unit_type missile infantry 0.8 unit_type elephants 1.0 unit_density close block_formation line block_relative_pos 0 0.0 0.0 inter_unit_spacing 2.0 priority 0.6 end_block ;; First line of infantry begin_block 1 min_units 2 max_units 8 unit_type light infantry 1.0 unit_type heavy infantry 0.9 unit_density close block_formation line block_relative_pos 0 0.0 -7.0 inter_unit_spacing 10.0 priority 1.0 end_block ;; second line of infantry begin_block 2 min_units 3 max_units 8 unit_type heavy infantry 1.0 unit_type light infantry 0.9 unit_density close block_formation line block_relative_pos 1 0.0 -10.0 inter_unit_spacing 10.0 priority 1.0 end_block ;; 3rd line of infantry, guard of archers begin_block 3 max_units 12 unit_type non_phalanx_spear 1.0 unit_type heavy infantry 0.6 unit_type light infantry 0.2 unit_formation square unit_density close block_formation line block_relative_pos 2 0.0 -10.0 inter_unit_spacing 0.3 priority 0.8 end_block ;; Archers behind begin_block 4 max_units 10 unit_type ranged_missile_infantry 1.0 unit_type missile infantry 0.5 unit_type chanting_screeching 0.3 unit_type skirmish infantry 0.4 block_formation line block_relative_pos 3 0.0 -10.0 inter_unit_spacing 2.0 priority 0.5 end_block ;; general at the back begin_block 5 min_units 1 max_units 1 unit_type general_unit 1.0 ;default_melee_state engage_at_will unit_density close block_formation line block_relative_pos 4 6.0 -8.0 inter_unit_spacing 3.0 priority 1.0 end_block begin_dummy_block 6 spans 4 5 end_dummy_block ;; cavalry on the flanks and back a bit ;; left flank cav begin_block 7 not_general unit_type cavalry 1.0 block_formation line block_relative_pos 5 -20.0 0.0 inter_unit_spacing 4.0 priority 0.5 end_block ;; right_flank cav begin_block 8 not_general unit_type cavalry 1.0 block_formation line block_relative_pos 5 20.0 0.0 inter_unit_spacing 4.0 priority 0.5 end_block ;; left flank missile cav begin_block 9 not_general unit_type missile cavalry 1.0 block_formation line block_relative_pos 7 -5.0 0.0 inter_unit_spacing 4.0 priority 0.6 end_block ;; right_flank missile cav begin_block 10 not_general unit_type missile cavalry 1.0 block_formation line block_relative_pos 8 5.0 0.0 inter_unit_spacing 4.0 priority 0.6 end_block ;; any behind begin_block 11 max_units 5 unit_type any 0.5 block_formation line block_relative_pos 5 0.0 -30.0 inter_unit_spacing 0.3 priority 0.1 end_block ;; artillery and handlers at the back begin_block 12 unit_type handler 1.0 unit_type siege 1.0 block_formation line block_relative_pos 11 0.0 -20.0 inter_unit_spacing 2.0 priority 0.5 end_block end_formation ;**************************************************************** ;**************************************************************** ; Romans section ;**************************************************************** ;**************************************************************** ;**************************************************************** ;More historical formation for Romans with premarian units (and ; other factions with precursor weapons - created by Sinuhet) ;**************************************************************** begin_formation special_Roman_premarian ;;; purpose flags attack defend ai_priority 3.0 ;supported_factions persians ; Screen of skirmish infantry - velites begin_block 0 max_units 3 unit_type skirmish infantry 1.0 unit_type missile infantry 0.8 unit_type elephants 1.0 unit_density close block_formation line block_relative_pos 0 0.0 0.0 inter_unit_spacing 2.0 priority 0.5 end_block ;; First line of infantry - 1-5x hastati begin_block 1 min_units 1 max_units 5 unit_type light_pilum_infantry 1.0 unit_density close block_formation line block_relative_pos 0 0.0 -7.0 inter_unit_spacing 10.0 priority 1.0 end_block ;; Second line of infantry - 1-5x princeps begin_block 2 min_units 1 max_units 5 unit_type heavy_pilum_infantry 1.0 unit_density close block_formation line block_relative_pos 1 0.0 -10.0 inter_unit_spacing 10.0 priority 1.0 end_block ;; 3rd line of infantry - 1-3x triarii begin_block 3 min_units 1 max_units 3 unit_type non_phalanx_spear 1.0 block_formation line block_relative_pos 2 0.0 -10.0 inter_unit_spacing 2.0 priority 1.0 end_block ;; Archers behind begin_block 4 max_units 2 unit_type ranged_missile_infantry 1.0 block_formation line block_relative_pos 3 0.0 -10.0 inter_unit_spacing 2.0 priority 0.6 end_block ;; general at the back begin_block 5 max_units 1 unit_type general_unit 1.0 ;default_melee_state engage_at_will unit_density close block_formation line block_relative_pos 4 6.0 -8.0 inter_unit_spacing 3.0 priority 1.0 end_block ;; artillery and handlers at the back begin_block 6 unit_type handler 1.0 unit_type siege 1.0 unit_type any 0.01 block_formation line block_relative_pos 5 0.0 -30.0 inter_unit_spacing 2.0 priority 0.1 end_block begin_dummy_block 7 spans 4 5 end_dummy_block ;; cavalry on the flanks and back a bit, not_general for all cavalry ;; left flank cav begin_block 8 max_units 1 not_general unit_type cavalry 1.0 block_formation line block_relative_pos 5 -50.0 -1.0 inter_unit_spacing 4.0 priority 0.5 end_block ;; right_flank cav begin_block 9 max_units 1 not_general unit_type cavalry 1.0 block_formation line block_relative_pos 5 50.0 -1.0 inter_unit_spacing 4.0 priority 0.5 end_block ;; left flank missile cav begin_block 10 max_units 1 not_general unit_type missile cavalry 1.0 block_formation line block_relative_pos 8 -5.0 0.0 inter_unit_spacing 4.0 priority 0.6 end_block ;; right_flank missile cav begin_block 11 max_units 1 not_general unit_type missile cavalry 1.0 block_formation line block_relative_pos 9 5.0 0.0 inter_unit_spacing 4.0 priority 0.6 end_block end_formation ;**************************************************************** ;More historical formation for Romans with postmarian units (and ; other factions with precursor weapons - created by Sinuhet) ;**************************************************************** begin_formation special_Roman_postmarian ;;; purpose flags attack defend ai_priority 2.98 ;supported_factions persians ; Screen of missile inf begin_block 0 max_units 4 unit_type skirmish infantry 1.0 unit_type missile infantry 0.8 unit_type elephants 1.0 unit_density close block_formation line block_relative_pos 0 0.0 0.0 inter_unit_spacing 2.0 priority 0.5 end_block ;; First cohort with Eagle begin_block 1 min_units 1 max_units 1 unit_type heavy_pilum_infantry 1.0 block_formation line block_relative_pos 0 0.0 -60.0 inter_unit_spacing 50 priority 1.0 end_block ;; First line of infantry begin_block 2 min_units 3 max_units 5 unit_type heavy_pilum_infantry 0.95 unit_density close block_formation line block_relative_pos 0 0.0 -10.0 inter_unit_spacing 20.0 priority 0.95 end_block ;; second line of infantry begin_block 3 min_units 3 max_units 4 unit_type heavy_pilum_infantry 0.95 unit_density close block_formation line block_relative_pos 2 0.0 -10.0 inter_unit_spacing 20.0 priority 0.95 end_block ;; 3rd line of infantry left side begin_block 4 max_units 1 unit_type heavy_pilum_infantry 0.10 block_formation line block_relative_pos 1 -50.0 0.0 inter_unit_spacing 50 priority 0.10 end_block ;; 3rd line of infantry right side begin_block 5 max_units 1 unit_type heavy_pilum_infantry 0.10 block_formation line block_relative_pos 1 50.0 0.0 inter_unit_spacing 50 priority 0.10 end_block ;; Archers behind begin_block 6 max_units 4 unit_type ranged_missile_infantry 1.0 block_formation line block_relative_pos 1 0.0 -10.0 inter_unit_spacing 2.0 priority 0.6 end_block ;; general at the back begin_block 7 max_units 1 unit_type general_unit 1.0 ;default_melee_state engage_at_will unit_density close block_formation line block_relative_pos 6 6.0 -8.0 inter_unit_spacing 3.0 priority 1.0 end_block ;; artillery and handlers left side begin_block 8 max_units 1 unit_type handler 1.0 unit_type siege 1.0 block_formation line block_relative_pos 7 -10.0 0.0 inter_unit_spacing 2.0 priority 0.1 end_block ;; artillery and handlers right side begin_block 9 max_units 1 unit_type handler 1.0 unit_type siege 1.0 block_formation line block_relative_pos 7 10.0 0.0 inter_unit_spacing 2.0 priority 0.1 end_block ;; cavalry on the flanks ;; left flank cav begin_block 10 not_general unit_type cavalry 1.0 block_formation line block_relative_pos 7 -50.0 0.0 inter_unit_spacing 4.0 priority 0.5 end_block ;; right_flank cav begin_block 11 not_general unit_type cavalry 1.0 block_formation line block_relative_pos 7 50.0 0.0 inter_unit_spacing 4.0 priority 0.5 end_block ;; left flank missile cav begin_block 12 not_general unit_type missile cavalry 1.0 block_formation line block_relative_pos 10 -5.0 0.0 inter_unit_spacing 4.0 priority 0.6 end_block ;; right_flank missile cav begin_block 13 not_general unit_type missile cavalry 1.0 block_formation line block_relative_pos 11 5.0 0.0 inter_unit_spacing 4.0 priority 0.6 end_block ;; back line of other units begin_block 14 unit_type any 0.01 block_formation line block_relative_pos 7 0.0 -30.0 inter_unit_spacing 0.3 priority 0.01 end_block end_formation ;********************************************************************************* ;More historical formation for Romans with premarian units ;(and other factions with precursor weapons) - Single line - created by Sinuhet ;********************************************************************************* begin_formation special_Roman_single_line ;;; purpose flags attack defend ai_priority 2.25 ;supported_factions persians ;; hastati line begin_block 0 max_units 4 unit_type light_pilum_infantry 1.0 unit_type elephants 1.0 block_formation line block_relative_pos 0 0.0 0.0 inter_unit_spacing 0.3 priority 0.9 end_block ;; princeps left side begin_block 1 max_units 2 unit_type heavy_pilum_infantry 1.0 block_formation line block_relative_pos 0 -0.3 0.0 inter_unit_spacing 0.3 priority 0.9 end_block ;; princeps right side begin_block 2 max_units 2 unit_type heavy_pilum_infantry 1.0 block_formation line block_relative_pos 0 0.3 0.0 inter_unit_spacing 0.3 priority 0.9 end_block ;; triarii left side begin_block 3 min_units 2 unit_type non_phalanx_spear 1.0 block_formation line block_relative_pos 1 -0.3 0.0 inter_unit_spacing 0.3 priority 1.0 end_block ;; triarii right side begin_block 4 min_units 2 unit_type non_phalanx_spear 1.0 block_formation line block_relative_pos 2 0.3 0.0 inter_unit_spacing 0.3 priority 1.0 end_block begin_dummy_block 5 spans 0 1 2 3 4 end_dummy_block ;; missile troops behind the infantry begin_block 6 unit_type skirmish infantry 1.0 unit_type missile infantry 0.8 block_formation line block_relative_pos 5 0.0 -10.0 inter_unit_spacing 2.0 priority 0.7 end_block begin_block 7 unit_type ranged_missile_infantry 1.0 block_formation line block_relative_pos 6 0.0 -10.0 inter_unit_spacing 2.0 priority 0.8 end_block ;; general begin_block 8 max_units 1 unit_type general_unit 1.0 ;default_melee_state engage_at_will unit_density close block_formation line block_relative_pos 7 6.0 -8.0 inter_unit_spacing 3.0 priority 1.0 end_block ;; artillery and handler on the sides begin_block 9 unit_type handler 1.0 unit_type siege 1.0 block_formation line block_relative_pos 8 -10.0 0.0 inter_unit_spacing 3.0 priority 0.1 end_block begin_block 10 unit_type handler 1.0 unit_type siege 1.0 block_formation line block_relative_pos 8 10.0 0.0 inter_unit_spacing 3.0 priority 0.1 end_block ;; cavalry on the flanks ;; left flank begin_block 11 not_general unit_type cavalry 1.0 block_formation line block_relative_pos 9 -20.0 -8.0 inter_unit_spacing 4.0 priority 0.6 end_block ;; right_flank begin_block 12 not_general unit_type cavalry 1.0 block_formation line block_relative_pos 10 20.0 -8.0 inter_unit_spacing 4.0 priority 0.6 end_block ;; left flank missile cav begin_block 13 not_general unit_type missile cavalry 1.0 block_formation line block_relative_pos 11 -5.0 0.0 inter_unit_spacing 4.0 priority 0.7 end_block ;; right_flank missile cav begin_block 14 not_general unit_type missile cavalry 1.0 block_formation line block_relative_pos 12 5.0 0.0 inter_unit_spacing 4.0 priority 0.7 end_block begin_dummy_block 15 spans 8 9 10 11 12 13 14 end_dummy_block ;; back line of other units begin_block 16 max_units 1 unit_type any 0.01 block_formation line block_relative_pos 15 0.0 -20.0 inter_unit_spacing 0.3 priority 0.01 end_block end_formation ;**************************************************************************** ;More historical formation for Romans with postmarian units ; (and other factions with precursor weapons) - Wedge - created by Sinuhet ;**************************************************************************** begin_formation special_Roman_wedge ;;; purpose flags attack defend ai_priority 2.98 ;supported_factions persians ;; First cohort with Eagle begin_block 0 min_units 1 max_units 1 unit_type heavy_pilum_infantry 1.0 unit_type elephants 1.0 block_formation line block_relative_pos 0 0.0 0.0 inter_unit_spacing 1.0 priority 1.0 end_block ;; First line of infantry begin_block 1 min_units 1 max_units 1 unit_type heavy_pilum_infantry 1.0 unit_density close block_formation line block_relative_pos 0 0.0 70.0 inter_unit_spacing 1.0 priority 0.95 end_block ;; second line of infantry begin_block 2 min_units 3 max_units 3 unit_type heavy_pilum_infantry 1.0 unit_density close block_formation line block_relative_pos 1 0.0 -5.0 inter_unit_spacing 1.0 priority 0.95 end_block ;; 3rd line of infantry begin_block 3 min_units 5 max_units 5 unit_type heavy_pilum_infantry 1.0 block_formation line block_relative_pos 2 0.0 -5.0 inter_unit_spacing 1.0 priority 0.9 end_block ;; 4th line of infantry begin_block 4 min_units 3 max_units 7 unit_type heavy_pilum_infantry 1.0 block_formation line block_relative_pos 3 0.0 -5.0 inter_unit_spacing 1.0 priority 0.9 end_block ;; general at the back, inserted by Sinuhet begin_block 5 max_units 1 unit_type general_unit 1.0 ;default_melee_state engage_at_will unit_density close block_formation line block_relative_pos 4 6.0 -8.0 inter_unit_spacing 3.0 priority 1.0 end_block ;; cavalry on the flanks ;; left flank cav begin_block 6 not_general unit_type cavalry 1.0 block_formation line block_relative_pos 0 -20.0 -8.0 inter_unit_spacing 4.0 priority 0.5 end_block ;; right_flank cav begin_block 7 not_general unit_type cavalry 1.0 block_formation line block_relative_pos 0 20.0 -8.0 inter_unit_spacing 4.0 priority 0.5 end_block ;; left flank missile cav begin_block 8 not_general unit_type missile cavalry 1.0 block_formation line block_relative_pos 6 -5.0 0.0 inter_unit_spacing 4.0 priority 0.6 end_block ;; right_flank missile cav begin_block 9 not_general unit_type missile cavalry 1.0 block_formation line block_relative_pos 7 5.0 0.0 inter_unit_spacing 4.0 priority 0.6 end_block ;; Line of missile inf begin_block 10 unit_type skirmish infantry 1.0 unit_type missile infantry 0.8 unit_density close block_formation line block_relative_pos 5 0.0 -10.0 inter_unit_spacing 2.0 priority 0.5 end_block ;; Archers behind begin_block 11 unit_type ranged_missile_infantry 1.0 block_formation line block_relative_pos 10 0.0 -10.0 inter_unit_spacing 2.0 priority 0.6 end_block ;; artillery and handlers at the back begin_block 12 unit_type handler 1.0 unit_type siege 1.0 unit_type any 0.01 block_formation line block_relative_pos 11 0.0 -20.0 inter_unit_spacing 2.0 priority 0.1 end_block end_formation ;**************************************************************** ;**************************************************************** ; Special missile formations section ;**************************************************************** ;**************************************************************** ;**************************************************************** ; Missile troops without infantry formation (created by Sinuhet) ;**************************************************************** begin_formation missile_and_cavalry_army ;;; purpose flags attack defend ai_priority 3.6 ;supported_factions persians ; Screen of missile cavalry begin_block 0 not_general unit_type missile cavalry 0.7 unit_type elephants 1.0 block_formation line block_relative_pos 0 0.0 0.0 inter_unit_spacing 4.0 priority 0.7 end_block ;; first missile units group begin_block 1 max_units 1 unit_type skirmish infantry 1.0 unit_type chanting_screeching 0.9 unit_type missile infantry 0.8 unit_density close block_formation line block_relative_pos 0 0.0 -20.0 inter_unit_spacing 2.0 priority 0.86 end_block ;; second missile units group begin_block 2 max_units 2 unit_type skirmish infantry 1.0 unit_type chanting_screeching 0.9 unit_type missile infantry 0.8 unit_density close block_formation line block_relative_pos 1 0.0 -20.0 inter_unit_spacing 2.0 priority 0.87 end_block ;; third missile units group begin_block 3 max_units 1 unit_type skirmish infantry 1.0 unit_type chanting_screeching 0.9 unit_type missile infantry 0.8 unit_density close block_formation column block_relative_pos 2 -2.0 -20.0 inter_unit_spacing 2.0 priority 0.88 end_block begin_block 4 max_units 1 unit_type skirmish infantry 1.0 unit_type chanting_screeching 0.9 unit_type missile infantry 0.8 unit_density close block_formation column block_relative_pos 2 2.0 -20.0 inter_unit_spacing 2.0 priority 0.88 end_block ;; 4th missile units group begin_block 5 max_units 1 unit_type skirmish infantry 1.0 unit_type chanting_screeching 0.9 unit_type missile infantry 0.8 unit_density close block_formation column block_relative_pos 3 -2.0 -20.0 inter_unit_spacing 2.0 priority 0.89 end_block begin_block 6 max_units 1 unit_type skirmish infantry 1.0 unit_type chanting_screeching 0.9 unit_type missile infantry 0.8 unit_density close block_formation column block_relative_pos 4 2.0 -20.0 inter_unit_spacing 2.0 priority 0.89 end_block ;; 5th missile units group begin_block 7 max_units 1 unit_type skirmish infantry 1.0 unit_type chanting_screeching 0.9 unit_type missile infantry 0.8 unit_density close block_formation column block_relative_pos 5 -2.0 -20.0 inter_unit_spacing 2.0 priority 0.9 end_block begin_block 8 max_units 1 unit_type skirmish infantry 1.0 unit_type chanting_screeching 0.9 unit_type missile infantry 0.8 unit_density close block_formation column block_relative_pos 6 2.0 -20.0 inter_unit_spacing 2.0 priority 0.9 end_block begin_dummy_block 9 spans 1 2 3 4 5 6 7 8 end_dummy_block ;; spearmen line begin_block 10 max_units 0 unit_type phalanx 0.70 unit_formation square unit_density close block_formation line block_relative_pos 9 0.0 -20.0 inter_unit_spacing 0.3 priority 0.70 end_block begin_block 11 max_units 0 unit_type non_phalanx_spear 0.70 unit_formation square unit_density close block_formation line block_relative_pos 10 -0.3 0.0 inter_unit_spacing 0.3 priority 0.70 end_block begin_block 12 max_units 0 unit_type non_phalanx_spear 0.70 unit_formation square unit_density close block_formation line block_relative_pos 10 0.3 0.0 inter_unit_spacing 0.3 priority 0.70 end_block ;; missile troops behind the spearmen begin_block 13 max_units 2 unit_type ranged_missile_infantry 1.0 block_formation line block_relative_pos 10 0.0 -10.0 inter_unit_spacing 2.0 priority 1.0 end_block ;; heavy and light infantry either side of the spearmen ;; left side begin_block 14 max_units 0 unit_type heavy infantry 0.70 block_formation line block_relative_pos 11 -0.3 0.0 inter_unit_spacing 0.3 priority 0.70 end_block ;; right side begin_block 15 max_units 0 unit_type heavy infantry 0.70 block_formation line block_relative_pos 12 0.3 0.0 inter_unit_spacing 0.3 priority 0.70 end_block ;; left side begin_block 16 max_units 0 unit_type light infantry 0.70 block_formation line block_relative_pos 14 -0.3 0.0 inter_unit_spacing 0.3 priority 0.70 end_block ;; right side begin_block 17 max_units 0 unit_type light infantry 0.70 block_formation line block_relative_pos 15 0.3 0.0 inter_unit_spacing 0.3 priority 0.70 end_block ;; general at the back begin_block 18 max_units 1 unit_type general_unit 1.0 ;default_melee_state engage_at_will unit_density close block_formation line block_relative_pos 13 6.0 -8.0 inter_unit_spacing 3.0 priority 1.0 end_block ;; cavalry on the flanks ;; left flank begin_block 19 not_general unit_type cavalry 0.5 block_formation line block_relative_pos 18 -20.0 -8.0 inter_unit_spacing 4.0 priority 0.5 end_block ;; right_flank begin_block 20 not_general unit_type cavalry 0.5 block_formation line block_relative_pos 18 20.0 -8.0 inter_unit_spacing 4.0 priority 0.5 end_block ;; artillery and handler behind begin_block 21 unit_type handler 1.0 unit_type siege 1.0 block_formation line block_relative_pos 18 0.0 -20.0 inter_unit_spacing 3.0 priority 0.1 end_block ;; back line of other units begin_block 22 max_units 1 unit_type any 0.01 block_formation line block_relative_pos 21 0.0 -10.0 inter_unit_spacing 0.3 priority 0.1 end_block end_formation ;**************************************************************** ; Missile troops army defensive formation (created by Sinuhet) ;**************************************************************** begin_formation missile_defend_1 ;;; purpose flags defend ai_priority 3.5 ;supported_factions persians ; Screen of missile cavalry begin_block 0 not_general unit_type missile cavalry 0.7 unit_type elephants 1.0 block_formation line block_relative_pos 0 0.0 0.0 inter_unit_spacing 4.0 priority 0.7 end_block ;; first missile units group begin_block 1 min_units 1 max_units 1 unit_type skirmish infantry 1.0 unit_type chanting_screeching 0.9 unit_type missile infantry 0.8 unit_density close block_formation line block_relative_pos 0 0.0 -20.0 inter_unit_spacing 2.0 priority 0.86 end_block ;; second missile units group begin_block 2 min_units 3 max_units 3 unit_type skirmish infantry 1.0 unit_type chanting_screeching 0.9 unit_type missile infantry 0.8 unit_density close block_formation line block_relative_pos 1 0.0 -20.0 inter_unit_spacing 2.0 priority 0.87 end_block ;; third missile units group begin_block 3 min_units 1 max_units 2 unit_type skirmish infantry 1.0 unit_type chanting_screeching 0.9 unit_type missile infantry 0.8 unit_density close block_formation column block_relative_pos 2 -2.0 -20.0 inter_unit_spacing 2.0 priority 0.88 end_block begin_block 4 min_units 1 max_units 2 unit_type skirmish infantry 1.0 unit_type chanting_screeching 0.9 unit_type missile infantry 0.8 unit_density close block_formation column block_relative_pos 2 2.0 -20.0 inter_unit_spacing 2.0 priority 0.88 end_block ;; 4th missile units group begin_block 5 min_units 1 max_units 2 unit_type skirmish infantry 1.0 unit_type chanting_screeching 0.9 unit_type missile infantry 0.8 unit_density close block_formation column block_relative_pos 3 -2.0 -20.0 inter_unit_spacing 2.0 priority 0.89 end_block begin_block 6 min_units 1 max_units 2 unit_type skirmish infantry 1.0 unit_type chanting_screeching 0.9 unit_type missile infantry 0.8 unit_density close block_formation column block_relative_pos 4 2.0 -20.0 inter_unit_spacing 2.0 priority 0.89 end_block ;; 5th missile units group begin_block 7 min_units 1 max_units 2 unit_type skirmish infantry 1.0 unit_type chanting_screeching 0.9 unit_type missile infantry 0.8 unit_density close block_formation column block_relative_pos 5 -2.0 -20.0 inter_unit_spacing 2.0 priority 0.9 end_block begin_block 8 min_units 1 max_units 2 unit_type skirmish infantry 1.0 unit_type chanting_screeching 0.9 unit_type missile infantry 0.8 unit_density close block_formation column block_relative_pos 6 2.0 -20.0 inter_unit_spacing 2.0 priority 0.9 end_block begin_dummy_block 9 spans 1 2 3 4 5 6 7 8 end_dummy_block ;; spearmen line begin_block 10 unit_type phalanx 0.70 unit_formation square unit_density close block_formation line block_relative_pos 9 0.0 -20.0 inter_unit_spacing 0.2 priority 0.70 end_block begin_block 11 unit_type non_phalanx_spear 0.70 ;default_melee_state engage_at_will unit_formation square unit_density close block_formation line block_relative_pos 10 -0.3 0.0 inter_unit_spacing 0.3 priority 0.70 end_block begin_block 12 unit_type non_phalanx_spear 0.70 ;default_melee_state engage_at_will unit_formation square unit_density close block_formation line block_relative_pos 10 0.3 0.0 inter_unit_spacing 0.3 priority 0.70 end_block ;; missile troops behind the spearmen begin_block 13 min_units 2 max_units 4 unit_type ranged_missile_infantry 1.0 block_formation line block_relative_pos 10 0.0 -10.0 inter_unit_spacing 2.0 priority 1.0 end_block ;; heavy and light infantry either side of the spearmen ;; left side begin_block 14 unit_type heavy infantry 0.70 block_formation line block_relative_pos 11 -0.3 0.0 inter_unit_spacing 0.3 priority 0.70 end_block ;; right side begin_block 15 unit_type heavy infantry 0.70 block_formation line block_relative_pos 12 0.3 0.0 inter_unit_spacing 0.3 priority 0.70 end_block ;; left side begin_block 16 unit_type light infantry 0.70 block_formation line block_relative_pos 14 -0.3 0.0 inter_unit_spacing 0.3 priority 0.70 end_block ;; right side begin_block 17 unit_type light infantry 0.70 block_formation line block_relative_pos 15 0.3 0.0 inter_unit_spacing 0.3 priority 0.70 end_block ;; general at the back begin_block 18 max_units 1 unit_type general_unit 1.0 ;default_melee_state engage_at_will unit_density close block_formation line block_relative_pos 13 6.0 -8.0 inter_unit_spacing 3.0 priority 1.0 end_block ;; cavalry on the flanks ;; left flank begin_block 19 not_general unit_type cavalry 0.5 block_formation line block_relative_pos 18 -20.0 -8.0 inter_unit_spacing 4.0 priority 0.5 end_block ;; right_flank begin_block 20 not_general unit_type cavalry 0.5 block_formation line block_relative_pos 18 20.0 -8.0 inter_unit_spacing 4.0 priority 0.5 end_block ;; artillery and handler behind begin_block 21 unit_type handler 1.0 unit_type siege 1.0 block_formation line block_relative_pos 18 0.0 -20.0 inter_unit_spacing 3.0 priority 0.1 end_block ;; back line of other units begin_block 22 max_units 1 unit_type any 0.01 block_formation line block_relative_pos 21 0.0 -10.0 inter_unit_spacing 0.3 priority 0.1 end_block end_formation ;**************************************************************** ; Missile troops army attack formation (created by Sinuhet) ;**************************************************************** begin_formation missile_attack_1 ;;; purpose flags attack ai_priority 3.5 ;supported_factions persians ; Screen of missile cavalry begin_block 0 not_general unit_type missile cavalry 0.7 unit_type elephants 1.0 block_formation line block_relative_pos 0 0.0 0.0 inter_unit_spacing 4.0 priority 0.7 end_block ;; first missile units group begin_block 1 min_units 1 max_units 2 unit_type skirmish infantry 1.0 unit_type chanting_screeching 0.9 unit_type missile infantry 0.8 unit_density close block_formation line block_relative_pos 0 -75.0 -20.0 inter_unit_spacing 2.0 priority 0.9 end_block begin_block 2 min_units 1 max_units 2 unit_type skirmish infantry 1.0 unit_type chanting_screeching 0.9 unit_type missile infantry 0.8 unit_density close block_formation line block_relative_pos 0 75.0 -20.0 inter_unit_spacing 2.0 priority 0.9 end_block ;; second missile units group begin_block 3 min_units 1 max_units 2 unit_type skirmish infantry 1.0 unit_type chanting_screeching 0.9 unit_type missile infantry 0.8 unit_density close block_formation line block_relative_pos 1 0.0 -10.0 inter_unit_spacing 2.0 priority 0.89 end_block begin_block 4 min_units 1 max_units 2 unit_type skirmish infantry 1.0 unit_type chanting_screeching 0.9 unit_type missile infantry 0.8 unit_density close block_formation line block_relative_pos 2 0.0 -10.0 inter_unit_spacing 2.0 priority 0.89 end_block ;; third missile units group begin_block 5 min_units 1 max_units 2 unit_type skirmish infantry 1.0 unit_type chanting_screeching 0.9 unit_type missile infantry 0.8 unit_density close block_formation line block_relative_pos 3 0.0 -20.0 inter_unit_spacing 2.0 priority 0.88 end_block begin_block 6 min_units 1 max_units 2 unit_type skirmish infantry 1.0 unit_type chanting_screeching 0.9 unit_type missile infantry 0.8 unit_density close block_formation line block_relative_pos 4 0.0 -20.0 inter_unit_spacing 2.0 priority 0.88 end_block ;; 4th missile units group begin_block 7 min_units 1 max_units 1 unit_type skirmish infantry 1.0 unit_type chanting_screeching 0.9 unit_type missile infantry 0.8 unit_density close block_formation line block_relative_pos 0 0.0 -80.0 inter_unit_spacing 2.0 priority 0.86 end_block ;; 5th missile units group begin_block 8 min_units 3 max_units 3 unit_type skirmish infantry 1.0 unit_type chanting_screeching 0.9 unit_type missile infantry 0.8 unit_density close block_formation line block_relative_pos 7 0.0 -10.0 inter_unit_spacing 2.0 priority 0.87 end_block begin_dummy_block 9 spans 1 2 3 4 5 6 7 8 end_dummy_block ;; spearmen line begin_block 10 unit_type phalanx 0.70 unit_formation square unit_density close block_formation line block_relative_pos 9 0.0 -20.0 inter_unit_spacing 0.3 priority 0.70 end_block begin_block 11 unit_type non_phalanx_spear 0.70 unit_formation square unit_density close block_formation line block_relative_pos 10 -0.3 0.0 inter_unit_spacing 0.3 priority 0.70 end_block begin_block 12 unit_type non_phalanx_spear 0.70 unit_formation square unit_density close block_formation line block_relative_pos 10 0.3 0.0 inter_unit_spacing 0.3 priority 0.70 end_block ;; missile troops behind the spearmen begin_block 13 min_units 2 unit_type ranged_missile_infantry 1.0 block_formation line block_relative_pos 10 0.0 -10.0 inter_unit_spacing 2.0 priority 1.0 end_block ;; heavy and light infantry either side of the spearmen ;; left side begin_block 14 unit_type heavy infantry 0.70 block_formation line block_relative_pos 11 -0.3 0.0 inter_unit_spacing 0.3 priority 0.70 end_block ;; right side begin_block 15 unit_type heavy infantry 0.70 block_formation line block_relative_pos 12 0.3 0.0 inter_unit_spacing 0.3 priority 0.70 end_block ;; left side begin_block 16 unit_type light infantry 0.70 block_formation line block_relative_pos 14 -0.3 0.0 inter_unit_spacing 0.3 priority 0.70 end_block ;; right side begin_block 17 unit_type light infantry 0.70 block_formation line block_relative_pos 15 0.3 0.0 inter_unit_spacing 0.3 priority 0.70 end_block ;; general at the back begin_block 18 max_units 1 unit_type general_unit 1.0 ;default_melee_state engage_at_will unit_density close block_formation line block_relative_pos 13 6.0 -8.0 inter_unit_spacing 3.0 priority 1.0 end_block ;; cavalry on the flanks ;; left flank begin_block 19 not_general unit_type cavalry 0.5 block_formation line block_relative_pos 18 -20.0 -8.0 inter_unit_spacing 4.0 priority 0.5 end_block ;; right_flank begin_block 20 not_general unit_type cavalry 0.5 block_formation line block_relative_pos 18 20.0 -8.0 inter_unit_spacing 4.0 priority 0.5 end_block ;; artillery and handler behind begin_block 21 unit_type handler 1.0 unit_type siege 1.0 block_formation line block_relative_pos 18 0.0 -20.0 inter_unit_spacing 3.0 priority 0.1 end_block ;; back line of other units begin_block 22 max_units 1 unit_type any 0.01 block_formation line block_relative_pos 21 0.0 -10.0 inter_unit_spacing 0.3 priority 0.1 end_block end_formation ;**************************************************************** ;**************************************************************** ; Standard formation and other modified formations section ;**************************************************************** ;**************************************************************** ;**************************************************************** ;Standard formation. Infantry line in front, missiles behind ;cav on the wings (modified by Sinuhet) ;**************************************************************** begin_formation ai_standard_line_2 ;;; purpose flags attack defend ;;; decreased AI priority and inter_unit_spacing, decreased units priority - Sinuhet ai_priority 1.9 ;supported_factions persians begin_block 0 min_units 1 unit_type heavy infantry 0.9 unit_type light infantry 0.8 unit_type phalanx 0.1 unit_type elephants 1.0 unit_density close block_formation line block_relative_pos 0 0.0 0.0 inter_unit_spacing 0.3 priority 1.0 end_block ;; heavy and light infantry either side of the spear men ;; left side, decreased inter_unit_spacing - Sinuhet begin_block 1 unit_type non_phalanx_spear 0.8 unit_type heavy infantry 0.7 block_formation line block_relative_pos 0 -0.3 0.0 inter_unit_spacing 0.3 priority 0.5 end_block ;; right side, decreased inter_unit_spacing - Sinuhet begin_block 2 unit_type non_phalanx_spear 0.8 unit_type heavy infantry 0.7 block_formation line block_relative_pos 0 0.3 0.0 inter_unit_spacing 0.3 priority 0.5 end_block ;; missile troops behind the centre - completly restructured begin_block 3 unit_type missile infantry 0.5 unit_type skirmish infantry 0.5 unit_type chanting_screeching 0.5 unit_type light infantry 0.3 block_formation line block_relative_pos 0 0.0 -10.0 inter_unit_spacing 2.0 priority 0.4 end_block begin_dummy_block 4 spans 0 1 2 3 end_dummy_block ;; cavalry on the flanks and back a bit, not_general for all cavalry - Sinuhet ;; left flank cav begin_block 5 not_general unit_type cavalry 1.0 block_formation line block_relative_pos 4 -20.0 -8.0 inter_unit_spacing 4.0 priority 0.5 end_block ;; right_flank cav begin_block 6 not_general unit_type cavalry 1.0 block_formation line block_relative_pos 4 20.0 -8.0 inter_unit_spacing 4.0 priority 0.5 end_block ;; left flank missile cav begin_block 7 not_general unit_type missile cavalry 1.0 block_formation line block_relative_pos 5 -5.0 0.0 inter_unit_spacing 4.0 priority 0.6 end_block ;; right_flank missile cav begin_block 8 not_general unit_type missile cavalry 1.0 block_formation line block_relative_pos 6 5.0 0.0 inter_unit_spacing 4.0 priority 0.6 end_block ;; general at the back, erased min_units, defend - Sinuhet begin_block 9 max_units 1 unit_type general_unit 1.0 ;default_melee_state engage_at_will unit_density close block_formation line block_relative_pos 2 6.0 -10.0 inter_unit_spacing 3.0 priority 1.0 end_block ;; artillery and handler behind begin_block 10 unit_type handler 1.0 unit_type siege 1.0 unit_type any 0.1 block_formation line block_relative_pos 9 0.0 -20.0 inter_unit_spacing 3.0 priority 0.1 end_block end_formation ;**************************************************************** ;Special formation for romans, and others with precursor weapons ;2 lines of inf cav on the wings ;**************************************************************** ; ;begin_formation ai_precursor_line ; ; ;;; purpose flags ; ;attack ; defend ; ; ai_priority 1.95 ; ; ; Screen of missile inf ; begin_block 0 ; unit_type missile infantry 1.0 unit_type elephants 1.0 ; unit_density close ; block_formation line ; block_relative_pos 0 0.0 0.0 ; inter_unit_spacing 2.0 ; priority 1.0 ; end_block ; ; ;; First line of infantry ; begin_block 1 ; min_units 3 ; unit_type light infantry 1.0 ; unit_type heavy_pilum_infantry 0.9 ; unit_density close ; block_formation line ; block_relative_pos 0 0.0 -7.0 ; inter_unit_spacing 10.0 ; priority 1.0 ; end_block ; ; ;; second line of infantry ; begin_block 2 ; min_units 3 ; unit_type heavy_pilum_infantry 1.0 ; unit_type light_pilum_infantry 0.9 ; unit_density close ; block_formation line ; block_relative_pos 1 0.0 -10.0 ; inter_unit_spacing 10.0 ; priority 1.0 ; end_block ; ; ;; 3rd line of infantry ; begin_block 3 ; min_units 2 ; unit_type general_unit 1.0 ; unit_type heavy infantry 0.4 ; unit_type spearmen 1.0 ; block_formation line ; block_relative_pos 2 0.0 -10.0 ; inter_unit_spacing 10.0 ; priority 0.5 ; end_block ; ; ;; Archers behind ; begin_block 4 ; unit_type ranged_missile_infantry 1.0 ; block_formation line ; block_relative_pos 3 0.0 -10.0 ; inter_unit_spacing 3.0 ; priority 1.0 ; end_block ; ; ;; artillery and handlers at the back ; begin_block 5 ; unit_type handler 1.0 ; unit_type siege 1.0 ; unit_type any 0.01 ; block_formation line ; block_relative_pos 4 0.0 -20.0 ; inter_unit_spacing 2.0 ; priority 0.5 ; end_block ; ; begin_dummy_block 6 ; spans 1 2 3 4 ; end_dummy_block ; ; ;; cavalry on the flanks and back a bit ; ; ;; left flank cav ; begin_block 7 ; unit_type cavalry 1.0 ; block_formation line ; block_relative_pos 6 -20.0 -8.0 ; inter_unit_spacing 4.0 ; priority 0.5 ; end_block ; ; ;; right_flank cav ; begin_block 8 ; unit_type cavalry 1.0 ; block_formation line ; block_relative_pos 6 20.0 -8.0 ; inter_unit_spacing 4.0 ; priority 0.5 ; end_block ; ; ;; left flank missile cav ; begin_block 9 ; unit_type missile cavalry 1.0 ; block_formation line ; block_relative_pos 7 -5.0 0.0 ; inter_unit_spacing 4.0 ; priority 0.6 ; end_block ; ; ;; right_flank missile cav ; begin_block 10 ; unit_type missile cavalry 1.0 ; block_formation line ; block_relative_pos 8 5.0 0.0 ; inter_unit_spacing 4.0 ; priority 0.6 ; end_block ; ; ;end_formation ;**************************************************************** ; Formation for light cav armies ; Screen of light cav in centre, with remainder on wings ; heavy cav in centre. - Removed Infantry behind wings - Sinuhet ;**************************************************************** begin_formation ai_light_cavalry ;;; purpose flags attack defend ai_priority 3.7 ;supported_factions persians ; screen begin_block 0 min_units 1 max_units 2 unit_type missile cavalry 1.0 unit_type elephants 1.0 unit_density close block_formation line block_relative_pos 0 0.0 0.0 inter_unit_spacing 4.0 priority 1.0 end_block ;; light cav on either wing ;; left side begin_block 1 max_units 2 unit_type missile cavalry 1.0 block_formation line block_relative_pos 0 -20.0 0.0 inter_unit_spacing 4.0 priority 1.0 end_block ;; right side begin_block 2 max_units 2 unit_type missile cavalry 1.0 block_formation line block_relative_pos 0 20.0 0.0 inter_unit_spacing 4.0 priority 1.0 end_block ;; Light cav reserves for either wing ;; left side begin_block 3 unit_type missile cavalry 1.0 block_formation line block_relative_pos 1 -10.0 -20.0 inter_unit_spacing 4.0 priority 0.3 end_block ;; right side begin_block 4 unit_type missile cavalry 1.0 block_formation line block_relative_pos 2 10.0 -20.0 inter_unit_spacing 4.0 priority 0.3 end_block ;; heavy cav behind centre begin_block 5 min_units 1 unit_type cavalry 0.7 block_formation line block_relative_pos 3 0.0 -10.0 inter_unit_spacing 4.0 priority 0.5 end_block begin_block 6 min_units 1 unit_type cavalry 0.7 block_formation line block_relative_pos 4 0.0 -10.0 inter_unit_spacing 4.0 priority 0.5 end_block ;; Cavalry centre begin_block 7 min_units 1 max_units 8 unit_type cavalry 1.0 block_formation line block_relative_pos 0 0.0 -15.0 inter_unit_spacing 4.0 priority 0.5 end_block ;; general at the back begin_block 8 min_units 1 max_units 1 unit_type general_unit 1.0 ;default_melee_state engage_at_will unit_density close block_formation line block_relative_pos 2 6.0 -10.0 inter_unit_spacing 3.0 priority 1.0 end_block begin_dummy_block 9 spans 0 1 2 3 4 5 6 7 8 end_dummy_block ;; artillery and handler behind begin_block 10 unit_type handler 1.0 unit_type siege 1.0 block_formation line block_relative_pos 9 0.0 -20.0 inter_unit_spacing 3.0 priority 0.1 end_block begin_block 11 max_units 0 unit_type infantry 0.1 unit_formation square unit_density close block_formation line block_relative_pos 10 0.0 -20.0 inter_unit_spacing 0.3 priority 0.5 end_block end_formation ;**************************************************************** ;**************************************************************** ; Unmodified formations section ;**************************************************************** ;**************************************************************** ;**************************************************************** ;The simplest formation. The units are lined up in a single line ;**************************************************************** begin_formation ai_line ;;; purpose flags attack ; can use this for anything defend ai_priority 0.3 ;supported_factions persians begin_block 0 min_units 1 unit_type any 1.0 unit_density close block_formation line block_relative_pos 0 0.0 0.0 inter_unit_spacing 3.0 priority 1.0 end_block ;; put the artillery and handlers behind everyone begin_block 1 unit_type handler 1.0 unit_type siege 1.0 block_formation line block_relative_pos 0 0.0 -5.0 inter_unit_spacing 3.0 priority 1.0 end_block end_formation ;**************************************************************** ; a single line, but with the units ordered with heavy infantry in the centre ; lighter infantry on the flanks, and cavalry on the wings ;**************************************************************** begin_formation ai_ordered_single_line ;;; purpose flags attack ; can use this for anything defend ai_priority 0.5 ;supported_factions persians ;; centre block begin_block 0 min_units 1 unit_type heavy infantry 1.0 unit_type elephants 1.0 unit_type light infantry 0.8 unit_type infantry 0.1 unit_type any 0.0 unit_density close block_formation line block_relative_pos 0 0.0 0.0 inter_unit_spacing 3.0 priority 1.0 end_block ;; right of centre begin_block 1 unit_type missile infantry 1.0 unit_type light infantry 1.0 unit_type skirmish infantry 1.0 unit_density close block_formation line block_relative_pos 0 3.0 0.0 inter_unit_spacing 3.0 priority 0.9 end_block ;; right wing begin_block 2 unit_type cavalry 1.0 unit_density close block_formation line block_relative_pos 1 3.0 0.0 inter_unit_spacing 3.0 priority 0.9 end_block ;; left of centre begin_block 3 unit_type missile infantry 1.0 unit_type light infantry 1.0 unit_type skirmish infantry 1.0 unit_density close block_formation line block_relative_pos 0 -3.0 0.0 inter_unit_spacing 3.0 priority 0.9 end_block ;; left wing begin_block 4 unit_type cavalry 1.0 unit_density close block_formation line block_relative_pos 3 -3.0 0.0 inter_unit_spacing 3.0 priority 0.9 end_block ;; put the artillery and handlers behind everyone begin_dummy_block 5 spans 0 1 2 3 4 end_dummy_block begin_block 6 unit_type handler 1.0 unit_type siege 1.0 block_formation line block_relative_pos 6 0.0 -5.0 inter_unit_spacing 3.0 priority 1.0 end_block end_formation begin_formation ai_simple_double_line ;;; purpose flags attack defend ai_priority 0.4 ;supported_factions persians ;;; front begin_block 0 min_units 1 unit_type any 1.0 unit_type elephants 1.0 unit_density close block_formation line block_relative_pos 0 0.0 0.0 inter_unit_spacing 3.0 priority 1.0 end_block ;;; rear begin_block 1 min_units 1 unit_type any 1.0 unit_density close block_formation line block_relative_pos 0 0.0 -3.0 inter_unit_spacing 3.0 priority 0.8 end_block ;; put the artillery and handlers behind everyone begin_block 2 unit_type handler 1.0 unit_type siege 1.0 block_formation line block_relative_pos 1 0.0 -5.0 inter_unit_spacing 3.0 priority 1.0 end_block ;;; special general block begin_block 3 min_units 1 max_units 1 unit_type general_unit 1.0 unit_density close block_formation line block_relative_pos 2 6.0 -8.0 inter_unit_spacing 3.0 priority 1.0 end_block end_formation ;**************************************************************** ; Double Line. Missile troops in front, anything else behind ;**************************************************************** begin_formation ai_double_missiles_in_front ;;; purpose flags defend ai_priority 0.6 ;supported_factions persians ;;; The missile units begin_block 0 min_units 1 unit_type missile 1.0 unit_type elephants 1.0 unit_density close block_formation line block_relative_pos 0 0.0 0.0 inter_unit_spacing 3.0 priority 1.0 end_block ;;; Centre slot of rear row begin_block 1 unit_type heavy infantry 1.0 unit_type light infantry 1.0 unit_type skirmish infantry 1.0 unit_type spearmen infantry 1.0 unit_type heavy cavalry 0.0 unit_type light cavalry 0.0 unit_type skirmish cavalry 0.0 unit_type spearmen cavalry 0.0 unit_density close block_formation line block_relative_pos 0 0.0 -3.0 inter_unit_spacing 3.0 priority 1.0 end_block ;;; Right slot of rear row begin_block 2 unit_type heavy cavalry 1.0 unit_type light cavalry 1.0 unit_type skirmish cavalry 1.0 unit_type spearmen cavalry 1.0 unit_density close block_formation line block_relative_pos 1 3.0 0.0 inter_unit_spacing 3.0 priority 1.0 end_block ;;; left slot of rear row begin_block 3 unit_type heavy cavalry 1.0 unit_type light cavalry 1.0 unit_type skirmish cavalry 1.0 unit_type spearmen cavalry 1.0 unit_density close block_formation line block_relative_pos 1 -3.0 0.0 inter_unit_spacing 3.0 priority 1.0 end_block ;; put the artillery and handlers behind everyone begin_dummy_block 4 spans 0 1 2 3 end_dummy_block begin_block 5 unit_type handler 1.0 unit_type siege 1.0 block_formation line block_relative_pos 4 0.0 -5.0 inter_unit_spacing 3.0 priority 1.0 end_block begin_dummy_block 6 spans 0 1 2 3 4 5 end_dummy_block ;;; special general block begin_block 7 min_units 1 max_units 1 unit_type general_unit 1.0 unit_density close block_formation line block_relative_pos 6 6 -8.0 inter_unit_spacing 3.0 priority 1.0 end_block ;; put the artillery and handlers behind everyone begin_dummy_block 8 spans 0 1 2 3 4 5 6 7 end_dummy_block begin_block 9 unit_type handler 1.0 unit_type siege 1.0 block_formation line block_relative_pos 8 0.0 -5.0 inter_unit_spacing 3.0 priority 1.0 end_block end_formation ;**************************************************************** ; Double Line. Spearmen and heavy infantry in front, ; anything else behind ;**************************************************************** begin_formation ai_double_heavy_infantry_in_front ;;; purpose flags attack defend ai_priority 0.6 ;supported_factions persians ;;; heavy units begin_block 0 min_units 1 unit_type heavy infantry 1.0 unit_type elephants 1.0 unit_density close block_formation line block_relative_pos 0 0.0 0.0 inter_unit_spacing 3.0 priority 1.0 end_block ;;; Centre slot of rear row begin_block 1 unit_type infantry 1.0 unit_density close block_formation line block_relative_pos 0 0.0 -3.0 inter_unit_spacing 3.0 priority 1.0 end_block ;;; Right slot of rear row begin_block 2 unit_type cavalry 0.6 unit_density close block_formation line block_relative_pos 1 3.0 0.0 inter_unit_spacing 3.0 priority 1.0 end_block ;;; left slot of rear row begin_block 3 unit_type cavalry 1.0 unit_density close block_formation line block_relative_pos 1 -3.0 0.0 inter_unit_spacing 3.0 priority 1.0 end_block ;; put the artillery and handlers behind everyone begin_dummy_block 4 spans 0 1 2 3 end_dummy_block begin_block 5 unit_type handler 1.0 unit_type siege 1.0 block_formation line block_relative_pos 4 0.0 -5.0 inter_unit_spacing 3.0 priority 1.0 end_block begin_dummy_block 6 spans 0 1 2 3 4 5 end_dummy_block ;;; special general block begin_block 7 min_units 1 max_units 1 unit_type general_unit 1.0 unit_density close block_formation line block_relative_pos 6 6 -8.0 inter_unit_spacing 3.0 priority 1.0 end_block end_formation ;**************************************************************** ; Double Line. Spearmen and heavy infantry in front, ; anything else behind. Single unit screen in front ;**************************************************************** begin_formation ai_double_assault_infantry_in_front ;;; purpose flags attack ai_priority 0.6 ;;; The screen begin_block 0 max_units 1 unit_type missile infantry 1.0 unit_type elephants 1.0 unit_density close block_formation line block_relative_pos 0 0.0 0.0 inter_unit_spacing 3.0 priority 1.0 end_block ;;; The assault units begin_block 1 min_units 1 unit_type light infantry 1.0 unit_type heavy infantry 0.3 unit_type heavy cavalry 0.1 unit_type light cavalry 0.1 unit_type skirmish cavalry 0.1 unit_type spearmen cavalry 0.1 unit_density close block_formation line block_relative_pos 0 0.0 -3.0 inter_unit_spacing 3.0 priority 1.0 end_block ;;; A heavy unit on the end of the line begin_block 2 max_units 1 unit_type heavy infantry 1.0 unit_density close block_formation line block_relative_pos 1 2.0 0.0 inter_unit_spacing 3.0 priority 1.0 end_block ;;; A heavy unit on the end of the line begin_block 3 max_units 1 unit_type heavy infantry 1.0 unit_density close block_formation line block_relative_pos 1 -2.0 0.0 inter_unit_spacing 3.0 priority 1.0 end_block begin_dummy_block 4 spans 0 1 2 3 end_dummy_block ;;; centre slot of rear row begin_block 5 unit_type missile 1.0 unit_type infantry 0.5 unit_type any 0.3 unit_density close block_formation line block_relative_pos 4 0.0 -5.0 inter_unit_spacing 3.0 priority 0.6 end_block ;;; right slot of rear row begin_block 6 unit_type cavalry 1.0 unit_density close block_formation line block_relative_pos 5 3.0 0.0 inter_unit_spacing 3.0 priority 1.0 end_block ;;; left slot of rear row begin_block 7 unit_type cavalry 1.0 unit_density close block_formation line block_relative_pos 5 -3.0 0.0 inter_unit_spacing 3.0 priority 1.0 end_block ;; put the artillery and handlers behind everyone begin_dummy_block 8 spans 0 1 2 3 4 5 6 7 end_dummy_block begin_block 9 unit_type handler 1.0 unit_type siege 1.0 block_formation line block_relative_pos 8 0.0 -5.0 inter_unit_spacing 3.0 priority 1.0 end_block ;;; dummy slot spanning second line begin_dummy_block 10 spans 5 6 7 8 9 end_dummy_block ;;; special general block begin_block 11 min_units 1 max_units 1 unit_type general_unit 1.0 unit_density close block_formation line block_relative_pos 10 6 -8.0 inter_unit_spacing 3.0 priority 1.0 end_block end_formation ;**************************************************************** ; Double Line. Cavalry in front ; infantry behind ;**************************************************************** begin_formation ai_double_cavalry_infantry ;;; purpose flags attack pursue ai_priority 0.6 ;supported_factions persians ;;; The cavalry begin_block 0 min_units 1 unit_type cavalry 1.0 unit_type elephants 1.0 unit_density close block_formation line block_relative_pos 0 0.0 0.0 inter_unit_spacing 3.0 priority 1.0 end_block ;;; The infantry begin_block 1 unit_type infantry 1.0 unit_density close block_formation line block_relative_pos 0 0.0 -3.0 inter_unit_spacing 3.0 priority 1.0 end_block ;; put the artillery and handlers behind everyone begin_block 2 unit_type handler 1.0 unit_type siege 1.0 block_formation line block_relative_pos 1 0.0 -5.0 inter_unit_spacing 3.0 priority 1.0 end_block ;;; special general block begin_block 3 min_units 1 max_units 1 unit_type general_unit 1.0 unit_density close block_formation line block_relative_pos 2 6 -8.0 inter_unit_spacing 3.0 priority 1.0 end_block end_formation ;**************************************************************** ; Triple Line. Missile troops in front, foot, in second row ; mounted in third row ;**************************************************************** begin_formation ai_triple_missiles_in_front ;;; purpose flags defend ai_priority 0.6 ;supported_factions persians ;;; the missile units begin_block 0 min_units 1 unit_type missile infantry 1.0 unit_type elephants 1.0 unit_density close block_formation line block_relative_pos 0 0.0 0.0 inter_unit_spacing 3.0 priority 1.0 end_block ;;; the second row begin_block 1 min_units 1 unit_type heavy infantry 1.0 unit_type light infantry 1.0 unit_type skirmish infantry 1.0 unit_type spearmen infantry 1.0 unit_density close block_formation line block_relative_pos 0 0.0 -5.0 inter_unit_spacing 3.0 priority 1.0 end_block ;;; the rear row begin_block 2 min_units 1 unit_type cavalry 1.0 unit_density close block_formation line block_relative_pos 1 0.0 -5.0 inter_unit_spacing 3.0 priority 1.0 end_block ;; put the artillery and handlers behind everyone begin_dummy_block 3 spans 0 1 2 end_dummy_block begin_block 4 unit_type handler 1.0 unit_type siege 1.0 block_formation line block_relative_pos 3 0.0 -5.0 inter_unit_spacing 3.0 priority 1.0 end_block ;;; special general block begin_block 5 min_units 1 max_units 1 unit_type general_unit 1.0 unit_density close block_formation line block_relative_pos 4 6 -8.0 inter_unit_spacing 3.0 priority 1.0 end_block end_formation ;*************************************************** ;*************************************************** ; Special formations - created by Sinuhet ;*************************************************** ;*************************************************** ;**************************************************************** ; A single column with infantry units in front, followed by ; missile troops followed by cavalry ;**************************************************************** begin_formation ai_single_column_infantry_in_front ;;; purpose flags march ai_priority 0.60 ;supported_factions persians ;;; infantry front block begin_block 0 min_units 2 max_units 3 not_general unit_type spearmen infantry 1.0 unit_type elephants 1.0 unit_type heavy infantry 0.9 unit_type light infantry 0.0 unit_type missile infantry 0.0 ;default_melee_state engage_at_will unit_density close block_formation column block_relative_pos 0 0.0 0.0 inter_unit_spacing 0.2 priority 1.0 end_block ;;; infantry behind begin_block 1 min_units 3 not_general unit_type infantry 1.0 unit_density close block_formation column block_relative_pos 0 0.0 -5.0 inter_unit_spacing 0.2 priority 0.9 end_block ;;; cavalry behind begin_block 2 min_units 2 not_general unit_type cavalry 1.0 unit_density close block_formation column block_relative_pos 1 0.0 -10.0 inter_unit_spacing 1.0 priority 0.8 end_block begin_dummy_block 3 spans 0 1 2 end_dummy_block ;; artillery and handlers behind everyone begin_block 4 not_general unit_type handler 1.0 unit_type siege 1.0 unit_type any 0.01 block_formation column block_relative_pos 3 0.0 -5.0 inter_unit_spacing 10.0 priority 0.5 end_block begin_dummy_block 5 spans 0 1 2 3 4 end_dummy_block ;; general at the back begin_block 6 max_units 1 unit_type general_unit 1.0 ;default_melee_state engage_at_will unit_density close block_formation column block_relative_pos 5 6.0 -30.0 inter_unit_spacing 0.2 priority 1.0 end_block end_formation ;**************************************************************** ; A single column with cavalry units in front, followed by ; missile troops followed by infantry ;**************************************************************** begin_formation ai_single_column_cavalry_in_front ;;; purpose flags march ai_priority 0.60 ;supported_factions persians ;;; cavalry in front begin_block 0 min_units 2 not_general unit_type cavalry 1.0 unit_type elephants 1.0 unit_density close block_formation column block_relative_pos 0 0.0 0.0 inter_unit_spacing 1.0 priority 1.0 end_block ;;; missile units behind begin_block 1 min_units 3 not_general unit_type missile infantry 1.0 unit_density close block_formation column block_relative_pos 0 0.0 -15.0 inter_unit_spacing 0.2 priority 0.9 end_block ;;; infantry front block begin_block 2 min_units 2 max_units 3 not_general unit_type spearmen infantry 1.0 unit_type heavy infantry 0.9 unit_type light infantry 0.0 unit_type missile infantry 0.0 ;default_melee_state engage_at_will unit_density close block_formation column block_relative_pos 1 0.0 -5.0 inter_unit_spacing 0.2 priority 0.9 end_block ;;; infantry further behind begin_block 3 min_units 3 not_general unit_type spearmen infantry 1.0 unit_type heavy infantry 1.0 unit_type light infantry 1.0 unit_density close block_formation column block_relative_pos 2 0.0 -5.0 inter_unit_spacing 0.2 priority 0.8 end_block begin_dummy_block 4 spans 0 1 2 3 end_dummy_block ;; artillery and handlers behind everyone begin_block 5 not_general unit_type handler 1.0 unit_type siege 1.0 unit_type any 0.01 block_formation column block_relative_pos 4 0.0 -5.0 inter_unit_spacing 10.0 priority 0.5 end_block begin_dummy_block 6 spans 0 1 2 3 4 5 end_dummy_block ;; general at the back begin_block 7 max_units 1 unit_type general_unit 1.0 ;default_melee_state engage_at_will unit_density close block_formation column block_relative_pos 5 6.0 -30.0 inter_unit_spacing 0.2 priority 1.0 end_block end_formation ;**************************************************************** ; Basic Bridge assault column - created by Sinuhet ;**************************************************************** begin_formation ai_crossing_assault_force ;;; purpose flags crossing_assault_force ai_priority 0.1 ;; priority low, so we only choose if the flag is set ;;; infantry front block begin_block 0 min_units 1 max_units 3 not_general unit_type heavy infantry 1.0 unit_type elephants 1.0 unit_type spearmen infantry 0.9 unit_type light infantry 0.0 unit_type missile infantry 0.0 unit_formation square unit_density close max_unit_width 7 block_formation column block_relative_pos 0 0.0 0.0 inter_unit_spacing 3.0 priority 0.9 end_block ;;; behind begin_block 1 max_units 3 not_general unit_type heavy infantry 1.0 unit_type spearmen infantry 0.9 unit_type light infantry 0.9 unit_type heavy cavalry 0.7 unit_type light cavalry 0.7 unit_type skirmish cavalry 0.7 unit_type missile cavalry 0.7 unit_type any 0.1 unit_formation square unit_density close max_unit_width 7 block_formation column block_relative_pos 0 0.0 -3.0 inter_unit_spacing 3.0 priority 0.8 end_block ;;; further behind begin_block 2 max_units 10 not_general unit_type heavy infantry 1.0 unit_type light infantry 0.9 unit_type heavy cavalry 0.7 unit_type light cavalry 0.7 unit_type skirmish cavalry 0.7 unit_type missile cavalry 0.7 unit_type any 0.1 unit_formation square unit_density close max_unit_width 8 block_formation column block_relative_pos 1 0.0 -3.0 inter_unit_spacing 3.0 priority 0.6 end_block ;;; main body of units (everything else) begin_block 3 not_general unit_type any 1.0 unit_density close block_formation line block_relative_pos 2 0.0 -3.0 inter_unit_spacing 2.0 priority 0.4 end_block ;;; if we have any swimming units put them on the flanks so they can swim over ;;; and increase our attacking bandwidth begin_dummy_block 4 spans 0 1 2 3 end_dummy_block begin_block 5 ;;; at the moment all swimming units have to swim ;;min_units 2 not_general unit_type swimming 1.0 unit_density close block_formation line block_relative_pos 4 -10.0 0 inter_unit_spacing 2.0 priority 1.0 end_block begin_block 6 ;;min_units 2 not_general unit_type swimming 1.0 unit_density close block_formation line block_relative_pos 4 10.0 0 inter_unit_spacing 2.0 priority 1.0 end_block ;; general at the back begin_block 7 max_units 1 unit_type general_unit 1.0 ;default_melee_state engage_at_will unit_density close block_formation column block_relative_pos 3 6.0 -8.0 inter_unit_spacing 0.2 priority 1.0 end_block end_formation ;**************************************************************** ; Bridge assault cover force - modified by Sinuhet ;**************************************************************** begin_formation ai_crossing_assault_cover crossing_assault_cover ai_priority 0.1 ;; priority low, so we only choose if the flag is set ;supported_factions persians begin_dummy_block 0 ;; centre slot left empty for assault column to pass through spacer 0.0 0.0 35 20 end_dummy_block begin_block 1 ;; left front shooting position unit_type missile infantry 1 unit_type missile cavalry 0.9 unit_type any 0.1 unit_density close block_formation line block_relative_pos 0 -1.0 0.0 inter_unit_spacing 2.0 priority 1.0 end_block begin_block 2 ;; right front shooting position unit_type missile infantry 1 unit_type missile cavalry 0.9 unit_type any 0.1 unit_density close block_formation line block_relative_pos 0 1.0 0.0 inter_unit_spacing 2.0 priority 0.9 end_block begin_block 3 ;; left rear shooting position max_units 2 unit_type missile infantry 1 unit_type missile cavalry 0.9 unit_density close block_formation line block_relative_pos 1 0.0 -3.0 inter_unit_spacing 2.0 priority 0.2 end_block begin_block 4 ;; right rear shooting position max_units 2 unit_type missile infantry 1 unit_type missile cavalry 0.9 unit_density close block_formation line block_relative_pos 2 0.0 -3.0 inter_unit_spacing 2.0 priority 0.1 end_block begin_block 5 unit_type siege 1 ;; left artillery shooting position unit_density close block_formation line block_relative_pos 3 0.0 -60.0 inter_unit_spacing 2.0 priority 0.7 end_block begin_block 6 unit_type siege 1 ;; right artillery shooting position unit_density close block_formation line block_relative_pos 4 0.0 -60.0 inter_unit_spacing 2.0 priority 0.6 end_block end_formation ;**************************************************************** ; Crossing Block ; For mixed missile and infantry forces ; defending close by a crossing ;**************************************************************** begin_formation ai_crossing_block crossing_block ai_priority 0.1 ;; priority low, so we only choose if the flag is set ;;; in front of bridge blocking crossing begin_block 0 min_units 1 max_units 1 unit_type heavy infantry 1 unit_type elephants 1.0 unit_type light infantry 0.5 unit_type skirmish infantry 0.5 unit_type any 0.0 unit_density close block_formation line block_relative_pos 0 0.0 0.0 inter_unit_spacing 2.0 priority 1.0 end_block ;;; left support of block 0 begin_block 1 max_units 1 unit_type heavy infantry 1 unit_type light infantry 0.8 unit_type skirmish infantry 0.8 unit_type heavy cavalry 0.1 unit_type light cavalry 0.1 unit_type skirmish cavalry 0.1 unit_density close block_formation line block_relative_pos 0 -8.0 -1.0 ;; to the left and slightly behind the back of block 0 inter_unit_spacing 2.0 priority 0.9 end_block ;;; right support of block 0 begin_block 2 max_units 1 unit_type heavy infantry 1 unit_type light infantry 0.8 unit_type skirmish infantry 0.8 unit_type heavy cavalry 0.1 unit_type light cavalry 0.1 unit_type skirmish cavalry 0.1 unit_density close block_formation line block_relative_pos 0 8.0 -1.0 ;; to the right and slightly behind the back of block 0 inter_unit_spacing 2.0 priority 0.9 end_block ;;; missile troops behind begin_block 3 unit_type missile infantry 1.0 unit_type missile cavalry 1.0 unit_density close block_formation line block_relative_pos 0 0.0 -20.0 inter_unit_spacing 2.0 priority 0.9 end_block ;;; final line for other troops begin_block 4 unit_type heavy infantry 1.0 unit_type light infantry 1.0 unit_type skirmish infantry 1.0 unit_type heavy cavalry 1.0 unit_type light cavalry 1.0 unit_type skirmish cavalry 1.0 unit_type any 0.1 unit_density close block_formation line block_relative_pos 3 0.0 -10.0 inter_unit_spacing 2.0 priority 0.1 end_block end_formation ;**************************************************************** ; Crossing Defend ; For mixed missile and infantry forces ; conducting a standoff defence of a bridge ;**************************************************************** begin_formation ai_crossing_defend crossing_defend ai_priority 0.1 ;; priority low, so we only choose if the flag is set ;;; missile units in the centre begin_block 0 min_units 1 max_units 2 unit_type missile infantry 1.0 unit_type elephants 1.0 unit_type missile cavalry 0.8 unit_type heavy infantry 0.7 unit_type any 0.0 unit_density close block_formation line block_relative_pos 0 0.0 0.0 inter_unit_spacing 2.0 priority 1 end_block ;;; melee troops to left of flank shooters begin_block 1 min_units 0 max_units 2 unit_type heavy infantry 1.0 unit_type light infantry 0.7 unit_type skirmish infantry 0.7 unit_type heavy cavalry 0.7 unit_type light cavalry 0.7 unit_type skirmish cavalry 0.7 unit_type any 0.0 block_formation line block_relative_pos 0 -5.0 0.0 inter_unit_spacing 2.0 priority 0.9 end_block ;;; melee troops to left of flank shooters begin_block 2 min_units 0 max_units 2 unit_type heavy infantry 1.0 unit_type light infantry 0.7 unit_type skirmish infantry 0.7 unit_type heavy cavalry 0.7 unit_type light cavalry 0.7 unit_type skirmish cavalry 0.7 unit_type any 0.0 block_formation line block_relative_pos 0 5.0 0.0 inter_unit_spacing 2.0 priority 0.9 end_block ;;; everyone else in the second line begin_block 3 unit_type any 1.0 block_formation line block_relative_pos 0 0.0 -10.0 inter_unit_spacing 2.0 priority 0.5 end_block end_formation ;**************************************************************** ; Basic Wall Assault - created by Sinuhet ; Siege engine in the centre, covering troops on the flanks ; other units in a column behind, waiting to go up the siege tower ;**************************************************************** begin_formation basic_ai_wall_assault wall_assault_force ai_priority 0.10 ;; priority low, so we only choose if the flag is set ;;; gap for siege engines in the centre begin_dummy_block 0 ;; centre slot left empty for assault column to pass through spacer 0.0 0.0 50 50 end_dummy_block ;;; all other units behind the siege engine ; Screen of missile inf begin_block 1 max_units 1 unit_type skirmish infantry 1.0 unit_type chanting_screeching 0.9 unit_type missile infantry 0.8 unit_type any 0.0 unit_density close block_formation line block_relative_pos 0 0.0 -20.0 inter_unit_spacing 2.0 priority 0.3 end_block ;; First line of infantry begin_block 2 max_units 1 unit_type light infantry 1.0 unit_type heavy infantry 0.9 unit_type phalanx 0.2 unit_type any 0.0 unit_density close block_formation line block_relative_pos 1 0.0 -7.0 inter_unit_spacing 10.0 priority 0.5 end_block ;; second line of infantry begin_block 3 max_units 1 unit_type heavy infantry 1.0 unit_type light infantry 0.9 unit_type phalanx 0.5 unit_type any 0.0 unit_density close block_formation line block_relative_pos 2 0.0 -10.0 inter_unit_spacing 10.0 priority 0.5 end_block ;; 3rd line of infantry, guard of archers begin_block 4 max_units 2 unit_type phalanx 1.0 unit_type non_phalanx_spear 0.9 unit_type heavy infantry 0.6 unit_type light infantry 0.2 unit_type any 0.0 unit_formation square unit_density close block_formation line block_relative_pos 3 0.0 -10.0 inter_unit_spacing 0.3 priority 0.4 end_block ;; Archers behind begin_block 5 max_units 2 unit_type ranged_missile_infantry 1.0 unit_type missile infantry 0.5 unit_type chanting_screeching 0.3 unit_type skirmish infantry 0.4 unit_type any 0.0 block_formation line block_relative_pos 4 0.0 -10.0 inter_unit_spacing 2.0 priority 0.25 end_block ;; general at the back begin_block 6 max_units 1 unit_type general_unit 1.0 unit_type any 0.0 ;default_melee_state engage_at_will unit_density close block_formation line block_relative_pos 4 6.0 -10.0 inter_unit_spacing 3.0 priority 0.5 end_block ;; left flank cav begin_block 7 not_general unit_type cavalry 1.0 unit_type any 0.0 block_formation line block_relative_pos 6 -20.0 0.0 inter_unit_spacing 4.0 priority 0.25 end_block ;; right_flank cav begin_block 8 not_general unit_type cavalry 1.0 unit_type any 0.0 block_formation line block_relative_pos 6 20.0 0.0 inter_unit_spacing 4.0 priority 0.25 end_block ;; left flank missile cav begin_block 9 not_general unit_type missile cavalry 1.0 unit_type any 0.0 block_formation line block_relative_pos 7 -5.0 0.0 inter_unit_spacing 4.0 priority 0.3 end_block ;; right_flank missile cav begin_block 10 not_general unit_type missile cavalry 1.0 unit_type any 0.0 block_formation line block_relative_pos 8 5.0 0.0 inter_unit_spacing 4.0 priority 0.3 end_block ;; artillery and handlers at the back begin_block 11 unit_type handler 1.0 unit_type any 0.0 block_formation line block_relative_pos 6 0.0 -20.0 inter_unit_spacing 2.0 priority 0.25 end_block ;; reserve of spearmen begin_block 12 unit_type phalanx 0.50 unit_type non_phalanx_spear 0.45 unit_type any 0.0 unit_formation square unit_density close block_formation line block_relative_pos 11 0.0 -10.0 inter_unit_spacing 0.3 priority 0.20 end_block ;; reserve of missile units begin_block 13 unit_type ranged_missile_infantry 0.50 unit_type missile infantry 0.25 unit_type any 0.0 block_formation line block_relative_pos 12 0.0 -10.0 inter_unit_spacing 2.0 priority 0.10 end_block ;; reserve of heavy infantry begin_block 14 unit_type heavy infantry 0.50 unit_type any 0.0 unit_density close block_formation line block_relative_pos 13 0.0 -10.0 inter_unit_spacing 10.0 priority 0.20 end_block ;; reserve of light infantry begin_block 15 unit_type light infantry 0.50 unit_type any 0.0 unit_density close block_formation line block_relative_pos 14 0.0 -10.0 inter_unit_spacing 10.0 priority 0.20 end_block ;; any behind begin_block 16 unit_type any 0.10 block_formation line block_relative_pos 15 0.0 -10.0 inter_unit_spacing 0.3 priority 0.05 end_block end_formation ;**************************************************************** ; Basic Siege deployment - created by Sinuhet ; The engines have already been assigned at this point ; Put rams in the centre front, other engines at the front either side ;**************************************************************** begin_formation Basic_deployment_siege standard_siege_attacker_deployment ai_priority 0.15 ;;; rams at the centre begin_block 0 unit_type carrying_siege_engine ram 1.0 unit_density close block_formation line block_relative_pos 0 0.0 0.0 inter_unit_spacing 20.0 priority 1.0 end_block ;; other engines left side begin_block 1 unit_type carrying_siege_engine ladder 1.0 unit_type carrying_siege_engine tower 1.0 unit_density close block_formation line block_relative_pos 0 -10.0 0.0 inter_unit_spacing 20.0 priority 1.0 end_block ;; other engines right side begin_block 2 unit_type carrying_siege_engine ladder 1.0 unit_type carrying_siege_engine tower 1.0 unit_density close block_formation line block_relative_pos 0 10.0 0.0 inter_unit_spacing 20.0 priority 1.0 end_block begin_dummy_block 3 spans 0 1 2 end_dummy_block ; Screen of missile inf begin_block 4 max_units 5 unit_type skirmish infantry 1.0 unit_type chanting_screeching 0.9 unit_type missile infantry 0.8 unit_type carrying_siege_engine ram 0.0 unit_type carrying_siege_engine ladder 0.0 unit_type carrying_siege_engine tower 0.0 unit_density close block_formation line block_relative_pos 3 0.0 -20.0 inter_unit_spacing 2.0 priority 0.3 end_block ;; First line of infantry begin_block 5 min_units 1 max_units 8 unit_type light infantry 1.0 unit_type heavy infantry 0.9 unit_type phalanx 0.2 unit_type carrying_siege_engine ram 0.0 unit_type carrying_siege_engine ladder 0.0 unit_type carrying_siege_engine tower 0.0 unit_density close block_formation line block_relative_pos 4 0.0 -7.0 inter_unit_spacing 10.0 priority 0.5 end_block ;; second line of infantry begin_block 6 min_units 1 max_units 8 unit_type heavy infantry 1.0 unit_type light infantry 0.9 unit_type phalanx 0.5 unit_type carrying_siege_engine ram 0.0 unit_type carrying_siege_engine ladder 0.0 unit_type carrying_siege_engine tower 0.0 unit_density close block_formation line block_relative_pos 5 0.0 -10.0 inter_unit_spacing 10.0 priority 0.5 end_block begin_dummy_block 7 spans 0 1 2 3 4 5 6 end_dummy_block ;; 3rd line of infantry, guard of archers begin_block 8 min_units 1 unit_type phalanx 1.0 unit_type non_phalanx_spear 0.9 unit_type heavy infantry 0.6 unit_type light infantry 0.2 unit_type carrying_siege_engine ram 0.0 unit_type carrying_siege_engine ladder 0.0 unit_type carrying_siege_engine tower 0.0 unit_formation square unit_density close block_formation line block_relative_pos 7 0.0 -10.0 inter_unit_spacing 0.3 priority 0.4 end_block ;; Archers behind begin_block 9 max_units 10 unit_type ranged_missile_infantry 1.0 unit_type missile infantry 0.5 unit_type chanting_screeching 0.3 unit_type skirmish infantry 0.4 unit_type carrying_siege_engine ram 0.0 unit_type carrying_siege_engine ladder 0.0 unit_type carrying_siege_engine tower 0.0 block_formation line block_relative_pos 8 0.0 -10.0 inter_unit_spacing 2.0 priority 0.25 end_block begin_dummy_block 10 spans 0 1 2 3 4 5 6 7 8 9 end_dummy_block ;; general at the back begin_block 11 min_units 1 max_units 1 unit_type general_unit 1.0 unit_type carrying_siege_engine ram 0.0 unit_type carrying_siege_engine ladder 0.0 unit_type carrying_siege_engine tower 0.0 ;default_melee_state engage_at_will unit_density close block_formation line block_relative_pos 9 6.0 -8.0 inter_unit_spacing 3.0 priority 0.5 end_block ;; cavalry on the flanks and back a bit ;; left flank cav begin_block 12 not_general unit_type cavalry 1.0 unit_type carrying_siege_engine ram 0.0 unit_type carrying_siege_engine ladder 0.0 unit_type carrying_siege_engine tower 0.0 block_formation line block_relative_pos 11 -20.0 0.0 inter_unit_spacing 4.0 priority 0.25 end_block ;; right_flank cav begin_block 13 not_general unit_type cavalry 1.0 unit_type carrying_siege_engine ram 0.0 unit_type carrying_siege_engine ladder 0.0 unit_type carrying_siege_engine tower 0.0 block_formation line block_relative_pos 11 20.0 0.0 inter_unit_spacing 4.0 priority 0.25 end_block ;; left flank missile cav begin_block 14 not_general unit_type missile cavalry 1.0 unit_type carrying_siege_engine ram 0.0 unit_type carrying_siege_engine ladder 0.0 unit_type carrying_siege_engine tower 0.0 block_formation line block_relative_pos 12 -5.0 0.0 inter_unit_spacing 4.0 priority 0.3 end_block ;; right_flank missile cav begin_block 15 not_general unit_type missile cavalry 1.0 unit_type carrying_siege_engine ram 0.0 unit_type carrying_siege_engine ladder 0.0 unit_type carrying_siege_engine tower 0.0 block_formation line block_relative_pos 13 5.0 0.0 inter_unit_spacing 4.0 priority 0.3 end_block ;; artillery and handlers at the back begin_block 16 unit_type handler 1.0 unit_type carrying_siege_engine ram 0.0 unit_type carrying_siege_engine ladder 0.0 unit_type carrying_siege_engine tower 0.0 block_formation line block_relative_pos 11 0.0 -20.0 inter_unit_spacing 2.0 priority 0.25 end_block ;; any behind begin_block 17 unit_type any 0.5 unit_type carrying_siege_engine ram 0.0 unit_type carrying_siege_engine ladder 0.0 unit_type carrying_siege_engine tower 0.0 block_formation line block_relative_pos 16 0.0 -20.0 inter_unit_spacing 0.3 priority 0.05 end_block end_formation ;***************************************************************** ; Roman Siege deployment formation - Defensive Square - by Sinuhet ;***************************************************************** begin_formation Roman_deployment_siege ;;; purpose flags standard_siege_attacker_deployment ai_priority 0.20 ;;; rams at the centre begin_block 0 unit_type carrying_siege_engine ram 1.0 unit_density close block_formation line block_relative_pos 0 0.0 0.0 inter_unit_spacing 20.0 priority 1.0 end_block ;; other engines left side begin_block 1 unit_type carrying_siege_engine ladder 1.0 unit_type carrying_siege_engine tower 1.0 unit_density close block_formation line block_relative_pos 0 -10.0 0.0 inter_unit_spacing 20.0 priority 1.0 end_block ;; other engines right side begin_block 2 unit_type carrying_siege_engine ladder 1.0 unit_type carrying_siege_engine tower 1.0 unit_density close block_formation line block_relative_pos 0 10.0 0.0 inter_unit_spacing 20.0 priority 1.0 end_block begin_dummy_block 3 spans 0 1 2 end_dummy_block ;; other units behind ;; hastati line begin_block 4 max_units 3 unit_type light_pilum_infantry 1.0 unit_type carrying_siege_engine ram 0.0 unit_type carrying_siege_engine ladder 0.0 unit_type carrying_siege_engine tower 0.0 ;default_melee_state engage_at_will block_formation line block_relative_pos 3 0.0 -20.0 inter_unit_spacing 0.3 priority 0.5 end_block ;; princeps left side begin_block 5 min_units 1 max_units 3 unit_type heavy_pilum_infantry 1.0 unit_type carrying_siege_engine ram 0.0 unit_type carrying_siege_engine ladder 0.0 unit_type carrying_siege_engine tower 0.0 ;default_melee_state engage_at_will block_formation line block_relative_pos 4 -0.3 0.0 inter_unit_spacing 0.3 priority 0.5 end_block ;; princeps right side begin_block 6 min_units 1 max_units 3 unit_type heavy_pilum_infantry 1.0 unit_type carrying_siege_engine ram 0.0 unit_type carrying_siege_engine ladder 0.0 unit_type carrying_siege_engine tower 0.0 ;default_melee_state engage_at_will block_formation line block_relative_pos 4 0.3 0.0 inter_unit_spacing 0.3 priority 0.5 end_block begin_dummy_block 7 spans 4 5 6 end_dummy_block ;; missile troops behind the infantry begin_block 8 min_units 1 max_units 2 unit_type skirmish infantry 1.0 unit_type missile infantry 0.8 unit_type carrying_siege_engine ram 0.0 unit_type carrying_siege_engine ladder 0.0 unit_type carrying_siege_engine tower 0.0 ;default_melee_state engage_at_will block_formation line block_relative_pos 4 0.0 -5.0 inter_unit_spacing 2.0 priority 0.4 end_block begin_block 9 max_units 2 unit_type skirmish infantry 1.0 unit_type missile infantry 0.8 unit_type carrying_siege_engine ram 0.0 unit_type carrying_siege_engine ladder 0.0 unit_type carrying_siege_engine tower 0.0 ;default_melee_state engage_at_will block_formation line block_relative_pos 8 0.0 -1.0 inter_unit_spacing 2.0 priority 0.35 end_block ;; general begin_block 10 min_units 1 max_units 1 unit_type general_unit 1.0 unit_type carrying_siege_engine ram 0.0 unit_type carrying_siege_engine ladder 0.0 unit_type carrying_siege_engine tower 0.0 ;default_melee_state engage_at_will unit_density close block_formation line block_relative_pos 9 6.0 -12.0 inter_unit_spacing 3.0 priority 0.5 end_block ;; artillery and handler on the sides begin_block 11 max_units 1 unit_type handler 1.0 unit_type carrying_siege_engine ram 0.0 unit_type carrying_siege_engine ladder 0.0 unit_type carrying_siege_engine tower 0.0 block_formation line block_relative_pos 10 -10.0 0.0 inter_unit_spacing 3.0 priority 0.05 end_block begin_block 12 max_units 1 unit_type handler 1.0 unit_type carrying_siege_engine ram 0.0 unit_type carrying_siege_engine ladder 0.0 unit_type carrying_siege_engine tower 0.0 block_formation line block_relative_pos 10 10.0 0.0 inter_unit_spacing 3.0 priority 0.05 end_block begin_dummy_block 13 spans 10 11 12 end_dummy_block ;; archers behind the general begin_block 14 min_units 1 max_units 2 unit_type ranged_missile_infantry 1.0 unit_type carrying_siege_engine ram 0.0 unit_type carrying_siege_engine ladder 0.0 unit_type carrying_siege_engine tower 0.0 ;default_melee_state engage_at_will block_formation line block_relative_pos 10 0.0 -10.0 inter_unit_spacing 2.0 priority 0.4 end_block begin_block 15 max_units 2 unit_type ranged_missile_infantry 1.0 unit_type carrying_siege_engine ram 0.0 unit_type carrying_siege_engine ladder 0.0 unit_type carrying_siege_engine tower 0.0 ;default_melee_state engage_at_will block_formation line block_relative_pos 14 0.0 -1.0 inter_unit_spacing 2.0 priority 0.35 end_block ;; cavalry on the flanks ;; left flank begin_block 16 not_general unit_type cavalry 1.0 unit_type carrying_siege_engine ram 0.0 unit_type carrying_siege_engine ladder 0.0 unit_type carrying_siege_engine tower 0.0 block_formation line block_relative_pos 10 -80.0 0.0 inter_unit_spacing 4.0 priority 0.25 end_block ;; right_flank begin_block 17 not_general unit_type cavalry 1.0 unit_type carrying_siege_engine ram 0.0 unit_type carrying_siege_engine ladder 0.0 unit_type carrying_siege_engine tower 0.0 block_formation line block_relative_pos 10 80.0 0.0 inter_unit_spacing 4.0 priority 0.25 end_block ;; left flank missile cav begin_block 18 not_general unit_type missile cavalry 1.0 unit_type carrying_siege_engine ram 0.0 unit_type carrying_siege_engine ladder 0.0 unit_type carrying_siege_engine tower 0.0 block_formation line block_relative_pos 16 -5.0 0.0 inter_unit_spacing 4.0 priority 0.3 end_block ;; right_flank missile cav begin_block 19 not_general unit_type missile cavalry 1.0 unit_type carrying_siege_engine ram 0.0 unit_type carrying_siege_engine ladder 0.0 unit_type carrying_siege_engine tower 0.0 block_formation line block_relative_pos 17 5.0 0.0 inter_unit_spacing 4.0 priority 0.3 end_block begin_dummy_block 20 spans 10 11 12 13 14 15 16 17 18 19 end_dummy_block ;; back line of infantry ;; hastati or auxilia line begin_block 21 max_units 5 unit_type light infantry 1.0 unit_type carrying_siege_engine ram 0.0 unit_type carrying_siege_engine ladder 0.0 unit_type carrying_siege_engine tower 0.0 ;default_melee_state engage_at_will block_formation line block_relative_pos 14 0.0 -5.0 inter_unit_spacing 0.3 priority 0.45 end_block ;; triarii left side begin_block 22 min_units 1 max_units 2 unit_type non_phalanx_spear 1.0 unit_type heavy_pilum_infantry 0.1 unit_type carrying_siege_engine ram 0.0 unit_type carrying_siege_engine ladder 0.0 unit_type carrying_siege_engine tower 0.0 ;default_melee_state engage_at_will block_formation line block_relative_pos 21 -0.3 0.0 inter_unit_spacing 0.3 priority 0.5 end_block ;; triarii right side begin_block 23 min_units 1 max_units 2 unit_type non_phalanx_spear 1.0 unit_type heavy_pilum_infantry 0.1 unit_type carrying_siege_engine ram 0.0 unit_type carrying_siege_engine ladder 0.0 unit_type carrying_siege_engine tower 0.0 ;default_melee_state engage_at_will block_formation line block_relative_pos 21 0.3 0.0 inter_unit_spacing 0.3 priority 0.5 end_block begin_dummy_block 24 spans 21 22 23 end_dummy_block ;; back line of other units begin_block 25 unit_type any 0.01 unit_type carrying_siege_engine ram 0.0 unit_type carrying_siege_engine ladder 0.0 unit_type carrying_siege_engine tower 0.0 ;default_melee_state engage_at_will block_formation line block_relative_pos 24 0.0 -10.0 inter_unit_spacing 0.3 priority 0.01 end_block end_formation ;**************************************************************** ; Siege deployment ; The engines have already been assigned at this point ; Put rams in the centre front, other engines at the front either side ;**************************************************************** begin_formation deployment_siege standard_siege_attacker_deployment ai_priority 0.10 ;;; rams at the centre begin_block 0 unit_type carrying_siege_engine ram 1.0 unit_density close block_formation line block_relative_pos 0 0.0 0.0 inter_unit_spacing 8.0 priority 1.0 end_block ;; other engines left side begin_block 1 unit_type carrying_siege_engine ladder 1.0 unit_type carrying_siege_engine tower 1.0 unit_density close block_formation line block_relative_pos 0 -8.0 0.0 inter_unit_spacing 8.0 priority 1.0 end_block ;; other infantry left side begin_block 2 unit_type heavy infantry 0.7 unit_type light infantry 0.7 unit_type skirmish infantry 0.7 unit_density close block_formation line block_relative_pos 1 -8.0 0.0 inter_unit_spacing 8.0 priority 0.5 end_block ;; other engines right side begin_block 3 unit_type carrying_siege_engine ladder 1.0 unit_type carrying_siege_engine tower 1.0 unit_density close block_formation line block_relative_pos 0 8.0 0.0 inter_unit_spacing 8.0 priority 1.0 end_block ;; other infantry rightt side begin_block 4 unit_type heavy infantry 0.7 unit_type light infantry 0.7 unit_type skirmish infantry 0.7 unit_density close block_formation line block_relative_pos 3 8.0 0.0 inter_unit_spacing 8.0 priority 0.5 end_block begin_dummy_block 5 spans 0 1 2 3 4 end_dummy_block ;;; archers behind to give support begin_block 6 unit_type missile infantry 1.0 unit_density close block_formation line block_relative_pos 5 0.0 -10.0 inter_unit_spacing 2.0 priority 0.1 end_block ;;; cavalry at the back begin_block 7 unit_type heavy cavalry 1.0 unit_type light cavalry 1.0 unit_type skirmish cavalry 1.0 unit_type any 0.1 unit_density close block_formation line block_relative_pos 6 0.0 -10.0 inter_unit_spacing 2.0 priority 0.1 end_block end_formation ;**************************************************************** ; Ambush deployment ; Column marching formation for the army being ambushed ;**************************************************************** begin_formation ambush_defender_deployment standard_ambush_defender_deployment ai_priority 0.1 ;;; general at the front begin_block 0 min_units 1 max_units 1 unit_type general_unit 1.0 unit_density close max_unit_width 4 block_formation line block_relative_pos 0 0.0 0.0 inter_unit_spacing 2.0 priority 1.0 end_block ;;; all other units behind begin_block 1 unit_type any 1.0 unit_density close max_unit_width 4 block_formation column block_relative_pos 0 0.0 -2.0 inter_unit_spacing 2.0 priority 1.0 end_block ;;; all other units behind(2) begin_block 2 unit_type any 1.0 unit_density close max_unit_width 4 block_formation column block_relative_pos 0 2.0 0.0 inter_unit_spacing 2.0 priority 1.0 end_block end_formation