Transferable means the player can transfer the ancillary if the character are in the same army or settlement.
I am working on a mod that has a large number of edct HasAncType conditions. Here is an example of a trigger: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.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
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
--- Testing Results ---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
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.
Hello everyone, I get the same error with two different mods when running the script validator part of the ATVTW:
I tried it with Insularis Draco, and with SSHIP. SSHIP pass bovi's checker fine.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)
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