Results 1 to 8 of 8

Thread: Traits in startpos

  1. #1
    Steph's Avatar Maréchal de France
    Join Date
    Apr 2010
    Location
    Pont de l'Arn, France
    Posts
    4,985
    Tournaments Joined
    0
    Tournaments Won
    0

    Default Traits in startpos

    I'm trying to modify the traits of general in the startpos. And it seems the level are strange.

    For instance, a general with the

    Superior general (+2 command)

    Correspond in the db to trait

    C_General_Good_Field_Commander_2

    and in the startpos, it is

    C_General_Good_Field_Commander with the associated value 4


    while the trait

    Strong defender (+2 defend)

    Correspond in the db to trait

    C_General_Defend_Good_2

    and in the startpos, it is

    C_General_Defender_Good with the associated value 6



    I don't understand the logic of the value that needs to be attached to each trait in the startpos. Why 6 for a defender level?
    Is that documented anywhere?

  2. #2
    T.C.'s Avatar Ultima Ratio Regum
    Join Date
    Jun 2009
    Posts
    3,933
    Tournaments Joined
    0
    Tournaments Won
    0

    Default Re: Traits in startpos

    You should look at the related db tables. IIRC, traits have base traits which "level up" after they acquire enough points. The different levels of the base traits all have their own references, which is what's causing the names to seemingly misalign.
    My Tools, Tutorials and Resources

    Was running out of space, so see the full list here!

    Consider the postage stamp: its usefulness consists in the ability to stick to one thing till it gets there.- Josh Billings
    The creatures outside looked from pig to man, and from man to pig, and from pig to man again; but already it was impossible to say which was which.- George Orwell

  3. #3
    Steph's Avatar Maréchal de France
    Join Date
    Apr 2010
    Location
    Pont de l'Arn, France
    Posts
    4,985
    Tournaments Joined
    0
    Tournaments Won
    0

    Default Re: Traits in startpos

    It's not that simple.

    The db contains things such as

    C_General_Attacker_Good_1
    C_General_Attacker_Good_2
    C_General_Attacker_Good_3
    C_General_Attacker_Good_4
    C_General_Attacker_Good_5

    C_General_Good_Field_Commander_1
    C_General_Good_Field_Commander_2
    C_General_Good_Field_Commander_3
    C_General_Good_Field_Commander_4
    C_General_Good_Field_Commander_5

    In the startpos, it is translated into two values, a text and a number.
    The text will be C_General_Attacker_Good or C_General_Good_Field_Commander.

    This seems logical so far. But for the value, I checked the generals and admirals one by one, and the value which are actually used are

    C_General_Attacker_Good_1 : 3
    C_General_Attacker_Good_2 : 6
    C_General_Attacker_Good_3 : 12
    C_General_Attacker_Good_4 : ?
    C_General_Attacker_Good_5 : ?

    C_General_Good_Field_Commander_1 : 1
    C_General_Good_Field_Commander_2 : 4
    C_General_Good_Field_Commander_3 : 8
    C_General_Good_Field_Commander_4 : 12
    C_General_Good_Field_Commander_5 : ?

    Where is the logic in that? It's not linear, and the value is not the same for the same level!

  4. #4
    T.C.'s Avatar Ultima Ratio Regum
    Join Date
    Jun 2009
    Posts
    3,933
    Tournaments Joined
    0
    Tournaments Won
    0

    Default Re: Traits in startpos

    Different traits have different thresholds. Look at the tables character_traits and character_trait_levels in the db. That should make things clearer.
    My Tools, Tutorials and Resources

    Was running out of space, so see the full list here!

    Consider the postage stamp: its usefulness consists in the ability to stick to one thing till it gets there.- Josh Billings
    The creatures outside looked from pig to man, and from man to pig, and from pig to man again; but already it was impossible to say which was which.- George Orwell

  5. #5
    Steph's Avatar Maréchal de France
    Join Date
    Apr 2010
    Location
    Pont de l'Arn, France
    Posts
    4,985
    Tournaments Joined
    0
    Tournaments Won
    0

    Default Re: Traits in startpos

    Ah! Thanks! I missed the character_traits_level table, that's exactly what I needed. I was too focused on the traits table.

  6. #6
    T.C.'s Avatar Ultima Ratio Regum
    Join Date
    Jun 2009
    Posts
    3,933
    Tournaments Joined
    0
    Tournaments Won
    0

    Default Re: Traits in startpos

    If you're interested, there are also region and unit traits. These were originally going to be used for disease in ETW and still have some use (I used them to simulate disease in EIC, albeit in a different way than was intended in ETW). You'll have to look at some ETW tables to see the examples though, all entries coding for unit and region traits were removed in NTW.
    My Tools, Tutorials and Resources

    Was running out of space, so see the full list here!

    Consider the postage stamp: its usefulness consists in the ability to stick to one thing till it gets there.- Josh Billings
    The creatures outside looked from pig to man, and from man to pig, and from pig to man again; but already it was impossible to say which was which.- George Orwell

  7. #7
    Steph's Avatar Maréchal de France
    Join Date
    Apr 2010
    Location
    Pont de l'Arn, France
    Posts
    4,985
    Tournaments Joined
    0
    Tournaments Won
    0

    Default Re: Traits in startpos

    I don't have ETW, but I'd be very interested to know more if you can share some info

  8. #8
    T.C.'s Avatar Ultima Ratio Regum
    Join Date
    Jun 2009
    Posts
    3,933
    Tournaments Joined
    0
    Tournaments Won
    0

    Default Re: Traits in startpos

    Take a look here. Alpaca found it out years ago.
    My Tools, Tutorials and Resources

    Was running out of space, so see the full list here!

    Consider the postage stamp: its usefulness consists in the ability to stick to one thing till it gets there.- Josh Billings
    The creatures outside looked from pig to man, and from man to pig, and from pig to man again; but already it was impossible to say which was which.- George Orwell

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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