Results 1 to 10 of 10

Thread: Ancillary father to son

Hybrid View

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

    Default Ancillary father to son

    Hello everyone,

    I recently added 2 new ancillaries to my SS6.3 mod and I am trying to get them to pass from father to son when the father dies peacefully. The ancillaries show up fine in the game but when the faction leader father dies the ancillaries do not show up for the either son.

    Below are my trigger codes.

    If anyone could help me out I would greatly appreciate it.

    Code:
    ;------------------------------------------
    Trigger fieldcommander
     WhenToTest PostBattle
     Condition GeneralHPLostRatioinBattle <= 50
     and GeneralNumKillsInBattle > 50
     and WonBattle
     and not Routs
     and Attribute Command >= 5
     and BattleOdds <= 0.50
     and Trait GoodCommander >= 3
    
     AcquireAncillary fieldcommander chance 20
    
    ;------------------------------------------
    Trigger fieldcommander 
    WhenToTest FatherDiesNatural
    Condition FatherAnc fieldcommander
     
    
    AcquireAncillary fieldcommander chance 100
    
    ;------------------------------------------
    Trigger royalguardian
     WhenToTest PostBattle
     Condition GeneralHPLostRatioinBattle <= 60
     and GeneralNumKillsInBattle > 50
     and WonBattle
     and not Routs
    
     AcquireAncillary royalguardian chance 10
    
    ;------------------------------------------
    Trigger royalguardian
    WhenToTest FatherDiesNatural
    Condition FatherAnc royalguardian
    
    
    AcquireAncillary royalguardian chance 100

    Thanks,

    ROnnie

  2. #2

    Default Re: Ancillary father to son

    The triggers look fine to me so it should work. Have you checked the SS log what that say about it?
    Try to rename the anc like royal_guardian.

    Like
    Code:
    Condition FatherAnc royal_guardian
    Or you could also create a separate trigger placing this condition also:-
    Code:
    Condition IsFactionHeir

  3. #3

    Default Re: Ancillary father to son

    Thanks so much for responding Ishan.

    I changed the ancillary to royal_guardian as you suggested. I also incorporated the "and IsFactionHeir" to test if the problem was with the son being the heir but it still doesn't seem to be working. Here is an excerpt from my system log where I think the trigger should have occurred.

    Code:
    07:13:54.375 [game.script.trigger] [trace] Trigger <0006_UI_Panel_Settlement_Icons_Trigger> fired
    07:13:54.390 [game.script.trigger] [trace] Trigger <0093_Update_Normal_Difficulty> fired
    07:13:54.390 [game.script.trigger] [trace] Trigger <0046_P_Normalise> fired
    07:13:54.390 [game.script.trigger] [trace] Trigger <0083b_Update_Allies> fired
    07:13:54.390 [game.script.trigger] [trace] Trigger <0084b_Update_Enemies> fired
    07:13:54.390 [game.script.trigger] [trace] Trigger <0085_Update_Religion> fired
    07:13:54.390 [game.script.trigger] [trace] Trigger <0096_Increase_Global_Standing_New_Turn> fired
    07:13:54.390 [game.script.trigger] [trace] Trigger <0108_Update_Untrustworthy_Factions_Minor> fired
    07:13:54.390 [game.script.trigger] [trace] Trigger <Scotland> fired
    07:13:54.390 [game.script.trigger] [trace] Trigger <0101_High_Income1> fired
    07:13:54.390 [game.script.trigger] [trace] Trigger <0002_New_Campaign_Turn_Trigger> fired
    07:13:54.390 [system.io] [info] exists: missing mods/SS6.3/data/ui/generic/eventpics/familyevent_deathimportant.tga
    07:13:54.390 [system.io] [info] exists: missing mods/SS6.3/data/ui/northern_european/eventpics/familyevent_deathimportant.tga
    07:13:54.390 [system.io] [info] exists: missing data/ui/northern_european/eventpics/familyevent_deathimportant.tga.dds
    07:13:54.390 [system.io] [info] exists:   found data/ui/northern_european/eventpics/familyevent_deathimportant.tga (from: C:\Program Files\SEGA\Medieval II Total War)
    07:13:54.390 [system.io] [trace] file open,,27F7FE90,217308
    07:13:54.390 [system.io] [info] open:   found data/ui/northern_european/eventpics/familyevent_deathimportant.tga (from: C:\Program Files\SEGA\Medieval II Total War)
    07:13:54.406 [system.io] [info] exists: missing mods/SS6.3/data/ui/generic/eventpics/new_faction_leader.tga
    07:13:54.406 [system.io] [info] exists: missing mods/SS6.3/data/ui/northern_european/eventpics/new_faction_leader.tga
    07:13:54.406 [system.io] [info] exists: missing data/ui/northern_european/eventpics/new_faction_leader.tga.dds
    07:13:54.406 [system.io] [info] exists:   found data/ui/northern_european/eventpics/new_faction_leader.tga (from: C:\Program Files\SEGA\Medieval II Total War)
    07:13:54.406 [system.io] [info] exists: missing mods/SS6.3/data/ui/generic/eventpics/new_ancillary_character.tga
    07:13:54.406 [system.io] [info] exists: missing mods/SS6.3/data/ui/northern_european/eventpics/new_ancillary_character.tga
    07:13:54.406 [system.io] [info] exists: missing data/ui/northern_european/eventpics/new_ancillary_character.tga.dds
    07:13:54.406 [system.io] [info] exists:   found data/ui/northern_european/eventpics/new_ancillary_character.tga (from: C:\Program Files\SEGA\Medieval II Total War)
    07:13:54.406 [system.io] [info] exists: missing mods/SS6.3/data/ui/generic/eventpics/new_ancillary_character.tga
    07:13:54.406 [system.io] [info] exists: missing mods/SS6.3/data/ui/northern_european/eventpics/new_ancillary_character.tga
    07:13:54.406 [system.io] [info] exists: missing data/ui/northern_european/eventpics/new_ancillary_character.tga.dds
    07:13:54.406 [system.io] [info] exists:   found data/ui/northern_european/eventpics/new_ancillary_character.tga (from: C:\Program Files\SEGA\Medieval II Total War)
    07:13:54.406 [system.io] [info] exists: missing mods/SS6.3/data/ui/generic/eventpics/new_ancillary_character.tga
    07:13:54.406 [system.io] [info] exists: missing mods/SS6.3/data/ui/northern_european/eventpics/new_ancillary_character.tga
    07:13:54.406 [system.io] [info] exists: missing data/ui/northern_european/eventpics/new_ancillary_character.tga.dds
    07:13:54.406 [system.io] [info] exists:   found data/ui/northern_european/eventpics/new_ancillary_character.tga (from: C:\Program Files\SEGA\Medieval II Total War)
    07:13:54.406 [system.io] [info] exists: missing mods/SS6.3/data/ui/generic/eventpics/new_ancillary_character.tga
    07:13:54.406 [system.io] [info] exists: missing mods/SS6.3/data/ui/northern_european/eventpics/new_ancillary_character.tga
    07:13:54.406 [system.io] [info] exists: missing data/ui/northern_european/eventpics/new_ancillary_character.tga.dds
    07:13:54.406 [system.io] [info] exists:   found data/ui/northern_european/eventpics/new_ancillary_character.tga (from: C:\Program Files\SEGA\Medieval II Total War)
    07:13:54.406 [system.io] [info] exists: missing mods/SS6.3/data/ui/generic/eventpics/new_ancillary_character.tga
    07:13:54.406 [system.io] [info] exists: missing mods/SS6.3/data/ui/northern_european/eventpics/new_ancillary_character.tga
    07:13:54.406 [system.io] [info] exists: missing data/ui/northern_european/eventpics/new_ancillary_character.tga.dds
    07:13:54.406 [system.io] [info] exists:   found data/ui/northern_european/eventpics/new_ancillary_character.tga (from: C:\Program Files\SEGA\Medieval II Total War)
    07:13:54.406 [system.io] [info] exists: missing mods/SS6.3/data/ui/generic/eventpics/new_ancillary_character.tga
    07:13:54.406 [system.io] [info] exists: missing mods/SS6.3/data/ui/northern_european/eventpics/new_ancillary_character.tga
    07:13:54.406 [system.io] [info] exists: missing data/ui/northern_european/eventpics/new_ancillary_character.tga.dds
    07:13:54.406 [system.io] [info] exists:   found data/ui/northern_european/eventpics/new_ancillary_character.tga (from: C:\Program Files\SEGA\Medieval II Total War)
    07:13:54.421 [system.io] [trace] file open,,data/ui/northern_european/eventpics/new_faction_leader.tga,217308
    07:13:54.421 [system.io] [info] open:   found data/ui/northern_european/eventpics/new_faction_leader.tga (from: C:\Program Files\SEGA\Medieval II Total War)
    07:13:54.421 [system.io] [trace] file open,,data/ui/northern_european/eventpics/new_ancillary_character.tga,217308
    07:13:54.421 [system.io] [info] open:   found data/ui/northern_european/eventpics/new_ancillary_character.tga (from: C:\Program Files\SEGA\Medieval II Total War)
    07:13:54.437 [system.io] [trace] file open,,data/ui/units/scotland/merchant.tga,12332
    07:13:54.437 [system.io] [info] open:   found data/ui/units/scotland/merchant.tga (from: C:\Program Files\SEGA\Medieval II Total War)
    07:13:54.437 [system.io] [trace] file open,,data/ui/units/scotland/diplomat.tga,12332
    07:13:54.437 [system.io] [info] open:   found data/ui/units/scotland/diplomat.tga (from: C:\Program Files\SEGA\Medieval II Total War)
    07:13:57.140 [game.script.trigger] [trace] Trigger <0201_Message_First_Incoming_Message_Trigger> fired
    07:13:58.062 [game.script.trigger] [trace] Trigger <0201_Message_First_Incoming_Message_Trigger> fired
    07:13:58.343 [system.io] [trace] file open,,data/ui/northern_european/eventpics/familyevent_deathimportant.tga,217308
    07:13:58.343 [system.io] [info] open:   found data/ui/northern_european/eventpics/familyevent_deathimportant.tga (from: C:\Program Files\SEGA\Medieval II Total War)
    07:13:58.343 [system.io] [trace] file open,,data/ui/northern_european/eventpics/familyevent_deathimportant.tga,217308
    07:13:58.343 [system.io] [info] open:   found data/ui/northern_european/eventpics/familyevent_deathimportant.tga (from: C:\Program Files\SEGA\Medieval II Total War)
    07:13:59.093 [game.script.trigger] [trace] Trigger <0201_Message_First_Incoming_Message_Trigger> fired
    07:13:59.828 [system.io] [info] exists: missing mods/SS6.3/data/ui/southern_european/portraits/portraits/dead/114.tga
    07:13:59.828 [system.io] [info] exists:   found data/ui/southern_european/portraits/portraits/dead/114.tga (from: C:\Program Files\SEGA\Medieval II Total War)
    07:13:59.828 [system.io] [info] exists: missing mods/SS6.3/data/ui/southern_european/portraits/portraits/dead/114.tga
    07:13:59.828 [system.io] [info] exists:   found data/ui/southern_european/portraits/portraits/dead/114.tga (from: C:\Program Files\SEGA\Medieval II Total War)
    07:13:59.828 [system.io] [info] exists: missing mods/SS6.3/data/ui/southern_european/portraits/portraits/dead/114.tga
    07:13:59.828 [system.io] [info] exists:   found data/ui/southern_european/portraits/portraits/dead/114.tga (from: C:\Program Files\SEGA\Medieval II Total War)
    07:13:59.828 [system.io] [info] exists: missing mods/SS6.3/data/ui/southern_european/portraits/portraits/dead/114.tga
    07:13:59.828 [system.io] [info] exists:   found data/ui/southern_european/portraits/portraits/dead/114.tga (from: C:\Program Files\SEGA\Medieval II Total War)
    07:14:00.109 [game.script.trigger] [trace] Trigger <0201_Message_First_Incoming_Message_Trigger> fired
    07:14:07.031 [system.io] [trace] file open,,data/ui/northern_european/eventpics/new_faction_leader.tga,217308
    07:14:07.031 [system.io] [info] open:   found data/ui/northern_european/eventpics/new_faction_leader.tga (from: C:\Program Files\SEGA\Medieval II Total War)
    07:14:07.031 [system.io] [trace] file open,,data/ui/northern_european/eventpics/new_ancillary_character.tga,217308
    07:14:07.031 [system.io] [info] open:   found data/ui/northern_european/eventpics/new_ancillary_character.tga (from: C:\Program Files\SEGA\Medieval II Total War)
    07:14:09.343 [system.io] [trace] file open,,data/ui/southern_european/portraits/portraits/young/generals/194.tga,26540
    07:14:09.343 [system.io] [info] open:   found data/ui/southern_european/portraits/portraits/young/generals/194.tga (from: C:\Program Files\SEGA\Medieval II Total War)
    07:14:09.343 [system.io] [trace] file open,,data/ui/southern_european/portraits/portraits/young/generals/138.tga,26540
    07:14:09.343 [system.io] [info] open:   found data/ui/southern_european/portraits/portraits/young/generals/138.tga (from: C:\Program Files\SEGA\Medieval II Total War)
    07:14:09.343 [system.io] [info] exists:   found mods/SS6.3/data/ui/units/mercs/#Border_Horse.tga (from: C:\Program Files\SEGA\Medieval II Total War)
    07:14:09.343 [system.io] [info] exists:   found mods/SS6.3/data/ui/units/mercs/#Border_Horse.tga (from: C:\Program
    Thanks again for responding and helping.

    Regards,

    Ronnie

  4. #4
    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: Ancillary father to son

    What are the full entries for the actual ancillaries? You've also got multiple triggers with the same name, this is a no-no. Click the tools link in my sig and download my ATVTW tool, it checks for a large variety of trait/ancillary/trigger related issues.
    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

  5. #5

    Default Re: Ancillary father to son

    Thank you for helping Squid.

    Using your ATVTW toll I only received the following error when checking both Ancillary and Ancillary Triggers

    Ancillary - royal_guardian Warning: ExcludedAncillaries swordbearer does not work in both directions.

    I tried changing the second trigger from "Trigger royal_guardian_trigger" to "Trigger royal_guardian_trigger2" but that did not work either.

    I have only added these 2 new ancillaries all other ancillaries and ancillary triggers are from the base install of SS6.3.

    Here is my entries into the export_descr_ancillaries.txt file

    Code:
    ;------------------------------------------
    Ancillary royal_guardian
     Type Military
     Transferable 1
     Image warrior_squire.tga
     ExcludedAncillaries swordbearer
     ExcludeCultures southern_european, mesoamerican
     Description royal_guardian_desc
     EffectsDescription royal_guardian_effects_desc
     Effect HitPoints 2
     Effect PersonalSecurity 1
    ;------------------------------------------
    Ancillary field_commander
     Type Military
     Transferable 1
     Image warrior_captain.tga
     ExcludeCultures southern_european, mesoamerican
     Description field_commander_desc
     EffectsDescription field_commander_effects_desc
     Effect Authority 2
     Effect Command 2
     Effect SiegeAttack 2
    ;------------------------------------------
     
    ;================ Triggers ================
    ;------------------------------------------
    Trigger field_commander
     WhenToTest PostBattle
     Condition GeneralHPLostRatioinBattle <= 50
     and GeneralNumKillsInBattle > 50
     and WonBattle
     and not Routs
     and Attribute Command >= 5
     and BattleOdds <= 0.50
     and Trait GoodCommander >= 3
    
     AcquireAncillary field_commander chance 20
    
    ;------------------------------------------
    Trigger field_commander
    WhenToTest FatherDiesNatural
    Condition FatherAnc field_commander
     
    
    AcquireAncillary field_commander chance 100
    
    ;------------------------------------------
    Trigger royal_guardian_trigger
     WhenToTest PostBattle
     Condition GeneralHPLostRatioinBattle <= 60
     and GeneralNumKillsInBattle > 50
     and WonBattle
     and not Routs
    
     AcquireAncillary royal_guardian chance 10
    
    ;------------------------------------------
    Trigger royal_guardian_trigger 
    WhenToTest FatherDiesNatural
    Condition FatherAnc royal_guardian
    
    
    AcquireAncillary royal_guardian chance 100
    
    ;------------------------------------------
    I was going to make my step to download the Stripped Mod Folder and add the ancillaries and triggers in there to see if it is a problem with SS6.3.

    Thanks again so much for trying to help me out.

    Regards,
    Ronnie

  6. #6

    Icon1 Re: Ancillary father to son

    ronnie76: Have you added royal_guardian to swordbearer's 'ExcludedAncillaries' line?
    Code:
    ;------------------------------------------
    Ancillary apothecary
        Type Health
        Transferable  1 
        Image Zapothecary.tga
        ExcludedAncillaries astrologer
        ExcludeCultures mesoamerican, eastern_european
        Description apothecary_desc
        EffectsDescription apothecary_effects_desc
        Effect Fertility  1 
        Effect HitPoints  4
    
    ;------------------------------------------
    Ancillary astrologer
        Type Academic
        Transferable  0 
        Image ZAstrologer.tga
        ExcludedAncillaries apothecary
        ExcludeCultures northern_european, eastern_european
        Description astrologer_desc
        EffectsDescription astrologer_effects_desc
        Effect Authority  1

  7. #7
    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: Ancillary father to son

    I think the problem is that death in battle is not considered a natural death so the natural death trigger isn't firing when you think it should. If you set your log to trace you should see if the natural death trigger is firing after the father dies in battle (I don't think it does).

    If I'm right then you'll need to use a bit of scripting in order to achieve what you want, if its possible.
    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

  8. #8

    Default Re: Ancillary father to son

    Yes you are right Squid Death in battlefield is not considered as a Natural death by game.

  9. #9

    Default Re: Ancillary father to son

    When I searched the forums I did read about there not being a command for battle death so the king is dying naturally, not in battle.

    I have edited the desc_strat to make him 89 years old so that he usually dies on the first or second turn of the campaign.

    TNZ: I just tried adding the royal_guardian to swordbearer's 'ExcludedAncillaries' line but that didn't help either. The field_commander doesn't have any excludes and it also does pass to the son.

    I also tried adding the following code to make the academic advisor pass to the son both in my SS6.3 mod and in the Vanilla game but no luck there either. I'm sure I must be missing some minor detail or something.


    Code:
    ;------------------------------------------
    Trigger academic_advisor2
    WhenToTest FatherDiesNatural
    Condition FatherAnc academic_advisor
     
    AcquireAncillary academic_advisor chance 100

    Thanks again for all of the help.

  10. #10

    Default Re: Ancillary father to son

    So I did some further testing in the vanilla game.

    I edited the vanilla descr_strat to make England's leader William to be 89 years old and start with the ancillary shard_of_the_true_cross which has the father dies natural trigger already there. I changed the chance to 100. I changed the heir Rufus to have the trait PublicFaith 4 to ensure his piety was above 2, but the ancillary did not pass to Rufus.

    Here is the only FatherDiesNatural line from the system log. I don't know what the 024 means or if it is even the correct trigger.

    Code:
    21:56:37.578 [game.script.trigger] [info] 	024 triggers tested by event FatherDiesNatural
    Here is the ancillary trigger entry.
    Code:
    ;------------------------------------------
    Trigger shard_of_the_true_cross_father_anc_trigger
        WhenToTest FatherDiesNatural
        Condition Attribute Piety > 2
              and FatherAnc shard_of_the_true_cross
              and not HasAncType Relic
    
        AcquireAncillary shard_of_the_true_cross chance  100
    Thanks,
    Ronnie

Posting Permissions

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