Results 1 to 6 of 6

Thread: General's Bodyguard (late)

  1. #1
    Relentless Bughunter Senior Member FactionHeir's Avatar
    Join Date
    Dec 2006
    Location
    London, UK
    Posts
    8,115

    Default General's Bodyguard (late)

    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.
    Want gunpowder, mongols, and timurids to appear when YOU do?
    Playing on a different timescale and never get to see the new world or just wanting to change your timescale?
    Click here to read the solution
    Annoyed at laggy battles? Check this thread out for your performance needs
    Got low fps during siege battles in particular? This tutorial is for you
    Want to play M2TW as a Vanilla experience minus many annoying bugs? Get VanillaMod Visit the forum Readme
    Need improved and faster 2H animations? Download this! (included in VanillaMod 0.93)

  2. #2
    Member Member YXAndyYX's Avatar
    Join Date
    Mar 2005
    Location
    Capua
    Posts
    13

    Default AW: General's Bodyguard (late)

    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.

  3. #3
    Relentless Bughunter Senior Member FactionHeir's Avatar
    Join Date
    Dec 2006
    Location
    London, UK
    Posts
    8,115

    Default Re: AW: General's Bodyguard (late)

    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?
    Last edited by FactionHeir; 05-14-2007 at 01:56.
    Want gunpowder, mongols, and timurids to appear when YOU do?
    Playing on a different timescale and never get to see the new world or just wanting to change your timescale?
    Click here to read the solution
    Annoyed at laggy battles? Check this thread out for your performance needs
    Got low fps during siege battles in particular? This tutorial is for you
    Want to play M2TW as a Vanilla experience minus many annoying bugs? Get VanillaMod Visit the forum Readme
    Need improved and faster 2H animations? Download this! (included in VanillaMod 0.93)

  4. #4
    Member Member YXAndyYX's Avatar
    Join Date
    Mar 2005
    Location
    Capua
    Posts
    13

    Default AW: General's Bodyguard (late)

    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.

  5. #5
    Harbinger of... saliva Member alpaca's Avatar
    Join Date
    Aug 2003
    Location
    Germany
    Posts
    2,767

    Default Re: General's Bodyguard (late)

    Yeah we tried this, too, but to no avail. I think they disabled it...

  6. #6
    Relentless Bughunter Senior Member FactionHeir's Avatar
    Join Date
    Dec 2006
    Location
    London, UK
    Posts
    8,115

    Default Re: General's Bodyguard (late)

    Quote 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
    Want gunpowder, mongols, and timurids to appear when YOU do?
    Playing on a different timescale and never get to see the new world or just wanting to change your timescale?
    Click here to read the solution
    Annoyed at laggy battles? Check this thread out for your performance needs
    Got low fps during siege battles in particular? This tutorial is for you
    Want to play M2TW as a Vanilla experience minus many annoying bugs? Get VanillaMod Visit the forum Readme
    Need improved and faster 2H animations? Download this! (included in VanillaMod 0.93)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO