Results 1 to 14 of 14

Thread: Adding senate office traits?

Hybrid View

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

    Default Adding senate office traits?

    Hello, I've been playing the ExRM mod for Rome: Total Realism recently, but i've become dissatisfied with the lack of senate office traits - other than the ones introduced by Marcus Camillus.

    So i've tried importing the traits from Terra Expugnandae, aka the Consul, Praetor, Aedile etc traits, however, it does not work.

    I've taken the traits as they are in the Terra Expugnandae folder and imported them into the export_descr_character_traits, the export_descr_VnVs_enums and the export_VnVs.


    Still, however it does not work.

    I can play the game okay, and I think the traits actually do happen, mainly due to this:

    I can start up the game, and click my faction leader who's got 6 or 7 points in influence, and see his ancillaries and traits alright.

    However, if I run the game for a few turns, I won't be able to look up his traits without the game crashing - same thing with some of the other characters. So I'm wondering if theres anything I haven't added that needs to be?

  2. #2

    Default Re: Adding senate office traits?

    First thing you do: download Squid's Trait Validator.

  3. #3

    Default Re: Adding senate office traits?

    Thanks, that helped

  4. #4

    Default Re: Adding senate office traits?

    Argh, now I just need to ask one more question:


    When a character have gotten the "Quaestor" trait, he's Quaestor for 4 turns. (1 year)

    Afterwards, he gets the trait "Ex-Quaestor".

    This "ex" trait is supposed to last a lifetime, but sadly this also only lasts for 4 turns, after which it disappears, and my character is re-elected Quaestor again.

    This means that he will never get further than Quaestor in his Cursus Honorum.

    What do I need to change to make the "ex" traits last a lifetime?

  5. #5

    Default Re: Adding senate office traits?

    The code must be wrong. Can you post here the relevant EDCT code (traits & triggers)?

  6. #6

    Default Re: Adding senate office traits?

    ;------------------------------------------
    ; SENATE OFFICES
    ;------------------------------------------
    Trait Aedile
    Characters family
    AntiTraits notAedile
    Level Office_of_Aedile
    Description Office_of_Aedile_desc
    EffectsDescription Office_of_Aedile_effects_desc
    Threshold 1
    Effect Management 1
    Effect Law 1
    Effect Influence 1

    ;------------------------------------------
    Trait Censor
    Characters family
    AntiTraits notCensor
    Level Office_of_Censor
    Description Office_of_Censor_desc
    EffectsDescription Office_of_Censor_effects_desc
    Threshold 1
    Effect Influence 3
    Effect Management 2

    ;Mod145 - 11/02 : reduced influence bonus to 2
    ;------------------------------------------
    Trait Consul
    Characters family
    AntiTraits notConsul
    Level Office_of_Consul
    Description Office_of_Consul_desc
    EffectsDescription Office_of_Consul_effects_desc
    Threshold 1
    Effect Influence 2
    Effect Command 2
    Effect Management 2

    ;Mod146 - 11/02 : reduced command bonus by 1
    ;------------------------------------------
    Trait PontifexMaximus
    Characters family
    AntiTraits notPontifexMaximus
    Level Office_of_Pontifex_Maximus
    Description Office_of_Pontifex_Maximus_desc
    EffectsDescription Office_of_Pontifex_Maximus_effects_desc
    Threshold 1
    Effect Influence 4

    ;Mod142 - 11/02 : reduced influence to 4
    ;------------------------------------------
    Trait Praetor
    Characters family
    AntiTraits notPraetor
    Level Office_of_Praetor
    Description Office_of_Praetor_desc
    EffectsDescription Office_of_Praetor_effects_desc
    Threshold 1
    Effect Management 1
    Effect Law 2
    Effect Influence 1

    ;------------------------------------------
    Trait Quaestor
    Characters family
    AntiTraits notQuaestor
    Level Office_of_Quaestor
    Description Office_of_Quaestor_desc
    EffectsDescription Office_of_Quaestor_effects_desc
    Threshold 1
    Effect Management 1
    Effect Influence 1

    ;------------------------------------------
    Trait notAedile
    Characters family
    AntiTraits Aedile
    Level Ex_Aedile
    Description Ex_Aedile_desc
    EffectsDescription Ex_Aedile_effects_desc
    Threshold 1
    Effect Management 1

    ;------------------------------------------
    Trait notCensor
    Characters family
    AntiTraits Censor
    Level Ex_Censor
    Description Ex_Censor_desc
    EffectsDescription Ex_Censor_effects_desc
    Threshold 1
    Effect Management 1
    Effect Influence 1

    ;Mod143 - 11/02 : removed inf bonus, added +1 management
    ;------------------------------------------
    Trait notConsul
    Characters family
    AntiTraits Consul
    Level Ex_Consul
    Description Ex_Consul_desc
    EffectsDescription Ex_Consul_effects_desc
    Threshold 1
    Effect Command 1
    Effect Influence 1

    ;------------------------------------------
    Trait notPontifexMaximus
    Characters family
    AntiTraits PontifexMaximus
    Level Ex_Pontifex_Maximus
    Description Ex_Pontifex_Maximus_desc
    EffectsDescription Ex_Pontifex_Maximus_effects_desc
    Threshold 1
    Effect Influence 2

    ;Mod144 - 11/02 : reduced inf bonus to 2
    ;------------------------------------------
    Trait notPraetor
    Characters family
    AntiTraits Praetor
    Level Ex_Praetor
    Description Ex_Praetor_desc
    EffectsDescription Ex_Praetor_effects_desc
    Threshold 1
    Effect Law 1
    Effect Influence 1

    ;------------------------------------------
    Trait notQuaestor
    Characters family
    AntiTraits Quaestor
    Level Ex_Quaestor
    Description Ex_Quaestor_desc
    EffectsDescription Ex_Quaestor_effects_desc
    Threshold 1
    Effect Influence 1

    ;------------------------------------------
    Trigger Elected_Quaestor
    WhenToTest CharacterTurnStart
    Condition FactionType romans_julii
    and AgentType = family
    and Trait TurnsAlive < 8
    and Attribute Influence > 2
    and Trait Quaestor < 1
    Affects Quaestor 1 Chance 25
    ;------------------------------------------
    Trigger Elected_Aedile
    WhenToTest CharacterTurnStart
    Condition FactionType romans_julii
    and AgentType = family
    and Trait TurnsAlive > 4
    and Trait TurnsAlive < 16
    and Attribute Influence > 2
    and Attribute Management > 0
    and Trait Aedile < 1
    and Trait notAedile < 1
    Affects Aedile 1 Chance 50
    ;------------------------------------------
    Trigger Elected_Praetor
    WhenToTest CharacterTurnStart
    Condition FactionType romans_julii
    and AgentType = family
    and Trait TurnsAlive > 8
    and Trait TurnsAlive < 24
    and Attribute Influence > 4
    and Attribute Management > 1
    and Trait Praetor < 1
    and Trait notPraetor < 1
    Affects Praetor 1 Chance 50
    ;------------------------------------------
    Trigger Elected_Consul
    WhenToTest CharacterTurnStart
    Condition FactionType romans_julii
    and AgentType = family
    and Trait TurnsAlive > 12
    and Attribute Influence > 5
    and Attribute Command > 4
    and Attribute Management > 2
    and Trait Consul < 1
    and Trait notConsul < 1
    Affects Consul 1 Chance 50
    ;------------------------------------------
    Trigger Elected_Censor
    WhenToTest CharacterTurnStart
    Condition FactionType romans_julii
    and AgentType = family
    and Trait TurnsAlive > 12
    and Attribute Influence > 6
    and Attribute Management > 3
    and Trait Censor < 1
    and Trait notCensor < 1
    Affects Censor 1 Chance 50
    ;------------------------------------------
    Trigger Elected_PontifexMaximus
    WhenToTest CharacterTurnStart
    Condition FactionType romans_julii
    and AgentType = family
    and Trait TurnsAlive > 8
    and Attribute Influence > 4
    and Trait PontifexMaximus < 1
    and Trait notPontifexMaximus < 1
    Affects PontifexMaximus 1 Chance 25
    ;------------------------------------------
    Trigger Count_Quaestor_Turns_in_Office
    WhenToTest CharacterTurnEnd
    Condition AgentType = family
    and Trait Quaestor > 0
    Affects TurnsInOffice 1 Chance 100
    ;------------------------------------------
    Trigger Count_Aedile_Turns_in_Office
    WhenToTest CharacterTurnEnd
    Condition AgentType = family
    and Trait Aedile > 0
    Affects TurnsInOffice 1 Chance 100
    ;------------------------------------------
    Trigger Count_Praetor_Turns_in_Office
    WhenToTest CharacterTurnEnd
    Condition AgentType = family
    and Trait Praetor > 0
    Affects TurnsInOffice 1 Chance 100
    ;------------------------------------------
    Trigger Count_Consul_Turns_in_Office
    WhenToTest CharacterTurnEnd
    Condition AgentType = family
    and Trait Consul > 0
    Affects TurnsInOffice 1 Chance 100
    ;------------------------------------------
    Trigger Count_Censor_Turns_in_Office
    WhenToTest CharacterTurnEnd
    Condition AgentType = family
    and Trait Censor > 0
    Affects TurnsInOffice 1 Chance 100
    ;------------------------------------------
    Trigger Count_PontifexMaximus_Turns_in_Office
    WhenToTest CharacterTurnEnd
    Condition AgentType = family
    and Trait PontifexMaximus > 0
    Affects TurnsInOffice 1 Chance 100
    ;------------------------------------------
    Trigger Reset_Quaestor_after_Term_Expires
    WhenToTest CharacterTurnEnd
    Condition AgentType = family
    and Trait TurnsInOffice = 2
    and Trait Quaestor > 0
    Affects notQuaestor 2 Chance 100
    Affects TurnsOutOfOffice 4 Chance 100
    ;------------------------------------------
    Trigger Reset_Aedile_after_Term_Expires
    WhenToTest CharacterTurnEnd
    Condition AgentType = family
    and Trait TurnsInOffice = 2
    and Trait Aedile > 0
    Affects notAedile 2 Chance 100
    Affects TurnsOutOfOffice 4 Chance 100
    ;------------------------------------------
    Trigger Reset_Praetor_after_Term_Expires
    WhenToTest CharacterTurnEnd
    Condition AgentType = family
    and Trait TurnsInOffice = 2
    and Trait Praetor > 0
    Affects notPraetor 2 Chance 100
    Affects TurnsOutOfOffice 4 Chance 100
    ;------------------------------------------
    Trigger Reset_Consul_after_Term_Expires
    WhenToTest CharacterTurnEnd
    Condition AgentType = family
    and Trait TurnsInOffice = 2
    and Trait Consul > 0
    Affects notConsul 2 Chance 100
    Affects TurnsOutOfOffice 4 Chance 100
    ;------------------------------------------
    Trigger Reset_Censor_after_Term_Expires
    WhenToTest CharacterTurnEnd
    Condition AgentType = family
    and Trait TurnsInOffice = 2
    and Trait Censor > 0
    Affects notCensor 2 Chance 100
    Affects TurnsOutOfOffice 4 Chance 100
    ;------------------------------------------
    Trigger Reset_PontifexMaximus_after_Term_Expires
    WhenToTest CharacterTurnEnd
    Condition AgentType = family
    and Trait TurnsInOffice = 2
    and Trait PontifexMaximus > 0
    Affects notPontifexMaximus 2 Chance 100
    Affects TurnsOutOfOffice 4 Chance 100

  7. #7

    Default Re: Adding senate office traits?

    Add the bold line (and the appropriate Trait in each case) in the triggers and try again.

    Code:
    ;------------------------------------------
     Trigger Elected_Quaestor
     WhenToTest CharacterTurnStart
     Condition FactionType romans_julii
     and AgentType = family
     and Trait TurnsAlive < 8
     and Attribute Influence > 2
     and Trait Quaestor < 1
      and Trait notQuaestor < 1
     Affects Quaestor 1 Chance 25
     ;------------------------------------------

  8. #8

    Default Re: Adding senate office traits?

    Thanks! that fixed the disappearing ex-quaestor trait.

    However, it still does not seem to work properly!

    None of my characters are advancing further than Quaestor, even my faction leader with his influence maxed out is nothing but ex-quaestor.

  9. #9
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,751
    Blog Entries
    3

    Default Re: Adding senate office traits?

    My guess would be the turn requirements, it seems that many of the ranks have age limits, the character must be greater than X and less than Y, so if a character manages to not get the ranks every turn until they've been alive more Y then they won't get any of the ranks.
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

  10. #10

    Default Re: Adding senate office traits?

    Hmmm, I didn't quite understand that.

  11. #11

    Default Re: Adding senate office traits?

    What Squid said is that: Since those traits have age limitations (notice how they require the characters to be more than X and less than Y turns alive), if a character delays a little bit to become Quaestor and when he's done with that offfice he has lived more than Y turns, then he will never get the next rank, because he's too old. Here's an edited version of a trigger, but I don't know if it's historical enough or if it will damage the gameplay - use at your own risk.

    Code:
    ;------------------------------------------
    Trigger Elected_Aedile
    WhenToTest CharacterTurnStart
    Condition FactionType romans_julii
    and AgentType = family
    and Trait TurnsAlive > 4
    ;and Trait TurnsAlive < 16
    and Attribute Influence > 2
    and Attribute Management > 0
    and Trait Aedile < 1
    and Trait notAedile < 1
    and Trait notQuaestor > 1
    Affects Aedile 1 Chance 50
    ;------------------------------------------
    Make the apprtopriate changes to the rest of the triggers as well.

  12. #12

    Default Re: Adding senate office traits?

    Ah okay.


    Hmm, what do I have to change to make the triggers only require the character be older than fx 30 years to be quaestor, with no "too old" trigger-ish stuff, if you know what I mean?

    In other words, what do I need to add to make it so that even a 70 year old can be quaestor, but not a 29 year old?

    I'm playing with 4 turns pr year by the way

  13. #13

    Default Re: Adding senate office traits?

    See that semicolon in front of the line I posted in bold?That makes the engine ignore the line. Such lines that read "Trait TurnsAlive < xyz" are the ones that you need to out-comment putting semicolons in front of. It's just what I have done above.

  14. #14

    Default Re: Adding senate office traits?

    Thanks, I got it working now

Posting Permissions

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