Results 1 to 22 of 22

Thread: Character Age, Detecting Settlement Captures

Hybrid View

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

    Angry Re: Character Age, Detecting Settlement Captures

    To determine character age, use CharacterAge in export_descr_character_traits.txt but not as a trait...

    ;------------------------------------------
    Trigger general_ages1
    WhenToTest CharacterTurnStart

    Condition AgentType = family
    and CharacterAge > 15
    and CharacterAge < 40
    and Trait AgeingGeneral < 1

    Affects AgeingGeneral 1 Chance 100

    I've got this working in my bug-fixer 3.36/GAPH Modded RTW :)

  2. #2
    Bug Hunter Senior Member player1's Avatar
    Join Date
    Feb 2005
    Location
    Belgrade, Serbia
    Posts
    1,405

    Default Re: Character Age, Detecting Settlement Captures

    You mean there is actually condition CharacterAge in the game?

    Great find...
    BUG-FIXER, an unofficial patch for both Rome: Total War and its expansion pack

  3. #3

    Default Re: Character Age, Detecting Settlement Captures

    Quote Originally Posted by maste1n
    To determine character age, use CharacterAge in export_descr_character_traits.txt but not as a trait...

    ;------------------------------------------
    Trigger general_ages1
    WhenToTest CharacterTurnStart

    Condition AgentType = family
    and CharacterAge > 15
    and CharacterAge < 40
    and Trait AgeingGeneral < 1

    Affects AgeingGeneral 1 Chance 100

    I've got this working in my bug-fixer 3.36/GAPH Modded RTW :)

    Argh! When i was trying i tried

    "Trait CharacterAge" and "Attribute CharacterAge" but not plain CharacterAge

    I bet you can get CharacterName too.

    Definitely a great find. Kudos
    It's not a map.

  4. #4
    Member Member Marcus Camillus's Avatar
    Join Date
    Dec 2005
    Location
    a villa SE of Roma
    Posts
    15

    Default Re: Character Age, Detecting Settlement Captures

    Quote Originally Posted by maste1n
    To determine character age, use CharacterAge in export_descr_character_traits.txt but not as a trait...

    ;------------------------------------------
    Trigger general_ages1
    WhenToTest CharacterTurnStart

    Condition AgentType = family
    and CharacterAge > 15
    and CharacterAge < 40
    and Trait AgeingGeneral < 1

    Affects AgeingGeneral 1 Chance 100

    I've got this working in my bug-fixer 3.36/GAPH Modded RTW :)
    This is great news indeed. Its just what I have been looking for to use in my current mod so that newly acquired Roman characters can have the experience and ranks appropriate for their age. Now its back to my "Mod Testing Lab" for some new experimenting. Thank you for sharing this!
    Marcus Camillus

    "A ship in harbor is safe, but that is not what ships are built for."
    -- William Shedd

  5. #5
    Harbinger of... saliva Member alpaca's Avatar
    Join Date
    Aug 2003
    Location
    Germany
    Posts
    2,767

    Default Re: Character Age, Detecting Settlement Captures

    Before you guys get overexcited let me state that this condition doesn't work for me.
    When I try to use it, it actually works as if there was no condition at all.

    What I tried was a vanilla game with triggers:
    Code:
    Condition CharacterAge > 40 - where it was awarded to all characters
    Condition CharacterAge < 15 - where it was again awarded to all characters
    Condition not CharacterAge >= 15 - where it, too, was awarded to all characters
    Concluding this condition seems to work like TrueCondition (or is not included at all) ;)
    Last edited by alpaca; 05-07-2006 at 10:50.

  6. #6
    Bibliophilic Member Atilius's Avatar
    Join Date
    Oct 2005
    Location
    America Medioccidentalis Superior
    Posts
    3,837

    Exclamation Re: Character Age, Detecting Settlement Captures

    Quote Originally Posted by maste1n
    To determine character age, use CharacterAge in export_descr_character_traits.txt but not as a trait...

    ;------------------------------------------
    Trigger general_ages1
    WhenToTest CharacterTurnStart

    Condition AgentType = family
    and CharacterAge > 15
    and CharacterAge < 40
    and Trait AgeingGeneral < 1

    Affects AgeingGeneral 1 Chance 100

    I've got this working in my bug-fixer 3.36/GAPH Modded RTW :)

    I was unable to get this CharacterAge thing to work. It's been my experience that if you add a condition that makes no sense, a trigger will always treat the condition as being true. I thought this might be what happened here, so I tried the following experiment.

    I created a trait named ImpossibleTrait:

    Code:
    ;------------------------------------------
    Trait ImpossibleTrait
        Characters family
    
        Level Impossible_Trait
            Description Impossible_Trait_desc
            EffectsDescription Impossible_Trait_effects_desc
            Threshold  1
    which is enabled only by the trigger ShouldntSucceed:

    Code:
    ;------------------------------------------
    Trigger ShouldntSucceed
        WhenToTest CharacterTurnStart
    
        Condition CharacterAge > 25
               and CharacterAge < 25
    
    
        Affects ImpossibleTrait  1  Chance  100
    Clearly this trigger should never succeed, so no character should ever acquire the trait ImpossibleTrait. However, when I ran the game, all my characters immediately acquired the it.

    So, if I haven't screwed up here (and please experiment for yourselves - I'd very much like to be wrong), CharacterAge is meaningless and any condition using it simply evaluates to true by default.

    maste1n,
    If your trigger works correctly, a character 40 years old or more who doesn't already have the AgeingGeneral trait will never get it. Have you verified this?
    Last edited by Atilius; 05-07-2006 at 11:07.
    The truth is the most valuable thing we have. Let us economize it. - Mark Twain



  7. #7

    Angry Re: Character Age, Detecting Settlement Captures

    Just rechecked this and it looks like Atilius is right.

    I've been playing with various age style checks and only CharacterAge seemed to work.

    Just changed it back to Age and it does exactly the same.

    Really sorry guys, I thought I'd cracked it and wanted to pass it on.

    I'll keep looking.

  8. #8
    Bibliophilic Member Atilius's Avatar
    Join Date
    Oct 2005
    Location
    America Medioccidentalis Superior
    Posts
    3,837

    Post Re: Character Age, Detecting Settlement Captures

    No problem maste1n, the trigger parser should really generate a show_err when it doesn't understand a condition. The fact that it doesn't is an ongoing source of grief.
    The truth is the most valuable thing we have. Let us economize it. - Mark Twain



  9. #9

    Default Re: Character Age, Detecting Settlement Captures

    It's not a map.

  10. #10
    Member Member Marcus Camillus's Avatar
    Join Date
    Dec 2005
    Location
    a villa SE of Roma
    Posts
    15

    Default Re: Character Age, Detecting Settlement Captures

    Darn, I was really hoping this would work. There aught to be some syntax for the age attribute. Well, guess I am stuck for now with my interum workaround. Thanks for trying though.
    Marcus Camillus

    "A ship in harbor is safe, but that is not what ships are built for."
    -- William Shedd

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