Log in

View Full Version : help creating new traits



kingwill
10-26-2005, 23:50
i have tied creating a new trait however te game crashes before loading and im not sure why

export_descr_character_traits



;------------------------------------------
Trait khalifah
Characters family
Level sucessor
Description sucessor_desc
EffectsDescription sucessor_effects_desc
Threshold 2
Effect Command 3

;------------------------------------------




;------------------------------------------
Trigger dads_khalifah
WhenToTest CharacterComesOfAge
Condition FatherTrait khalifah >= 1
Affects khalifah 1 Chance 100
;------------------------------------------


export_descr_VnVs_enums



sucessor
sucessor_desc
sucessor_effects_desc


export_VnVs



¬--------------------
{sucessor} Khalifah

{sucessor_desc}
This man is descended from the prophet himself and some of muhammed's greatness flows through his veins.
¬--------------------




{sucessor_effects_desc}
Great leader


have i missed anything out, it all looks exactly the same as any of the other traits.

Bernhard of Clairvaux
10-27-2005, 12:38
First “successor” is the correct word. The only thing I can think of, that might not be a problem anyway, is that other “Affects” begin with capital letter ie “Khalifa”.

Malrubius
10-27-2005, 13:14
One thing: nobody will ever get the trait. You need to change the threshold to 1. Usually, traits are capitalized, but I don't know if this would matter. Did you change descr_strat.txt? Make sure you have a blank line at the end of export_VnVs.txt, I think I've seen some crashes when that's not done. Your trigger's "Affects" line won't crash the game until the trigger is triggered (I've done this one many times). A CTD right at the start leads me to think there's a problem with parsing one of the files. export_VnVs.txt and export_ancillaries are picky about comments where it expects text, etc. They should also be unicode files, not ascii text, when you save them.

I'd recommend checking out these threads:

Traits and Ancillaries Validator
https://forums.totalwar.org/vb/showthread.php?t=55732

How to mod your traits/VnV
https://forums.totalwar.org/vb/showthread.php?t=38481

kingwill
10-29-2005, 00:09
thanks very much. I dont want anyone to be able to get it randomly i only want it to be inheritied from the father.

Malrubius
10-29-2005, 11:55
How does the father get it? If you changed descr_strat, that might be where your problem is