Results 1 to 6 of 6

Thread: Changing Unit/Character Attributes and Triggers

  1. #1

    Default Changing Unit/Character Attributes and Triggers

    Hi all,

    Long time lurker, first time poster. :)

    Sorry if this has been asked and answered, but I can't seem to find the answer to this on the forums.

    Would anyone be kind enough to post with a step by step guide of how to change the attributes of the units and characters? eg. altering a units charge bonus, changing the 'value' of a vice/virtue, changing/adding triggers for various events etc.

    Thanks!

  2. #2

    Default Re: Changing Unit/Character Attributes and Triggers

    See the mod forum. There are some good guides there.

    How to mod

  3. #3

    Default Re: Changing Unit/Character Attributes and Triggers

    https://forums.totalwar.org/vb/showt...ght=add+traits

    There ya go, hope that's what you need.

  4. #4
    has a Senior Member HoreTore's Avatar
    Join Date
    Jan 2005
    Location
    Norway
    Posts
    12,014

    Default Re: Changing Unit/Character Attributes and Triggers

    Well, I tweak my VnV file extensively, so I can offer some help here.

    Open up the export_descr_character_traits.txt file. Never mind the warning at the top, I'm guessing that's a message to the devs, and they have some spreadsheet thingy to plot in traits to make their life easier. Let's have a look at the first trait here, GoodCommander:

    PHP Code:
    ;------------------------------------------
    Trait 
    GoodCommander <-trait name (1)
        
    Characters family <-who this trait applies to (2)
        
    AntiTraits BadCommander <-the antitrait (3)

        
    Level Promising_Commander <-name of first level(4)
            
    Description Promising_Commander_desc <-(5)
            
    EffectsDescription Promising_Commander_effects_desc <-(6)
            
    GainMessage Promising_Commander_gain_desc <-message if present(7)
            
    Threshold  1 <-treshold to get level(8)

            
    Effect Command  1 <-the effect of the trait(9)

        
    Level Aspiring_Commander
            Description Aspiring_Commander_desc
            EffectsDescription Aspiring_Commander_effects_desc
            GainMessage Aspiring_Commander_gain_desc
            Threshold  2 

            Effect Command  2 

        Level Proven_Commander
            Description Proven_Commander_desc
            EffectsDescription Proven_Commander_effects_desc
            GainMessage Proven_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  8 

            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 
    <-nickname(10)
            
    Threshold  16 

            Effect Command  5 
    1. This is the trait name. You don't see it in the game, but that is the name of the trait in the code.
    2. This is who the trait can be given to. The ones I know of, are family(named generals), general(your captains), admiral(ship captain), princess, priest(all faiths), diplomat, spy, heretic, inquisitor, witch and one more I just can't think of right now.
    3. The antitrait of this trait, is badcommander. This means that if you get a point in badcommander, you will not get the point, but instead lose one point in goodcommander(warning: may be bugged)
    4. This is the name of a level of the trait. You will not see this one in the game either.
    5 and 6. THESE are the things you will see in the game. It links to another file, which I don't have right here, so I can't tell you much... But from what I remember, that file is easy to understand.
    7. If this line is present, you will get a nice popup when you earn a new level in the trait. The message is written in another file.
    8. Each trait has a treshold. The triggers give a certain amount of points for a trait. When you have enough points to reach a higher level, you get it. For example, the third level of this trait has a treshold of 4. For example, if you win a battle, the trigger for winning a battle earns you 1 point. Thus, you will have to win 4 battles to get the third level here.
    9. This is the juicy stuff. Here, you determine the effect of the trait. Command, influence, trade bonus etc. The number determines the value.
    10. This determines if you get a nickname for reaching a level. When your character becomes a legendary commander, he will have "The Mighty" added to his name. The nickname is determined in another file.

    One last thing, some traits have a line saying "hidden". That means the trait will not show up in the game. You have it, but you wont see it. Examples of this, is the trait making a character a princess, and the pope gets the trait IamPope to mark him as pope.

    It's a bit late now, so I'll probably wander off to bed. I'll leave the triggers for tomorrow...
    Still maintain that crying on the pitch should warrant a 3 match ban

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

    Default Re: Changing Unit/Character Attributes and Triggers

    Actually I might just have a question about the units.
    I remember in RTW Arcani having the fast moving trait while being infantry. Any idea what the attribute was called (doubt its fast pony though)? Want to try it in M2TW :)
    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)

  6. #6

    Default Re: Changing Unit/Character Attributes and Triggers

    Thanks for all the help.

    @HoreTore:

    Thanks for the detailed breakdown of the .txt file.

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