• 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
I've made a few mods that do different things. One makes sainthood/veneration easier, another makes the pagan bloodlines that were never called in vanilla available a third that changed the weights on the bloodlines and added more bloodlines. Separately I think they worked fine but together it's been a buggy mess. I fix one bug and somehow create another one. I've spent an embarrassing amount of hours trying to fix this but I'm stumped.

I have two major bugs with my merged mod:
1. Nearly every time someone is venerated, they get two bloodlines. From my perspective as temporal leader the event is called twice. This bug used to be very rare but now it's happening almost all the time and I have no clue why.

2. There's at least one bloodline that doesn't actually get "forged". I get all the dialogue boxes but no bloodline shows up. I'm almost certain it's either the duelist or the raider bloodline (or both) as I never get either one even though I'm sure I have them both weighted very heavily and I consoled myself the relevant traits. In fact I give myself both duelist and pirate and I don't get either one.

Here are the files I think are relevant. let me know if you need more information.

common/bloodlines/01_saintly_bloodlines
Code:
# Catholic

saintly_bloodline_catholic_01 = {
    monthly_character_piety = 0.3
    command_modifier = {
        religious_enemy = 0.3
    }   
    saintly_defender_bloodline = 1
    inheritance = patrilineal
    allow_bastards = no
    flags = { saintly_bloodline defender_of_the_faith }
    picture = GFX_bloodlines_symbol_cross_1
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_catholic_02 = {
    monthly_character_piety = 0.1
    christian_church_opinion = 5
    saintly_monastic_bloodline = 1
    inheritance = patrilineal
    allow_bastards = no
    flags = { saintly_bloodline monastic_saintly_bloodline }
    picture = GFX_bloodlines_symbol_cross_1
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_catholic_03 = {
    monthly_character_piety = 0.3
    saintly_cultural_bloodline = 1
    inheritance = patrilineal
    allow_bastards = no
    flags = { saintly_bloodline cultural_saintly_bloodline }
    picture = GFX_bloodlines_symbol_cross_1
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_culture_TT
            FROM = {
                founder = {
                    culture = ROOT
                }
            }
        }
    }
}

saintly_bloodline_catholic_04 = {
    command_modifier = {
        religious_enemy = 0.1
    }   
    christian_church_opinion = 5
    saintly_inquisitional_bloodline = 1
    inheritance = patrilineal
    allow_bastards = no
    flags = { saintly_bloodline inquisitional_saintly_bloodline }
    picture = GFX_bloodlines_symbol_cross_1
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_catholic_05 = {
    monthly_character_piety = 0.2
    jewish_group_opinion = 15
    saintly_jewish_bloodline = 1
    inheritance = patrilineal
    allow_bastards = no
    flags = { saintly_bloodline jewish_saintly_bloodline }
    picture = GFX_bloodlines_symbol_cross_1
    active = {
        religion_group = christian
    }
}

saintly_bloodline_catholic_06 = {
    saintly_theologians_bloodline = 1
    monthly_character_piety = 0.2
    inheritance = patrilineal
    allow_bastards = no
    flags = { saintly_bloodline theologian_saintly_bloodline }
    picture = GFX_bloodlines_symbol_cross_1
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

##Impious Saint

saintly_bloodline_07 = {
    monthly_character_prestige = 1
    monthly_character_piety = -0.1
    christian_church_opinion = -5
    inheritance = patrilineal
    allow_bastards = no
    flags = { saintly_bloodline wicked_saint }
    picture = GFX_bloodlines_symbol_cross_wicked
    active = {
        religion_group = christian
    }
}

# Orthodox

saintly_bloodline_orthodox_01 = {
    monthly_character_piety = 0.3
    command_modifier = {
        religious_enemy = 0.3
    }   
    saintly_defender_bloodline = 1
    inheritance = patrilineal
    allow_bastards = no
    flags = { saintly_bloodline defender_of_the_faith }
    picture = GFX_bloodlines_symbol_cross_orthodox
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_orthodox_02 = {
    monthly_character_piety = 0.1
    christian_church_opinion = 5
    saintly_monastic_bloodline = 1
    inheritance = patrilineal
    allow_bastards = no
    flags = { saintly_bloodline monastic_saintly_bloodline }
    picture = GFX_bloodlines_symbol_cross_orthodox
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_orthodox_03 = {
    monthly_character_piety = 0.3
    saintly_cultural_bloodline = 1
    inheritance = patrilineal
    allow_bastards = no
    flags = { saintly_bloodline cultural_saintly_bloodline }
    picture = GFX_bloodlines_symbol_cross_orthodox
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_culture_TT
            FROM = {
                founder = {
                    culture = ROOT
                }
            }
        }
    }
}

saintly_bloodline_orthodox_04 = {
    command_modifier = {
        religious_enemy = 0.1
    }   
    christian_church_opinion = 5
    saintly_inquisitional_bloodline = 1
    inheritance = patrilineal
    allow_bastards = no
    flags = { saintly_bloodline inquisitional_saintly_bloodline }
    picture = GFX_bloodlines_symbol_cross_orthodox
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_orthodox_05 = {
    monthly_character_piety = 0.2
    jewish_group_opinion = 15
    saintly_jewish_bloodline = 1
    inheritance = patrilineal
    allow_bastards = no
    flags = { saintly_bloodline jewish_saintly_bloodline }
    picture = GFX_bloodlines_symbol_cross_orthodox
    active = {
        religion_group = christian
    }
}

saintly_bloodline_orthodox_06 = {
    saintly_theologians_bloodline = 1
    monthly_character_piety = 0.2
    inheritance = patrilineal
    allow_bastards = no
    flags = { saintly_bloodline theologian_saintly_bloodline }
    picture = GFX_bloodlines_symbol_cross_orthodox
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

# Coptic

saintly_bloodline_coptic_01 = {
    monthly_character_piety = 0.3
    command_modifier = {
        religious_enemy = 0.3
    }   
    saintly_defender_bloodline = 1
    inheritance = patrilineal
    allow_bastards = no
    flags = { saintly_bloodline defender_of_the_faith }
    picture = GFX_bloodlines_symbol_cross_miaphysite
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_coptic_02 = {
    monthly_character_piety = 0.1
    christian_church_opinion = 5
    saintly_monastic_bloodline = 1
    inheritance = patrilineal
    allow_bastards = no
    flags = { saintly_bloodline monastic_saintly_bloodline }
    picture = GFX_bloodlines_symbol_cross_miaphysite
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_coptic_03 = {
    monthly_character_piety = 0.3
    saintly_cultural_bloodline = 1
    inheritance = patrilineal
    allow_bastards = no
    flags = { saintly_bloodline cultural_saintly_bloodline }
    picture = GFX_bloodlines_symbol_cross_miaphysite
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_culture_TT
            FROM = {
                founder = {
                    culture = ROOT
                }
            }
        }
    }
}

saintly_bloodline_coptic_04 = {
    command_modifier = {
        religious_enemy = 0.1
    }   
    christian_church_opinion = 5
    saintly_inquisitional_bloodline = 1
    inheritance = patrilineal
    allow_bastards = no
    flags = { saintly_bloodline inquisitional_saintly_bloodline }
    picture = GFX_bloodlines_symbol_cross_miaphysite
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_coptic_05 = {
    monthly_character_piety = 0.2
    jewish_group_opinion = 15
    saintly_jewish_bloodline = 1
    inheritance = patrilineal
    allow_bastards = no
    flags = { saintly_bloodline jewish_saintly_bloodline }
    picture = GFX_bloodlines_symbol_cross_miaphysite
    active = {
        religion_group = christian
    }
}

saintly_bloodline_coptic_06 = {
    saintly_theologians_bloodline = 1
    monthly_character_piety = 0.2
    inheritance = patrilineal
    allow_bastards = no
    flags = { saintly_bloodline theologian_saintly_bloodline }
    picture = GFX_bloodlines_symbol_cross_miaphysite
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

# Nestorian

saintly_bloodline_nestorian_01 = {
    monthly_character_piety = 0.3
    command_modifier = {
        religious_enemy = 0.3
    }   
    saintly_defender_bloodline = 1
    inheritance = patrilineal
    allow_bastards = no
    flags = { saintly_bloodline defender_of_the_faith }
    picture = GFX_bloodlines_symbol_cross_nestorian
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_nestorian_02 = {
    monthly_character_piety = 0.1
    christian_church_opinion = 5
    saintly_monastic_bloodline = 1
    inheritance = patrilineal
    allow_bastards = no
    flags = { saintly_bloodline monastic_saintly_bloodline }
    picture = GFX_bloodlines_symbol_cross_nestorian
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_nestorian_03 = {
    monthly_character_piety = 0.3
    saintly_cultural_bloodline = 1
    inheritance = patrilineal
    allow_bastards = no
    flags = { saintly_bloodline cultural_saintly_bloodline }
    picture = GFX_bloodlines_symbol_cross_nestorian
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_culture_TT
            FROM = {
                founder = {
                    culture = ROOT
                }
            }
        }
    }
}

saintly_bloodline_nestorian_04 = {
    command_modifier = {
        religious_enemy = 0.1
    }   
    christian_church_opinion = 5
    saintly_inquisitional_bloodline = 1
    inheritance = patrilineal
    allow_bastards = no
    flags = { saintly_bloodline inquisitional_saintly_bloodline }
    picture = GFX_bloodlines_symbol_cross_nestorian
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_nestorian_05 = {
    monthly_character_piety = 0.2
    jewish_group_opinion = 15
    saintly_jewish_bloodline = 1
    inheritance = patrilineal
    allow_bastards = no
    flags = { saintly_bloodline jewish_saintly_bloodline }
    picture = GFX_bloodlines_symbol_cross_nestorian
    active = {
        religion_group = christian
    }
}

saintly_bloodline_nestorian_06 = {
    saintly_theologians_bloodline = 1
    monthly_character_piety = 0.2
    inheritance = patrilineal
    allow_bastards = no
    flags = { saintly_bloodline theologian_saintly_bloodline }
    picture = GFX_bloodlines_symbol_cross_nestorian
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

#############
### Pagan ###
#############

# Germanic
saintly_bloodline_germanic_01 = {
    monthly_character_prestige = 0.2
    combat_rating = 3
    command_modifier = {
        religious_enemy = 0.2
        heavy_infantry = 0.10
    }
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline defender_of_the_faith }
    picture = GFX_bloodlines_symbol_norse
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_germanic_03 = {
    monthly_character_piety = 0.3
    saintly_cultural_bloodline = 1
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline cultural_saintly_bloodline }
    picture = GFX_bloodlines_symbol_norse
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_culture_TT
            FROM = {
                founder = {
                    culture = ROOT
                }
            }
        }
    }
}

saintly_bloodline_germanic_04 = {
    command_modifier = {
        religious_enemy = 0.10
    }   
    church_opinion = 5
    saintly_inquisitional_bloodline = 1
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline inquisitional_saintly_bloodline }
    picture = GFX_bloodlines_symbol_norse
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_germanic_05 = {
    monthly_character_piety = 0.2
    christian_opinion = 3
    muslim_opinion = 3
    indian_group_opinion = 3
    jewish_group_opinion = 3
    zoroastrian_group_opinion = 3
    saintly_jewish_bloodline = 1
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline jewish_saintly_bloodline }
    picture = GFX_bloodlines_symbol_norse
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_germanic_06 = {
    saintly_theologians_bloodline = 1
    monthly_character_piety = 0.2
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline theologian_saintly_bloodline }
    picture = GFX_bloodlines_symbol_norse
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

# Romuva
saintly_bloodline_romuva_01 = {
    monthly_character_prestige = 0.2
    combat_rating = 3
    command_modifier = {
        religious_enemy = 0.2
        flank = 0.1
        defence = 0.025
    }
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline defender_of_the_faith }
    picture = GFX_bloodlines_symbol_romuva_tree
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_romuva_03 = {
    monthly_character_piety = 0.3
    saintly_cultural_bloodline = 1
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline cultural_saintly_bloodline }
    picture = GFX_bloodlines_symbol_romuva_tree
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_culture_TT
            FROM = {
                founder = {
                    culture = ROOT
                }
            }
        }
    }
}

saintly_bloodline_romuva_04 = {
    command_modifier = {
        religious_enemy = 0.1
    }   
    church_opinion = 5
    saintly_inquisitional_bloodline = 1
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline inquisitional_saintly_bloodline }
    picture = GFX_bloodlines_symbol_romuva_tree
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_romuva_05 = {
    monthly_character_piety = 0.2
    christian_opinion = 3
    muslim_opinion = 3
    indian_group_opinion = 3
    jewish_group_opinion = 3
    zoroastrian_group_opinion = 3
    saintly_jewish_bloodline = 1
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline jewish_saintly_bloodline }
    picture = GFX_bloodlines_symbol_romuva_tree
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_romuva_06 = {
    saintly_theologians_bloodline = 1
    monthly_character_piety = 0.2
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline theologian_saintly_bloodline }
    picture = GFX_bloodlines_symbol_romuva_tree
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

# Slavic
saintly_bloodline_slavic_01 = {
    monthly_character_prestige = 0.2
    combat_rating = 3
    command_modifier = {
        religious_enemy = 0.2
        morale = 0.10
        retreat = 0.05
    }
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline defender_of_the_faith }
    picture = GFX_bloodlines_symbol_slavic_arrow
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_slavic_03 = {
    monthly_character_piety = 0.3
    saintly_cultural_bloodline = 1
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline cultural_saintly_bloodline }
    picture = GFX_bloodlines_symbol_slavic_arrow
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_culture_TT
            FROM = {
                founder = {
                    culture = ROOT
                }
            }
        }
    }
}

saintly_bloodline_slavic_04 = {
    command_modifier = {
        religious_enemy = 0.1
    }   
    church_opinion = 5
    saintly_inquisitional_bloodline = 1
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline inquisitional_saintly_bloodline }
    picture = GFX_bloodlines_symbol_slavic_arrow
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_slavic_05 = {
    monthly_character_piety = 0.2
    christian_opinion = 3
    muslim_opinion = 3
    indian_group_opinion = 3
    jewish_group_opinion = 3
    zoroastrian_group_opinion = 3
    saintly_jewish_bloodline = 1
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline jewish_saintly_bloodline }
    picture = GFX_bloodlines_symbol_slavic_arrow
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_slavic_06 = {
    saintly_theologians_bloodline = 1
    monthly_character_piety = 0.2
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline theologian_saintly_bloodline }
    picture = GFX_bloodlines_symbol_slavic_arrow
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

# Tengri
saintly_bloodline_tengri_01 = {
    monthly_character_prestige = 0.2
    combat_rating = 3
    command_modifier = {
        religious_enemy = 0.2
        cavalry = 0.05
        pursue = 0.05
    }
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline defender_of_the_faith }
    picture = GFX_bloodlines_symbol_tengri_eagle
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_tengri_03 = {
    monthly_character_piety = 0.3
    saintly_cultural_bloodline = 1
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline cultural_saintly_bloodline }
    picture = GFX_bloodlines_symbol_tengri_eagle
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_culture_TT
            FROM = {
                founder = {
                    culture = ROOT
                }
            }
        }
    }
}

saintly_bloodline_tengri_04 = {
    command_modifier = {
        religious_enemy = 0.1
    }   
    church_opinion = 5
    saintly_inquisitional_bloodline = 1
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline inquisitional_saintly_bloodline }
    picture = GFX_bloodlines_symbol_tengri_eagle
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_tengri_05 = {
    monthly_character_piety = 0.2
    christian_opinion = 3
    muslim_opinion = 3
    indian_group_opinion = 3
    jewish_group_opinion = 3
    zoroastrian_group_opinion = 3
    saintly_jewish_bloodline = 1
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline jewish_saintly_bloodline }
    picture = GFX_bloodlines_symbol_tengri_eagle
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_tengri_06 = {
    saintly_theologians_bloodline = 1
    monthly_character_piety = 0.2
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline theologian_saintly_bloodline }
    picture = GFX_bloodlines_symbol_tengri_eagle
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

# Suomenusko
saintly_bloodline_suomenusko_01 = {
    monthly_character_prestige = 0.2
    command_modifier = {
        religious_enemy = 0.2
        winter_combat = 0.1
        winter_supply = 2
    }
    garrison_size = 0.05
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline defender_of_the_faith }
    picture = GFX_bloodlines_symbol_finnish_bearpaw
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_suomenusko_03 = {
    monthly_character_prestige = 0.2
    saintly_cultural_bloodline = 1
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline cultural_saintly_bloodline }
    picture = GFX_bloodlines_symbol_finnish_bearpaw
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_culture_TT
            FROM = {
                founder = {
                    culture = ROOT
                }
            }
        }
    }
}

saintly_bloodline_suomenusko_04 = {
    command_modifier = {
        religious_enemy = 0.1
    }   
    church_opinion = 5
    saintly_inquisitional_bloodline = 1
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline inquisitional_saintly_bloodline }
    picture = GFX_bloodlines_symbol_finnish_bearpaw
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_suomenusko_05 = {
    monthly_character_piety = 0.2
    christian_opinion = 3
    muslim_opinion = 3
    indian_group_opinion = 3
    jewish_group_opinion = 3
    zoroastrian_group_opinion = 3
    saintly_jewish_bloodline = 1
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline jewish_saintly_bloodline }
    picture = GFX_bloodlines_symbol_finnish_bearpaw
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_suomenusko_06 = {
    saintly_theologians_bloodline = 1
    monthly_character_piety = 0.2
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline theologian_saintly_bloodline }
    picture = GFX_bloodlines_symbol_finnish_bearpaw
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

# Aztec
saintly_bloodline_aztec_01 = {
    monthly_character_prestige = 0.2
    combat_rating = 3
    command_modifier = {
        religious_enemy = 0.2
        damage = 0.05
        random = 0.10
    }
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline defender_of_the_faith }
    picture = GFX_bloodlines_symbol_bloodthirsty
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_aztec_03 = {
    monthly_character_piety = 0.3
    saintly_cultural_bloodline = 1
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline cultural_saintly_bloodline }
    picture = GFX_bloodlines_symbol_bloodthirsty
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_culture_TT
            FROM = {
                founder = {
                    culture = ROOT
                }
            }
        }
    }
}

saintly_bloodline_aztec_04 = {
    command_modifier = {
        religious_enemy = 0.1
    }   
    church_opinion = 5
    saintly_inquisitional_bloodline = 1
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline inquisitional_saintly_bloodline }
    picture = GFX_bloodlines_symbol_bloodthirsty
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_aztec_05 = {
    monthly_character_piety = 0.2
    christian_opinion = 3
    muslim_opinion = 3
    indian_group_opinion = 3
    jewish_group_opinion = 3
    zoroastrian_group_opinion = 3
    saintly_jewish_bloodline = 1
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline jewish_saintly_bloodline }
    picture = GFX_bloodlines_symbol_bloodthirsty
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_aztec_06 = {
    saintly_theologians_bloodline = 1
    monthly_character_piety = 0.2
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline theologian_saintly_bloodline }
    picture = GFX_bloodlines_symbol_bloodthirsty
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

# West African
saintly_bloodline_african_01 = {
    monthly_character_prestige = 0.2
    combat_rating = 3
    command_modifier = {
        religious_enemy = 0.2
        light_infantry = 0.1
        attrition = -0.1
    }
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline defender_of_the_faith }
    picture = GFX_bloodlines_symbol_african_waves
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_african_03 = {
    monthly_character_piety = 0.3
    saintly_cultural_bloodline = 1
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline cultural_saintly_bloodline }
    picture = GFX_bloodlines_symbol_african_waves
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_culture_TT
            FROM = {
                founder = {
                    culture = ROOT
                }
            }
        }
    }
}

saintly_bloodline_african_04 = {
    command_modifier = {
        religious_enemy = 0.1
    }   
    church_opinion = 5
    saintly_inquisitional_bloodline = 1
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline inquisitional_saintly_bloodline }
    picture = GFX_bloodlines_symbol_african_waves
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_african_05 = {
    monthly_character_piety = 0.2
    christian_opinion = 3
    muslim_opinion = 3
    indian_group_opinion = 3
    jewish_group_opinion = 3
    zoroastrian_group_opinion = 3
    saintly_jewish_bloodline = 1
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline jewish_saintly_bloodline }
    picture = GFX_bloodlines_symbol_african_waves
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_african_06 = {
    saintly_theologians_bloodline = 1
    monthly_character_piety = 0.2
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline theologian_saintly_bloodline }
    picture = GFX_bloodlines_symbol_african_waves
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

# Zun
saintly_bloodline_zun_01 = {
    monthly_character_prestige = 0.2
    combat_rating = 3
    command_modifier = {
        religious_enemy = 0.2
        siege = 0.05
        speed = 0.05
    }
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline defender_of_the_faith }
    picture = GFX_bloodlines_symbol_zun_sun
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_zun_03 = {
    monthly_character_piety = 0.3
    saintly_cultural_bloodline = 1
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline cultural_saintly_bloodline }
    picture = GFX_bloodlines_symbol_zun_sun
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_culture_TT
            FROM = {
                founder = {
                    culture = ROOT
                }
            }
        }
    }
}

saintly_bloodline_zun_04 = {
    command_modifier = {
        religious_enemy = 0.1
    }   
    church_opinion = 5
    saintly_inquisitional_bloodline = 1
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline inquisitional_saintly_bloodline }
    picture = GFX_bloodlines_symbol_zun_sun
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_zun_05 = {
    monthly_character_piety = 0.2
    christian_opinion = 3
    muslim_opinion = 3
    indian_group_opinion = 3
    jewish_group_opinion = 3
    zoroastrian_group_opinion = 3
    saintly_jewish_bloodline = 1
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline jewish_saintly_bloodline }
    picture = GFX_bloodlines_symbol_zun_sun
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_zun_06 = {
    saintly_theologians_bloodline = 1
    monthly_character_piety = 0.2
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline theologian_saintly_bloodline }
    picture = GFX_bloodlines_symbol_zun_sun
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

# Hellenic
saintly_bloodline_hellenic_01 = {
    monthly_character_prestige = 0.2
    combat_rating = 3
    command_modifier = {
        religious_enemy = 0.2
        morale_offense = 0.10
        speed = 0.02
    }
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline defender_of_the_faith }
    picture = GFX_bloodlines_symbol_stoics
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_hellenic_02 = {
    monthly_character_piety = 0.1
    church_opinion = 5
    saintly_monastic_bloodline = 1
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline monastic_saintly_bloodline }
    picture = GFX_bloodlines_symbol_stoics
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_hellenic_03 = {
    monthly_character_piety = 0.3
    saintly_cultural_bloodline = 1
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline cultural_saintly_bloodline }
    picture = GFX_bloodlines_symbol_stoics
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_culture_TT
            FROM = {
                founder = {
                    culture = ROOT
                }
            }
        }
    }
}

saintly_bloodline_hellenic_04 = {
    command_modifier = {
        religious_enemy = 0.1
    }   
    church_opinion = 5
    saintly_inquisitional_bloodline = 1
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline inquisitional_saintly_bloodline }
    picture = GFX_bloodlines_symbol_stoics
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_hellenic_05 = {
    monthly_character_piety = 0.2
    christian_opinion = 3
    muslim_opinion = 3
    indian_group_opinion = 3
    jewish_group_opinion = 3
    zoroastrian_group_opinion = 3
    saintly_jewish_bloodline = 1
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline jewish_saintly_bloodline }
    picture = GFX_bloodlines_symbol_stoics
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_hellenic_06 = {
    saintly_theologians_bloodline = 1
    monthly_character_piety = 0.2
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline theologian_saintly_bloodline }
    picture = GFX_bloodlines_symbol_stoics
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

# Bon
saintly_bloodline_bon_01 = {
    monthly_character_prestige = 0.2
    combat_rating = 3
    command_modifier = {
        religious_enemy = 0.2
        light_infantry = 0.10
        narrow_flank = 0.05
    }
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline defender_of_the_faith }
    picture = GFX_bloodlines_symbol_bon_candle
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_bon_03 = {
    monthly_character_piety = 0.3
    saintly_cultural_bloodline = 1
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline cultural_saintly_bloodline }
    picture = GFX_bloodlines_symbol_bon_candle
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_culture_TT
            FROM = {
                founder = {
                    culture = ROOT
                }
            }
        }
    }
}

saintly_bloodline_bon_04 = {
    command_modifier = {
        religious_enemy = 0.1
    }   
    church_opinion = 5
    saintly_inquisitional_bloodline = 1
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline inquisitional_saintly_bloodline }
    picture = GFX_bloodlines_symbol_bon_candle
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_bon_05 = {
    monthly_character_piety = 0.2
    christian_opinion = 3
    muslim_opinion = 3
    indian_group_opinion = 3
    jewish_group_opinion = 3
    zoroastrian_group_opinion = 3
    saintly_jewish_bloodline = 1
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline jewish_saintly_bloodline }
    picture = GFX_bloodlines_symbol_bon_candle
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

saintly_bloodline_bon_06 = {
    saintly_theologians_bloodline = 1
    monthly_character_piety = 0.2
    inheritance = patrilineal
    allow_bastards = yes
    flags = { ancestor_worship_bloodline theologian_saintly_bloodline }
    picture = GFX_bloodlines_symbol_bon_candle
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

### Generic Ancestor Worship Bloodlines ###
# Great Heroes Bloodline
ancestor_worship_bloodline_01 = {
    monthly_character_prestige = 0.2
    combat_rating = 5
    bloodline_effect_great_heroes_appear = 1
    inheritance = patrilineal
    allow_bastards = yes
    picture = GFX_bloodlines_symbol_lion
    flags = { ancestor_worship_bloodline bloodline_heroes }
}

# Bastard Bloodline
ancestor_worship_bloodline_02 = {
    monthly_character_prestige = 0.1
    bastard_opinion = 5
    legit_bastard_opinion = 5
    bloodline_effect_free_legitimize = 1
    inheritance = patrilineal
    allow_bastards = yes
    picture = GFX_bloodlines_placeholder_symbol_2
    flags = { ancestor_worship_bloodline bloodline_legitimize }
}

# Sky Burial Bloodline
ancestor_worship_bloodline_03 = {
    monthly_character_prestige = 0.2
    combat_rating = 3
    bloodline_effect_sky_burial = 1
    inheritance = patrilineal
    allow_bastards = yes
    picture = GFX_bloodlines_symbol_horse
    flags = { ancestor_worship_bloodline bloodline_sky_burial }
}

# Mercenary Bloodline
ancestor_worship_bloodline_04 = {
    strategist_opinion = 5
    brave_opinion = 5
    combat_rating = 5
    bloodline_effect_bloodline_mercenary_traditions = 1
    inheritance = patrilineal
    allow_bastards = yes
    picture = GFX_bloodlines_symbol_norse_wolf
    flags = { ancestor_worship_bloodline bloodline_mercenary_traditions }
}

# Tanistry Bloodline
ancestor_worship_bloodline_05 = {
    dynasty_opinion = 5
    combat_rating = 5
    bloodline_effect_tanistry = 1
    inheritance = patrilineal
    allow_bastards = yes
    picture = GFX_bloodlines_symbol_war
    flags = { ancestor_worship_bloodline bloodline_tanistry }
}

# Raiding Bloodline
ancestor_worship_bloodline_06 = {
    combat_rating = 5
    brave_opinion = 5
    command_modifier = {
        light_infantry = 0.2
    }
    bloodline_effect_more_raiders = 1
    inheritance = patrilineal
    allow_bastards = yes
    picture = GFX_bloodlines_symbol_midgard
    flags = { ancestor_worship_bloodline more_raiders_bloodline }
}

# Dueling Bloodline
ancestor_worship_bloodline_07 = {
    monthly_character_prestige = 0.1
    combat_rating = 5
    command_modifier = {
        damage = 0.025
        defence = 0.025
    }
    bloodline_effect_duel = 1
    inheritance = patrilineal
    allow_bastards = yes
    picture = GFX_bloodlines_symbol_lion
    flags = { ancestor_worship_bloodline duelist_bloodline }
}

#############
###New Pagan Ancestor Veneration Bloodlines###
#############

# Germanic
saintly_bloodline_germanic_12 = {
    monthly_character_piety = 0.1
    monthly_character_prestige = 0.1
    temple_opinion = 10
    same_religion_opinion = 10
    combat_rating = 10
    command_modifier = {
        religious_enemy = 0.3
    }
    inheritance = all_descendants
    flags = { ancestor_worship_bloodline exemplar_of_the_faith }
    picture = GFX_bloodlines_symbol_norse
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}


# Romuva
saintly_bloodline_romuva_12 = {
    monthly_character_piety = 0.1
    monthly_character_prestige = 0.1
        temple_opinion = 10
    same_religion_opinion = 10
    combat_rating = 10
    command_modifier = {
        religious_enemy = 0.3
    }
    inheritance = all_descendants
    flags = { ancestor_worship_bloodline exemplar_of_the_faith }
    picture = GFX_bloodlines_symbol_romuva_tree
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

# Slavic
saintly_bloodline_slavic_12 = {
    monthly_character_piety = 0.1
    monthly_character_prestige = 0.1
        temple_opinion = 10
    same_religion_opinion = 10
    combat_rating = 10
    command_modifier = {
        religious_enemy = 0.3
    }
    inheritance = all_descendants
    flags = { ancestor_worship_bloodline exemplar_of_the_faith }
    picture = GFX_bloodlines_symbol_slavic_arrow
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}
# Tengri
saintly_bloodline_tengri_12 = {
    monthly_character_piety = 0.1
    monthly_character_prestige = 0.1
        temple_opinion = 10
    same_religion_opinion = 10
    combat_rating = 10
    command_modifier = {
        religious_enemy = 0.3
    }
    inheritance = all_descendants
    flags = { ancestor_worship_bloodline exemplar_of_the_faith }
    picture = GFX_bloodlines_symbol_tengri_eagle
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}
# Suomenusko
saintly_bloodline_suomenusko_12 = {
    monthly_character_piety = 0.1
    monthly_character_prestige = 0.1
        temple_opinion = 10
    same_religion_opinion = 10
    combat_rating = 10
    command_modifier = {
        religious_enemy = 0.3
    }
    inheritance = all_descendants
    flags = { ancestor_worship_bloodline exemplar_of_the_faith }
    picture = GFX_bloodlines_symbol_finnish_bearpaw
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

# Aztec
saintly_bloodline_aztec_12 = {
    monthly_character_piety = 0.1
    monthly_character_prestige = 0.1
        temple_opinion = 10
    same_religion_opinion = 10
    combat_rating = 10
    command_modifier = {
        religious_enemy = 0.3
    }
    inheritance = all_descendants
    flags = { ancestor_worship_bloodline exemplar_of_the_faith }
    picture = GFX_bloodlines_symbol_bloodthirsty
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

# West African
saintly_bloodline_african_12 = {
    monthly_character_piety = 0.1
    monthly_character_prestige = 0.1
        temple_opinion = 10
    same_religion_opinion = 10
    combat_rating = 10
    command_modifier = {
        religious_enemy = 0.3
    }
    inheritance = all_descendants
    flags = { ancestor_worship_bloodline exemplar_of_the_faith }
    picture = GFX_bloodlines_symbol_african_waves
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

# Zun
saintly_bloodline_zun_12 = {
    monthly_character_piety = 0.1
    monthly_character_prestige = 0.1
        temple_opinion = 10
    same_religion_opinion = 10
    combat_rating = 10
    command_modifier = {
        religious_enemy = 0.3
    }
    inheritance = all_descendants
    flags = { ancestor_worship_bloodline exemplar_of_the_faith }
    picture = GFX_bloodlines_symbol_zun_sun
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

# Hellenic
saintly_bloodline_hellenic_12 = {
    monthly_character_piety = 0.1
    monthly_character_prestige = 0.1
        temple_opinion = 10
    same_religion_opinion = 10
    combat_rating = 10
    command_modifier = {
        religious_enemy = 0.3
    }
    inheritance = all_descendants
    flags = { ancestor_worship_bloodline exemplar_of_the_faith }
    picture = GFX_bloodlines_symbol_stoics
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

# Bon
saintly_bloodline_bon_12 = {
    monthly_character_piety = 0.1
    monthly_character_prestige = 0.1
        temple_opinion = 10
    same_religion_opinion = 10
    combat_rating = 10
    command_modifier = {
        religious_enemy = 0.3
    }
    inheritance = all_descendants
    flags = { ancestor_worship_bloodline exemplar_of_the_faith }
    picture = GFX_bloodlines_symbol_bon_candle
    active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

#BloodThirsty Bloodline
ancestor_worship_bloodline_20 ={
monthly_character_piety = 0.1
tribal_opinion = 10
castle_opinion = -10
church_opinion = 10
combat_rating = 10
command_modifier = {
morale_offence = 0.1
}
inheritance = all_descendants
allow_bastards = yes
picture = GFX_bloodlines_placeholder_symbol_2
active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}
    
#Unyielding Bloodline
ancestor_worship_bloodline_21 = {
monthly_character_piety = 0.1
vassal_opinion = 10
same_religion_opinion = 10
temple_opinion = 10
combat_rating = 10
command_modifier = {
morale_defence = 0.2
}
inheritance = all_descendants
allow_bastards = yes
picture = GFX_bloodlines_placeholder_symbol_2
active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}
#Peaceful Bloodline
ancestor_worship_bloodline_22 = {
monthly_character_piety = 0.10
monthly_character_prestige = 0.05
child_opinion = 10
vassal_opinion = 10
same_religion_opinion = 10
health = 1
diplomacy = 2
inheritance = all_descendants
allow_bastards = yes
picture = GFX_bloodlines_placeholder_symbol_2
active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

#Equality Bloodline
ancestor_worship_bloodline_23 = {
monthly_character_piety = 0.10
monthly_character_prestige = 0.10
vassal_opinion = 10
global_revolt_risk = -0.10
stewardship = 2
short_reign_length = -2
inheritance = all_descendants
allow_bastards = yes
picture = GFX_bloodlines_placeholder_symbol_2
active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}
##Bloodlines Specifically for Pagans with Weak Unique Doctrines

#Martial Bloodline for Euro Pagans
ancestor_worship_bloodline_24 = {
monthly_character_prestige = 0.05
combat_rating = 10
martial = 2
global_levy_size= 0.1
levy_reinforce_rate = 0.1
combat_rating = 10
retinuesize_perc = 0.1
phase_melee_attack = 0.05
inheritance = all_descendants
allow_bastards = yes
picture = GFX_bloodlines_placeholder_symbol_2
active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

#Diplomacy Bloodline for Euro Pagans
ancestor_worship_bloodline_25 = {
monthly_character_prestige = 0.05
diplomacy = 2
same_religion_opinion = 10
vassal_opinion = 10
short_reign_length = -2
infidel_opinion = 10
christian_opinion = 10
pagan_group_opinion = 10
muslim_opinion = 10
indian_group_opinion = 10
threat_decay_speed = 0.01
inheritance = all_descendants
allow_bastards = yes
picture = GFX_bloodlines_placeholder_symbol_2
active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

#Intrigue Bloodline for Euro Pagans
ancestor_worship_bloodline_26 = {
intrigue = 2
combat_rating = 5
plot_power_modifier = 0.10
defensive_plot_power_modifier = 0.10
sex_appeal_opinion = 10
assassinate_chance_modifier = 0.10
inheritance = all_descendants
allow_bastards = yes
picture = GFX_bloodlines_placeholder_symbol_2
active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

#Stewardship Bloodline for Euro Pagans
ancestor_worship_bloodline_27 = {
steward = 2
monthly_character_wealth = 5
global_tax_modifier = 0.05
local_build_time_modifier = -0.10
local_build_cost_modifier = -0.10
local_build_cost_tribal_modifier = -0.10
local_build_time_tribal_modifier = -0.10
demesne_size = 1
inheritance = all_descendants
allow_bastards = yes
picture = GFX_bloodlines_placeholder_symbol_2
active = {
        custom_tooltip = {
            text = saintly_bloodline_same_religion_TT
            FROM = {
                founder = {
                    religion = ROOT
                }
            }
        }
    }
}

common/scripted_effects/03_scripted_effects_sainthood

Code:
setting_up_saintly_burial_site_effect = {
    save_persistent_event_target = {
        name = province_saint
        scope = event_target:saint_person
    }
    province_event = { id = HF.40099 }
    province_event = { id = HF.40021 }
}

deciding_upon_saint_effect = {
    random = {
        chance = 1

        #Lower chance when there is more Saints around
        modifier = {
            factor = 0.4
            check_variable = { which = global_saint_number value = 15 }
        }
        modifier = {
            factor = 0.4
            check_variable = { which = global_saint_number value = 20 }
        }
        modifier = {
            factor = 0.4
            check_variable = { which = global_saint_number value = 25 }
        }
        modifier = {
            factor = 0.4
            check_variable = { which = global_saint_number value = 30 }
        }

        #Cynical people are less likely to be Canonized
        modifier = {
            factor = 0.8
            trait = cynical
        }
        # Reduced chance for Popes / Antipopes to become Saints
        modifier = {
            factor = 0.4
            OR = {
                has_landed_title = k_papal_state
                has_landed_title = d_fraticelli
                any_claim = { title = k_papal_state }
                any_claim = { title = d_fraticelli }
            }
        }

        #Have to be a Christian denomination with a potential Religious head, and have been singled out for Beatification
        modifier = {
            factor = 0
            NOR = {
                NAND = {
                    event_target:saint_person = {
                        religion = catholic
                    }
                    event_target:saint_person = {
                        religion = fraticelli
                    }
                    event_target:saint_person = {
                        religion = orthodox
                    }
                    event_target:saint_person = {
                        religion = iconoclast
                    }
                    event_target:saint_person = {
                        religion = nestorian
                    }
                    event_target:saint_person = {
                        religion = miaphysite
                    }
                    event_target:saint_person = {
                        religion = monophysite
                    }
                    event_target:saint_person = {
                        religion = monothelite
                    }
                    event_target:saint_person = {
                        religion = paulician
                    }
                    event_target:saint_person = {
                        has_religion_feature = religion_beatification
                    }
                }
                NOR = {
                    event_target:saint_person = {
                        has_character_flag = beatified
                    }
                    event_target:saint_person = {
                        has_religion_feature = religion_beatification
                    }
                }
            }
        }
        #Religions without a Religious Head cannot Canonize
        modifier = {
            factor = 0
            NOT = {
                rightful_religious_head_scope = {
                    always = yes
                }
            }
        }
        #Baptism sponsors have a higher chance of becoming a Saint
        modifier = {
            factor = 1.5
            has_any_opinion_modifier = opinion_baptism_sponsor_target
        }
        #Eastern Christians have a lower chance of becoming Saints
        modifier = {
            factor = 0.8
            OR = {
                event_target:saint_person = {
                    religion = iconoclast
                }
                event_target:saint_person = {
                    religion = nestorian
                }
                event_target:saint_person = {
                    religion = miaphysite
                }
                event_target:saint_person = {
                    religion = monophysite
                }
                event_target:saint_person = {
                    religion = monothelite
                }
                event_target:saint_person = {
                    religion = paulician
                }
                event_target:saint_person = {
                    religion = orthodox
                }
            }
        }
        #Players who don't have a saintly bloodline have a higher chance of becoming a Saint
        modifier = {
            factor = 3
            event_target:saint_person  = {
                ai = no
            }
            NOT = {
                event_target:saint_person = {
                    any_owned_bloodline = {
                        OR = {
                            has_bloodline_flag = defender_of_the_faith
                            has_bloodline_flag = monastic_saintly_bloodline
                            has_bloodline_flag = cultural_saintly_bloodline
                            has_bloodline_flag = inquisitional_saintly_bloodline
                            has_bloodline_flag = jewish_saintly_bloodline
                            has_bloodline_flag = theologian_saintly_bloodline
                        }
                    }
                }     
            }
        }
        #Positive traits increase your chances of becoming a Saint
        modifier = {
            factor = 1.5
            event_target:saint_person = {
                trait = patient
            }
        }
        modifier = {
            factor = 1.5
            event_target:saint_person = {
                trait = diligent
            }
        }
        modifier = {
            factor = 1.5
            event_target:saint_person = {
                trait = kind
            }
        }
        modifier = {
            factor = 1.5
            event_target:saint_person = {
                trait = chaste
            }
        }
        modifier = {
            factor = 1.5
            event_target:saint_person = {
                trait = charitable
            }
        }
        modifier = {
            factor = 1.5
            event_target:saint_person = {
                trait = temperate
            }
        }
        modifier = {
            factor = 1.5
            event_target:saint_person = {
                trait = humble
            }
        }
        modifier = {
            factor = 1.2
            event_target:saint_person = {
                trait = just
            }
        }
        modifier = {
            factor = 1.2
            event_target:saint_person = {
                has_crusade_trait_trigger = yes
            }
        }
        #Having the bloodline of a Saint severely decrease your chance of becoming a Saint
        modifier = {
            factor = 0.6
            event_target:saint_person = {
                any_owned_bloodline = {
                    OR = {
                        has_bloodline_flag = defender_of_the_faith
                        has_bloodline_flag = monastic_saintly_bloodline
                        has_bloodline_flag = cultural_saintly_bloodline
                        has_bloodline_flag = inquisitional_saintly_bloodline
                        has_bloodline_flag = jewish_saintly_bloodline
                        has_bloodline_flag = theologian_saintly_bloodline
                    }
                }
            }
        }
        #Extra high piety increases your chance of becoming a Saint
        modifier = {
            factor = 1.2
            piety = 1000
        }
        modifier = {
            factor = 1.2
            piety = 1500
        }
        modifier = {
            factor = 1.2
            piety = 2000
        }
        modifier = {
            factor = 1.2
            piety = 2500
        }
        modifier = {
            factor = 1.2
            piety = 3000
        }
        modifier = {
            factor = 1.2
            piety = 3500
        }
        modifier = {
            factor = 1.2
            piety = 4000
        }
        modifier = {
            factor = 1.2
            piety = 4500
        }
        modifier = {
            factor = 1.2
            piety = 5000
        }
        modifier = {
            factor = 1.2
            piety = 5500
        }
        modifier = {
            factor = 1.2
            piety = 6000
        }
        modifier = {
            factor = 1.2
            piety = 6500
        }
        modifier = {
            factor = 1.2
            piety = 7000
        }
        modifier = {
            factor = 1.2
            piety = 7500
        }
        modifier = {
            factor = 1.2
            piety = 8000
        }
        modifier = {
            factor = 1.2
            piety = 8500
        }
        modifier = {
            factor = 1.2
            piety = 9000
        }
        modifier = {
            factor = 1.2
            piety = 9500
        }
        modifier = {
            factor = 1.2
            piety = 10000
        }
        #First Saint of a Religion is easier
        modifier = {
            factor = 3
            OR = {
                AND = {
                    religion = catholic
                    NOT = {
                        has_global_flag = catholic_saint
                    }
                }
                AND = {
                    religion = fraticelli
                    NOT = {
                        has_global_flag = fraticelli_saint
                    }
                }
                AND = {
                    religion = orthodox
                    NOT = {
                        has_global_flag = orthodox_saint
                    }
                }
                AND = {
                    religion = iconoclast
                    NOT = {
                        has_global_flag = iconoclast_saint
                    }
                }
                AND = {
                    religion = paulician
                    NOT = {
                        has_global_flag = paulician_saint
                    }
                }
                AND = {
                    religion = monothelite
                    NOT = {
                        has_global_flag = monothelite_saint
                    }
                }
                AND = {
                    religion = nestorian
                    NOT = {
                        has_global_flag = nestorian_saint
                    }
                }
                AND = {
                    religion = miaphysite
                    NOT = {
                        has_global_flag = miaphysite_saint
                    }
                }
                AND = {
                    religion = monophysite
                    NOT = {
                        has_global_flag = monophysite_saint
                    }
                }
            }
        }
        random_realm_province = {
            province_event = { id = HF.40010 }
        }
        change_variable = { which = global_saint_number value = 1 }
        trigger_switch = {
            on_trigger = religion
            catholic = { set_global_flag = catholic_saint }
            fraticelli = { set_global_flag = fraticelli_saint }
            orthodox = { set_global_flag = orthodox_saint }
            iconoclast = { set_global_flag = iconoclast_saint }
            paulician = { set_global_flag = paulician_saint }
            monothelite = { set_global_flag = monothelite_saint }
            nestorian = { set_global_flag = nestorian_saint }
            miaphysite = { set_global_flag = miaphysite_saint }
            monophysite = { set_global_flag = monophysite_saint }
        }
    }
}
check_if_ancestor_worship_worthy_effect = {
    random = {
        chance = 3
         #Extra high piety increases your chance of becoming a Saint
          modifier = {
            factor = 1.2
            piety = 500
        }
        modifier = {
            factor = 1.2
            piety = 1000
        }
        modifier = {
            factor = 1.2
            piety = 1500
        }
        modifier = {
            factor = 1.2
            piety = 2000
        }
        modifier = {
            factor = 1.2
            piety = 2500
        }
        modifier = {
            factor = 1.2
            piety = 3000
        }
        modifier = {
            factor = 1.2
            piety = 3500
        }
        modifier = {
            factor = 1.2
            piety = 4000
        }
        modifier = {
            factor = 1.2
            piety = 4500
        }
        modifier = {
            factor = 1.2
            piety = 5000
        }
        modifier = {
            factor = 1.2
            piety = 5500
        }
        modifier = {
            factor = 1.2
            piety = 6000
        }
        modifier = {
            factor = 1.2
            piety = 6500
        }
        modifier = {
            factor = 1.2
            piety = 7000
        }
        modifier = {
            factor = 1.2
            piety = 7500
        }
        modifier = {
            factor = 1.2
            piety = 8000
        }
        modifier = {
            factor = 1.2
            piety = 8500
        }
        modifier = {
            factor = 1.2
            piety = 9000
        }
        modifier = {
            factor = 1.2
            piety = 9500
        }
        modifier = {
            factor = 1.2
            piety = 10000
        }

        ### Prestige based modifiers ###
        modifier = {
            factor = 1.2
            prestige = 1500
        }
        modifier = {
            factor = 1.2
            prestige = 2000
        }
        modifier = {
            factor = 1.2
            prestige = 2500
        }
        modifier = {
            factor = 1.2
            prestige = 3000
        }
        modifier = {
            factor = 1.2
            prestige = 3500
        }
        modifier = {
            factor = 1.2
            prestige = 4000
        }
        modifier = {
            factor = 1.2
            prestige = 4500
        }
        modifier = {
            factor = 1.2
            prestige = 5000
        }
        modifier = {
            factor = 1.2
            prestige = 6000
        }
        modifier = {
            factor = 1.2
            prestige = 7000
        }
        modifier = {
            factor = 1.2
            prestige = 8000
        }
        modifier = {
            factor = 1.2
            prestige = 9000
        }
        modifier = {
            factor = 1.2
            prestige = 10000
        }
        modifier = {
            factor = 1.2
            prestige = 15000
        }
        modifier = {
            factor = 1.2
            prestige = 20000
        }
         modifier = {
            factor = 1.2
            prestige = 25000
        }
         modifier = {
            factor = 1.2
            prestige = 30000
        } modifier = {
            factor = 1.2
            prestige = 35000
        }
        
         modifier = {
            factor = 1.2
            prestige = 40000
        }

        #### Religion based modifiers ####
        ### Religion Nature ###
        ## Peaceful Religion ##
        # Positive
        modifier = {
            factor = 1.5
                OR = {
            has_religion_feature = religion_peaceful
            religion = bori
            }
            trait = humble
        }
        modifier = {
            factor = 1.5
            OR = {
            has_religion_feature = religion_peaceful
            religion = bori
            }
            trait = content
        }
        modifier = {
            factor = 1.5
            OR = {
            has_religion_feature = religion_peaceful
            religion = bori
            }
            trait = temperate
        }
        modifier = {
            factor = 1.5
            OR = {
            has_religion_feature = religion_peaceful
            religion = bori
            }
            trait = just
        }
        modifier = {
            factor = 1.5
            OR = {
            has_religion_feature = religion_peaceful
            religion = bori
            }
            war = no
        }
        modifier = {
            factor = 1.5
           OR = {
            has_religion_feature = religion_peaceful
            religion = bori
            }
            piety = 1000
        }
        modifier = {
            factor = 1.5
            OR = {
            has_religion_feature = religion_peaceful
            religion = bori
            }
            piety = 2000
        }
        modifier = {
            factor = 1.5
            OR = {
            has_religion_feature = religion_peaceful
            religion = bori
            }
            piety = 3000
        }
        modifier = {
            factor = 1.5
            OR = {
            has_religion_feature = religion_peaceful
            religion = bori
            }
            piety = 4000
        }
        modifier = {
            factor = 1.5
            OR = {
            has_religion_feature = religion_peaceful
            religion = bori
            }
            piety = 5000
        }
        # Negative
        modifier = {
            factor = 0.65
            has_religion_feature = religion_peaceful
            has_education_martial_trigger = yes
        }
        modifier = {
            factor = 0.65
            has_religion_feature = religion_peaceful
            OR = {
                trait = duelist
                trait = strategist
            }
        }
        modifier = {
            factor = 0.65
            OR = {
            has_religion_feature = religion_peaceful
            religion = bori
            }
            trait = wroth
        }
        modifier = {
            factor = 0.65
            has_religion_feature = religion_peaceful
            trait = zealous
        }
        modifier = {
            factor = 0.65
            has_religion_feature = religion_peaceful
            has_any_leadership_trait_trigger = yes
        }
        modifier = {
            factor = 0.65
            has_religion_feature = religion_peaceful
            war = yes
        }

        ## Warlike Religion ##
        # Positive
        modifier = {
            factor = 1.5
            has_religion_feature = religion_warlike
            trait = brilliant_strategist
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_warlike
            trait = strong
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_warlike
            trait = robust
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_warlike
            OR = {
                trait = duelist
                trait = strategist
            }
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_warlike
            trait = wroth
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_warlike
            trait = ambitious
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_warlike
            trait = brave
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_warlike
            trait = zealous
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_warlike
            has_any_leadership_trait_trigger = yes
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_warlike
            war = yes
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_warlike
            has_crusade_trait_trigger = yes
        }
        # Negative
        modifier = {
            factor = 0.65
            has_religion_feature = religion_warlike
            trait = humble
        }
        modifier = {
            factor = 0.65
            has_religion_feature = religion_warlike
            trait = content
        }
        modifier = {
            factor = 0.65
            has_religion_feature = religion_warlike
            war = no
        }
        modifier = {
            factor = 0.65
            has_religion_feature = religion_warlike
            NOT = {
                has_education_martial_trigger = yes
            }
        }
        modifier = {
            factor = 0.65
            has_religion_feature = religion_warlike
            NOT = {
                has_any_leadership_trait_trigger = yes
            }
        }
        modifier = {
            factor = 0.65
            has_religion_feature = religion_warlike
            NOT = {
                has_crusade_trait_trigger = yes
            }
            has_global_flag = pagan_ghws_unlocked
        }

        ## Defensive Religion ##
        # Positive
        
        modifier = {
            factor = 1.5
             OR = {
            has_religion_feature = religion_defensive
            religion = bori
            }
            trait = patient
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_defensive
            trait = cynical
        }
        modifier = {
            factor = 1.5
            OR = {
            has_religion_feature = religion_defensive
            religion = bori
            }
            trait = defensive_leader
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_defensive
            trait = paranoid
        }
        modifier = {
            factor = 1.5
            OR = {
            has_religion_feature = religion_defensive
            religion = bori
            }
            has_education_martial_trigger = yes
        }
        # Negative
        modifier = {
            factor = 0.65
            has_religion_feature = religion_defensive
            trait = brave
        }
        modifier = {
            factor = 0.65
            has_religion_feature = religion_defensive
            trait = wroth
        }
        modifier = {
            factor = 0.65
            has_religion_feature = religion_defensive
            trait = zealous
        }
        modifier = {
            factor = 0.65
            has_religion_feature = religion_defensive
            trait = holy_warrior
        }
        modifier = {
            factor = 0.65
            has_religion_feature = religion_defensive
            trait = trusting
        }
        modifier = {
            factor = 0.65
            has_religion_feature = religion_defensive
            NOT = {
                has_education_martial_trigger = yes
            }
        }

        ## Proselytizing Religion ##
        # Positive
        modifier = {
            factor = 1.5
            has_religion_feature = religion_proselytizing
            trait = zealous
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_proselytizing
            trait = gregarious
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_proselytizing
            OR = {
                trait = socializer
                trait = scholar
                trait = theologian
            }
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_proselytizing
            OR = {
                trait = grey_eminence
                trait = mastermind_theologian
            }
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_proselytizing
            OR = {
                trait = celibate
                trait = erudite
            }
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_proselytizing
            diplomacy = 15
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_proselytizing
            learning = 15
        }
        # Negative
        modifier = {
            factor = 0.65
            has_religion_feature = religion_proselytizing
            trait = wroth
        }
        modifier = {
            factor = 0.65
            has_religion_feature = religion_proselytizing
            trait = brave
        }
        modifier = {
            factor = 0.65
            has_religion_feature = religion_proselytizing
            trait = cynical
        }
        modifier = {
            factor = 0.65
            has_religion_feature = religion_proselytizing
            NOR = {
                trait = socializer
                trait = scholar
                trait = theologian
            }
        }
        modifier = {
            factor = 0.65
            has_religion_feature = religion_proselytizing
            NOR = {
                has_education_diplomacy_trigger = yes
                has_education_learning_trigger = yes
            }
        }
        modifier = {
            factor = 0.65
            has_religion_feature = religion_proselytizing
            NOT = {
                diplomacy = 10
            }
        }
        modifier = {
            factor = 0.65
            has_religion_feature = religion_proselytizing
            NOT = {
                learning = 10
            }
        }

        ## Dogmatic Religion ##
        # Positive
        modifier = {
            factor = 1.5
            has_religion_feature = religion_dogmatic
            trait = paranoid
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_dogmatic
            trait = zealous
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_dogmatic
            trait = cruel
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_dogmatic
            OR = {
                trait = brilliant_strategist
                trait = mastermind_theologian
            }
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_dogmatic
            OR = {
                trait = theologian
                trait = scholar
                trait = strategist
            }
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_dogmatic
            martial = 15
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_dogmatic
            learning = 15
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_dogmatic
            has_crusade_trait_trigger = yes
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_dogmatic
            trait = pilgrim
        }
        # Negative
        modifier = {
            factor = 0.65
            has_religion_feature = religion_dogmatic
            trait = trusting
        }
        modifier = {
            factor = 0.65
            has_religion_feature = religion_dogmatic
            trait = cynical
        }
        modifier = {
            factor = 0.65
            has_religion_feature = religion_dogmatic
            trait = kind
        }
        modifier = {
            factor = 0.65
            has_religion_feature = religion_dogmatic
            NOR = {
                has_education_martial_trigger = yes
                has_education_learning_trigger = yes
            }
        }
        modifier = {
            factor = 0.65
            has_religion_feature = religion_dogmatic
            NOT = {
                martial = 10
            }
        }
        modifier = {
            factor = 0.65
            has_religion_feature = religion_dogmatic
            NOT = {
                learning = 10
            }
        }
        modifier = {
            factor = 0.65
            has_religion_feature = religion_dogmatic
            NOT = {
                has_crusade_trait_trigger = yes
            }
            has_global_flag = pagan_ghws_unlocked
        }
        modifier = {
            factor = 0.65
            has_religion_feature = religion_dogmatic
            NOT = {
                trait = pilgrim
            }
        }

        ## Cosmopolitan Religion ##
        # Positive
        modifier = {
            factor = 1.5
            has_religion_feature = religion_cosmopolitan
            trait = kind
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_cosmopolitan
            trait = gregarious
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_cosmopolitan
            trait = cynical
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_cosmopolitan
            OR = {
                trait = socializer
                trait = administrator
            }
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_cosmopolitan
            OR = {
                trait = grey_eminence
                trait = midas_touched
            }
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_cosmopolitan
            diplomacy = 15
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_cosmopolitan
            stewardship = 15
        }
        # Negative
        modifier = {
            factor = 0.65
            has_religion_feature = religion_cosmopolitan
            OR = {
                trait = envious
                trait = cruel
            }
        }
        modifier = {
            factor = 0.65
            has_religion_feature = religion_cosmopolitan
            trait = zealous
        }
        modifier = {
            factor = 0.65
            has_religion_feature = religion_cosmopolitan
            NOR = {
                has_education_diplomacy_trigger = yes
                has_education_stewardship_trigger = yes
            }
        }
        modifier = {
            factor = 0.65
            has_religion_feature = religion_cosmopolitan
            NOT = {
                diplomacy = 10
            }
        }
        modifier = {
            factor = 0.65
            has_religion_feature = religion_cosmopolitan
            NOT = {
                stewardship = 10
            }
        }
        ### Religion Doctrines ###
        ## Holy Family ##
        # Positive
        modifier = {
            factor = 1.5
            OR = {
                has_religion_feature = religion_feature_zun
                has_religion_feature = religion_holy_family
            }
            NOT = {
                any_spouse_even_if_dead = {
                    NOT = {
                        dynasty = ROOT
                    }
                }
            }
        }
        modifier = {
            factor = 1.5
            OR = {
                has_religion_feature = religion_feature_zun
                has_religion_feature = religion_holy_family
            }
            NOT = {
                any_child_even_if_dead = {
                    trait = inbred
                }
            }
        }
        # Negative
        modifier = {
            factor = 0.65
            OR = {
                has_religion_feature = religion_feature_zun
                has_religion_feature = religion_holy_family
            }
            any_spouse_even_if_dead = {
                NOT = {
                    dynasty = ROOT
                }
            }
        }
        modifier = {
            factor = 0.65
            OR = {
                has_religion_feature = religion_feature_zun
                has_religion_feature = religion_holy_family
            }
            any_child_even_if_dead = {
                trait = inbred
            }
        }
        ## Harems ##
        # Positive
        modifier = {
            factor = 1.5
            has_religion_feature = religion_harems
            any_spouse = {
                count = 2
            }
        }
        # Negative
        modifier = {
            factor = 0.65
            has_religion_feature = religion_harems
            NOT = {
                any_spouse = {
                    count = 2
                }
            }
        }
        modifier = {
            factor = 0.65
            has_religion_feature = religion_harems
            trait = chaste
        }
        ## Meritocratic ##
        # Positive
        modifier = {
            factor = 1.5
            has_religion_feature = religion_meritocratic
            NOT = {
                is_foe = current_heir
            }
        }
        #
        modifier = {
            factor = 0.65
            has_religion_feature = religion_meritocratic
            is_foe = current_heir
        }
        ## Stable ##
        # Positive
        modifier = {
            factor = 1.5
            OR = {
                has_religion_feature = religion_stable
                has_religion_feature = religion_feature_slavic
                has_religion_feature = religion_feature_finnish
            }
            trait = just
        }
        modifier = {
            factor = 1.5
            OR = {
                has_religion_feature = religion_stable
                has_religion_feature = religion_feature_slavic
                has_religion_feature = religion_feature_finnish
            }
            trait = administrator
        }
        modifier = {
            factor = 1.5
            OR = {
                has_religion_feature = religion_stable
                has_religion_feature = religion_feature_slavic
                has_religion_feature = religion_feature_finnish
            }
            trait = diligent
        }
        # Negative
        modifier = {
            factor = 0.65
            OR = {
                has_religion_feature = religion_stable
                has_religion_feature = religion_feature_slavic
                has_religion_feature = religion_feature_finnish
            }
            trait = arbitrary
        }
        modifier = {
            factor = 0.65
            OR = {
                has_religion_feature = religion_stable
                has_religion_feature = religion_feature_slavic
                has_religion_feature = religion_feature_finnish
            }
            OR = {
                trait = slothful
                trait = envious
            }
        }
        ## Jizya ##
        # Positive
        modifier = {
            factor = 1.5
            has_religion_feature = religion_jizya
            any_realm_lord = {
                NOT = {
                    religion = ROOT
                }
            }
        }
        # Negative
        modifier = {
            factor = 0.65
            has_religion_feature = religion_jizya
            NOT = {
                any_realm_lord = {
                    religion = ROOT
                }
            }
        }
        ## Monastic ##
        # Positive
        modifier = {
            factor = 1.5
            has_religion_feature = religion_monastic
            learning = 20
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_monastic
            trait = celibate
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_monastic
            trait = erudite
        }
        # Negative
        modifier = {
            factor = 0.65
            has_religion_feature = religion_monastic
            NOT = {
                learning = 15
            }
        }
        ## Syncretic ##
        # Positive
        modifier = {
            factor = 1.5
            has_religion_feature = religion_syncretic
            has_any_sympathy_trait_trigger = yes
        }
        # Negative
        modifier = {
            factor = 0.65
            has_religion_feature = religion_syncretic
            NOT = {
                has_any_sympathy_trait_trigger = yes
            }
        }
        ## Haruspicy ##
        # Positive
        modifier = {
            factor = 1.5
            has_religion_feature = religion_haruspicy
            trait = zealous
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_haruspicy
            trait = holy_warrior
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_haruspicy
            martial = 15
            learning = 15
        }
        # Negative
        modifier = {
            factor = 0.65
            has_religion_feature = religion_haruspicy
            trait = cynical
        }
        modifier = {
            factor = 0.65
            has_religion_feature = religion_haruspicy
            NOR = {
                martial = 15
                learning = 15
            }
        }
        ## Astrology ##
        # Positive
        modifier = {
            factor = 1.5
            has_religion_feature = religion_astrology
            has_any_astrology_trait_trigger = yes
        }
        # Negative
        modifier = {
            factor = 0.65
            has_religion_feature = religion_astrology
            NOT = {
                has_any_astrology_trait_trigger = yes
            }
        }
        ## Ritual Sacrifice ##
        # Positive
        modifier = {
            factor = 1.5
            has_religion_feature = religion_ritual_sacrifice
            trait = impaler
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_ritual_sacrifice
            trait = cruel
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_ritual_sacrifice
            OR = {
                trait = bloodthirsty_gods_1
                trait = bloodthirsty_gods_2
                trait = bloodthirsty_gods_3
            }
        }
        # Negative
        modifier = {
            factor = 0.65
            has_religion_feature = religion_ritual_sacrifice
            NOR = {
                trait = impaler
                trait = cruel
            }
        }
        modifier = {
            factor = 0.2
            has_religion_feature = religion_ritual_sacrifice
            NOR = {
                trait = bloodthirsty_gods_1
                trait = bloodthirsty_gods_2
                trait = bloodthirsty_gods_3
            }
        }
        ## Adventuring & Sea-faring ##
        # Positive
        modifier = {
            factor = 1.5
            OR = {
                has_religion_feature = religion_adventuring
                has_religion_feature = religion_seafaring
            }
            OR = {
                trait = pirate
                trait = viking
                trait = ravager
                trait = sea_queen
                trait = seaking
            }
        }
        # Negative
        modifier = {
            factor = 0.65
            OR = {
                has_religion_feature = religion_adventuring
                has_religion_feature = religion_seafaring
            }
            NOR = {
                trait = pirate
                trait = viking
                trait = ravager
                trait = sea_queen
                trait = seaking
            }
        }
        ## Unrelenting ##
        # Positive
        modifier = {
            factor = 1.5
            has_religion_feature = religion_relentless
            martial = 20
        }
        modifier = {
            factor = 1.5
            has_religion_feature = religion_relentless
            has_any_leadership_trait_trigger = yes
        }
        # Negative
        modifier = {
            factor = 0.65
            has_religion_feature = religion_relentless
            NOT = {
                martial = 15
            }
        }
        modifier = {
            factor = 0.65
            has_religion_feature = religion_relentless
            NOT = {
                has_any_leadership_trait_trigger = yes
            }
        }
                ####Increase Chance if No Ancestor Worshipping Bloodlines ####
        modifier = {
            factor = 2
            any_owned_bloodline = {
                has_bloodline_flag = ancestor_worship_bloodline
                count = 0
            }
        }
        #### Reduce chance if already have other Ancestor Worshipping Bloodlines ####
        modifier = {
            factor = 0.8
            any_owned_bloodline = {
                has_bloodline_flag = ancestor_worship_bloodline
                count = 1
            }
        }
        modifier = {
            factor = 0.8
            any_owned_bloodline = {
                has_bloodline_flag = ancestor_worship_bloodline
                count = 2
            }
        }
        modifier = {
            factor = 0.8
            any_owned_bloodline = {
                has_bloodline_flag = ancestor_worship_bloodline
                count = 3
            }
        }
        modifier = {
            factor = 0.8
            any_owned_bloodline = {
                has_bloodline_flag = ancestor_worship_bloodline
                count = 4
            }
        }
        modifier = {
            factor = 0.8
            any_owned_bloodline = {
                has_bloodline_flag = ancestor_worship_bloodline
                count = 5
            }
        }

        set_character_flag = blessed_ancestor_prestige
        rightful_religious_head_scope = {
            character_event = { id = HF.40101 days = 0 }
        }
    }
}

HF_ancestor_worship_events
Code:
namespace = HF

# Written by Joachim
# HF.40100 - HF.40199

# Check if a character is eligible for Worshipping
character_event = {
    id = HF.40100
    hide_window = yes
    is_triggered_only = yes
    has_dlc = "Holy Fury"
    only_playable = yes
    min_age = 16

    trigger = {
        death_in_china_trigger = no
        death_no_trace_trigger = no
        prestige = 1000
        is_adult = yes
      
            has_religion_feature = religion_beatification
          
        OR = {
            has_religion_feature = religion_temporal_head
            has_religion_feature = religion_theocratic_head
            has_religion_feature = religion_autocephaly
            
        }
    }

    immediate = {
        save_event_target_as = saint_person

        check_if_ancestor_worship_worthy_effect = yes
    }
}

# Religious Head is notified about potential Ancestor material
character_event = {
    id = HF.40101
    desc = EVTDESC_HF_40020_B
    picture = GFX_evt_council
    border = GFX_event_normal_frame_religion
    is_triggered_only = yes
    trigger = {
    
    }

    immediate = {
        sound_effect = saint_proclaimed
        save_event_target_as = canonizer_person
    }

    option = {     
        name = EVTOPTA_HF_40020
        custom_tooltip = {
            text = pagan_pope_cannonize_choice_TT

            # Titles and Bloodlines
            event_target:saint_person = {
                set_special_character_title = BLESSED_TITLE

                random_list = {
                    10 = {
                        modifier = {
                            factor = 0.4
                            any_owned_bloodline = {
                                has_bloodline_flag = bloodline_heroes
                            }
                        }
                        if = {
                            limit = {
                                is_female = yes
                            }
                            create_bloodline = {
                                type = ancestor_worship_bloodline_01
                                religion = event_target:saint_person
                                inheritance = all_descendants
                            }
                        }
                        else = {
                            create_bloodline = {
                                type = ancestor_worship_bloodline_01
                                religion = event_target:saint_person
                            }
                        }
                        if = {
                            limit = {
                                can_apply_average_nickname_trigger = yes
                            }
                            give_nickname = nick_the_great
                        }
                    }
                    30 = {
                        trigger = {
                            OR = {
                                trait = bastard
                                trait = legit_bastard
                            }
                        }
                        modifier = {
                            factor = 0.1
                            any_owned_bloodline = {
                                has_bloodline_flag = bloodline_legitimize
                            }
                        }
                        if = {
                            limit = {
                                is_female = yes
                                NOT = { has_global_flag = bloodline_inheritance_fixes }
                            }
                            create_bloodline = {
                                type = ancestor_worship_bloodline_02
                                religion = event_target:saint_person
                                inheritance = all_descendants
                            }
                        }
                        else = {
                            create_bloodline = {
                                type = ancestor_worship_bloodline_02
                                religion = event_target:saint_person
                            }
                        }
                        if = {
                            limit = {
                                can_apply_lame_nickname_trigger = yes
                            }
                            give_nickname = nick_the_bastard
                        }
                    }
                    40 = {
                        trigger = {
                            OR = {
                                religion = tengri_pagan
                                religion = tengri_pagan_reformed
                                religion = bon
                                religion = bon_reformed
                                trait = falconer
                                trait = hunter
                            }
                        }
                        modifier = {
                            factor = 0.2
                            any_owned_bloodline = {
                                has_bloodline_flag = bloodline_sky_burial
                            }
                        }
                        if = {
                            limit = {
                                is_female = yes
                            }
                            create_bloodline = {
                                type = ancestor_worship_bloodline_03
                                religion = event_target:saint_person
                                inheritance = all_descendants
                            }
                        }
                        else = {
                            create_bloodline = {
                                type = ancestor_worship_bloodline_03
                                religion = event_target:saint_person
                            }
                        }
                        if = {
                            limit = {
                                can_apply_average_nickname_trigger = yes
                            }
                            give_nickname = nick_the_guide
                        }
                    }
                    30 = {
                        trigger = {
                            OR = {
                            government = nomadic_government
                            trait = adventurer
                            trait = peasant_leader
                            trait = varangian
                            trait = inspiring_leader
                            }
                        }
                        modifier = {
                            factor = 0.1
                            any_owned_bloodline = {
                                has_bloodline_flag = bloodline_mercenary_traditions
                            }
                        }
                        if = {
                            limit = {
                                is_female = yes
                            }
                            create_bloodline = {
                                type = ancestor_worship_bloodline_04
                                religion = event_target:saint_person
                                inheritance = all_descendants
                            }
                        }
                        else = {
                            create_bloodline = {
                                type = ancestor_worship_bloodline_04
                                religion = event_target:saint_person
                            }
                        }
                        if = {
                            limit = {
                                can_apply_cool_nickname_trigger = yes
                            }
                            give_nickname = nick_the_scourge
                        }
                    }
                    60 = {
                        trigger = {
                            OR = {
                                has_law = succ_tanistry
                                trait = twin
                                AND = {
                                    trait = socializer
                                    OR = {
                                        trait = child_of_consort
                                        trait = child_of_consort_male
                                        }
                                    }
                                }
                        }
                        modifier = {
                            factor = 0.1
                            any_owned_bloodline = {
                                has_bloodline_flag = bloodline_tanistry
                            }
                        }
                        if = {
                            limit = {
                                is_female = yes
                            }
                            create_bloodline = {
                                type = ancestor_worship_bloodline_05
                                religion = event_target:saint_person
                                inheritance = all_descendants
                            }
                        }
                        else = {
                            create_bloodline = {
                                type = ancestor_worship_bloodline_05
                                religion = event_target:saint_person
                            }
                        }
                        if = {
                            limit = {
                                can_apply_cool_nickname_trigger = yes
                            }
                            give_nickname = nick_the_lawgiver
                        }
                    }
                    35 = {
                        trigger = {
                            OR = {
                                trait = pirate
                                trait = viking
                                trait = ravager
                                trait = sea_queen
                                trait = seaking
                            }
                        }
                        modifier = {
                            factor = 0.4
                            any_owned_bloodline = {
                                has_bloodline_flag = more_raiders_bloodline
                                bloodline_is_active_for = PREV
                            }
                        }
                        if = {
                            limit = {
                                is_female = yes
                            }
                            create_bloodline = {
                                type = ancestor_worship_bloodline_06
                                religion = event_target:saint_person
                                inheritance = all_descendants
                            }
                        }
                        else = {
                            create_bloodline = {
                                type = ancestor_worship_bloodline_06
                                religion = event_target:saint_person
                            }
                        }
                        if = {
                            limit = {
                                can_apply_cool_nickname_trigger = yes
                                is_female = yes
                            }
                            give_nickname = nick_the_valkyrie
                        }
                        if = {
                            limit = {
                                can_apply_cool_nickname_trigger = yes
                                is_female = no
                            }
                            give_nickname = the_unrestrained
                        }
                    }
                    
                    35 = {
                        trigger = {
                            trait = duelist
                        }
                        modifier = {
                            factor = 0.4
                            any_owned_bloodline = {
                                has_bloodline_flag = duelist_bloodline
                            }
                        }
                        if = {
                            limit = {
                                is_female = yes
                            }
                            create_bloodline = {
                                type = ancestor_worship_bloodline_07
                                religion = event_target:saint_person
                                inheritance = all_descendants
                            }
                        }
                        else = {
                            create_bloodline = {
                                type = ancestor_worship_bloodline_07
                                religion = event_target:saint_person
                            }
                        }
                        if = {
                            limit = {
                                can_apply_average_nickname_trigger = yes
                            }
                            give_nickname = nick_bloodaxe
                        }
                    }
                    40 = {
                    trigger = {
                        
                            OR = {
                                trait = zealous
                                trait = holy_warrior
                                trait = ares_own
                                trait = eagle_warrior
                                trait = romuvas_own
                                trait = peruns_chosen
                                trait = tengri_warrior
                                trait = ukkos_shield
                                trait = sun_warrior
                                trait = kailash_guardian
                                trait = shieldmaiden
                                trait = child_of_garki_baba
                                trait = shield_of_roog
                                trait = heir_of_dihya
                            }
                        
                    }
                    
                      
                        if = {
                            limit = {
                                religion = norse_pagan_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_germanic_01
                                    religion = norse_pagan_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_germanic_01
                                    religion = norse_pagan_reformed
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                religion = baltic_pagan_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_romuva_01
                                    religion = baltic_pagan_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_romuva_01
                                    religion = baltic_pagan_reformed
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                religion = slavic_pagan_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_slavic_01
                                    religion = slavic_pagan_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_slavic_01
                                    religion = slavic_pagan_reformed
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                religion = tengri_pagan_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_tengri_01
                                    religion = tengri_pagan_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_tengri_01
                                    religion = tengri_pagan_reformed
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                religion = finnish_pagan_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_suomenusko_01
                                    religion = finnish_pagan_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_suomenusko_01
                                    religion = finnish_pagan_reformed
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                religion = aztec_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_aztec_01
                                    religion = aztec_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_aztec_01
                                    religion = aztec_reformed
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                OR = {
                                    religion = west_african_pagan_reformed
                                    religion = bori
                                    religion = a_tag_roog_reformed
                                    religion = amazigh_reformed
                                }
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_african_01
                                    religion = event_target:saint_person
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_african_01
                                    religion = event_target:saint_person
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                religion = zun_pagan_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_zun_01
                                    religion = zun_pagan_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_zun_01
                                    religion = zun_pagan_reformed
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                religion = hellenic_pagan_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_hellenic_01
                                    religion = hellenic_pagan_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_hellenic_01
                                    religion = hellenic_pagan_reformed
                                }
                            }
                        }
                        else = {
                            limit = {
                                religion = bon_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_bon_01
                                    religion = bon_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_bon_01
                                    religion = bon_reformed
                                }
                            }
                        }
                    
                        if = {
                            limit = {
                                can_apply_average_nickname_trigger = yes
                            }
                            give_nickname = nick_the_fearless
                        }
                }
                    10 = {
                        if = {
                            limit = {
                                religion = norse_pagan_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_germanic_03
                                    religion = norse_pagan_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_germanic_03
                                    religion = norse_pagan_reformed
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                religion = baltic_pagan_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_romuva_03
                                    religion = baltic_pagan_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_romuva_03
                                    religion = baltic_pagan_reformed
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                religion = slavic_pagan_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_slavic_03
                                    religion = slavic_pagan_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_slavic_03
                                    religion = slavic_pagan_reformed
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                religion = tengri_pagan_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_tengri_03
                                    religion = tengri_pagan_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_tengri_03
                                    religion = tengri_pagan_reformed
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                religion = finnish_pagan_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_suomenusko_03
                                    religion = finnish_pagan_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_suomenusko_03
                                    religion = finnish_pagan_reformed
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                religion = aztec_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_aztec_03
                                    religion = aztec_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_aztec_03
                                    religion = aztec_reformed
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                OR = {
                                    religion = west_african_pagan_reformed
                                    religion = bori
                                    religion = a_tag_roog_reformed
                                    religion = amazigh_reformed
                                }
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_african_03
                                    religion = event_target:saint_person
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_african_03
                                    religion = event_target:saint_person
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                religion = zun_pagan_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_zun_03
                                    religion = zun_pagan_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_zun_03
                                    religion = zun_pagan_reformed
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                religion = hellenic_pagan_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_hellenic_03
                                    religion = hellenic_pagan_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_hellenic_03
                                    religion = hellenic_pagan_reformed
                                }
                            }
                        }
                        else = {
                            limit = {
                                religion = bon_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_bon_03
                                    religion = bon_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_bon_03
                                    religion = bon_reformed
                                }
                            }
                        }
                      
                        if = {
                            limit = {
                                can_apply_average_nickname_trigger = yes
                            }
                            give_nickname = nick_the_righteous
                        }
                    }
                    30 = {
                        trigger = {
                            OR = {
                                trait = zealous
                                trait = holy_warrior
                                trait = ares_own
                                trait = eagle_warrior
                                trait = romuvas_own
                                trait = peruns_chosen
                                trait = tengri_warrior
                                trait = ukkos_shield
                                trait = sun_warrior
                                trait = kailash_guardian
                                trait = shieldmaiden
                            }
                        }
                        if = {
                            limit = {
                                religion = norse_pagan_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_germanic_04
                                    religion = norse_pagan_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_germanic_04
                                    religion = norse_pagan_reformed
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                religion = baltic_pagan_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_romuva_04
                                    religion = baltic_pagan_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_romuva_04
                                    religion = baltic_pagan_reformed
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                religion = slavic_pagan_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_slavic_04
                                    religion = slavic_pagan_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_slavic_04
                                    religion = slavic_pagan_reformed
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                religion = tengri_pagan_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_tengri_04
                                    religion = tengri_pagan_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_tengri_04
                                    religion = tengri_pagan_reformed
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                religion = finnish_pagan_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_suomenusko_04
                                    religion = finnish_pagan_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_suomenusko_04
                                    religion = finnish_pagan_reformed
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                religion = aztec_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_aztec_04
                                    religion = aztec_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_aztec_04
                                    religion = aztec_reformed
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                OR = {
                                    religion = west_african_pagan_reformed
                                    religion = bori
                                    religion = a_tag_roog_reformed
                                    religion = amazigh_reformed
                                }
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_african_04
                                    religion = event_target:saint_person
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_african_04
                                    religion = event_target:saint_person
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                religion = zun_pagan_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_zun_04
                                    religion = zun_pagan_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_zun_04
                                    religion = zun_pagan_reformed
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                religion = hellenic_pagan_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_hellenic_04
                                    religion = hellenic_pagan_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_hellenic_04
                                    religion = hellenic_pagan_reformed
                                }
                            }
                        }
                        else = {
                            limit = {
                                religion = bon_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_bon_04
                                    religion = bon_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_bon_04
                                    religion = bon_reformed
                                }
                            }
                        }
                        if = {
                            limit = {
                                can_apply_average_nickname_trigger = yes
                            }
                            give_nickname = nick_the_avenger
                        }
                    }
                    50 = {
                        trigger = {
                            OR = {
                                trait = sympathy_christendom
                                trait = sympathy_islam
                                trait = sympathy_judaism
                                trait = sympathy_zoroastrianism
                                trait = sympathy_indian
                            }
                        }
                        if = {
                            limit = {
                                religion = norse_pagan_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_germanic_05
                                    religion = norse_pagan_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_germanic_05
                                    religion = norse_pagan_reformed
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                religion = baltic_pagan_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_romuva_05
                                    religion = baltic_pagan_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_romuva_05
                                    religion = baltic_pagan_reformed
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                religion = slavic_pagan_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_slavic_05
                                    religion = slavic_pagan_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_slavic_05
                                    religion = slavic_pagan_reformed
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                religion = tengri_pagan_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_tengri_05
                                    religion = tengri_pagan_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_tengri_05
                                    religion = tengri_pagan_reformed
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                religion = finnish_pagan_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_suomenusko_05
                                    religion = finnish_pagan_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_suomenusko_05
                                    religion = finnish_pagan_reformed
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                religion = aztec_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_aztec_05
                                    religion = aztec_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_aztec_05
                                    religion = aztec_reformed
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                OR = {
                                    religion = west_african_pagan_reformed
                                    religion = bori
                                    religion = a_tag_roog_reformed
                                    religion = amazigh_reformed
                                }
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_african_05
                                    religion = event_target:saint_person
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_african_05
                                    religion = event_target:saint_person
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                religion = zun_pagan_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_zun_05
                                    religion = zun_pagan_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_zun_05
                                    religion = zun_pagan_reformed
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                religion = hellenic_pagan_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_hellenic_05
                                    religion = hellenic_pagan_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_hellenic_05
                                    religion = hellenic_pagan_reformed
                                }
                            }
                        }
                        else = {
                            limit = {
                                religion = bon_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_bon_05
                                    religion = bon_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_bon_05
                                    religion = bon_reformed
                                }
                            }
                        }
                        if = {
                            limit = {
                                can_apply_average_nickname_trigger = yes
                            }
                            give_nickname = nick_the_wise
                        }
                    }
                    10 = {
                        if = {
                            limit = {
                                religion = norse_pagan_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_germanic_06
                                    religion = norse_pagan_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_germanic_06
                                    religion = norse_pagan_reformed
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                religion = baltic_pagan_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_romuva_06
                                    religion = baltic_pagan_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_romuva_06
                                    religion = baltic_pagan_reformed
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                religion = slavic_pagan_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_slavic_06
                                    religion = slavic_pagan_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_slavic_06
                                    religion = slavic_pagan_reformed
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                religion = tengri_pagan_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_tengri_06
                                    religion = tengri_pagan_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_tengri_06
                                    religion = tengri_pagan_reformed
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                religion = finnish_pagan_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_suomenusko_06
                                    religion = finnish_pagan_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_suomenusko_06
                                    religion = finnish_pagan_reformed
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                religion = aztec_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_aztec_06
                                    religion = aztec_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_aztec_06
                                    religion = aztec_reformed
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                OR = {
                                    religion = west_african_pagan_reformed
                                    religion = bori
                                    religion = a_tag_roog_reformed
                                    religion = amazigh_reformed
                                }
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_african_06
                                    religion = event_target:saint_person
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_african_06
                                    religion = event_target:saint_person
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                religion = zun_pagan_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_zun_06
                                    religion = zun_pagan_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_zun_06
                                    religion = zun_pagan_reformed
                                }
                            }
                        }
                        else_if = {
                            limit = {
                                religion = hellenic_pagan_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_hellenic_06
                                    religion = hellenic_pagan_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_hellenic_06
                                    religion = hellenic_pagan_reformed
                                }
                            }
                        }
                        else = {
                            limit = {
                                religion = bon_reformed
                            }
                            if = {
                                limit = {
                                    is_female = yes
                                }
                                create_bloodline = {
                                    type = saintly_bloodline_bon_06
                                    religion = bon_reformed
                                    inheritance = all_descendants
                                }
                            }
                            else = {
                                create_bloodline = {
                                    type = saintly_bloodline_bon_06
                                    religion = bon_reformed
                                }
                            }
                        }
                        if = {
                            limit = {
                                can_apply_average_nickname_trigger = yes
                            }
                            give_nickname = nick_the_pious
                        }
                    }
                    65 = {
                        trigger = {
                            trait = zealous
                            trait = holy_warrior
                                OR = {
                                    trait = nyames_shield
                                    trait = child_of_garki_baba
                                    trait = shield_of_roog
                                    trait = heir_of_dihya
                                }
                        }
                        if = {
                            limit = {
                                    OR = {
                                    religion = west_african_pagan_reformed
                                    religion = bori
                                    religion = a_tag_roog_reformed
                                    religion = amazigh_reformed
                                }
                            }
                            create_bloodline = {
                            type = saintly_bloodline_african_12
                            religion = event_target:saint_person
                                }
                            }
                        }
                        65 = {
                        trigger ={
                            trait = holy_warrior
                            trait = zealous
                            trait = ares_own
                            }
                        if = {
                            limit = {
                                religion = hellenic_pagan_reformed
                                }
                            create_bloodline = {
                            type = saintly_bloodline_hellenic_12
                            religion = event_target:saint_person
                                }
                            }
                        }
                        65 = {
                        trigger ={
                            trait = holy_warrior
                            trait = zealous
                            trait = eagle_warrior
                            }
                        if = {
                            limit = {
                                religion = aztec_reformed
                                }
                            create_bloodline = {
                            type = saintly_bloodline_aztec_12
                            religion = event_target:saint_person
                                }
                            }
                        }
                        65 = {
                        trigger ={
                            trait = holy_warrior
                            trait = zealous
                            trait = romuvas_own
                            }
                        if = {
                            limit = {
                                religion = baltic_pagan_reformed
                                }
                            create_bloodline = {
                            type = saintly_bloodline_romuva_12
                            religion = event_target:saint_person
                                }
                            }
                        }
                        65 = {
                        trigger ={
                            trait = holy_warrior
                            trait = zealous
                            trait = peruns_chosen
                            }
                        if = {
                            limit = {
                                religion = slavic_pagan_reformed
                                }
                            create_bloodline = {
                            type = saintly_bloodline_slavic_12
                            religion = event_target:saint_person
                                }
                            }
                        }
                        65 = {
                        trigger ={
                            trait = holy_warrior
                            trait = zealous
                            trait = tengri_warrior
                            }
                        if = {
                            limit = {
                                religion = tengri_pagan_reformed
                                }
                            create_bloodline = {
                            type = saintly_bloodline_tengri_12
                            religion = event_target:saint_person
                                }
                            }
                        }
                        65 = {
                        trigger ={
                            trait = holy_warrior
                            trait = zealous
                            trait = ukkos_shield
                            }
                        if = {
                            limit = {
                                religion = finnish_pagan_reformed
                                }
                            create_bloodline = {
                            type = saintly_bloodline_suomenusko_12
                            religion = event_target:saint_person
                                }
                            }
                        }
                        65 = {
                        trigger ={
                            trait = holy_warrior
                            trait = zealous
                            trait = valhalla_bound
                            }
                        if = {
                            limit = {
                                religion = norse_pagan_reformed
                                }
                            create_bloodline = {
                            type = saintly_bloodline_germanic_12
                            religion = event_target:saint_person
                                }
                            }
                        }
                        65 = {
                        trigger ={
                            trait = holy_warrior
                            trait = zealous
                            trait = sun_warrior
                            }
                        if = {
                            limit = {
                                religion = zun_pagan_reformed
                                }
                            create_bloodline = {
                            type = saintly_bloodline_zun_12
                            religion = event_target:saint_person
                                }
                            }
                        }
                        65 = {
                        trigger ={
                            trait = holy_warrior
                            trait = zealous
                            trait = kailash_guardian
                            }
                        if = {
                            limit = {
                                religion = bon_reformed
                                }
                            create_bloodline = {
                            type = saintly_bloodline_bon_12
                            religion = event_target:saint_person
                                }
                            }
                        }
                        15 = {
                            trigger = {
                            trait = cruel
                            OR = {
                                trait = bloodthirsty_gods_1
                                trait = bloodthirsty_gods_2
                                trait = bloodthirsty_gods_3
                                }
                            }
                            if = {
                                limit = {
                                        OR = {
                                            has_religion_feature = religion_ritual_sacrifice
                                            has_religion_feature = religion_feature_aztec
                                        }
                                    }
                                create_bloodline = {
                                type = ancestor_worship_bloodline_20
                                religion = event_target:saint_person
                                    }
                                }
                            }
                        15 = {
                        trigger = {
                            trait = patient
                            }
                            if = {
                                limit = {
                                    OR = {
                                        has_religion_feature = religion_defensive
                                        religion = bori
                                        }
                                    }
                                create_bloodline = {
                                type = ancestor_worship_bloodline_21
                                religion = event_target:saint_person
                                    }
                                }
                            }
                        15 = {
                        trigger = {
                            trait = kind
                            }
                            if = {
                                limit = {
                                    OR = {
                                        has_religion_feature = religion_peaceful
                                        religion = bori
                                        }
                                }
                                create_bloodline = {
                                type = ancestor_worship_bloodline_22
                                religion = event_target:saint_person
                                  }
                            }
                        }
                        15 = {
                        trigger = {
                            trait = just
                                }
                            if = {
                                limit = {
                                    OR = {
                                        has_religion_feature = religion_equal
                                        religion = bori
                                        }
                                }
                                create_bloodline = {
                                type = ancestor_worship_bloodline_23
                                religion = event_target:saint_person
                                }
                            }
                        }
                        15 = {
                            trigger = {
                                OR = {
                                trait = skilled_tactician
                                trait = brilliant_strategist
                                }
                            }
                            if = {
                                limit = {
                                    OR = {
                                    has_religion_feature = religion_feature_slavic
                                    has_religion_feature = religion_feature_finnish
                                    has_religion_feature = religion_feature_baltic
                                    }
                                }
                                create_bloodline = {
                                type = ancestor_worship_bloodline_24
                                religion = event_target:saint_person
                                }
                            }
                        }
                        
                        15 = {
                            trigger = {
                                OR = {
                                    trait = charismatic_negotiator
                                    trait = grey_eminence
                                    }
                            }
                            if = {
                                limit = {
                                    OR = {
                                    has_religion_feature = religion_feature_slavic
                                    has_religion_feature = religion_feature_finnish
                                    has_religion_feature = religion_feature_baltic
                                    }
                                }
                                create_bloodline = {
                                type = ancestor_worship_bloodline_25
                                religion = event_target:saint_person
                                }
                            }
                        }
                        
                        15 = {
                            trigger = {
                                OR = {
                                    trait = intricate_webweaver
                                    trait = elusive_shadow
                                    }
                            }
                            if = {
                                limit = {
                                    OR = {
                                    has_religion_feature = religion_feature_slavic
                                    has_religion_feature = religion_feature_finnish
                                    has_religion_feature = religion_feature_baltic
                                    }
                                }
                                create_bloodline = {
                                type = ancestor_worship_bloodline_26
                                religion = event_target:saint_person
                                }
                            }
                        }
                        15 = {
                            trigger = {
                                OR = {
                                    trait = fortune_builder
                                    trait = midas_touched
                                    }
                            }
                            if = {
                                limit = {
                                    OR = {
                                    has_religion_feature = religion_feature_slavic
                                    has_religion_feature = religion_feature_finnish
                                    has_religion_feature = religion_feature_baltic
                                    }
                                }
                                create_bloodline = {
                                type = ancestor_worship_bloodline_27
                                religion = event_target:saint_person
                                }
                            }
                        }
                            
                                    
                            
                                
                                
                                
                }
                new_bloodline = {
                    set_name = blessed_bloodline_name
                    set_description = blessed_bloodline_description
                }
            }
            hidden_tooltip = {
                # Messages
                any_playable_ruler = {
                    limit = {
                        NOT = {
                            family = event_target:saint_person
                        }
                        religion = ROOT
                    }
                    narrative_event = { id = HF.40025 }
                }
                event_target:saint_person = {
                    any_dynasty_member = {
                        limit = {
                            religion_group = ROOT
                        }
                        narrative_event = { id = HF.40025 }
                    }
                }
                ROOT = {
                    narrative_event = { id = HF.40025 }
                }
            }
        }
    }
    option = {     
        name = EVTOPTB_HF_40020
    }
}
# Test Script
character_event = {
    id = HF.40105
    hide_window = yes
    is_triggered_only = yes
    trigger = {
    
    }

    immediate = {
        save_event_target_as = saint_person

        character_event = { id = HF.40101 }
    }
}

I also have a saved game where I didn't get a bloodline and saved a screenshot:
ck2_118.png


This was run with the African Religions Overhaul mod but I don't think that's the problem. At any rate I get the double bloodlines playing as Sigurd Ring as well.

Any aid will be appreciated. Thanks.
 
So this is why I shouldn't post when I haven't slept yet: I just remembered that most of the times I got the double bloodlines were using the console kill command. That might be part of the reason somehow.
 
I waited and let my character die of natural causes and I still got double bloodlines. No one has complained about it on steam so maybe I shouldn't care either lol.