• 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.

junassa

General
55 Badges
May 10, 2017
2.187
1.543
  • Stellaris: Apocalypse
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Ancient Relics
  • Imperator: Rome - Magna Graecia
  • Crusader Kings III
  • Battle for Bosporus
  • Europa Universalis 4: Emperor
  • Europa Universalis IV
  • 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: Conquest of Paradise
  • Europa Universalis IV: El Dorado
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria 2
  • Stellaris
  • Victoria: Revolutions
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Wealth of Nations
So I made a mod awhile back that basically did two things: (1) made special pagan ancestor bloodlines (e.g. Legendary Do Hunter) more likely to get than the generic bloodline, and (2) changed the more_raiders_bloodline flag so someone could earn both the sea king bloodline and the ancestor bloodline.

https://steamcommunity.com/sharedfiles/filedetails/?id=1803562446

I had to make changes to my mod because it wasn't compatible with the Inherit Bloodlines Mod so I changed the inheritance for sea king to all_descendants.

This worked fine after the changes and I didn't run into any issues. Now I added two more mods that afaik shouldn't affect it: my own mod that only adds a couple of retinues, and Patrum Scuta.

Now I have two bugs, which are probably related: (1) having Ragnarr's bloodline AND not having SB + D doesn't stop me from getting the sea king bloodline and (2) after getting the sea king bloodline the first time I was able to get it again on the same character (I'm assuming right after I sieged the 201st holding). Here are the changes I made to the events/religious_events file:
Code:
#On_looted_settlement: Bloodline gained at 200 viking_raids variable.

narrative_event = {
    id = HF.23212
    title = EVTTITLE23212
    desc = {
        trigger = {
            is_female = no
            is_alternate_start = no
            OR = {
                religion = norse_pagan
                religion = norse_pagan_reformed
            }
        }
        text = EVTDESCAHF23212
    }
    desc = {
        trigger = {
            is_female = yes
            is_alternate_start = no
            OR = {
                religion = norse_pagan
                religion = norse_pagan_reformed
            }
        }
        text = EVTDESCBHF23212
    }
    desc = {
        trigger = {
            OR = {
                is_alternate_start = yes
                NOR = {
                    religion = norse_pagan
                    religion = norse_pagan_reformed
                }
            }
        }
        text = EVTDESCCHF23212
    }
    picture = {
        trigger = { is_female = no }
        picture = GFX_evt_vikings_arriving_oldgods
    }
    picture = {
        trigger = { is_female = yes }
        picture = GFX_evt_norse_tempest
    }
    border = GFX_event_narrative_frame_war
    sound = bloodline_added
   
    is_triggered_only = yes

    has_dlc = "Holy Fury"

    trigger = {
        check_variable = { which = viking_raids value = 200 }
        OR = {
            trait = seaking
            trait = sea_queen
        }
        NOR = {
            any_owned_bloodline = { # Not already has a Viking bloodline.
                has_bloodline_flag = bloodline_historical_norse
            }
            any_owned_bloodline = {has_bloodline_flag = more_raiders1_bloodline}
           
    }
    }

    option = {
        name = EVTOPTAHF23212
        add_blood_splatter_effect = yes #Dramatic effect.
        hidden_tooltip = {
            if = {
                limit = { this_has_super_cool_nickname_trigger = no }
                random_list = {
                    20 = {
                        trigger = { age = 50 }
                        give_nickname = nick_the_white_raven
                    }
                    20 = {
                        trigger = { is_female = no }
                        give_nickname = nick_the_salt_snake
                    }
                    20 = {
                        trigger = { is_female = yes }
                        give_nickname = nick_the_salt_viper
                    }
                    20 = {
                        trigger = { is_female = yes is_attractive_trigger = yes }
                        give_nickname = nick_the_siren
                    }
                    20 = {
                        trigger = { is_female = no }
                        give_nickname = nick_the_wyrm
                    }
                    20 = {
                        trigger = { is_female = yes is_unattractive_trigger = yes }
                        give_nickname = nick_the_fury
                    }
                    20 = {
                        trigger = { is_female = no }
                        give_nickname = nick_the_sea_devil
                    }
                    10 = {
                        give_nickname = nick_the_stormforged
                    }
                    10 = {
                        give_nickname = nick_the_tempest_of_capital
                    }
                }
            }
        }
        if = {
            limit = { is_female = no }
            create_bloodline = {
                type = seaking_bloodline
            }
           
           
            set_bloodline_founder_religion_flag_effect = yes
            if = {
                limit = { OR = { religion = norse_pagan religion  = norse_pagan_reformed } }
                new_bloodline = {
                    set_description = "bloodline_desc_seaking_bloodline_viking"
                    random_list = {
                        20 = { set_name = bloodline_seaking_viking_random_a } #Randomize names to avoid too much repetition.
                        20 = { set_name = bloodline_seaking_viking_random_b }
                        20 = { set_name = bloodline_seaking_viking_random_c }
                        20 = { set_name = bloodline_seaking_viking_random_d }
                    }
                }      
            }
            if = {
                limit = { NOR = { religion = norse_pagan religion  = norse_pagan_reformed } }
                new_bloodline = {
                    set_description = "bloodline_desc_seaking_bloodline_pirate"
                    random_list = {
                        20 = { set_name = bloodline_seaking_pirate_random_a } #Randomize names to avoid too much repetition.
                        20 = { set_name = bloodline_seaking_pirate_random_b }
                        20 = { set_name = bloodline_seaking_pirate_random_c }
                        20 = { set_name = bloodline_seaking_pirate_random_d }
                    }
                }      
            }  
        }
        if = {
            limit = { is_female = yes }
            create_bloodline = {
                type = seaqueen_bloodline
            }
           
            set_bloodline_founder_religion_flag_effect = yes
            if = {
                limit = { OR = { religion = norse_pagan religion  = norse_pagan_reformed } }
                new_bloodline = {
                    set_description = "bloodline_desc_seaking_bloodline_viking"
                    random_list = {
                        20 = { set_name = bloodline_seaqueen_viking_random_a } #Randomize names to avoid too much repetition.
                        20 = { set_name = bloodline_seaqueen_viking_random_b }
                        20 = { set_name = bloodline_seaqueen_viking_random_c }
                        20 = { set_name = bloodline_seaqueen_viking_random_d }
                    }
                }      
            }
            if = {
                limit = { NOR = { religion = norse_pagan religion  = norse_pagan_reformed } }
                new_bloodline = {
                    set_description = "bloodline_desc_seaking_bloodline_pirate"
                    random_list = {
                        20 = { set_name = bloodline_seaqueen_pirate_random_a } #Randomize names to avoid too much repetition.
                        20 = { set_name = bloodline_seaqueen_pirate_random_b }
                        20 = { set_name = bloodline_seaqueen_pirate_random_c }
                        20 = { set_name = bloodline_seaqueen_pirate_random_d }
                    }
                }      
            }      
        }
        hidden_tooltip = {
            if = {
                limit = {
                    NOR = {
                        trait = african_tattoo_1
                        trait = african_tattoo_2
                        trait = african_tattoo_3
                        trait = african_tattoo_4
                        trait = african_tattoo_5
                        trait = african_tattoo_6
                        trait = african_tattoo_7
                        trait = african_tattoo_8
                        trait = slavic_tattoo_1
                        trait = slavic_tattoo_2
                        trait = slavic_tattoo_3
                        trait = slavic_tattoo_4
                        trait = slavic_tattoo_5
                        trait = slavic_tattoo_6
                        trait = norse_tattoo_1
                        trait = norse_tattoo_2
                        trait = norse_tattoo_3
                        trait = norse_tattoo_4
                        trait = norse_tattoo_5
                        trait = norse_tattoo_6
                    }
                }
                add_trait = norse_tattoo_4      
            }
            any_player = {
                limit = { NOT = { character = ROOT } is_within_diplo_range = ROOT }
                narrative_event = { id = HF.23213 }
            }
        }
    }
}
Here are the changes I made to common/bloodlines/02_earned_bloodlines
Code:
seaking_bloodline = { #Spawned tribal raider troops are more numerous.
    combat_rating = 3
    seaking_opinion = 5
    sea_queen_opinion = 5
    same_religion_opinion = 10
    inheritance = all_descendants
    allow_bastards = yes
    bloodline_effect_more_raiders = 1
    picture = GFX_bloodlines_symbol_midgard
    active = {
        religion_same_as_bloodline_founder_trigger = yes
#        custom_tooltip = {
#            text = saintly_bloodline_same_religion_TT
#            FROM = {
#                founder = {
#                    religion = ROOT
#                }
#            }
#        }
    }
    flags = { more_raiders1_bloodline created_bloodline }
}

seaqueen_bloodline = {
    combat_rating = 3
    seaking_opinion = 5
    sea_queen_opinion = 5
    same_religion_opinion = 10
    inheritance = all_descendants
    allow_bastards = yes
    bloodline_effect_more_raiders = 1
    picture = GFX_bloodlines_symbol_midgard
    active = {
        religion_same_as_bloodline_founder_trigger = yes
#        custom_tooltip = {
#            text = saintly_bloodline_same_religion_TT
#            FROM = {
#                founder = {
#                    religion = ROOT
#                }
#            }
#        }
    }
    flags = { more_raiders1_bloodline created_bloodline }
}
Here's the section in my saved game I found re: bloodlines
Code:
31=
        {
            type="seaking_bloodline"
            name="Saltblood of Tandja"
            desc="Entire cities have been decimated by the raids of Emperor Tandja. His actions ensured him the legacy of one of the most fearsome and ruthless Pirates of Kanem-Bornu."
            owner=2715326
            flags=
            {
                more_raiders1_bloodline=927.1.29
                created_bloodline=927.1.29
                requires_west_african_pagan_religion=927.1.29
            }
            created="927.1.29"
            member=2715326
            member=2731603
            member=2749573
            member=2750997
            member=2731983
            member=2751706
            member=2755426
            member=2735838
            member=2742149
            member=2744224
            member=2745211
            member=2751878
            inheritance="all_descendants"
            allow_bastards=yes
        }
        32=
        {
            type="seaking_bloodline"
            name="Stormforged"
            desc="Entire cities have been decimated by the raids of Emperor Tandja. His actions ensured him the legacy of one of the most fearsome and ruthless Pirates of Kanem-Bornu."
            owner=2715326
            flags=
            {
                more_raiders1_bloodline=927.1.31
                created_bloodline=927.1.31
                requires_west_african_pagan_religion=927.1.31
            }
            created="927.1.31"
            member=2715326
            member=2731603
            member=2749573
            member=2750997
            member=2731983
            member=2751706
            member=2755426
            member=2735838
            member=2742149
            member=2744224
            member=2745211
            member=2751878
            inheritance="all_descendants"
            allow_bastards=yes
        }
    }

Now to me it looks like there's nothing interfering with my change to earned_bloodlines file because otherwise the "more_raiders1_bloodline" flag shouldn't appear. So the only problem should be with the religious_events file that somehow the original "more_raiders_bloodline" flag is present, but that wouldn't explain why I was able to get the bloodline anyway, unless someone removed the historical flag as well.

I running a ton of smallish mods (probably around 20, including my unpublished mods, but those only affect one thing like the max number of commanders,trade posts, etc.) otherwise I'd post them here. I just wanted to know if there's anything I'm missing in terms of my logic here.

edit: I know of only 3 mods I'm running that changes the religious_events file but none of them change the historical flag: Inherit Bloodlines, Pagan Ancestor and Reformation Reform. Now if I understand correctly that's the order in which the files are checked so I don't have to worry about any changes in IB but I do have to look at RR. I added the new flag to RR so I'm going to load the game and see if I still get another bloodline.
 
Last edited:
I unchecked Reformation Reform and launched the game. I still got another sea king bloodline.
Leaving RR unchecked I unchecked my Pagan Ancestor mod, and I still got another sea king bloodline.

Shouldn't disabling these mods remove the bugs, assuming it was coming from these mods?
 
So I finally tracked down the mod that was causing the problem: Enhanced Raiding. Somehow I missed the changes using "find in files" in Notepad++ the first time so it took me awhile to figure it out.

Code:
namespace = PI.ER

character_event = {
    id = PI.ER.0001

    hide_window = yes
    is_triggered_only = yes

    immediate = {
        ROOT = {
            character_event = { id = TGF.3320 days = 1}
        }
    }
}


# Viking score for commanders
character_event = {
    id = PI.ER.0002

    hide_window = yes
    is_triggered_only = yes

    immediate = {
        FROM = {
            location = {
                ROOT = {
                    any_army = {
                        limit = {
                            location = {
                                province = FROM
                            }
                        }
                        any_unit_leader = {
                            limit = {
                                NOT = {
                                    character = ROOT
                                }
                            }
                            character_event = { id = TGF.3323 }
                            character_event = { id = TGF.3320 }
                            character_event = { id = TGF.3321 }
                            character_event = { id = TGF.3322 }
                            narrative_event = { id = HF.23212 }
                            narrative_event = { id = PI.ER.0003 }
                        }
                    }
                }
            }
        }
    }
}


# Clone of HF.23212 for charcters who already have a viking bloodline
narrative_event = {
    id = PI.ER.0003
    title = EVTTITLE23212
    desc = {
        trigger = {
            is_female = no
            is_alternate_start = no
            OR = {
                religion = norse_pagan
                religion = norse_pagan_reformed
            }
        }
        text = EVTDESCAHF23212
    }
    desc = {
        trigger = {
            is_female = yes
            is_alternate_start = no
            OR = {
                religion = norse_pagan
                religion = norse_pagan_reformed
            }
        }
        text = EVTDESCBHF23212
    }
    desc = {
        trigger = {
            OR = {
                is_alternate_start = yes
                NOR = {
                    religion = norse_pagan
                    religion = norse_pagan_reformed
                }
            }
        }
        text = EVTDESCCHF23212
    }
    picture = {
        trigger = { is_female = no }
        picture = GFX_evt_vikings_arriving_oldgods
    }
    picture = {
        trigger = { is_female = yes }
        picture = GFX_evt_norse_tempest
    }
    border = GFX_event_narrative_frame_war
    sound = bloodline_added
    
    is_triggered_only = yes

    has_dlc = "Holy Fury"

    trigger = {
        check_variable = { which = viking_raids value = 200 }
        OR = {
            trait = seaking
            trait = sea_queen
        }
        any_owned_bloodline = { # Already has a Viking bloodline.
             has_bloodline_flag = bloodline_historical_norse
        }
        NOT = {
            any_owned_bloodline = { # Not already has this bloodline.
                has_bloodline_flag = more_raiders_bloodline
            }
        }
    }

    option = {
        name = EVTOPTAHF23212
        add_blood_splatter_effect = yes #Dramatic effect.
        hidden_tooltip = {
            if = {
                limit = { this_has_super_cool_nickname_trigger = no }
                random_list = {
                    20 = {
                        trigger = { age = 50 }
                        give_nickname = nick_the_white_raven
                    }
                    20 = {
                        trigger = { is_female = no }
                        give_nickname = nick_the_salt_snake
                    }
                    20 = {
                        trigger = { is_female = yes }
                        give_nickname = nick_the_salt_viper
                    }
                    20 = {
                        trigger = { is_female = yes is_attractive_trigger = yes }
                        give_nickname = nick_the_siren
                    }
                    20 = {
                        trigger = { is_female = no }
                        give_nickname = nick_the_wyrm
                    }
                    20 = {
                        trigger = { is_female = yes is_unattractive_trigger = yes }
                        give_nickname = nick_the_fury
                    }
                    20 = {
                        trigger = { is_female = no }
                        give_nickname = nick_the_sea_devil
                    }
                    10 = {
                        give_nickname = nick_the_stormforged
                    }
                    10 = {
                        give_nickname = nick_the_tempest_of_capital
                    }
                }
            }
        }
        if = {
            limit = { is_female = no }
            create_bloodline = {
                type = seaking_bloodline
            }
            set_bloodline_founder_religion_flag_effect = yes
            if = {
                limit = { OR = { religion = norse_pagan religion  = norse_pagan_reformed } }
                new_bloodline = {
                    set_description = "bloodline_desc_seaking_bloodline_viking"
                    random_list = {
                        20 = { set_name = bloodline_seaking_viking_random_a } #Randomize names to avoid too much repetition.
                        20 = { set_name = bloodline_seaking_viking_random_b }
                        20 = { set_name = bloodline_seaking_viking_random_c }
                        20 = { set_name = bloodline_seaking_viking_random_d }
                    }
                }       
            }
            if = {
                limit = { NOR = { religion = norse_pagan religion  = norse_pagan_reformed } }
                new_bloodline = {
                    set_description = "bloodline_desc_seaking_bloodline_pirate"
                    random_list = {
                        20 = { set_name = bloodline_seaking_pirate_random_a } #Randomize names to avoid too much repetition.
                        20 = { set_name = bloodline_seaking_pirate_random_b }
                        20 = { set_name = bloodline_seaking_pirate_random_c }
                        20 = { set_name = bloodline_seaking_pirate_random_d }
                    }
                }       
            }   
        }
        if = {
            limit = { is_female = yes }
            create_bloodline = {
                type = seaqueen_bloodline
            }
            set_bloodline_founder_religion_flag_effect = yes
            if = {
                limit = { OR = { religion = norse_pagan religion  = norse_pagan_reformed } }
                new_bloodline = {
                    set_description = "bloodline_desc_seaking_bloodline_viking"
                    random_list = {
                        20 = { set_name = bloodline_seaqueen_viking_random_a } #Randomize names to avoid too much repetition.
                        20 = { set_name = bloodline_seaqueen_viking_random_b }
                        20 = { set_name = bloodline_seaqueen_viking_random_c }
                        20 = { set_name = bloodline_seaqueen_viking_random_d }
                    }
                }       
            }
            if = {
                limit = { NOR = { religion = norse_pagan religion  = norse_pagan_reformed } }
                new_bloodline = {
                    set_description = "bloodline_desc_seaking_bloodline_pirate"
                    random_list = {
                        20 = { set_name = bloodline_seaqueen_pirate_random_a } #Randomize names to avoid too much repetition.
                        20 = { set_name = bloodline_seaqueen_pirate_random_b }
                        20 = { set_name = bloodline_seaqueen_pirate_random_c }
                        20 = { set_name = bloodline_seaqueen_pirate_random_d }
                    }
                }       
            }       
        }
        hidden_tooltip = {
            if = {
                limit = {
                    NOR = {
                        trait = african_tattoo_1
                        trait = african_tattoo_2
                        trait = african_tattoo_3
                        trait = african_tattoo_4
                        trait = african_tattoo_5
                        trait = african_tattoo_6
                        trait = african_tattoo_7
                        trait = african_tattoo_8
                        trait = slavic_tattoo_1
                        trait = slavic_tattoo_2
                        trait = slavic_tattoo_3
                        trait = slavic_tattoo_4
                        trait = slavic_tattoo_5
                        trait = slavic_tattoo_6
                        trait = norse_tattoo_1
                        trait = norse_tattoo_2
                        trait = norse_tattoo_3
                        trait = norse_tattoo_4
                        trait = norse_tattoo_5
                        trait = norse_tattoo_6
                    }
                }
                add_trait = norse_tattoo_4       
            }
            any_player = {
                limit = { NOT = { character = ROOT } is_within_diplo_range = ROOT }
                narrative_event = { id = HF.23213 }
            }
        }
    }
}

I think I should be able to just remove the id = PI.ER.0003 , change the flag to more_raiders1_bloodline in the one for AI commanders and I should be fine.