Page 1 of 2 12 LastLast
Results 1 to 20 of 29

Thread: Kingmaker triggers aren't working

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Kingmaker triggers aren't working

    This is what I got for a ctd:

    18:47:31.880 [game.script.trigger] [trace] Trigger <0300K_new_faction_leader> fired
    18:47:31.880 [game.script.trigger] [trace] Trigger <Usurper1> fired
    18:47:31.881 [game.script] [error] Trigger processing error in <Kingmaker1>
    : FactionwideAncillaryExists needs a living character.

    when testing <FactionwideAncillaryExists> condition
    18:47:31.881 [game.script] [error] Trigger processing error in <Kingmaker2>
    : FactionwideAncillaryExists needs a living character.

    This is what is in the EDA:

    ;------------------------------------------
    Ancillary kingmaker1
    Type kingmaker
    Transferable 0
    Image tokus_kingmaker.tga
    Description kingmaker1_desc
    EffectsDescription kingmaker1_effects_desc
    Effect Authority 1
    ;------------------------------------------
    Ancillary kingmaker2
    Type kingmaker
    Transferable 0
    Image tokus_kingmaker.tga
    Description kingmaker2_desc
    EffectsDescription kingmaker2_effects_desc
    Effect Unrest 2
    Effect TaxCollection -5
    Effect Command -1


    ;------------------------------------------
    Trigger Kingmaker1
    WhenToTest BecomesFactionLeader
    Condition I_TurnNumber > 0
    and not FactionwideAncillaryExists kingmaker2
    and not FatherTrait Factionleader >= 1
    AcquireAncillary kingmaker1 chance 25
    ;------------------------------------------
    Trigger Kingmaker2
    WhenToTest BecomesFactionLeader
    Condition I_TurnNumber > 0
    and not FactionwideAncillaryExists kingmaker1
    and not FatherTrait Factionleader >= 1
    AcquireAncillary kingmaker2 chance 40

    What is wrong? I have tried it in the EDCT, also. It is when I kill the faction leader with no faction heir, usurper trigger fires and then the kingmaker triggers fire but the usurper trigger did not find seem to find an an heir and ctds.

  2. #2

    Icon1 Re: Kingmaker triggers aren't working

    irishron: Have you try adding the ‘IsGeneral’ condition to the triggers?

  3. #3
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: Kingmaker triggers aren't working

    I just looked above our posted that I copied verbatum and I don't see IsGeneral.

    Could you please show this thick skull how to add it?

  4. #4

    Icon1 Re: Kingmaker triggers aren't working

    Code:
    ;------------------------------------------
    Trigger Kingmaker1
    WhenToTest BecomesFactionLeader
    Condition I_TurnNumber > 0
    and IsGeneral
    and FactionwideAncillaryExists kingmaker2
    and not FatherTrait Factionleader >= 1
    AcquireAncillary kingmaker1 chance 25
    ;------------------------------------------
    Trigger Kingmaker2
    WhenToTest BecomesFactionLeader
    Condition I_TurnNumber > 0
    and IsGeneral
    and not FactionwideAncillaryExists kingmaker1
    and not FatherTrait Factionleader >= 1
    AcquireAncillary kingmaker2 chance 40

  5. #5
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: Kingmaker triggers aren't working

    Thank you very much.

  6. #6
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Kingmaker triggers aren't working

    Um... I don't have much to add, I don't see why it isn't working, but BecomesFactionLeader isn't going to export a character record that isn't a general. I think IsGeneral is only useful for events where the character might not be a general. If it works when you add that then I am even more confused...
    Last edited by Taiji; September 01, 2010 at 09:54 AM.

  7. #7
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: Kingmaker triggers aren't working

    Only time will tell, Taiji. In the year or so we have had BBB 4.0 in our mod, it has happened to me twice, once as a trait trigger and now as an ancillary trigger. It's just more testing. It could be something CA did or did not do in the hardcode, again. Gigantus has it in his PDER mod and I had one of his players contact me about it crashing his camapign. Same circumstances.

    Could the IsGeneral line be tied to the way the game fires the usurper trigger before it fires the kingmaker triggers?

  8. #8

    Default Re: Kingmaker triggers aren't working

    Sorry, but did adding the IsGeneral to the trigger work?
    Currently following these promising mods - Imperia Antiquitatis by Splenyi
    Traits, Talents, and Toadies
    by Hellbent
    Real Roman Reforms
    by Aodh Mor
    Unit Icons project
    by Bullgod
    Also recommended:
    City Sack, Liberation and Diplomatic Options
    by Dresden

  9. #9
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: Kingmaker triggers aren't working

    I have not had a chance to test it. I need a king to kill with no apparent heir to test it and I'm not far enough into a campaign to find one or have the ai do the dirty work for me.

  10. #10
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Kingmaker triggers aren't working

    I wonder if the king and heir died at the same time when the CTD occured.

  11. #11
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: Kingmaker triggers aren't working

    The first time, no. In that one no heir on the map including the settlement but he had five Generals scattered across three regions. This time I did not check. I just saw one General take off from the settlement before I sieged it.

  12. #12
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: Kingmaker triggers aren't working

    Double post time.

    It did not work. Here are the lines in the log from the settlement capture to the ctd:

    Spoiler Alert, click show to read: 
    12:27:06.885 [game.script.trigger] [trace] Trigger <triumphs_in_capture> fired
    12:27:06.885 [game.script.trigger] [trace] Trigger <0052_T_Invaded_Settlement> fired
    12:27:06.885 [game.script.trigger] [trace] Trigger <0052_T_Invaded_Settlement> fired
    12:27:06.885 [data.transgression] [info] Applied transgression TC_INVADED_SETTLEMENT from transgressor faction 16A0A540 against faction 16A3169C
    12:27:06.982 [system.io] [trace] file open,,data/ui/greek/eventpics/settlement_taken.tga,217282
    12:27:06.982 [system.io] [info] open: found data/ui/greek/eventpics/settlement_taken.tga (from: C:\Games\Medieval II Total War)
    12:27:06.982 [system.io] [trace] file open,,data/ui/greek/eventpics/settlement_taken.tga,217282
    12:27:06.982 [system.io] [info] open: found data/ui/greek/eventpics/settlement_taken.tga (from: C:\Games\Medieval II Total War)
    12:27:06.987 [system.io] [info] exists: missing mods/RegionMod_Kings/data/ui/generic/eventpics/settlement_taken.tga
    12:27:06.987 [system.io] [info] exists: missing mods/RegionMod_Kings/data/ui/greek/eventpics/settlement_taken.tga
    12:27:06.988 [system.io] [info] exists: missing data/ui/greek/eventpics/settlement_taken.tga.dds
    12:27:06.988 [system.io] [info] exists: found data/ui/greek/eventpics/settlement_taken.tga (from: C:\Games\Medieval II Total War)
    12:27:06.988 [system.io] [trace] file open,,219E9370,217282
    12:27:06.988 [system.io] [info] open: found data/ui/greek/eventpics/settlement_taken.tga (from: C:\Games\Medieval II Total War)
    12:27:06.988 [game.script.trigger] [trace] Trigger <0062_UI_Panel_Captured_Settlement_Trigger> fired
    12:27:06.988 [game.script.trigger] [trace] Trigger <0588_Unexplored_Advisor_Request_Help_Trigger> fired
    12:27:09.492 [system.io] [info] exists: missing mods/RegionMod_Kings/data/ui/generic/bribed_portrait.tga
    12:27:09.497 [system.io] [info] exists: missing mods/RegionMod_Kings/data/ui/generic/bribed_portrait.tga
    12:27:09.501 [system.io] [info] exists: missing mods/RegionMod_Kings/data/ui/generic/bribed_portrait.tga
    12:27:09.504 [system.io] [info] exists: missing mods/RegionMod_Kings/data/ui/generic/bribed_portrait.tga
    12:27:09.507 [system.io] [info] exists: missing mods/RegionMod_Kings/data/ui/generic/bribed_portrait.tga
    12:27:09.511 [system.io] [info] exists: missing mods/RegionMod_Kings/data/ui/generic/bribed_portrait.tga
    12:27:09.512 [game.script.trigger] [trace] Trigger <0300K_new_faction_leader> fired
    12:27:09.512 [game.script.trigger] [trace] Trigger <Usurper1> fired
    12:27:09.544 [game.script] [error] Trigger processing error in <Kingmaker1>
    : IsGeneral needs a living character.

    when testing <IsGeneral> condition
    12:27:09.544 [game.script] [error] Trigger processing error in <Kingmaker2>
    : IsGeneral needs a living character.

    when testing <IsGeneral> condition

    The EDA says:

    Spoiler Alert, click show to read: 
    ;------------------------------------------
    Trigger Kingmaker1
    WhenToTest BecomesFactionLeader
    Condition I_TurnNumber > 0
    and IsGeneral
    and not FactionwideAncillaryExists kingmaker2
    and not FatherTrait Factionleader >= 1
    AcquireAncillary kingmaker1 chance 25
    ;------------------------------------------
    Trigger Kingmaker2
    WhenToTest BecomesFactionLeader
    Condition I_TurnNumber > 0
    and IsGeneral
    and not FactionwideAncillaryExists kingmaker1
    and not FatherTrait Factionleader >= 1
    AcquireAncillary kingmaker2 chance 40

    The EDCT says:

    Spoiler Alert, click show to read: 
    ;------------------------------------------
    Trigger Usurper1 ;asserting new blue blood.
    WhenToTest BecomesFactionLeader

    Condition Trait Offensive_To_Nobles = 0
    and Trait SonofKingPrince <= 0
    ; and FactionIsLocal ;NEVER ADD THIS IN IT CAUSES A CRASH

    Affects Offensive_To_Nobles 1 Chance 3


    IsGeneral did not work. What else could we try?

  13. #13

    Icon1 Re: Kingmaker triggers aren't working

    Irishron: Try this:
    Code:
    ;------------------------------------------
    Trigger Kingmaker1
        WhenToTest BecomesFactionLeader
        Condition FactionType moors
    	  and IsGeneral
    	  and I_TurnNumber > 0
    	  and not FactionwideAncillaryExists kingmaker2
    	  and not FatherTrait Factionleader >= 1
    
    AcquireAncillary kingmaker1 chance 25

  14. #14
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: Kingmaker triggers aren't working

    The only problem is I would have to do it 27 times, one for each faction. Personally, I have had it to me taking Georgia, Armania, and now Venice.

    I added IsGeneral to usurper1 and see if I can force it to pick a general for a usurper and hopefully kingamker will take him. Maybe a shot in the dark but I at least won't know without testing.

    I do like your idea. If this does not work, I will defintely test it.

  15. #15
    Gorrrrrn's Avatar Citizen
    Join Date
    Jan 2007
    Location
    here
    Posts
    5,546

    Default Re: Kingmaker triggers aren't working

    IIRC we disabled kingmaker in stainless steel as it didn't work reliably.

  16. #16

    Default Re: Kingmaker triggers aren't working

    Sir Ron u are using a condition in the EDA "and not FactionwideAncillaryExists kingmaker2" But in that trigger you are not mentioning the faction type it is imperative to assign a particular faction when using that condition.

  17. #17
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: Kingmaker triggers aren't working

    @Rozanov, I may end up doing the same out of nothing more than frustration.

    @Ishan, Is this what TNZ is trying to tell me in his last post?

  18. #18

    Default Re: Kingmaker triggers aren't working

    Quote Originally Posted by irishron View Post
    @Ishan, Is this what TNZ is trying to tell me in his last post?
    Maybe yeah and i use this condition in EDA file in my mod at 4-5 places and we need it, that is the faction type otherwise there is no way to tell the game or to make the trigger work.

  19. #19
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: Kingmaker triggers aren't working

    If that is the case, for one I owe TNZ an apology for not understanding, and two the EDA just grew a lot. 27 kingmaker1 and 27 kingmaker2.

  20. #20
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Kingmaker triggers aren't working

    You could use CharacterIsLocal and restrict the anc to the player faction, I suppose.

Page 1 of 2 12 LastLast

Posting Permissions

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