PC Mode
Org Mobile Site
Forum > Medieval 2: Total War > Medieval 2: Total War > M2:TW Modification > Learn to Mod > Modding Questions >
Thread: General's Bodyguard (late)
FactionHeir 14:52 05-13-2007
Hello all.

I just had an idea on how to make the game upgrade your GBs to late GBs.
Remember in RTW that the Imperial City upgrade had the capability "Improves General's Bodyguards"?
I was wondering what code in RTW led to this text appearing and subsequently to the upgrading of GBs. (I forgot whether it was a simple armour upgrade or a model upgrade too)
But in the same way this could make it possible to upgrade current early GBs to late GBs.

Anyone know what was done in RTW to achieve that? I'm guessing its in the EDB file.

Reply
YXAndyYX 23:50 05-13-2007
Code:
imperial_palace requires factions { ct_carthage, eastern, parthia, egyptian, greek, roman, } 
        {
            capability
            {
                ... some recruiting stuff ...
			} 
            faction_capability
			{    
				upgrade_bodyguard 1
			}
            }
            construction  6 
            cost  6400 
            settlement_min large_city
            upgrades
            {
            }
        }
    }
I guess this is what you are looking for, just add the faction capability upgrade_bodyguard 1 to the building of your choise in the export_descr_buildings.txt and you should be fine.

Reply
FactionHeir 01:53 05-14-2007
Thanks for the code.

I did that with the Mayor's palace building with the gunpoweder discovery requirement and the game booted fine (nothing in errorlog).
Built said building in a game after gunpowder was discovered and bodyguards are still the same as before even after ending turn or adopting a character as Egypt.
The building did display "Upgrades bodyguards (Global Effect)" though

Wonder if I also need to change something in the EDU file for the late bodyguards? Figure I could bother you to post the unit entries for the Roman bodyguard early and late from RTW?

Reply
YXAndyYX 02:16 05-14-2007
Code:
type             roman generals guard cavalry early
dictionary       roman_generals_guard_cavalry_early      ; Roman General
category         cavalry
class            heavy
voice_type       General_1
soldier          roman_medium_cavalry, 12, 0, 1
mount            generals horse
mount_effect     elephant -8, camel -4
attributes       sea_faring, general_unit, hide_forest, hardy
formation        1.5, 4, 3, 6, 3, square
stat_health      2, 0
stat_pri         12, 9, no, 0, 0, melee, simple, piercing, spear, 25 ,1
stat_pri_attr    no
stat_sec         12, 4, no, 0, 0, melee, simple, piercing, sword, 25 ,1
stat_sec_attr    no
stat_pri_armour  3, 7, 4, leather
stat_sec_armour  0, 1, flesh
stat_heat        1
stat_ground      0, 0, -6, 0
stat_mental      10, disciplined, highly_trained
stat_charge_dist 40
stat_fire_delay  0
stat_food        60, 300
stat_cost        1, 790, 80, 80, 120, 790
ownership        romans julii,romans brutii,romans scipii,romans senate
 
 
type             roman generals guard cavalry
dictionary       roman_generals_guard_cavalry      ; Roman Armoured General
category         cavalry
class            heavy
voice_type       General_1
soldier          roman_praetorian_cavalry, 12, 0, 1
mount            generals horse
mount_effect     elephant -8, camel -4
attributes       sea_faring, general_unit, hide_forest, hardy, general_unit_upgrade
formation        1.5, 4, 3, 6, 3, square
stat_health      2, 0
stat_pri         12, 9, no, 0, 0, melee, simple, piercing, spear, 25 ,1
stat_pri_attr    no
stat_sec         12, 4, no, 0, 0, melee, simple, piercing, sword, 25 ,1
stat_sec_attr    no
stat_pri_armour  11, 7, 4, metal
stat_sec_armour  0, 1, flesh
stat_heat        3
stat_ground      0, 0, -6, 0
stat_mental      10, disciplined, highly_trained
stat_charge_dist 40
stat_fire_delay  0
stat_food        60, 300
stat_cost        1, 1120, 80, 120, 170, 1120
ownership        romans julii,romans brutii,romans scipii,romans senate
There you go ...

Basically my guess is that you will need your late BG unit to have that general_unit_upgrade attribute but all late BG units in M2TW already have this one so i have no idea why it isn't working, maybe you can figure it out anyway.

Reply
alpaca 11:35 05-14-2007
Yeah we tried this, too, but to no avail. I think they disabled it...

Reply
FactionHeir 11:39 05-14-2007
Originally Posted by alpaca:
Yeah we tried this, too, but to no avail. I think they disabled it...
Thanks you two for the effort anyway. Now to hope CA reads this and can answer

Reply
Up
Single Sign On provided by vBSSO