Results 1 to 8 of 8

Thread: Help with adding a trait

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Help with adding a trait

    Hello all,

    I'm attempting to add an antitrait for the Roman_Provincial_Governor_Effect trait, which confers bonuses to characters who become governors of "provinces" (ie, Sicily, Achaia). Currently, as I understand it, if a character leaves the "province" he is governor of, he won't lose the bonuses because there is no antitrait, and in fact if he comes back the bonuses will be duplicated. See here and here in this thread.

    I've tinkered around in the trait file before, changing thresholds and adding triggers (basically copy and paste work), but I have no experience adding new traits. The problem is that when I add the new trait, it messes things up drastically. When I start a new Roman game, the family name of all the characters has disappeared (ie, it just says "Manius " instead of "Manius Curius Dentatus") and if you right-click on the character to open up his scroll, the game CTDs with no error message.

    Here is what I've written. It's the middle trait of three listed below. I know I need to make it an antitrait of the first one but I left it off to narrow down where the problem is. I still get the same problem in-game whether it's listed as an antitrait or not so I'm pretty sure it's in this code somewhere.

    ;------------------------------------------
    Trait Roman_Provincial_Governor_Effect
    Characters family
    Hidden
    ExcludeCultures barbarian, eastern, egyptian, carthaginian, greek, nomad

    Level Hidden
    Description Hidden_desc
    EffectsDescription Hidden_effects_desc
    Threshold 1

    Effect Management 1
    Effect Law 1

    ;------------------------------------------
    Trait noRoman_Provincial_Governor_Effect
    Characters family
    Hidden
    ExcludeCultures barbarian, eastern, egyptian, carthaginian, greek, nomad

    Level LoseGovBonus
    Description Hidden_desc
    EffectsDescription Hidden_effects_desc
    Threshold 1

    ;------------------------------------------
    Trait Propraetor_Provinciae
    Characters family
    ExcludeCultures barbarian, eastern, egyptian, carthaginian, greek, nomad
    NoGoingBackLevel 2
    AntiTraits Proconsul_Provinciae

    Level Propraetor_Provinciae
    Description Propraetor_Provinciae_desc
    EffectsDescription Propraetor_Provinciae_effects_desc
    Threshold 1

    Effect Influence 1
    I'm hoping an obvious problem pops out at someone when they look at this because I can't figure out what's wrong. Or maybe there is something I need to add somewhere else to make this work? I added {LoseGovBonus} to export_VnVs at the end and I have not changed any triggers in the trait file yet or added anything other than what you see above. Thanks in advance!
    Last edited by Sheep; 06-02-2009 at 10:02.

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