Results 1 to 2 of 2

Thread: Trait error

  1. #1
    Honorary Argentinian Senior Member Gyroball Champion, Karts Champion Caius's Avatar
    Join Date
    Aug 2006
    Location
    I live in my home, don't you?
    Posts
    8,114

    Default Trait error

    Hello guys,

    I recently tried to make a new Trait for diplomats, but it failed horribly.
    I'm not sure what I made wrong, so I will copy the following code of the new trait

    I made the change to myself in the descr_strat.txt :D
    Code:
    character	Caius Flaminius, diplomat, age 23, , x 112, y 63 
    traits GoodDiplomat 3 , Born 1
    This is the export_descr_VnV_enums.txt
    Code:
    Born
    Born_desc
    NoBorn
    NoBorn_desc
    Then, I made this:
    Code:
    ;------------------------------------------
    Trait BornDiplomatic
    	Characters diplomat
    	AntiTraits NoBornDiplomat
    
        Level Born
            Description Born_desc
            EffectsDescription Born_effects_desc
            Threshold  1 
    
            Effect Negotiation  1 
    
    ;------------------------------------------
    Trait NoBornDiplomat
    	Characters diplomat
    	AntiTraits BornDiplomat
    
        Level No_Born
            Description No_born_desc
            EffectsDescription no_born_effects_desc
            Threshold  2 
    
            Effect Negotiation -1 
    
    ;------------------------------------------
    Why do I have an error which it doesnt allow me to play?

    Tnx




    Names, secret names
    But never in my favour
    But when all is said and done
    It's you I love

  2. #2
    Finder of Little Oddities Senior Member Makanyane's Avatar
    Join Date
    Jan 2006
    Posts
    2,220

    Default Re: Trait error

    The enums file is completely irrelevant - at least in later patches of the game but you seem to be missing any changes to the text file;

    in data/text/export_VnVs.txt

    you'd need

    {Born} blah

    {Born_desc}
    blah blah

    {Born_effects_desc} blah blah

    {No_Born} blah

    {No_Born_desc}
    blah blah

    {No_Born_effects_desc} blah blah
    the bit in brackets relates to the level name and must be same case - note that you have changed the capital letters for each of the descriptions in the trait file - you can do that if you follow through exactly when you put them in the text file but it is likely to confuse you - one letter in wrong case will make the game crash when you view general so better to try and be consistent!

    In descr strat if you want your general to have the Born level of the trait you put the trait name and level eg:
    BornDiplomatic 1

    there is a trait and ancillary checker in the scriptorium by Tamur you should have a look for that it will probably help you....
    Not used mods before? Looking for something small and fun?!
    Download the:

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