Page 9 of 9 FirstFirst 123456789
Results 161 to 163 of 163

Thread: ATVTW - Trait/Ancillary Validator

  1. #161
    Gigantus's Avatar I am thinking more about running away now then I did as a kid, but by the time I put my teeth in, my glasses on and find my car keys I forget why I am going.
    Moderator Emeritus Administrator Emeritus Modding Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    49,178
    Blog Entries
    26

    Default Re: ATVTW - Trait/Ancillary Validator

    Transferable means the player can transfer the ancillary if the character are in the same army or settlement.




  2. #162

    Default Re: ATVTW - Trait/Ancillary Validator

    Quote Originally Posted by Gigantus View Post
    I have a remaining issue with the checker: it does not recognize custom factions for the Combat_V effects. Could that be pulled from the descr_sm_factions and descr_religions files instead of from a preset list?

    Also confirmed that the HasANCType condition is indeed not working in the EDCT - it simply gets ignored as if it is not present.
    I am working on a mod that has a large number of edct HasAncType conditions. Here is an example of a trigger:
    Code:
    ;----------------------------------------------------------
    Trigger NextHeirTrait_trigger1
        WhenToTest CharacterTurnEnd
    
        Condition FactionIsLocal
            and IsGeneral
            and Trait NextHeirTrait == 0
            and HasAncType NextHeir
            and not IsFactionLeader
            and not IsFactionHeir
    
        Affects NextHeirTrait  1  Chance  100
    ;----------------------------------------------------------
    Trigger NextHeirTrait_trigger2
        WhenToTest CharacterTurnStart
    
        Condition FactionIsLocal
            and Trait NextHeirTrait == 1
            and not HasAncType NextHeir
    
        Affects NextHeirTrait  -1  Chance  100
    ;----------------------------------------------------------
    Trigger NextHeirTrait_trigger3
        WhenToTest CharacterTurnEnd
    
        Condition Trait NextHeirTrait == 1
            and Trait BecameFactionLeader > 0
    
        Affects NextHeirTrait  -1  Chance  100
    When I tested this I moved the ancillary from one character to another and then the next turn the character received the appropriate trait based on having the ancillary. Also note the the ancillary itself does not grant any traits. Based on this is it safe to say that 'HAsAncType' conditions do indeed work in the edct or is there something in the rest of the triggers that I am missing, because I have removed many conditions in my own mods edct that used the same condition and would like to add them back in.
    Last edited by MIKE GOLF; April 07, 2020 at 12:41 PM.

  3. #163
    Gigantus's Avatar I am thinking more about running away now then I did as a kid, but by the time I put my teeth in, my glasses on and find my car keys I forget why I am going.
    Moderator Emeritus Administrator Emeritus Modding Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    49,178
    Blog Entries
    26

    Default Re: ATVTW - Trait/Ancillary Validator

    I can't recall or trace what my comment is based on so I did some testing myself, using my trusty Bare Geomod set up:

    1. changed the type of the accomplice anc to 'dummytest' and made it transferable
    2. gave anc to William (england) in descr_strat
    3. moved Robert next to him in descr_strat
    4. added the entries below to EDCT
    Code:
    Trait TestingTrait
        Characters family
    
        Level TestingTrait
            Description TestingTrait_desc
            EffectsDescription TestingTrait_desc
            Threshold  1 
    
            Effect Command  1 
    ;----------------------------------------------------------
    Trigger Testing_trigger1
        WhenToTest CharacterTurnStart
    
        Condition HasAncType dummytest
    
        Affects TestingTrait  1  Chance  100
    ;----------------------------------------------------------
    Trigger Testing_trigger2
        WhenToTest CharacterTurnStart
    
        Condition Trait TestingTrait > 0
            and not HasAncType dummytest
    
        Affects TestingTrait  -1  Chance  100
    --- Testing Results ---

    William had the testingtrait when starting the game, Robert did not (the latter would have obtained the trait if the condition was ignored given that it was the only condition)
    Merged Robert with William and transferred anc to Robert
    Clicked next turn
    William had lost testingtrait, Robert had gained it

    --- Conclusion ---

    Whatever caused me to make that statement\observation is not applicable (anymore?), the HasANCType condition works in the EDCT file. I also made a note about this test in the post you quoted.
    Last edited by Gigantus; April 08, 2020 at 01:03 AM.




Page 9 of 9 FirstFirst 123456789

Tags for this Thread

Posting Permissions

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