Code:
type Spear Militia
dictionary Spear_Militia ; Spear Militia
category infantry
class spearmen
voice_type Light
banner faction main_spear
banner holy crusade
soldier Spear_Militia, 60, 0, 1.5
officer merchant_cavalry_militia_ug2
attributes sea_faring, hide_forest, can_withdraw, free_upkeep_unit
formation 1.2, 1.2, 2.4, 2.4, 5, square, schiltrom
stat_health 1, 0
stat_pri 7, 3, no, 0, 0, melee, melee_blade, piercing, spear, 25, 0.6
;stat_pri_ex 0, 0, 0
stat_pri_attr spear, spear_bonus_8
stat_sec 0, 0, no, 0, 0, no, melee_simple, blunt, none, 25, 1
;stat_sec_ex 0, 0, 0
stat_sec_attr no
stat_pri_armour 0, 3, 8, flesh
;stat_armour_ex 0, 2, 3, 5, 3, 8, 6, flesh
stat_sec_armour 0, 0, flesh
stat_heat 4
stat_ground 1, -2, 3, 4
stat_mental 5, normal, trained
stat_charge_dist 20
stat_fire_delay 0
stat_food 60, 300
stat_cost 1, 320, 125, 55, 135, 320, 4, 90
armour_ug_levels 0, 1, 2, 3
armour_ug_models Spear_Militia, Spear_Militia_ug1, Spear_Militia_ug2, Spear_Militia_ug3
ownership england, scotland, france, hre, denmark, spain, portugal, slave, normans, norway
;unit_info 7, 0, 11
recruit_priority_offset -20
I've never really experimented with it but I think a low number like -20 means they are a low recruitment priority. Dismounted Feudal Knights are set at 22.5 there are probably higher. There will probably be more info about it somewhere if you want to do a search...