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

Thread: ATVTW - Trait/Ancillary Validator

  1. #161
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,068
    Blog Entries
    35

    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 11:41 AM.

  3. #163
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,068
    Blog Entries
    35

    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 12:03 AM.










  4. #164

    Default Re: ATVTW - Trait/Ancillary Validator

    Hello everyone, I get the same error with two different mods when running the script validator part of the ATVTW:
    Code:
    ************** Exception Text **************
    System.IndexOutOfRangeException: Index was outside the bounds of the array.
       at ATVTW.ATVTWForm.ParseScript()
       at ATVTW.ATVTWForm.TsbNextProblemClick(Object sender, EventArgs e)
       at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
       at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
       at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
       at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ToolStrip.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    I tried it with Insularis Draco, and with SSHIP. SSHIP pass bovi's checker fine.

    Anyone already had this problem?
    Last edited by Belovèse; July 29, 2022 at 05:56 AM.
    Belovèse's Toolbox: export text files to spreadsheet, detailed unit stats
    Stainless Steel Historical Improvement Project (SSHIP) team member.
    Mini-mods: diplomacy and relation/reputation - detailled unit stats

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
  •