Results 1 to 6 of 6

Thread: Making all captain/campaign characters stronger?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    edders's Avatar Senator
    Join Date
    Jan 2006
    Location
    Around the world
    Posts
    1,397

    Default Making all captain/campaign characters stronger?

    Hi everyone I'm new to RTW modding so sorry if this is something obvious, but a search on the subject didn't help.
    Anyway, my question is: How do you make all "Generals" more powerful? That is to say, are captains just hardcoded to be as strong as the unit they're in or is there a way to give them different stats (e.g. more hitpoints)? The reason I ask was because I wanted to have stonger generals in custom battles (since it won't allow you characters).

    If you can't change the captains, is there then a way to make every named character in the campaign more powerful? The only way I can think of at the moment is to give all the characters in desc_strat hitpoint-boosting traits but this seems like a waste of time if every new character is unchanged.

    Any help is welcome!
    Last edited by edders; January 16, 2006 at 06:22 AM.

  2. #2
    Dr Fox's Avatar Civis
    Join Date
    Oct 2005
    Location
    in the uk in buckingham
    Posts
    178

    Default

    you would have to add to the export_descr_character_traits.txt and make all named characters learn traits that increase their Hitpoints making them hard to kill

    in export_descr_character_traits

    Trait HardtoKill
    Characters family

    Level HardtoKill
    Description HardtoKill_desc
    EffectsDescription HardtoKill_effects_desc
    Threshold 1

    Effect HitPoints 12 ; change number to how many hitpoints you want all generals to have
    Trigger Hard_to_kill
    WhenToTest CharacterTurnStart


    Affects HardtoKill 1 Chance 100
    and then in export_descr_VnVs_enums

    HardtoKill
    HardtoKill_desc
    HardtoKill_effects_desc
    and then finally in data/text the export_VnVs.txt

    {HardtoKill} Hard To Kill

    {HardtoKill_desc}
    The Trait makes all Generals very hard to Kill able to withstand constant blows and still not be knocked, the stuff of legend maybe even God Like ¬Change this to whatever you want it is just a description

    {HardtoKill_effects_desc}
    Hitpoints Increased, Dramatically
    hopefully this helps you
    Last edited by Dr Fox; January 17, 2006 at 01:35 PM.
    Rock!?!?!

  3. #3
    edders's Avatar Senator
    Join Date
    Jan 2006
    Location
    Around the world
    Posts
    1,397

    Default

    Thanks, I'll try that. On the off chance; do you know of any way to increase the damage done by named characters, or their armor rating?

    One more thing; what is the maximum amount of hitpoints a character can have (before a CTD)?

    Darn, it won't work - It doesn't just CTD (so I get an explanation from "-show_err") but says "windows has encountered a problem" etc. etc. send error report? etc.

    Here is what the modified bits of my files look like - anyone see a problem? (I've included a bit of the surrounding text too).

    ;This file is generated from the Spreadsheet VnV,txt
    ;Please modify the spreadsheet and re-xport the data, rather than editing this file directly

    ;===============================================================
    ;== TRAIT DATA STARTS HERE ==
    ;===============================================================

    ;------------------------------------------
    Trait HardtoKill
    Characters family

    level Hard_to_Kill
    Description HardtoKill_desc
    EffectsDescription HardtoKill_effects_desc
    Threshold 1

    Effect HitPoints 12

    ;------------------------------------------
    Trait GoodCommander
    Characters family
    AntiTraits BadCommander

    Level Confident_Commander
    Description Confident_Commander_desc
    EffectsDescription Confident_Commander_effects_desc
    GainMessage Confident_Commander_gain_desc
    Threshold 1

    Effect Command 1

    Level Good_Commander
    Description Good_Commander_desc
    EffectsDescription Good_Commander_effects_desc
    GainMessage Good_Commander_gain_desc
    Threshold 2

    Effect Command 2

    Level Superior_Commander
    Description Superior_Commander_desc
    EffectsDescription Superior_Commander_effects_desc
    GainMessage Superior_Commander_gain_desc
    Threshold 4

    Effect Command 3

    Level Great_Commander
    Description Great_Commander_desc
    EffectsDescription Great_Commander_effects_desc
    GainMessage Great_Commander_gain_desc
    Threshold 10

    Effect Command 4

    Level Legendary_Commander
    Description Legendary_Commander_desc
    EffectsDescription Legendary_Commander_effects_desc
    GainMessage Legendary_Commander_gain_desc
    Epithet Legendary_Commander_epithet_desc
    Threshold 18

    Effect Command 5



    ;------------------------------------------
    Trait BadCommander
    Characters family
    AntiTraits GoodCommander

    Level Indifferent_Commander
    Description Indifferent_Commander_desc
    EffectsDescription Indifferent_Commander_effects_desc
    Threshold 2

    Effect Command -1

    Level Incompetent_Commander
    Description Incompetent_Commander_desc
    EffectsDescription Incompetent_Commander_effects_desc
    Threshold 4

    Effect Command -2

    Level Poor_Commander
    Description Poor_Commander_desc
    EffectsDescription Poor_Commander_effects_desc
    Threshold 6

    Effect Command -3

    Level Pathetic_Commander
    Description Pathetic_Commander_desc
    EffectsDescription Pathetic_Commander_effects_desc
    Threshold 8

    Effect Command -5

    PHP Code:
    ;------------------------------------------
    Trigger becomesheir
        WhenToTest BecomesFactionHeir


        Affects Factionheir  1  Chance  100 

    ;------------------------------------------
    Trigger games
        WhenToTest GovernorThrowGames


        Affects GamesFanRomanVice  1  Chance  10 

    ;------------------------------------------
    Trigger races
        WhenToTest GovernorThrowRaces


        Affects RacesFanRomanVice  1  Chance  10 

    ;------------------------------------------
    Trigger Hard_to_kill
        WhenToTest CharacterTurnStart


        Affects HardtoKill 1 Chance 100 
    HardtoKill
    HardtoKill_desc
    HardtoKill_effects_desc
    Indifferent_Commander
    Indifferent_Commander_desc
    Incompetent_Commander
    Incompetent_Commander_desc
    Poor_Commander
    Poor_Commander_desc
    Pathetic_Commander
    Pathetic_Commander_desc
    Confident_Attacker
    Confident_Attacker_desc
    Good_Attacker
    PHP Code:
    ¬ Lines that begin with the ¬ character are comments
    ¬ 
    and should not be translated
    ¬ Items with curly brackets are tags 
    and should not be translated
    ¬ The text following tags either on the same line
    , or the next line
    ¬ should be translated
    ¬
    ---------------------


    ¬--------------------

    {
    HardtoKillHard To Kill

    {HardtoKill_desc}
    In a world of legendsmen of importance almost invariably fail to be noticed if they can't avoid the onslaught of lesser beings!

    {HardtoKill_effects_desc}
    Dramatic increase to health.

    ¬--------------------

    {Indifferent_Commander}    Indifferent Commander

    {Indifferent_Commander_desc}
    This man is definitely not developing his skills as a general. If anything, he seems less competent than before his first fight!

    ¬--------------------

    {Incompetent_Commander}    Incompetent Commander

    {Incompetent_Commander_desc}
    This man shows signs of real uselessness when commanding armies in the field.

    ¬-------------------- 
    Grr...I changed the capitalization from Trigger Hard_to_kill to Trigger Hard_to_Kill. Now I am able to load up the imperial campaign. Unfortunately, the game now CTDs when I right click/double click on a character's portrait (to get more details). I'm assuming that the final problem now is something to do with the description.
    Last edited by edders; January 16, 2006 at 12:40 PM.

  4. #4

    Default

    first of all in enums you must have
    Hard_to_Kill
    HardtoKill_desc
    HardtoKill_effects_desc

    or change the 'level' to HardtoKill

    and then maybe try changing the trigger to one similar to a 'comesofage' one (but don't use that cos i think it is wrong) the characterturnends adds 1 onto the trait each turn so it could muck up
    [LEFT]Blue Lotus
    zulu tw trait/ancilliary progress-bar: (*******___________)
    Zulu Total War

  5. #5
    edders's Avatar Senator
    Join Date
    Jan 2006
    Location
    Around the world
    Posts
    1,397

    Default

    Thanks for your input. Anyway, I changed the enums entry to "Hard_to_Kill" but unfortunately the game still CTDs when I want to get a description of a character.

    Nevermind - I fixed that by changing the HardtoKill to Hard_To_Kill in the export_VnVs.

    Just one problem left now - could you explain what you meant by the trigger? Thanks.


    EDIT: Okay, everything seems to work fine. Thanks for the help everyone.
    Last edited by edders; January 19, 2006 at 07:31 AM.

  6. #6
    Dr Fox's Avatar Civis
    Join Date
    Oct 2005
    Location
    in the uk in buckingham
    Posts
    178

    Default

    you should have yor description files right at the bottom of the export_Vnvs i don't know if this will make a difference but its worth a shot I will add the parts into my game and test to see if it works

    EDIt: I tested it and it works the l in level needs to be a capital and then the game should run if u already got it to work good job I will update my first post with correct syntax
    Last edited by Dr Fox; January 17, 2006 at 01:34 PM.
    Rock!?!?!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •