-
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?
-
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.
-
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!
-
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.
-
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.
-
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.
-
Re: Traits in startpos
I don't have ETW, but I'd be very interested to know more if you can share some info
-
Re: Traits in startpos
Take a look here. Alpaca found it out years ago.