• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

0yvind

First Lieutenant
30 Badges
Mar 18, 2017
259
371
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Mare Nostrum
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Imperator: Rome
  • Crusader Kings II: Holy Fury
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Crusader Kings III
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
I am trying to create an event where Blæja (daughter of Ælla) is married off to (or made a consort of) one of Ragnarr's sons if and after Ælla is killed by them. Historically, she was married (or a concubine) to Sigurd Snake-in-the-eye, but I want to leave it open who she marries when playing from the 867 start.

So the goal is to make the event fire after Ælla is dead, and the trigger needs to be that she is unmarried or that she is a courtier/prisoner of one of them. Any already married sibling among the Ragnarr sons should instead of as a wife take her as a concubine.

Will this work?

Code:
# Marriage to Blaeja
narrative_event = {
    id = BLS.10
    title = EVTTITLE_BLS_10
    desc = EVTDESC_BLS_10
    picture = GFX_evt_marriage

    capable_only = yes
    prisoner = no
    has_dlc = "The Old Gods"

    is_triggered_only = yes

    trigger = {
        any_sibling = {
            is_married = no
        }
        character = 6861 # Blaeja
        NOT = { is_married = yes }
        father = {
            is_alive = no
            has_character_flag = aella_punished
        }
        OR = {
            host = {
                OR = {
                    character = 163108 # Björn Ironside
                    character = 163110 # Sigurd
                    character = 163111 # Ivar
                    character = 163112 # Halfdan
                    character = 163119 # Ubbe
                }
            }
        }
    }
    option = {
        name = EVTOPTA_BLS_10 # Marry her to Sigurd
        c_163110 = {
            limit = {
                is_married = no
                is_alive = yes
            }
            add_spouse = 6861
            prestige = 50
            if = {
                limit = {
                    is_married = yes
                }
                add_consort = 6861
            }
        }
    }
    option = {
        name = EVTOPTB_BLS_10 # Marry her to Ivar
        c_163111 = {
            limit = {
                is_married = no
                is_alive = yes
            }
            add_spouse = 6861
            prestige = 50
            if = {
                limit = {
                    is_married = yes
                }
                add_consort = 6861
            }
        }
    }
    option = {
        name = EVTOPTC_BLS_10 # Marry her to Halfdan
        c_163112 = {
            limit = {
                is_married = no
                is_alive = yes
            }
            add_spouse = 6861
            prestige = 50
            if = {
                limit = {
                    is_married = yes
                }
                add_consort = 6861
            }
        }
    }
    option = {
        name = EVTOPTD_BLS_10 # Marry her to Ubbe
        c_163119 = {
            limit = {
                is_married = no
                is_alive = yes
            }
            add_spouse = 6861
            prestige = 50
            if = {
                limit = {
                    is_married = yes
                }
                add_consort = 6861
            }
        }
    }
    option = {
        name = EVTOPTE_BLS_10 # Let her go
        prestige = -50
        piety = 50
    }
}

I've based this off of the files "misc_old_gods_events" and "cm_charlemagne_story_events". I am not sure if I've quite understood the use of limits. I am also wondering if this event simultaneously will fire for all four of the playable characters, possibly resulting in conflicting choices.