Schiltrom is not going to be used. shield_wall is a defensive formation where units with big shields go close together but they can't move when using the formation - it will be used by all units named something with huscarles or houscarles, for all others it's not yet planned. Phalanx will be used by the better spearmen, most of them should have a note in the tech tree about having phalanx formation if they have it.
Example 1 (note is_peasant attribute, which there's no explanation to ???! I wonder what it does... ):
type western peasant alemanni
dictionary western_peasant_alemanni ; Barbarian Peasants
category infantry
class light
voice_type Light_1
soldier western_peasant, 60, 0, 0.8
attributes sea_faring, hide_forest, can_swim, is_peasant
formation 1.2, 1.8, 2.4, 2.4, 6, horde
stat_health 1, 0
stat_pri 2, 1, no, 0, 0, melee, simple, piercing, spear, 25 ,0.73
stat_pri_attr no
stat_sec 0, 0, no, 0, 0, no, no, no, none, 25 ,1
stat_sec_attr no
stat_pri_armour 0, 5, 0, flesh
stat_sec_armour 0, 0, flesh
stat_heat 2
stat_ground 1, -2, 3, 2
stat_mental 1, low, untrained
stat_charge_dist 30
stat_fire_delay 0
stat_food 60, 300
stat_cost 1, 72, 14, 20, 30, 80
ownership slave, alemanni, lombardi, burgundii
Example 2:
type levy spearman frank
dictionary levy_spearman_frank ; Levy Spearmen
category infantry
class spearmen
voice_type Light_1
soldier levy_spearman_barbarian, 60, 0, 1.1
attributes sea_faring, hide_forest
formation 1, 1, 2, 2, 4, square, shield_wall
stat_health 1, 0
stat_pri 11, 4, javelin, 50, 3, thrown, archery, piercing, spear, 25 ,1
stat_pri_attr prec, thrown
stat_sec 7, 4, no, 0, 0, melee, simple, piercing, spear, 25 ,0.73
stat_sec_attr light_spear, spear_bonus_4
stat_pri_armour 2, 5, 3, flesh
stat_sec_armour 0, 2, flesh
stat_heat 2
stat_ground 1, -2, 3, 2
stat_mental 5, normal, untrained
stat_charge_dist 30
stat_fire_delay 0
stat_food 60, 300
stat_cost 1, 333, 115, 40, 60, 370
ownership slave, franks
The sm_factions.txt file determines which units are horde units on the campaign map, so don't worry about that. But all units that we might want to make a horde of should have the can_horde attribute. So do can_horde attribute for all non-Christian cavalry units belonging to magyars, and all horse units and levy foot units for khazars and bulgars.
Bookmarks