Page 2 of 2 FirstFirst 12
Results 21 to 29 of 29

Thread: Selecting the heir

  1. #21

    Default Re: Selecting the heir

    Is there a way to make this available in the high age scenario?

    If I understand it correctly the High age scenario is just the early scenario moved up to the 1230's so should it be as simple as just copying the campaign script to the high age custom file? I hesitate to do so to avoid screwing something up.


    ***edit***
    Never mind..went ahead and pasted the campaign file into the custom High end campaign and its working fine so far.

    This script is a hidden gem and would probably get more notice if you could sticky it at the top. Solves a lot of problems, especially with factions like Aragon that start with old kings and heirs.
    Last edited by jtareb; April 04, 2018 at 01:24 PM.

  2. #22
    Frunk's Avatar Form Follows Function
    took an arrow to the knee

    Join Date
    Jun 2009
    Location
    Gold Coast
    Posts
    6,503

    Default Re: Selecting the heir

    Hey guys, I'm having some difficulty getting this to work in my own High Era Campaign (works fine in the Early one). Is it as simple as copying and pasting the following into the High_Era_Campaign campaign_script.txt in the same location as the imperial_campaign, or have I overlooked something?

    Spoiler Alert, click show to read: 
    Code:
        ; === Choose the heir by Miguel_80 ===
    
        declare_counter candidate
        declare_counter checking
        declare_counter decline_sh
    
    
        ; --- allow selection of successor in first round
    
    
        monitor_event FactionTurnStart FactionIsLocal
            historic_event SELECT_CANDIDATE true
            terminate_monitor
        end_monitor
    
    
        ; --- current heir dies or becomes faction leader
        monitor_event CeasedFactionHeir CharacterIsLocal
            and I_CompareCounter candidate = 0
            if I_CompareCounter decline_sh > 1
                terminate_monitor
            end_if
            wait 1.0
            historic_event SELECT_CANDIDATE true
        end_monitor
    
    
        ; --- resetting the counter for 'Is there a successor?'
        monitor_event FactionTurnEnd FactionType slave
            if I_CompareCounter decline_sh > 1
                terminate_monitor
            end_if
            set_counter checking 1
        end_monitor
    
    
        ; --- Is there a successor?
        monitor_event CharacterTurnEnd CharacterIsLocal
            and I_TurnNumber > 0
            and Trait HeirCandidate > 0
            if I_CompareCounter decline_sh > 1
                terminate_monitor
            end_if
            set_counter checking 2
        end_monitor
    
    
        ; --- no successor, start selection process
    
    
        monitor_event FactionTurnEnd FactionIsLocal
            if I_CompareCounter decline_sh > 1
                terminate_monitor
            end_if
            if I_CompareCounter checking = 1
                and I_CompareCounter candidate = 0
                wait 1.0
                historic_event SELECT_CANDIDATE true
            end_if
        end_monitor
    
    
        ; --- selection option accepted
        monitor_event EventCounter EventCounterType SELECT_CANDIDATE_accepted
            and I_EventCounter SELECT_CANDIDATE_accepted = 1
            select_ui_element faction_button
            simulate_mouse_click lclick_down
            simulate_mouse_click lclick_up
            select_ui_element family_tree_button
            simulate_mouse_click lclick_down
            simulate_mouse_click lclick_up
            select_ui_element faction_button
            simulate_mouse_click lclick_down
            simulate_mouse_click lclick_up
            ui_flash_start family_tree_zoom_to_button
            set_event_counter SELECT_CANDIDATE_accepted 0
            set_event_counter SELECT_CANDIDATE 0
            set_counter candidate 1
        end_monitor
    
    
        ; --- selecting the character
        monitor_event CharacterSelected CharacterIsLocal
            and I_CompareCounter candidate = 1
            and I_ScrollOpen family_tree_scroll
            and IsGeneral
            and not IsFactionLeader
            and not IsFactionHeir
            ui_flash_stop
            console_command give_trait this HeirCandidate 1
            set_counter candidate 0
            historic_event SELECTED
           ; play_sound_event Successor_1
        end_monitor
    
    
        ; --- selection option declined
        monitor_event EventCounter EventCounterType SELECT_CANDIDATE_declined
            and I_EventCounter SELECT_CANDIDATE_declined = 1
            inc_counter decline_sh 1
            if I_CompareCounter decline_sh < 2
                set_event_counter SELECT_CANDIDATE 0
                set_event_counter SELECT_CANDIDATE_declined 0
                historic_event SELECT_DECLINED
            end_if
            if I_CompareCounter decline_sh > 1
                set_event_counter SELECT_CANDIDATE 0
                set_event_counter SELECT_CANDIDATE_declined 0
                terminate_monitor
            end_if
        end_monitor


    Either way, I do suggest adding that file to the download if possible.

  3. #23

    Default Re: Selecting the heir

    I'm in my first campaign and my previously son-less King has just given birth to a son, but his nephew remains the Faction Heir. I note this script is only compatible with a fresh campaign, but Lift has mentioned it would be included in the 'next' version of SSHIP.

    Lift, since making that post in January, is it in the version I've downloaded (0.9.2) or do I need to manually download this now in case I start a new campaign between now and the new version of SSHIP coming out? And would installing these files now whilst continuing to play my current campaign affect my current campaign in any way?

  4. #24
    Jurand of Cracow's Avatar History and gameplay!
    Join Date
    Oct 2012
    Location
    Cracovia
    Posts
    8,488

    Default Re: Selecting the heir

    I guess the new version will not come out before you finish your campaign.
    The Next Heir parts are already included in the EDCT and EV I've published on the webpage, but the other files are not yet updated.

    However, if you (or anybody in the next release) will use the Next Heir option, the whole system of usurper and civil wars won't work at all (the NH works through a big additional Authority buff so no usurper would get on the throne.

  5. #25

    Default Re: Selecting the heir

    So is this not functional for the 0.9.6 version?

  6. #26
    Jurand of Cracow's Avatar History and gameplay!
    Join Date
    Oct 2012
    Location
    Cracovia
    Posts
    8,488

    Default Re: Selecting the heir

    no, it's not.

  7. #27
    Nemesis2345's Avatar Semisalis
    Join Date
    May 2013
    Location
    Constanta, Romania
    Posts
    462

    Default Re: Selecting the heir

    Quote Originally Posted by Frunk View Post
    Hey guys, I'm having some difficulty getting this to work in my own High Era Campaign (works fine in the Early one). Is it as simple as copying and pasting the following into the High_Era_Campaign campaign_script.txt in the same location as the imperial_campaign, or have I overlooked something?

    Spoiler Alert, click show to read: 
    Code:
        ; === Choose the heir by Miguel_80 ===
    
        declare_counter candidate
        declare_counter checking
        declare_counter decline_sh
    
    
        ; --- allow selection of successor in first round
    
    
        monitor_event FactionTurnStart FactionIsLocal
            historic_event SELECT_CANDIDATE true
            terminate_monitor
        end_monitor
    
    
        ; --- current heir dies or becomes faction leader
        monitor_event CeasedFactionHeir CharacterIsLocal
            and I_CompareCounter candidate = 0
            if I_CompareCounter decline_sh > 1
                terminate_monitor
            end_if
            wait 1.0
            historic_event SELECT_CANDIDATE true
        end_monitor
    
    
        ; --- resetting the counter for 'Is there a successor?'
        monitor_event FactionTurnEnd FactionType slave
            if I_CompareCounter decline_sh > 1
                terminate_monitor
            end_if
            set_counter checking 1
        end_monitor
    
    
        ; --- Is there a successor?
        monitor_event CharacterTurnEnd CharacterIsLocal
            and I_TurnNumber > 0
            and Trait HeirCandidate > 0
            if I_CompareCounter decline_sh > 1
                terminate_monitor
            end_if
            set_counter checking 2
        end_monitor
    
    
        ; --- no successor, start selection process
    
    
        monitor_event FactionTurnEnd FactionIsLocal
            if I_CompareCounter decline_sh > 1
                terminate_monitor
            end_if
            if I_CompareCounter checking = 1
                and I_CompareCounter candidate = 0
                wait 1.0
                historic_event SELECT_CANDIDATE true
            end_if
        end_monitor
    
    
        ; --- selection option accepted
        monitor_event EventCounter EventCounterType SELECT_CANDIDATE_accepted
            and I_EventCounter SELECT_CANDIDATE_accepted = 1
            select_ui_element faction_button
            simulate_mouse_click lclick_down
            simulate_mouse_click lclick_up
            select_ui_element family_tree_button
            simulate_mouse_click lclick_down
            simulate_mouse_click lclick_up
            select_ui_element faction_button
            simulate_mouse_click lclick_down
            simulate_mouse_click lclick_up
            ui_flash_start family_tree_zoom_to_button
            set_event_counter SELECT_CANDIDATE_accepted 0
            set_event_counter SELECT_CANDIDATE 0
            set_counter candidate 1
        end_monitor
    
    
        ; --- selecting the character
        monitor_event CharacterSelected CharacterIsLocal
            and I_CompareCounter candidate = 1
            and I_ScrollOpen family_tree_scroll
            and IsGeneral
            and not IsFactionLeader
            and not IsFactionHeir
            ui_flash_stop
            console_command give_trait this HeirCandidate 1
            set_counter candidate 0
            historic_event SELECTED
           ; play_sound_event Successor_1
        end_monitor
    
    
        ; --- selection option declined
        monitor_event EventCounter EventCounterType SELECT_CANDIDATE_declined
            and I_EventCounter SELECT_CANDIDATE_declined = 1
            inc_counter decline_sh 1
            if I_CompareCounter decline_sh < 2
                set_event_counter SELECT_CANDIDATE 0
                set_event_counter SELECT_CANDIDATE_declined 0
                historic_event SELECT_DECLINED
            end_if
            if I_CompareCounter decline_sh > 1
                set_event_counter SELECT_CANDIDATE 0
                set_event_counter SELECT_CANDIDATE_declined 0
                terminate_monitor
            end_if
        end_monitor


    Either way, I do suggest adding that file to the download if possible.
    High Era campaign has not been supported for years now and the Script will never work as intended. Early Campaign is the only playable one regarding events / scripts/ true SSHIP experience.

    My bad, only now i realised that reply was from 2018 lol.
    Last edited by Nemesis2345; April 26, 2020 at 07:28 AM.

  8. #28

    Default Re: Selecting the heir

    I sincerely hope this works with regular Stainless Steel. Wish me luck!

    EDIT: No. No, it does not.
    Last edited by reaper101; May 05, 2021 at 10:32 PM.
    Alii inferre bellum, facientibus pacem.


  9. #29
    Jurand of Cracow's Avatar History and gameplay!
    Join Date
    Oct 2012
    Location
    Cracovia
    Posts
    8,488

    Default Re: Selecting the heir

    This mod is included in the SSHIP v. 098, and it actually works. So let's close this thread.

Page 2 of 2 FirstFirst 12

Posting Permissions

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