PDA

View Full Version : Dismounted Family Members



Rhavas
01-02-2007, 15:01
How would I go about making the English Family members have a dismounted bodyguard?


This unit is already in the dscr_unit file
type King Henry
dictionary King_Henry ; King Henry V
category infantry
class heavy
voice_type General
banner faction main_infantry
banner holy crusade
soldier Dismounted_NE_Late_Bodyguard, 24, 0, 0.6
attributes sea_faring, hide_forest, very_hardy, can_withdraw, general_unit, no_custom
formation 1.2, 1.2, 2.4, 2.4, 3, square
stat_health 2, 0
stat_pri 16, 3, no, 0, 0, melee, melee_blade, piercing, sword, 0, 0.7
;stat_pri_ex 0, 0, 0
stat_pri_attr no
stat_sec 0, 0, no, 0, 0, no, melee_simple, blunt, none, 0, 0.7
;stat_sec_ex 0, 0, 0
stat_sec_attr no
stat_pri_armour 12, 13, 3, metal
;stat_armour_ex 9, 0, 0, 0, 9, 3, 3, metal
stat_sec_armour 0, 0, flesh
stat_heat 6
stat_ground 1, -2, 3, 2
stat_mental 11, disciplined, trained
stat_charge_dist 30
stat_fire_delay 0
stat_food 60, 300
stat_cost 1, 1080, 375, 110, 85, 780, 4, 190
armour_ug_levels 5
armour_ug_models Dismounted_NE_Late_Bodyguard
ownership england
;unit_info 16, 0, 42
There's also another file for a body guard unit for England and 4 or 5 other countries.
Can I just replace the NE Late Bodyguard file

NE Late Bodyguard
dictionary NE_Late_Bodyguard ; General's Bodyguard
category cavalry
class heavy
voice_type General
banner faction main_cavalry
banner holy crusade_cavalry
soldier NE_Late_Bodyguard, 16, 0, 0.5
mount armoured horse
mount_effect elephant -4, camel -4
attributes sea_faring, hide_forest, very_hardy, can_withdraw, general_unit, general_unit_upgrade
formation 2, 4.4, 3, 6, 2, square
stat_health 2, 0
stat_pri 13, 8, no, 0, 0, melee, melee_blade, piercing, spear, 0, 0.7
;stat_pri_ex 0, 0, 0
stat_pri_attr no
stat_sec 14, 4, no, 0, 0, melee, melee_blade, piercing, sword, 0, 0.7
;stat_sec_ex 0, 0, 0
stat_sec_attr no
stat_pri_armour 11, 8, 3, metal
;stat_armour_ex 9, 10, 0, 0, 5, 3, 3, metal
stat_sec_armour 0, 0, flesh
stat_heat 6
stat_ground 0, -2, -4, 0
stat_mental 11, normal, trained
stat_charge_dist 45
stat_fire_delay 0
stat_food 60, 300
stat_cost 1, 1070, 250, 120, 95, 1070, 1, 210
armour_ug_levels 5, 6
armour_ug_models NE_Late_Bodyguard, NE_Late_Bodyguard_ug1
ownership england, scotland, france, hre, denmark, poland, hungary
era 2 england, scotland, france, hre, denmark, poland, hungary
;unit_info 13, 0, 34

with the dismount info for it to work?
Thanks

Sir Robin the Brave
01-02-2007, 15:14
try it out and see what happens

Rhavas
01-02-2007, 15:23
It crashed. I'm assuming that there is a line of code somewhere that tells a family member what unit to be in, but I don't know where to find it

Musashi
01-02-2007, 16:17
Make sure to add the "general_unit, general_unit_upgrade" bit to the dismounted unit you're making into their general unit.

Rhavas
01-03-2007, 06:10
The dismounted bodyguards already have the general_unit tag, when I removed that tag from the mounted NE Bodyguard to see if the generals unit would then use the dismounted bodyguard it didn't change the generals unit.