Как добавить наемников (Medieval 2: Total War)

ВНИМАНИЕ. Ранее созданные сейвы работать не будут.

Откройте export_descr_unit. Выберите юнита, которого хотите сделать наемником, для примера возьмем эту bombard

dictionary ME_Monster_Bombard ;Monster Bombard
category siege
class missile
voice_type Heavy
banner faction main_missile
banner holy crusade
soldier ME_Monster_Bombard_Crew, 16, 1, 0.2
engine huge_bombard
attributes sea_faring, hardy, can_withdraw,gunpowder_unit, cannon, artillery
formation 1.5, 1.5, 3, 3, 3, square
stat_health 1, 0
stat_pri 1, 1, no, 0, 0, melee,artillery_gunpowder, piercing, knife, 25, 1
stat_pri_attr no
stat_sec 68, 3, monster_bombard_shot,450, 20, siege_missile, artillery_gunpowder, blunt, none, 0, 1
stat_sec_attr ap, bp, area, launching
stat_pri_armour 3, 1, 0, leather
stat_sec_armour 0, 0, flesh
stat_heat 1
stat_ground 0, 0, 0, 0
stat_mental 15, disciplined, highly_trained
stat_charge_dist 10
stat_fire_delay 0
stat_food 60, 300
stat_cost 1, 2500, 400, 100, 75, 1900, 4, 470
armour_ug_levels 1
armour_ug_models ME_Monster_Bombard_Crew
ownership turks, kwarezm, slave
era 2 turks, kwarezm
recruit_priority_offset -10


Вам надо добавить строку mercenary_unit к атрибутам (attributes) и ownership (фракция к которой будет принадлежать) должна включать фракцию slave (добавленное выделено красным).


В battle_models найдите следующую запись и добавьте дополнительные строки (выделены красным)

23 me_monster_bombard_crew
1 3
77unit_models/_Units/ME_Light_Mail_Heavy_Mail/me_monster_bombard_crew_lod0.mesh121
77unit_models/_Units/ME_Light_Mail_Heavy_Mail/me_monster_bombard_crew_lod1.mesh1225
77unit_models/_Units/ME_Light_Mail_Heavy_Mail/me_monster_bombard_crew_lod2.mesh6400
5
5 moors
85unit_models/_Units/ME_Light_Mail_Heavy_Mail/textures/mtw2_ME_light_mail_moors.texture
86unit_models/_Units/ME_Light_Mail_Heavy_Mail/textures/mtw2_ME_light_mail_normal.texture
53unit_sprites/moors_ME_Monster_Bombard_Crew_sprite.spr
5 egypt
85unit_models/_Units/ME_Light_Mail_Heavy_Mail/textures/mtw2_ME_light_mail_egypt.texture
86unit_models/_Units/ME_Light_Mail_Heavy_Mail/textures/mtw2_ME_light_mail_normal.texture
53unit_sprites/egypt_ME_Monster_Bombard_Crew_sprite.spr
4 merc
85unit_models/_Units/ME_Light_Mail_Heavy_Mail/textures/mtw2_ME_light_mail_turks.texture
86unit_models/_Units/ME_Light_Mail_Heavy_Mail/textures/mtw2_ME_light_mail_normal.texture
53unit_sprites/turks_ME_Monster_Bombard_Crew_sprite.spr
7 kwarezm
87unit_models/_Units/ME_Light_Mail_Heavy_Mail/textures/mtw2_ME_light_mail_kwarezm.texture
87unit_models/_Units/ME_Light_Mail_Heavy_Mail/textures/mtw2_ME_light_mail_normal2.texture
53unit_sprites/moors_ME_Monster_Bombard_Crew_sprite.spr
5
5 moors
66unit_models/AttachmentSets/Final Middle Eastern_moors_diff.texture
66unit_models/AttachmentSets/Final Middle Eastern_moors_norm.texture 0 
5 egypt
66 unit_models/AttachmentSets/FinalMiddle Eastern_egypt_diff.texture
66unit_models/AttachmentSets/Final Middle Eastern_egypt_norm.texture 0 
5 turks
66unit_models/AttachmentSets/Final Middle Eastern_turks_diff.texture
66unit_models/AttachmentSets/Final Middle Eastern_turks_norm.texture 0 
7 kwarezm
66unit_models/AttachmentSets/Final Middle Eastern_turks_diff.texture
66unit_models/AttachmentSets/Final Middle Eastern_turks_norm.texture 0
4 merc
65 unit_models/AttachmentSets/Final MiddleEastern_merc_diff.texture
65 unit_models/AttachmentSets/Final MiddleEastern_merc_norm.texture 0

1
4 None
22MTW2_Crew_Huge_Bombard 0 
1
18 MTW2_Knife_Primary 0
16 -0.090000004 0 0 -0.34999999 0.800000010.60000002


В descr_mercenaries найдите регион, для которого вы хотите сделать возможным наемников

pool Arabia
regionsMedina_Province Mosul_Province Baghdad_Province Basra_Province Mecca_ProvinceAl-Mu'miniya_Province Qarisiya_Province Ahvaz_Province
unitBedouin Cavalry exp 1 cost 630replenish 0.04 - 0.13 max 2 initial 1 religions { islam }
unitBedouin Camel Riders exp 2 cost 920replenish 0.04 - 0.13 max 2 initial 1 religions { islam }
unitKwarizmian Cavalry exp 1 cost 1020replenish 0.06 - 0.18 max 3 initial 0 end_year 1400 events {mongols_invasion_warn }
unitGhazis exp 1 cost 100replenish 0.18 - 0.5 max 4 initial 1 religions { islam } crusading
unitMutatawwi'a exp 1 cost 60replenish 0.08 - 0.25 max 3 initial 1 religions { islam } crusading
unitTurkomans Mercs exp 1 cost 740replenish 0.06 - 0.18 max 2 initial 1 religions { islam }
unit Elephants exp 1 cost 2675 replenish 0.02 -0.04 max 1 initial 0 events {gunpowder_discovered }
unit AfghanJavelinmen exp 1 cost 920 replenish0.02 - 0.06 max 1 initial 1 religions { islam }
unitMercenary Saracens exp 0 cost 780replenish 0.06 - 0.18 max 2 initial 0



Events { gunpowder_discovered }

Вы можете сделать этот юнит доступным после какого-то события

Events {gunpowder_discovered }

Путем копипаста вставьте желаемые unit cards в паку "merc" в data/ui/unit_info и /units.

Автор impspy

Недостаточно прав для комментирования