Log in

View Full Version : Trait error



Caius
07-24-2007, 19:46
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

character Caius Flaminius, diplomat, age 23, , x 112, y 63
traits GoodDiplomat 3 , Born 1
This is the export_descr_VnV_enums.txt

Born
Born_desc
NoBorn
NoBorn_desc
Then, I made this:

;------------------------------------------
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

Makanyane
07-24-2007, 20:48
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....