code:
regula_dna_test = {
    usage = game
    dna_change_example_modifier = {
        dna_modifiers = {

            accessory = {
				mode = replace
				gene = regula_eye_accessory
				template = regula_sclera_pink
				value = 1.0
			}
            color = {
                gene = eye_color
                mode = modify

                x = -0.5
                y = -0.5
            }
            # accessory = {
            #     mode = add
            #     gene = hairstyles
            #     template = western_hairstyles_straight

            #     value = 1.0
            # }
            # color = {
            #     gene = eye_color
            #     mode = modify

            #     x = -1
            #     y = -1
            # }
			# color = {
			# 	gene = skin_color
			# 	mode = replace

			# 	x = 1
			# 	y = 0.33

			# }
            # color = {
            #     gene = hair_color
            #     mode = modify
            #     x = 0.0
            #     y = 0.99
            # }
        }
        weight = {
            base = 0
            modifier = {
                add = 100
                has_character_flag = dna_change_example_modifier
            }
        }
    }
}

# Changes eyes based on charm status
regula_charmed_portrait = {

    contubernalis_portrait = {
        dna_modifiers = {
            accessory = {
				mode = replace
				gene = eye_accessory
				template = regula_sclera_pink
                value = 1.0
			}
            color = {
                gene = eye_color
                mode = modify

                x = -1
                y = -1
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 100
                has_trait = contubernalis
            }
            modifier = {
                add = -100
                has_game_rule = regula_portraits_compeditae_disabled
            }
        }
    }

    mulsa_portrait = {
        dna_modifiers = {
            accessory = {
                mode = replace
                gene = eye_accessory
                template = regula_violet_eyes
                value = 1.0
            }
            color = {
                gene = eye_color
                mode = modify

                x = -1
                y = -1
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 100
                has_trait = mulsa
            }
            modifier = {
                add = -100
                has_game_rule = regula_portraits_compeditae_disabled
            }
        }
    }

    paelex_portrait = {
        dna_modifiers = {
            accessory = {
				mode = replace
				gene = eye_accessory
				template = regula_pink_eyes
                value = 1.0
			}
            color = {
                gene = eye_color
                mode = replace

                x = 1
                y = 0.01
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 100
                has_trait = paelex
            }
            modifier = {
                add = 100
                has_trait = domina
            }
            modifier = {
                add = -100
                has_game_rule = regula_portraits_compeditae_disabled
            }
            modifier = {
                add = -100
                has_character_flag = regula_goddess_diplomacy_trait
            }
            modifier = {
                add = -100
                has_character_flag = regula_goddess_intrigue_trait
            }
            modifier = {
                add = -100
                has_character_flag = regula_goddess_learning_trait
            }
            modifier = {
                add = -100
                has_character_flag = regula_goddess_martial_trait
            }
            modifier = {
                add = -100
                has_character_flag = regula_goddess_stewardship_trait
            }
        }
    }
}

regula_blindfold= {
    blindfold = {
        dna_modifiers = {
			accessory = {
				mode = add
				gene = special_headgear_blindfold
				template = blindfold
				value = 0.5
			}
	    }
        outfit_tags = { regula_blindfold }
        weight = -100
    }
}

regula_goddess_diplomacy_portrait = {
    usage = game
    dna_change_example_modifier = {
        dna_modifiers = {
            # accessory = {
			# 	mode = modify
			# 	gene = eye_accessory
			# 	template = blind_eyes
			# 	value = 1.0
			# }
            accessory = {
				mode = replace
				gene = eye_accessory
				template = regula_violet_eyes
                value = 1.0

			}
            color = {
                gene = eye_color
                mode = modify

                x = -1
                y = -1
            }
            accessory = {
                mode = add
                gene = hairstyles
                template = western_hairstyles_straight

                value = 1.0
            }
            # color = {
            #     gene = eye_color
            #     mode = replace

            #     x = 0.015
            #     y = 0.5
            # }
			color = {
				gene = skin_color
				mode = replace

				# x = 0.12
				# y = 0.688

                x = 0.64
                y = 0.1
			}
            color = {
                gene = hair_color
                mode = replace
                x = 0.13
                y = 0.12
            }
            # genes = {
            #     mode = replace
            #     hair_color = { 0 255 0 255}
            #     skin_color = { 251 255 251 255 }
            #     eye_color = { 12 14 12 14}
            # }
        }
        weight = {
            base = 0
            modifier = {
                add = 100
                has_character_flag = regula_goddess_diplomacy_trait
            }
            modifier = {
                add = -100
                has_game_rule = regula_portraits_compeditae_disabled
            }
        }
    }
}

regula_goddess_intrigue_portrait = {
    usage = game
    dna_change_example_modifier = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = hairstyles
                template = indian_hairstyles_curly

                value = 1.0
            }
            accessory = {
				mode = modify
				gene = eye_accessory
				template = bloodshot_eyes
                value = 1.0

			}
            color = {
                gene = eye_color
                mode = replace

                x = 0.35
                y = 0.8
            }
			color = {
				gene = skin_color
				mode = replace

				x = 0.5
				y = 0.05

			}
            color = {
                gene = hair_color
                mode = replace
                x = 0
                y = 0
            }
            # genes = {
            #     mode = replace
            #     hair_color = { 0 255 0 255}
            #     skin_color = { 251 255 251 255 }
            #     eye_color = { 12 14 12 14}
            # }
        }
        weight = {
            base = 0
            modifier = {
                add = 100
                has_character_flag = regula_goddess_intrigue_trait
            }
            modifier = {
                add = -100
                has_game_rule = regula_portraits_compeditae_disabled
            }
        }
    }
}

regula_goddess_learning_portrait = {
    usage = game
    dna_change_example_modifier = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = hairstyles
                template = sub_saharan_hairstyles_straight
                value = 0.5
            }
            accessory = {
				mode = modify
				gene = eye_accessory
				template = no_eyes
				value = 1.0
			}
			color = {
				gene = skin_color
				mode = replace

				# x = 0.156
				# y = 0.5

                x = 0.51
                y = 0.06

			}
            color = {  # Stewardship, fix hair colour to gold
                gene = hair_color
                mode = replace
                x = 0.10
                y = 0.99
            }
            # genes = {
            #     mode = replace
            #     hair_color = { 0 255 0 255}
            #     skin_color = { 251 255 251 255 }
            #     eye_color = { 12 14 12 14}
            # }
        }
        weight = {
            base = 0
            modifier = {
                add = 100
                has_character_flag = regula_goddess_learning_trait
            }
            modifier = {
                add = -100
                has_game_rule = regula_portraits_compeditae_disabled
            }
        }
    }
}

regula_goddess_martial_portrait = {
    usage = game
    dna_change_example_modifier = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = hairstyles
                template = mena_hairstyles_wavy
                value = 1.0
            }
            color = {
                gene = eye_color
                mode = replace

                x = 0.15
                y = 0.0
            }
			color = {
				gene = skin_color
				mode = replace

				# x = 0.082
				# y = 0.527

                x = 0.8
                y = 0.18

			}
            color = {
                gene = hair_color
                mode = replace
                x = 0.05
                y = 0.3
            }
            # genes = {
            #     mode = replace
            #     hair_color = { 0 255 0 255}
            #     skin_color = { 251 255 251 255 }
            #     eye_color = { 12 14 12 14}
            # }
        }
        weight = {
            base = 0
            modifier = {
                add = 100
                has_character_flag = regula_goddess_martial_trait
            }
            modifier = {
                add = -100
                has_game_rule = regula_portraits_compeditae_disabled
            }
        }
    }
}

regula_goddess_stewardship_portrait = {
    usage = game
    dna_change_example_modifier = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = hairstyles
                template = mena_hairstyles_straight

                value = 1.0
            }
            color = {
                gene = eye_color
                mode = replace

                x = 0.35
                y = 0.3
            }
			color = {
				gene = skin_color
				mode = replace

				# x = 0.121
				# y = 0.625

                x = 1.0
                y = 0.012

            }
            color = {  # Stewardship, fix hair colour to gold  95 6
                gene = hair_color
                mode = replace
                x = 0.08
                y = 0.25
            }
            # genes = {
            #     mode = replace
            #     hair_color = { 0 255 0 255}
            #     skin_color = { 251 255 251 255 }
            #     eye_color = { 12 14 12 14}
            # }
        }
        weight = {
            base = 0
            modifier = {
                add = 100
                has_character_flag = regula_goddess_stewardship_trait
            }
            modifier = {
                add = -100
                has_game_rule = regula_portraits_compeditae_disabled
            }
        }
    }
}

regula_naked = {
    dna_change_example_modifier = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = no_clothes
				range = { 0 1 } # For the randomness to work correctly
            }
            accessory = {
                mode = add
                gene = cloaks
                template = no_cloak
				range = { 0 1 } # For the randomness to work correctly
            }
			accessory = {
				mode = add
				gene = legwear
				template = no_legwear
				range = { 0 1 } # For the randomness to work correctly
			}
			accessory = {
                mode = add
                gene = headgear
                template = no_headgear
                value = 1
            }
			morph = {
				mode = modify_multiply
				gene = gene_bs_body_shape
				value = 1.0
				template = body_shape_average
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_bust
				value = 1.0
				template = bust_default
			}
        }
        outfit_tags = { no_clothes }
        weight = {
            base = -100
            modifier = {
                add = 200
                AND = {
                    has_game_rule = regula_naked_compeditae_all_enabled
                    has_trait = devoted_trait_group
                }
            }
            modifier = {
                add = 100
                has_game_rule = regula_naked_compeditae_limited_enabled
            }
            modifier = {
                add = -100
                should_show_nudity = no
            }
            modifier = {
                add = 100
                has_trait = paelex
            }
            modifier = {
                add = 100
                has_trait = domina
            }
            modifier = {
                add = 100
                has_trait = contubernalis
            }
        }
    }
}

regula_short = {
    usage = game
    dna_change_example_modifier = {
        dna_modifiers = {
            morph = {
				mode = modify
				gene = gene_height
				template = dwarf_height
				value = 0
			}
			# morph = {
			# 	mode = modify_multiply
			# 	gene = gene_height
			# 	value = 0.5
			# }
			# morph = {
			# 	mode = modify_multiply
			# 	gene = gene_head_width
			# 	value = 0.5
			# }
			# morph = {
			# 	mode = modify_multiply
			# 	gene = gene_head_height
			# 	value = 0.5
			# }
        }
        weight = {
            base = 0
            modifier = {
                add = 100
                has_character_flag = regula_short
            }
        }
    }
}

# CBO Clothing
regula_clothing = {

    regula_solider = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = revealing_clothes_2
				template = indian_war_revealing_2_clothes
				range = { 0 1 }
			}
			accessory = {
				mode = add
				gene = bottoms
				template = war_g_string
				range = { 0 1 }
			}
			accessory = {
				mode = add
				gene = clothes
				template = no_clothes
				range = { 0 1 }
			}
            accessory = {
				mode = add
				gene = headgear
				template = no_headgear
				range = { 0 1 }
			}
			accessory = {
				mode = add
				gene = shoes
				template = thigh_high_war
				range = { 0 1 }
			}
			accessory = {
				mode = add
				gene = cloaks
				template = no_cloak
				range = { 0 1 }
			}
			accessory = {
				mode = add
				gene = legwear
				template = no_legwear
				range = { 0 1 }
			}
            morph = {
                mode = modify_multiply
                gene = gene_bs_bust
                value = 0.8 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
                template = bust_clothes
            }
		}

        outfit_tags = { regula_solider military_outfit}

        weight = {
            base = 0
            modifier = {
                add = 150
                is_female = yes
                portrait_wear_armor_trigger = yes
            }
            modifier = {
				add = 21		# So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
				portrait_wear_armor_currently_in_army_trigger = yes
			}
            modifier = {
                factor = 0
                OR = {
                    age < 18
                    religion != religion:regula_religion
                    is_adult = no
                    is_female = no
                    should_be_naked_trigger = yes
                    has_game_rule = regula_portraits_revealing_clothing_disabled
                }
            }
        }
    }

    regula_priestess = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = bottoms
				template = war_g_string
				range = { 0 1 }
			}
			accessory = {
				mode = add
				gene = clothes
				template = no_clothes
				range = { 0 1 }
			}
			accessory = {
				mode = add
				gene = headgear
				template = religious_catholic_devoted_02
				range = { 0 1 }
			}
			accessory = {
				mode = add
				gene = revealing_clothes_2
				template = catholic_devoted_revealing_2_clothes
				range = { 0 1 }
			}
			accessory = {
				mode = add
				gene = legwear
				template = no_legwear
				range = { 0 1 }
			}
			accessory = {
				mode = add
				gene = cloaks
				template = no_cloak
				range = { 0 1 }
			}
			accessory = {
				mode = add
				gene = shoes
				template = heels_mid_calf
				range = { 0 1 }
			}
            morph = {
                mode = modify_multiply
                gene = gene_bs_bust
                value = 0.8 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
                template = bust_clothes
            }
		}
        outfit_tags = { regula_priestess }
        weight = {
            base = 0
            modifier = {
                add = 150
                is_female = yes
                OR = {
                    portrait_has_trait_trigger = { TRAIT = devoted }
                    AND = {
                        OR = {
                            AND = {
                                has_council_position = councillor_court_chaplain
                                faith = {
                                    has_doctrine = doctrine_theocracy_lay_clergy
                                }
                            }
                            is_theocratic_lessee = yes
                            AND = { is_ruler = yes has_government = theocracy_government }
                            AND = {
                                is_ruler = yes
                                any_held_title = {
                                    is_holy_order = yes
                                }
                            }
                        }
                    }
                }
            }
            modifier = {
                factor = 0
                OR = {
                    religion != religion:regula_religion
                    is_adult = no
                    age < 18
                    is_female = no
                    should_be_naked_trigger = yes
                    has_game_rule = regula_portraits_revealing_clothing_disabled
                }
            }
        }
    }

    regula_commoner = {
        dna_modifiers = {
            accessory = {
				mode = add
				gene = revealing_clothes_2
				template = dde_abbasid_commoner_revealing_2_clothes
				range = { 0.5 1 }
			}
			accessory = {
				mode = add
				gene = clothes
				template = no_clothes
				range = { 0 1 } # For the randomness to work correctly
			}
            accessory = {
                mode = add
                gene = cloaks
                template = no_cloak
				range = { 0 1 } # For the randomness to work correctly
            }
			accessory = {
				mode = add
				gene = legwear
				template = no_legwear
				range = { 0 1 } # For the randomness to work correctly
			}
			accessory = {
                mode = add
                gene = headgear
                template = no_headgear
                value = 1
            }
            accessory = {
				mode = add
				gene = shoes
				template = western_shoes
				range = { 0 1 }
			}
            morph = {
                mode = modify_multiply
                gene = gene_bs_bust
                value = 0.8 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
                template = bust_clothes
            }
        }
        outfit_tags = { }

		weight = {
			base = 0
			modifier = {
				add = 20
				scope:highest_held_title_tier < tier_county
			}
            modifier = {
                factor = 0
                OR = {
                    religion != religion:regula_religion
                    is_adult = no
                    age < 18
                    is_female = no
                    should_be_naked_trigger = yes
                    has_game_rule = regula_portraits_revealing_clothing_disabled
                }
            }
        }
    }

    regula_noble_lady = {
        dna_modifiers = {
            accessory = {
				mode = add
				gene = revealing_clothes_2
				template = western_royalty_revealing_2_clothes
				range = { 0 1 }
			}
			accessory = {
				mode = add
				gene = clothes
				template = no_clothes
				range = { 0 1 } # For the randomness to work correctly
			}
            accessory = {
                mode = add
                gene = cloaks
                template = no_cloak
				range = { 0 1 } # For the randomness to work correctly
            }
			accessory = {
				mode = add
				gene = legwear
				template = no_legwear
				range = { 0 1 } # For the randomness to work correctly
			}
			accessory = {
                mode = add
                gene = headgear
                template = no_headgear
                value = 1
            }
            accessory = {
				mode = add
				gene = shoes
				template = western_shoes
				range = { 0 1 }
			}
            morph = {
                mode = modify_multiply
                gene = gene_bs_bust
                value = 0.8 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
                template = bust_clothes
            }
        }

        outfit_tags = { regula_lady }

		weight = {
			base = 0
			modifier = {
				add = 50
				trigger_if = {
					limit = { exists = this }
					OR = {
						highest_held_title_tier = tier_county
						AND = {
							exists = primary_spouse
							primary_spouse = {
								highest_held_title_tier = tier_duchy
							}
						}
					}
				}
			}
            modifier = {
                factor = 0
                OR = {
                    religion != religion:regula_religion
                    is_adult = no
                    age < 18
                    is_female = no
                    should_be_naked_trigger = yes
                    has_game_rule = regula_portraits_revealing_clothing_disabled
                }
            }
		}
    }

    regula_royal_lady = {
        dna_modifiers = {
            accessory = {
				mode = add
				gene = revealing_clothes_2
				template = byzantine_low_nobility_revealing_2_clothes
				range = { 0.5 1 }
			}
			accessory = {
				mode = add
				gene = clothes
				template = no_clothes
				range = { 0 1 } # For the randomness to work correctly
			}
            accessory = {
                mode = add
                gene = cloaks
                template = no_cloak
				range = { 0 1 } # For the randomness to work correctly
            }
			accessory = {
				mode = add
				gene = legwear
				template = no_legwear
				range = { 0 1 } # For the randomness to work correctly
			}
			accessory = {
                mode = add
                gene = headgear
                template = no_headgear
                value = 1
            }
            accessory = {
				mode = add
				gene = shoes
				template = western_shoes
				range = { 0 1 }
			}
            morph = {
                mode = modify_multiply
                gene = gene_bs_bust
                value = 0.8 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
                template = bust_clothes
            }
        }
        outfit_tags = { regula_royal_lady }

		weight = {
			base = 0
			modifier = {
				add = 50
				trigger_if = {
					limit = { exists = this }
					OR = {
						highest_held_title_tier = tier_duchy
						AND = {
							exists = primary_spouse
							primary_spouse = {
								highest_held_title_tier = tier_kingdom
							}
						}
					}
				}
			}
            modifier = {
                factor = 0
                OR = {
                    religion != religion:regula_religion
                    is_adult = no
                    age < 18
                    is_female = no
                    should_be_naked_trigger = yes
                    has_game_rule = regula_portraits_revealing_clothing_disabled
                }
            }
		}
    }

    regula_imperial_lady = {
        dna_modifiers = {
            accessory = {
				mode = add
				gene = revealing_clothes_2
				template = byzantine_high_nobility_revealing_2_clothes
				range = { 0 0.5 }
			}
			accessory = {
				mode = add
				gene = clothes
				template = no_clothes
				range = { 0 1 } # For the randomness to work correctly
			}
            accessory = {
                mode = add
                gene = cloaks
                template = no_cloak
				range = { 0 1 } # For the randomness to work correctly
            }
			accessory = {
				mode = add
				gene = legwear
				template = no_legwear
				range = { 0 1 } # For the randomness to work correctly
			}
			accessory = {
                mode = add
                gene = headgear
                template = no_headgear
                value = 1
            }
            accessory = {
				mode = add
				gene = shoes
				template = western_shoes
				range = { 0 1 }
			}
            morph = {
                mode = modify_multiply
                gene = gene_bs_bust
                value = 0.8 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
                template = bust_clothes
            }
        }
        outfit_tags = { regula_imperial_lady }

        weight = {
			base = 0
			modifier = {
				add = 50
				trigger_if = {
					limit = { exists = this }
					OR = {
						highest_held_title_tier = tier_kingdom
						AND = {
							exists = primary_spouse
							primary_spouse = {
								highest_held_title_tier = tier_empire
							}
						}
					}
				}
			}
            modifier = {
                factor = 0
                OR = {
                    religion != religion:regula_religion
                    is_adult = no
                    age < 18
                    is_female = no
                    should_be_naked_trigger = yes
                    has_game_rule = regula_portraits_revealing_clothing_disabled
                }
            }
		}
    }

    regula_spy = {
        dna_modifiers = {
            accessory = {
				mode = add
				gene = revealing_clothes_2
				template = fp1_commoner_revealing_2_clothes
				range = { 0 1 }
			}
			accessory = {
				mode = add
				gene = clothes
				template = no_clothes
				range = { 0 1 } # For the randomness to work correctly
			}
			accessory = {
				mode = add
				gene = legwear
				template = no_legwear
				range = { 0 1 } # For the randomness to work correctly
			}
			accessory = {
                mode = add
                gene = headgear
                template = no_headgear
                value = 1
            }
            accessory = {
				mode = add
				gene = cloaks
				template = fp1_cloak
				range = { 0 0.3 }
			}
			morph = {
				mode = add
				gene = gene_bs_cloak
				template = cloak
				value = 1.0
			}
            accessory = {
				mode = add
				gene = shoes
				template = western_shoes
				range = { 0 1 }
			}
            morph = {
                mode = modify_multiply
                gene = gene_bs_bust
                value = 0.8 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
                template = bust_clothes
            }
        }
        outfit_tags = { regula_spy }
        weight = {
            base = -100
            modifier = {
                add = 1000
                has_council_position = councillor_spymaster
            }
            modifier = {
                factor = 0
                OR = {
                    religion != religion:regula_religion
                    is_adult = no
                    age < 18
                    is_female = no
                    should_be_naked_trigger = yes
                    has_game_rule = regula_portraits_revealing_clothing_disabled
                }
            }
        }
    }

    regula_jester = {
		usage = customization
		dna_modifiers = {
			accessory = {
				mode = add
				gene = revealing_clothes_2
				template = ep1_jester_revealing_2_clothes
				range = { 0 1 }
			}
			accessory = {
				mode = add
				gene = bottoms
				template = g_string
				range = { 0 1 }
			}
			accessory = {
				mode = add
				gene = headgear
				template = no_headgear
				range = { 0 1 }
			}
			accessory = {
				mode = add
				gene = clothes
				template = no_clothes
				range = { 0 1 }
			}
			accessory = {
				mode = add
				gene = shoes
				template = jester_shoes
				range = { 0 1 }
			}
			accessory = {
				mode = add
				gene = cloaks
				template = no_cloak
				range = { 0 1 }
			}
			accessory = {
				mode = add
				gene = legwear
				template = no_legwear
				range = { 0 1 }
			}
            morph = {
                mode = modify_multiply
                gene = gene_bs_bust
                value = 0.8 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
                template = bust_clothes
            }
		}
        weight = {
            base = -100
            modifier = {
                add = 1000
                has_court_position = court_jester_court_position
            }
            modifier = {
                factor = 0
                OR = {
                    religion != religion:regula_religion
                    is_adult = no
                    age < 18
                    is_female = no
                    should_be_naked_trigger = yes
                    has_game_rule = regula_portraits_revealing_clothing_disabled
                }
            }
        }
	}
}


code:
# ######################################################
# ############ FIND CONCUBINE INTERACTION ##############
# ######################################################

# window = {
# 	name = "regula_sanctifica_serva_interaction_window"
# 	datacontext = "[ConcubineInteractionWindow.GetBaseWindow]"
# 	datacontext = "[MatchmakerInteractionWindow.GetCharacterInteractionConfirmationWindow]"
# 	position = { 0 20 }
# 	parentanchor = center
# 	allow_outside = yes
# 	layer = middle

# 	using = Window_Size_CharacterList
# 	using = Window_Background
# 	using = Window_Decoration_Spike

# 	state = {
# 		name = _show
# 		using = Animation_FadeIn_Quick
# 		using = Sound_WindowShow_Standard
# 	}

# 	state = {
# 		name = _hide
# 		using = Animation_FadeOut_Quick
# 		using = Sound_WindowHide_Standard
# 	}

# 	vbox = {
# 		using = Window_Margins

# 		hbox = {
# 			margin_bottom = -10
# 			layoutpolicy_horizontal = expanding

# 			header_pattern_interaction = {
# 				layoutpolicy_horizontal = expanding

# 				blockoverride "header_text"
# 				{
# 					text = "[CharacterInteractionConfirmationWindow.GetSendName]"
# 				}

# 				blockoverride "button_close"
# 				{
# 					onclick = "[MatchmakerInteractionWindow.Close]"
# 				}
# 			}
# 		}

# 		widget_character_interaction_four_characters = {
# 			layoutpolicy_horizontal = expanding

# 			blockoverride "bg_illustration_datacontext"
# 			{
# 				datacontext = "[GetIllustration( 'religion_interior' )]"
# 			}

# 			blockoverride "bg_illustration"
# 			{
# 				texture = "gfx/interface/illustrations/event_scenes/godless_shrine.dds"
# 			}

# 			blockoverride "left_small_portrait"
# 			{
# 				visible = no
# 			}

# 			blockoverride "right_small_portrait"
# 			{
# 				visible = no
# 			}

# 			blockoverride "button_clear"
# 			{
# 				visible = "[MatchmakerInteractionWindow.CanChangeRecipientCharacter]"
# 				onclick = "[MatchmakerInteractionWindow.OnChangeOrRevertRecipientCharacter]"
# 			}

# 			blockoverride "left_portrait"
# 			{
# 				datacontext = "[CharacterInteractionConfirmationWindow.GetActor]"
# 			}

# 			blockoverride "left_interaction_portrait_glow"
# 			{
# 				visible = no
# 			}

# 			blockoverride "right_portrait"
# 			{
# 				datacontext = "[MatchmakerInteractionWindow.GetRecipientToMatch]"
# 			}

# 			blockoverride "right_interaction_portrait_glow"
# 			{
# 				visible = "[MatchmakerInteractionWindow.IsPickingSecondaryRecipient]"
# 			}

# 			blockoverride "button_right_change"
# 			{
# 				visible = "[MatchmakerInteractionWindow.CanChangeRecipientCharacter]"
# 				onclick = "[MatchmakerInteractionWindow.OnChangeOrRevertRecipientCharacter]"
# 			}

# 			blockoverride "button_right_revert"
# 			{
# 				visible = "[MatchmakerInteractionWindow.CanRevertRecipientCharacter]"
# 				onclick = "[MatchmakerInteractionWindow.OnChangeOrRevertRecipientCharacter]"
# 			}

# 			blockoverride "button_clear"
# 			{
# 				visible = no
# 			}
# 		}

# 		vbox = {
# 			name = "info_and_send_offer"
# 			visible = "[MatchmakerInteractionWindow.HasPickedCharacters]"
# 			layoutpolicy_vertical = expanding
# 			layoutpolicy_horizontal = expanding
# 			datacontext = "[CharacterInteractionConfirmationWindow.GetEffectsDescription]"

# 			scrollbox = {
# 				layoutpolicy_vertical = expanding
# 				layoutpolicy_horizontal = expanding

# 				blockoverride "scrollbox_content"
# 				{
# 					name = "info"
# 					layoutpolicy_horizontal = expanding
# ######
# 					vbox = {
# 						datacontext = "[ConcubineInteractionWindow.GetConcubineInfo]"
# 						layoutpolicy_horizontal = expanding
# 						margin = { 20 10 }
# #########
# 						vbox_concubine_interaction_details = {
# 							datacontext = "[ConcubineInfo.GetBaseOffer]"
# 							layoutpolicy_horizontal = expanding
# 						}
# 						vbox_character_interaction_effects_accept_contents = {}
# 					}
# 				}
# 			}

# 			### Send offer info
# 			vbox_arrangement_interaction_send_offer = {
# 				layoutpolicy_horizontal = expanding

# 				blockoverride "button_content" {
# 					text = "find_regula_sanctifica_serva_button_name"

# 				}
# 			}
# 		}

# 		### Character List
# 		vbox = {
# 			name = "character_list"
# 			visible = "[Not(MatchmakerInteractionWindow.HasPickedCharacters)]"
# 			layoutpolicy_vertical = expanding
# 			layoutpolicy_horizontal = expanding
# 			spacing = 5

# 			hbox = {
# 				layoutpolicy_horizontal = expanding
# 				spacing = 10
# 				margin = { 130 0 }

# 				text_single = {
# 					layoutpolicy_horizontal = expanding
# 					text = "[ConcubineInteractionWindow.GetPrompt]"
# 					visible = "[Or(MatchmakerInteractionWindow.GetCharacterList.HasItems, MatchmakerInteractionWindow.HasTopCharacterItem )]"
# 					align = center
# 				}

# 			}

# 			divider = {
# 				layoutpolicy_horizontal = expanding
# 			}

# 			vbox_character_list = {
# 				datacontext = "[MatchmakerInteractionWindow.GetCharacterList]"
# 				datacontext = "[CharacterSelectionList.GetFilterWithDefault('fertility_filter', '(int32)1')]"
# 				layoutpolicy_vertical = expanding
# 				layoutpolicy_horizontal = expanding

# 				blockoverride "container_implementation" {
# 					fixedgridbox = {
# 						addcolumn = 667
# 						addrow = 100
# 						name = "characters_grid"
# 						datamodel = "[CharacterSelectionList.GetList]"
# 						visible = "[Not(CharacterSelectionList.IsBuildingList)]"

# 						item = {
# 							widget_character_list_item = {
# 								size = { 650 110 }
# 							}
# 						}
# 					}
# 				}

# 				blockoverride "special_character" {
# 					vbox = {
# 						datacontext = "[MatchmakerInteractionWindow.GetTopCharacterItem]"
# 						visible = "[MatchmakerInteractionWindow.HasTopCharacterItem]"
# 						layoutpolicy_horizontal = expanding

# 						widget_character_list_item = {
# 							layoutpolicy_horizontal = expanding
# 						}
# 					}
# 				}
# 			}
# 		}
# 	}

# 	window_character_filter = {
# 		datacontext = "[MatchmakerInteractionWindow.GetCharacterList]"
# 		blockoverride "addition_filter" {
# 			vbox_filter_group = {
# 				layoutpolicy_horizontal = expanding
# 				datacontext = "[CharacterSelectionList.GetCategory('age_filter_category')]"
# 				blockoverride "filters" {
# 					filter_item = {
# 						layoutpolicy_horizontal = expanding
# 						datacontext = "[CharacterSelectionList.GetFilter('age_filter')]"
# 					}
# 					filter_item = {
# 						layoutpolicy_horizontal = expanding
# 						datacontext = "[CharacterSelectionList.GetFilter('age_diff_filter')]"
# 					}
# 					filter_item = {
# 						layoutpolicy_horizontal = expanding
# 						datacontext = "[CharacterSelectionList.GetFilter('adult_filter')]"
# 					}
# 				}
# 			}

# 			vbox_filter_group = {
# 				layoutpolicy_horizontal = expanding
# 				datacontext = "[CharacterSelectionList.GetCategory('personal_filter_category')]"
# 				blockoverride "filters" {
# 					filter_item = {
# 						layoutpolicy_horizontal = expanding
# 						datacontext = "[CharacterSelectionList.GetFilter('fertility_filter')]"
# 					}
# 					filter_item = {
# 						layoutpolicy_horizontal = expanding
# 						datacontext = "[CharacterSelectionList.GetFilter('health_filter')]"
# 					}
# 					filter_item = {
# 						layoutpolicy_horizontal = expanding
# 						datacontext = "[CharacterSelectionList.GetFilter('religion_filter')]"
# 					}
# 					filter_item = {
# 						layoutpolicy_horizontal = expanding
# 						datacontext = "[CharacterSelectionList.GetFilter('culture_filter')]"
# 					}
# 					filter_item = {
# 						layoutpolicy_horizontal = expanding
# 						datacontext = "[CharacterSelectionList.GetFilter('trait_filter')]"
# 					}
# 				}
# 			}

# 			vbox_filter_group = {
# 				layoutpolicy_horizontal = expanding
# 				datacontext = "[CharacterSelectionList.GetCategory('politics_filter_category')]"

# 				blockoverride "filters" {
# 					filter_item = {
# 						layoutpolicy_horizontal = expanding
# 						datacontext = "[CharacterSelectionList.GetFilter('ruler_filter')]"
# 					}
# 					filter_item = {
# 						layoutpolicy_horizontal = expanding
# 						datacontext = "[CharacterSelectionList.GetFilter('dynasty_filter')]"
# 					}
# 					filter_item = {
# 						layoutpolicy_horizontal = expanding
# 						datacontext = "[CharacterSelectionList.GetFilter('claim_filter')]"
# 					}
# 				}
# 			}
# 		}
# 	}
# }

license: mit


code:
texticon = {
	icon = pedites_icon
	iconsize = {
		texture = "gfx/interface/icons/regimenttypes/pedites.dds"
		size = { 25 25 }
		offset = { 0 6 }
		fontsize = 16
	}
}

texticon = {
	icon = sagittarius_icon
	iconsize = {
		texture = "gfx/interface/icons/regimenttypes/sagittarius.dds"
		size = { 25 25 }
		offset = { 0 6 }
		fontsize = 16
	}
}

texticon = {
	icon = equitatus_icon
	iconsize = {
		texture = "gfx/interface/icons/regimenttypes/equitatus.dds"
		size = { 25 25 }
		offset = { 0 6 }
		fontsize = 16
	}
}

texticon = {
	icon = sacerdos_icon
	iconsize = {
		texture = "gfx/interface/icons/regimenttypes/sacerdos.dds"
		size = { 25 25 }
		offset = { 0 6 }
		fontsize = 16
	}
}


code:
l_english:
# Initialize decision
  regula_initialize_decision.t:0 "Acquire the Regula Magistri"
  regula_initialize_decision_desc.t:0 "Acquire the lost tome Regula Magistri, the Rules of the Master"
  regula_initialize_decision_desc:0 "You have heard rumours of an ancient tome that is said to corrupt the soul of those who read it, giving them great power. It's whereabouts are currently unknown, but if you leverage all your resources it will certainly be yours."
  regula_initialize_decision_tooltip_effect:0 "Begin the Regula Magistri event chain."
  regula_initialize_decision_tooltip:0 "What could be the harm?"
  regula_initialize_decision_confirm.a:0 "Spare no expense"
  regula_faith_head:0 "You may not take up the Regula Magistri while head of your faith!"
  regula_choir_conversion:0 "This world is warped and twisted. You have already converted to Regula Magistri."

# Re-initialize decision
  regula_initialize_decision_minor.t:0 "Find a Book to Read"
  regula_initialize_decision_minor_desc:0 "The weather outside is dreadful, and you are tired of courtly intrigue. Deciding to spend the afternoon in your study, you find a not-unfamiliar volume nestled in your collection. Before you can properly identify where you've seen it before the book is in your hands."
  regula_initialize_decision_minor_tooltip_effect:0 "Re-acquire the Regula Magistri."
  regula_initialize_decision_minor_tooltip:0 "One of these tomes feels familiar..."
  regula_initialize_decision_minor_confirm.a:0 "Inspect your choice"

# Covert Initialize decision
  regula_initialize_covert_decision.t:0 "Acquire the Regula Magistri"
  regula_initialize_covert_decision_desc.t:0 "Acquire the lost tome Regula Magistri, the Rules of the Master"
  regula_initialize_covert_decision_desc:0 "A traveling peddler is selling a large variety of ancient books. One in particular calls to me, though something inside recoils at the sight of it."
  regula_initialize_covert_decision_tooltip_effect:0 "Begin the Regula Magistri event chain."
  regula_initialize_covert_decision_tooltip:0 "Expand your mind"
  regula_initialize_covert_decision_confirm.a:0 "Expand your library"

# Covert reveal decision
  regula_initialize_reveal_decision.t:0 "Free the Keeper of Souls"
  regula_initialize_reveal_decision_desc.t:0 "Free the Keeper of Souls"
  regula_initialize_reveal_decision_desc:0 "For too long the Keeper of Souls has been trapped in the pages of the Regula Magistri. I will set it free and become the Master of all!"
  regula_initialize_reveal_decision_tooltip_effect:0 "I will gain access to the true power of the Regula Magistri."
  regula_initialize_reveal_decision_tooltip_effect_religion:0 "All counties ruled by the [regula_covert_conversion|e] will convert to [GetReligionFamily('rf_regula').GetReligions]."
  regula_initialize_reveal_decision_tooltip_effect_mulsa:0 "All other [regula_covert_conversion|e] women will gain the [GetTrait('mulsa').GetName( GetNullCharacter )] trait."
  regula_initialize_reveal_decision_tooltip_effect_domina:0 "If she is landed my wife will become a mighty [GetTrait('domina').GetName( GetNullCharacter )]."

  regula_initialize_reveal_decision_tooltip:0 "Greatness is within your reach"
  regula_initialize_reveal_decision_confirm.a:0 "Begin the ritual"

  regula_2_covert_powerful_vassals_achieved:0 "Two powerful female vassals have read the Regula Magistri."
  regula_2_covert_powerful_vassals_required:0 "Two of your powerful vassals are [regula_covert_conversion|E] women."
  regula_spouse_covert_achieved:0 "Your primary spouse has read the Regula Magistri."
  regula_spouse_covert_required:0 "You are married, and you primary spouse is [regula_covert_conversion|E]."

# Compeditae Election decision
  regula_initialize_compeditae_succession_decision.t:0 "Adopt the Compeditae Elective Succession Law"
  regula_initialize_compeditae_succession_decision.desc:0 "Throughout the empire your slaves are an extension of your will. Anchor the haremocracy in law, and extend your reach past death itself." #cultivate uplift
  regula_initialize_compeditae_succession_decision_tooltip:0 "Allow your slaves to elect their next Master"
  regula_initialize_compeditae_succession_decision_tooltip_effect:0 "The [compeditae|E] in your empire will vote for your successor, who will gain all of your titles when you die."
  regula_initialize_compeditae_succession_decision.a:0 "Summon your vassals"
  magister_trait_5_required_decision:0 "You are a Synkellos or greater."
  magister_trait_5_achieved_decision:0 "You are a Synkellos or greater."
  regula_compeditae_election_concubine_pass_minimum_decision:0 "There are at least ten Paelices in your harem."

# Famuli Only Martial Custom
  regula_adopt_martial_custom_decision.t:0 "Enact the Female Famuli Only Martial Custom"
  regula_adopt_martial_custom_decision.desc:0 "Through the power of the Regula Magistri, the women of your realm have gained unholy strength and endurance. Formalize their role in your armies, and bar men from combat."
  regula_adopt_martial_custom_decision_tooltip:0 "Limit the ranks of your army to women alone."
  regula_adopt_martial_custom_decision_tooltip_effect:0 "Your culture gains the [GetCulturePillar('martial_custom_regula').GetName] [martial_custom|E]\nYour culture gains the [GetCultureTradition('tradition_famuli_warriors').GetName] [culture_tradition|E]."
  regula_adopt_martial_custom_decision.a:0 "Announce your edict"
  holy_site_reg_offspring_held:0 "A Holy Site has made girls more common in your realm than boys."

# Regula settings menu
  regula_settings_decision.t:0 "Manage Regula Magistri Settings"
  regula_settings_decision_desc:0 "Adjust the operation of the Regula Magistri mod."
  regula_settings_decision_tooltip:0 "Change how the Regula Magistri mod operates"
  regula_settings_decision_confirm.a:0 "Open the menu"

# Corrupt Holy Order Decision
  regula_corrupt_holy_order_decision.t:0 "Corrupt Holy Order"
  regula_corrupt_holy_order_decision_desc:0 "A holy order sworn to a hostile faith rents lands within your domain. Rather than simply revoke their lease, why not enslave their simple minds instead?"
  regula_corrupt_holy_order_decision_tooltip:0 "Adjust the terms of their lease"
  regula_corrupt_holy_order_decision_tooltip_effect:0 "All lands within your domain leased to the holy order will be seized. The souls of the soldiers will be forfeit, and they will either join your army or serve it."
  regula_corrupt_holy_order_decision_confirm.a:0 "Begin the preparations"

  corrupt_holy_order_decision_effect_message:1 "A [holy_order|E] of your [faith|E] will be founded\n$EFFECT_LIST_BULLET$[order_founder.GetName] will be the order's [holy_order_patron|E]"
  regula_corrupt_holy_order_message:0 "The [infidel_holy_order.GetName] has fallen into debauchery. From their depravity a new holy order has risen."

# Take Initiates From Holy Order Decision
  # Decision
  regula_take_initiates_from_holy_order_decision.t:0 "Claim Initiates"
  regula_take_initiates_from_holy_order_decision_desc:0 "It can be difficult to find the right women of good breeding, but with your holy orders spread across the land, you may order them to collect the finest specimens for your personal use."
  regula_take_initiates_from_holy_order_decision_tooltip:0 "Order your [holy_orders|E] to collect new servents for you"
  regula_take_initiates_from_holy_order_decision_tooltip_effect:0 "You will be provided a set of young women of good breeding to take as your own. The larger and more powerful your holy orders are, the better the selection will be.\nCurrently, your Magistrain Holy orders have [SCOPE.ScriptValue('regula_num_holy_order_counties')|0|P] county titles."
  regula_take_initiates_from_holy_order_decision_confirm.a:0 "Claim your new servents"
  regula_take_initiates_from_holy_order_common_trigger:0 "Your [holy_orders|E] hold under 15 [lessee|E] [titles|E], allowing commoner inititates"
  regula_take_initiates_from_holy_order_noble_trigger:0 "Your [holy_orders|E] hold between 15 to 30 [lessee|E] [titles|E], allowing noble inititates"
  regula_take_initiates_from_holy_order_royal_trigger:0 "Your [holy_orders|E] hold 30 or more [lessee|E] [titles|E], allowing royal inititates"

  # Event
  regula_take_initiates_from_holy_order_common.title:0 "The Inititates - Commoners"
  regula_take_initiates_from_holy_order_common.desc:0 "Your Holy Orders have gathered commoner girls across the line to induct into your service. Standing before you now are the most worthy of joining your inner circle. Who do you choose to join your court?"
  regula_take_initiates_from_holy_order_noble.title:0 "The Inititates - Nobles"
  regula_take_initiates_from_holy_order_noble.desc:0 "With their greater strength your Holy Orders have been able to gather the daughters of Nobles to your service. Standing before you now are the most worthy of joining your inner circle. Who do you choose to join your court?"
  regula_take_initiates_from_holy_order_royal.title:0 "The Inititates - Royals"
  regula_take_initiates_from_holy_order_royal.desc:0 "As your Holy orders have gained power, so have they're reach and power. Thye now command so much prestige that even royals from distant lands have their daughters sent to them. Now these royals will serve you. Who do you choose to join your court?"
  regula_take_initiates_from_holy_order.a:0 "As my commander, [initiate1.GetFirstName] will conquer in my name!"
  regula_take_initiates_from_holy_order.b:0 "[initiate2.GetFirstName] will spread the teachings of the Magistri, in my name."
  regula_take_initiates_from_holy_order.c:0 "I see nobility in [initiate3.GetFirstName], she will serve me well."
  regula_take_initiates_from_holy_order.d:0 "I require someone of certain "talents", [initiate4.GetFirstName] will do nicely."
  regula_take_initiates_from_holy_order.e:0"[initiate5.GetFirstName] will make a fine breeder for my descendents"

# Orgy decision
 regula_throw_orgy_decision:0 "Throw an Orgy"
 regula_throw_orgy_decision_desc:0 "Call those in your thrall together for an orgy. The energy generated by their sexual pleasure will rejuvenate you and cleanse all involved."
 regula_throw_orgy_decision_tooltip:0 "Unleash your lust on those under your sway."
 regula_throw_orgy_decision_confirm:0 "Summon your slaves"
 activity_regula_orgy:0 "Orgy"
 activity_regula_orgy_name:0 "[ACTIVITY.GetOwner.GetNamePossessiveOrMy|U] Orgy"
 activity_regula_orgy_owner:0 "Magister"
 activity_regula_orgy_desc:1 "Those in your power have been called together for your sexual gratification. The energy generated as they fuck will rejuvenate you and cleanse all involved."
 I_HAVE_FEWER_THAN_6_CONCUBINES:0 "A proper orgy requires a crowd. You need at least six paelex or domina."
 regula_throw_orgy_decision_cooldown:0 "I will be unable to throw another orgy for #N 5 years#!"


code:
l_english:
  #Invitation to concubines (not visible to player)
  regula_orgy.1000.t:0 "Devoted,"
  regula_orgy.1000.desc:0 "I am holding an orgy in the capital, some days hence. Your presence is expected."
  regula_orgy.1000.a:0 "I hear and obey."

  #Invitation to non-concubines (not visible to player)
  regula_orgy.1001.t:0 "To my loyal servant,"
  regula_orgy.1001.desc:0 "I am holding an orgy, and it would please me if you were there. Discard your responsibilities and I will ensure that it pleases you as well."
  regula_orgy.1001.a:0 "As my lord wills."
  regula_orgy.1001.b:0 "I...must...resist..."

  #Uninvited guest
  regula_orgy.1003.t:1 "$activity_regula_orgy$: An Unexpected Offering"
  regula_orgy.1003.desc:0 "As your slaves arrive in [capital.GetNameNoTooltip], you catch a glimpse of an unfamiliar face.\n\n[inviter.GetNameOrMeRegnal] introduces the young [new_guest.GetWomanMan] as [new_guest.Custom2('MyCharacterIntroductionNoComma', ROOT.Char)]. [new_guest.GetFirstName] is unaware of your true powers or your hold over [inviter.GetFirstNameNoTooltip], and has simply been told that an exclusive gathering of the court is taking place. \n\nWith a sly glint in her eye [inviter.GetFirstNameNoTooltip] asks if [new_guest.GetFirstNameNoTooltip] might join our family."
  regula_orgy.1003.a:0 "Promise to show [new_guest.GetFirstName] an unforgettable evening."
  regula_orgy.1003.b:0 "Tell [inviter.GetFirstName] the event is invite only."

  #No one attended
  regula_orgy.1002.t:0 "$activity_regula_orgy$: Lacking Devotion"
  regula_orgy.1002.desc:0 "Not one soul has obeyed my summons."
  regula_orgy.1002.a:0 "They will know my fury."

  #Starting event
  every_regula_orgy_participant:0 "Every guest at the $activity_regula_orgy$"
  regula_orgy.1010.t:1 "$activity_regula_orgy$: The Slaves Have Gathered"
  regula_orgy.1010.desc:0 "The air is filled with nervous anticipation, your slaves sneaking anxious glances at those around them. You begin without ceremony or speech, weaving together a benediction from the Regula Magistri. \n\nThe magic fills the air with a warm glow, and you smile at the chorus of soft gasps. A familiar scent is in the air."
  regula_orgy.1010.a:0 "Order those assembled to disrobe." #Start the orgy.
  regula_orgy.1010.e.tt:0 "It is time for the orgy to get underway."

  #The orgy is in full swing
  regula_orgy.1014.t:0 "$activity_regula_orgy$: A Good Start"  # Finish fucking, make a choice as to your next action.

  regula_orgy.1014.desc:0 "The honour of being your first fuck goes to [first_orgy_partner.GetFirstName]. She envelopes your cock with gusto, humming happily as she bobs up and down on your cock. \n\nWith the barest twitch of your powers she engulfs you entirely, gag reflex smothered by your will. As you fill her stomach you look around the room, already planning your next coupling."
  regula_orgy.1014.a:0 "Find another willing set of holes."
  regula_orgy.1014.a.tt:1 "You continue to indulge your appetites at random."
  regula_orgy.1014.b:0 "Experience new sexual pleasures with [deviant.GetFirstNameNoTooltip] and a plaything."
  regula_orgy.1014.b.knowledge:0 "Something awakens within you"
  regula_orgy.1014.b.inspiration:0 "You become open to new sources of inspiration"
  regula_orgy.1014.c:0 "Get to know the [new_guest.Custom('ComplimentAdjective')] [new_guest.GetFirstNameNoTooltip] a little better."
  regula_orgy.1014.c.minor:0 "Their skills are passable"
  regula_orgy.1014.c.major:0 "Their mouth is heavenly"
  regula_orgy.1014.f:1 "Just lean back and enjoy the view before you."

  # Sex with a random slave
  regula_orgy.1015.t:0 "$activity_regula_orgy$: In Your Element"
  regula_orgy.1015.desc:0 "The hours pass in a pleasant haze of lust and desire. The power of the Regula Magistri fills your veins, and you find that your passion does not waver, but grow with every orgasm.\n\nFor a time you amuse yourself with [sex_partner.GetFirstName], languidly fucking her while holding her on the edge of orgasm with your mind. When her sanity begins to fray you relent, allowing her to collapse in ecstasy as you leave to find another."
  regula_orgy.1015.a:0 "How satisfying."

  # Deviant sex event
  regula_orgy.1016.t:0 "$activity_regula_orgy$: A Lesson in Pleasure and Pain"
  regula_orgy.1016.desc:0 "[deviant.GetFirstName)] is well versed in more exotic forms of lovemaking, and the sight of her tools has [sex_partner.GetFirstName] working hard to keep her fears in check. You carefully stoke a burning passion in them both, delighting in the crack of the whip and the mix of agony and ecstasy on [sex_partner.GetFirstNamePossessiveNoTooltip] face. \n\nBy the time [sex_partner.GetFirstNameNoTooltip] has been reduced to a quivering wreck you have learned more than a few entertaining tricks."
  regula_orgy.1016.a:0 "Such a delightful diversion."

  # Uninvited guest sex event
  regula_orgy.1017.t:0 "$activity_regula_orgy$: Enjoying the Offering"
  regula_orgy.1017.start.desc:0 "You take a few moments to get to know [new_guest.GetFirstName], combing through her memories and subtly tweaking her throughts to better suit a life of carnality. \n\nWhen you finally beckon her forward there is no hesitancy in her actions, only desire."
  regula_orgy.1017.a:0 "What a pleasant gift."

  # Participant events
  regula_orgy.1020.t:0 "$activity_regula_orgy$: "
  regula_orgy.1020.desc:0 ""
  regula_orgy.1020.a:0 ""

  # End events
  regula_orgy.1098.t:0 "$activity_regula_orgy$: Aftermath"
  regula_orgy.1098.start.desc:0 "Your slaves and you"
  regula_orgy.1098.end.desc:0 "have enjoyed the pleasures of each others flesh for days. Their bodies now lie at your feet, exhausted, and the very walls of the castle hum with energy.\n\nYou carefully weave the power into a blessing, knowing that it will be some time before they are recovered enough to do this again."
  regula_orgy.1098.a:0 "Weave a protective charm" #Increase health
  regula_orgy.1098.b:0 "Empower your aura" #Stats boost for all
  regula_orgy.1098.c:0 "Strengthen your connection to the Regula Magistri" #Massive piety gain

  regula_orgy.1099.start.desc:0 "Together, we"
  regula_orgy.1099.tt:0 "You venture home as the $activity_regula_orgy$ ends"

  ### Petition events


code:
l_english:
  regula_adultery.0003.t:0 "A Common Concern"
  regula_adultery.0003.desc:0 "[lover_spouse.Custom2('MyCharacterIntroduction', ROOT.Char)|U] is once again absent from your chambers as night falls. [lover_spouse.GetSheHe|U] has been distant lately — lost in thought and rarely seen at court. Is [lover_spouse.GetSheHe] simply busy? Or could [lover_spouse.GetSheHe] be warming someone else's bed...?\n\nWhen next you see her you dive into her thoughts, scanning for signs of falsehood. But your work was thorough, and she is as loyal as you made her."
  regula_adultery.0003.a:0 "I may put these thoughts to rest."

  # Male Lover
  regula_adultery.1001.t:0 "A Cuckoo in the Nest"
  regula_adultery.1001.desc:0 "It seems there is an interloper in your harem. [adultery_lover.GetTitledFirstName] has been fucking [lover_spouse.GetTitledFirstName] for weeks. He simply told her that it was your will, and the gullible [compedita|E] eagerly spread her legs.\n\nPart of you is impressed by [adultery_lover.GetFirstNamePossessive] audacity, but his actions were foolhardy at best. An idle question about [lover_spouse.GetFirstNamePossessive] recent whereabouts was enough to have her excitedly detail their entire relationship."
  regula_adultery.1001.a:0 "He shall pay for this insult."
  regula_adultery.1001.b:0 "She shall end this relationship, quietly."
  regula_adultery.1001.c:0 "This is of no concern."

  # Female Lover
  regula_adultery.1010.t:0 "Lovers in a Dangerous Time"
  regula_adultery.1010.desc:0 "A cursory scan of [lover_spouse.GetTitledFirstName] one day reveals that she has taken [adultery_lover.GetTitledFirstName] as her lover. While it would be trivial to force her to end the relationship, this problem may well be an opportunity. A slight tweak in [lover_spouse.GetFirstNamePossessive] perspective would make her eager to not fuck [adultery_lover.GetFirstName], but enslave her as well. After all, what greater joy could there be than serving you with her lover at her side?"
  regula_adultery.1010.a:0 "[lover_spouse.GetFirstName] will invite [adultery_lover.GetFirstName] for a special visit."
  regula_adultery.1010.b:0 "Just instruct [lover_spouse.GetFirstName] to end the relationship."

  # Magister charms
  regula_adultery.1011.t:0 "Dazzled Beauty"
  regula_adultery.1011.desc:0 "When [adultery_lover.GetTitledFirstName] next brings [lover_spouse.GetTitledFirstName] to her chambers she finds you already waiting on the bed. Her outrage turns quickly to shock as the room begins to dim with your power, then fear when [lover_spouse.GetFirstName] locks and bars the door.\n\nShe screams, of course, but [lover_spouse.GetFirstName] had quietly replaced the guards with those that could be trusted, and none come to her aid.  Before long [adultery_lover.GetFirstName] kneels before you, mind empty save for your whispers."
  regula_adultery.1011.a:0 "Sample [adultery_lover.GetFirstNamePossessive] talents for yourself."
  regula_adultery.1011.b:0 "Leave [lover_spouse.GetFirstName] to induct [adultery_lover.GetFirstName] into your harem."

  # Paelex charms
  regula_adultery.1012.t:0 "Spirit Open to Darkness"
  regula_adultery.1012.desc:0 "You crash into [adultery_lover.GetTitledFirstNamePossessive] chambers to find her already naked, [lover_spouse.GetTitledFirstName] on the bed behind her.\n\n[adultery_lover.GetFirstNamePossessive] cry of outrage ends abruptly as her eyes lose focus and her jaw goes slack. You smile approvingly at your loyal $game_concept_compedita$, sorcery dancing over her fingertips."
  regula_adultery.1012.a:0 "Disrobe and join the lovers."
  regula_adultery.1012.b:0 "Leave them to enjoy each other's company."

  # Male Fling
  regula_adultery.2001.t:0 "A Lapse of Control"
  regula_adultery.2001.desc:0 "Your creature [lover_spouse.GetTitledFirstName] is ruled as much by her lust as by your will. Unfortunately, it seems that her urges have been too strong as of late. \n\n[sex_partner.GetTitledFirstName] caught her masturbating in the stables. Worse, he then dropped his breeches and in her lust she leapt onto his cock.\n\nOnce her passions faded, [lover_spouse.GetFirstName] realized what she had done and came rushing to you to beg your forgiveness."
  regula_adultery.2001.a:0 "He shall suffer for this."
  regula_adultery.2001.b:0 "Let the matter rest, for now."

  # Female Fling
  regula_adultery.2010.t:0 "Like a Moth to the Flame"
  regula_adultery.2010.desc:0 "Your power burns within each of your $game_concept_compeditae$, and their simple presence is enough to beguile the unwary. [sex_partner.GetTitledFirstName] has learned this truth first-hand, as [lover_spouse.GetTitledFirstName] eagerly recounts. Having tasted your Compedita's sex, [sex_partner.GetFirstName] will be easy prey."
  regula_adultery.2010.a:0 "[lover_spouse.GetFirstName] will draw [sex_partner.GetFirstName] in for another tryst."
  regula_adultery.2010.b:0 "This is of no concern."

  # Magister charms
  regula_adultery.2011.t:0 "Burning Passion"
  regula_adultery.2011.desc:0 "As you wait in the shadows, [lover_spouse.GetTitledFirstName] leads [sex_partner.GetTitledFirstName] to a quiet alcove. The two quickly embrace, [sex_partner.GetFirstName] flush with arousal. With a muttered incantation you activate the runes carved into the pillars around the alcove, binding [sex_partner.GetFirstNamePossessive] will.\n\nTask complete, you step forward."
  regula_adultery.2011.a:0 "Give [sex_partner.GetFirstNameNoTooltip] a warm welcome."
  regula_adultery.2011.b:0 "Leave [lover_spouse.GetFirstNameNoTooltip] to induct her new sister."

  # Paelex charms
  regula_adultery.2012.t:0 "Reflected Fire"
  regula_adultery.2012.desc:0 "As you arrive at the secluded alcove you see that [lover_spouse.GetTitledFirstName] has already bound [sex_partner.GetTitledFirstNamePossessive] will. [lover_spouse.GetFirstName] smiles at your approach, [sex_partner.GetFirstName] eagerly lapping at her slit. "
  regula_adultery.2012.a:0 "Disrobe and join them."
  regula_adultery.2012.b:0 "Let [lover_spouse.GetFirstNameNoTooltip] enjoy her prize."


code:
l_english:
  regula_alliance_event.0001.opening:0 "To the Vicar of Souls,"
  regula_alliance_event.0001.desc:0 "It would be my honour to have my soldiers fight and die for your greater glory. May all those who oppose us feel your light."
  regula_alliance_event.0001.a:0 "Their might is added to your own."


code:
l_english:
  # Potestas
  regula_bloodline.1001.t:0 "King of Queens"
	regula_bloodline.1001.desc:0 "Many a ruler claims dominion over mankind, but words are weak. [GetGlobalVariable('potestas_queen_bloodline_magister').Char.GetName] proved the weight of his claim, as queen after queen knelt before him. While few would describe him as saintly, the smallfolk now believe he and his descendants are divinely ordained to rule."
  regula_bloodline.1001.a:0 "Greatness is in our blood."

  # Servitude War
  regula_bloodline.1002.t:0 "Whispers in the Dark"
	regula_bloodline.1002.desc:0 "By some accounts [GetGlobalVariable('servitude_war_bloodline_magister').Char.GetName] was the greatest liege lord in the world. Why else would so many vassals take foresake their oaths and shed blood to kneel before him?\n\nHis personal diary paints a very different picture, and is now required reading for his descendants. The male ones, at least."
  regula_bloodline.1002.a:0 "Wars are not won with arms alone."

  # Domination War
  regula_bloodline.1003.t:0 "Foes and Fealty"
	regula_bloodline.1003.desc:0 "Many had noted that [GetGlobalVariable('domination_war_bloodline_magister').Char.GetNamePossessive] fiercest foes often ended up fighting for him, though the smallfolk could only guess at the reason for their frequent change of heart. If the minstrel's songs were any indication, half believed [GetGlobalVariable('domination_war_bloodline_magister').Char.GetFirstNameNoTooltip] had an incredibly talented tongue, while the rest believed the true magic was in his cock.\n\nWhatever their beliefs, serving your family has become a point of pride for many, and there is no shortage of young women eager to champion your cause."
  regula_bloodline.1003.a:0 "What great things we shall do together."

  # Contubernalis
  regula_bloodline.1004.t:0 "The Dollhouse"
	regula_bloodline.1004.desc:0 "[GetGlobalVariable('contubernalis_bloodline_magister').Char.GetNamePossessive] was a hard man, prone to fits of anger and long grudges. His use of the Regula Magistri was darker still, and since donning the crown few of your courtiers can stand to be in your presence. Prolonged contact with your aura leads to nightmares, apparently.\n\nOnly the Contubernalis seem unaffected, completely focused as they are on their unquenchable lust. They make for poor company, but such is to be expected from toys and trophies."
  regula_bloodline.1004.a:0 "Loneliness is for the weak."

  # Domitans
  regula_bloodline.1005.t:0 "Works of Art"
	regula_bloodline.1005.desc:0 "There is something unearthly about the daughters of [GetGlobalVariable('domitans_bloodline_magister').Char.GetName]. Their features are painting-perfect, their curves better formed than the greatest of statues. The size of [GetGlobalVariable('domitans_bloodline_magister').Char.GetFirstNamePossessiveNoTooltip] harem was what drew attention while he lived, but what went on behind closed doors has left deeper marks."
  regula_bloodline.1005.a:0 "Perfect, body and mind."

  # Fascinare
  regula_bloodline.1006.t:0 "Silver Tongues and Captivating Eyes"
	regula_bloodline.1006.desc:0 "It wasn't until the fourth time you unthinkingly handed one of [GetGlobalVariable('fascinare_bloodline_magister').Char.GetNamePossessive] daughters a sweet that you realized that they were projecting a glamour.\n\nAfter two weeks of searching you've yet to find the source of the magic, but have been able to identify a large number of women in the court who are similarly gifted.\n\nThe only common link? Their shared father."
  regula_bloodline.1006.a:0 "How interesting."

  # Obedience
  regula_bloodline.1007.t:0 "A Yearning to Serve"
	regula_bloodline.1007.desc:0 "\"Is there anything else?\"\nYou never fully understood how or why the female members of your dynasty were so compliant to your requests, over time you had simply become accustomed to being waited on hand and foot by those around you.\nIt was only after the death of your late father [GetGlobalVariable('obedience_bloodline_magister').Char.GetNamePossessive] that you suddenly became aware of a power inside you. In your search for the "book" you found a journal written by your later father. Inside, there were the dates and names of many women, both of your own and other dynasties. Against each name, was a single tick, and the word \"Obedient\"."
  regula_bloodline.1007.a:0 "How delightful."

  # Multitasker
  regula_bloodline.2021.title:0 "Legendary Multitasker"
  regula_bloodline.2021.personal_desc:0 "With yet another spouse clearly pregnant my abilty to multitask, once a common jest, has become a thing of legend."

  # Bun in the oven
  regula_bloodline.2022.t:0 "Fertile Spouse"
	regula_bloodline.2022.desc:0 "[ROOT.GetCharacter.GetName] is pregnant once more, and word of her incredible fertility has spread throughout the realm."
  regula_bloodline.2022.personal_desc:0 "The size of my family has become a thing of legend."


code:
l_english:
  regula_childhood_event.0010.t:0 "Ward Auto-assignment"
  regula_childhood_event.0010.desc:0 "The making of children can be more entertaining than the aftermath. Delegate the education of your offspring to their mothers, or adjust the balance of parental duties.\n\nChildren without guardians will be sent to their mother's court (when possible) as will all subsequent children. The AI will autoassign each a guardian to handle their education."

  regula_childhood_event.0010.a:0 "Send away all my children"
  regula_childhood_event.0010.a.tt:0 "All children will be moved to their mother's court."

  regula_childhood_event.0010.b:0 "Send away the girls"
  regula_childhood_event.0010.b.tt:0 "All female and (if present) hermaphrodite children will be moved to their mother's court."

  regula_childhood_event.0010.c:0 "Send away the boys"
  regula_childhood_event.0010.c.tt:0 "All male children will be moved to their mother's court."

  regula_childhood_event.0010.d:0 "Keep all my children at court"
  regula_childhood_event.0010.d.tt:0 "All new children will remain in your court. Those already transferred will remain where they are."

  regula_childhood_event.0010.e:0 "Return to the previous menu"
  regula_childhood_event.0010.e.tt:0 "Make no changes to the court your children are brought up in."

  regula_childhood_event.0010.f:0 "Exit without further changes"
  regula_childhood_event.0010.f.tt:0 "Any changes already implemented will remain."

  regula_childhood_event.0020.t:0 "Regula Birth Control"
  regula_childhood_event.0020.desc:0 "This menu will limit the number of offspring that you can have with any one female character. Any pregnancies over the limit will automatically end, including those currently in progress."
  regula_childhood_event.0020.a:0 "Limit my children to two per spouse"
  regula_childhood_event.0020.b:0 "Limit my children to four per spouse"
  regula_childhood_event.0020.c:0 "I want no further children"
  regula_childhood_event.0020.c.tt:0 "All current and future pregnancies that have the Magister as the father will be terminated. This effect will pass to your player heir as well, should they gain the Magister trait."
  regula_childhood_event.0020.d:0 "Remove all limits on how many children I can have"


code:
l_english:
  regula_corrupt_holy_order_event.0001.t:0 "Breaking the Bastion"
  regula_corrupt_holy_order_event.0001.desc:0 "From a distance the keep occupied by the [infidel_holy_order.GetName] is an impressive one. Fortunately, there will be no need for a protracted siege. Your intensive studies of the Regula Magistri have revealed a great working perfect for your needs. This land is sworn to you, and the very earth and air respond to your will.\n\n" # Preparing to enter. Establishes context, introduces knights.
  regula_corrupt_holy_order_event.0001.vassal.desc:0 "At your side stands [order_founder.GetTitledFirstName]. Her body shall serve as a conduit for your power, and though the act is not without risks there is no hesitation in her eyes. Enslaving those that oppose you brings meaning to her existence.\n\n"
  regula_corrupt_holy_order_event.0001.direct.desc:0 "Woe to the unwary."
  regula_corrupt_holy_order_event.0001.a:0 "Breach their walls"
  regula_corrupt_holy_order_event.0001.b:0 "Leave them be"
  regula_corrupt_holy_order_event.0001.b.tt:0 "This prize is not worth the cost. Claw back your power."

  regula_corrupt_holy_order_event.0002.t:0 "The Rough Among Diamonds"
  regula_corrupt_holy_order_event.0002.giant.desc:0 "Walking through the keep you find yourself having to carefully step around and over rutting bodies. The weight of your power lies heavy in the air, driving both the former knights and your own soldiers into a sexual frenzy.\n\nBy one of the pillars you find the largest warrior that you've ever seen, holding a maid aloft. The two are staring into each other's eyes, one fearful and the other hungry, both heavily entranced.\n\nThis one will give your armies a bit of spine." #
  regula_corrupt_holy_order_event.0002.commander.desc:0 "The keep is the scene of a melee, though you see no casualties. The weight of your power lies heavy in the air, driving both the former knights and your own soldiers into sexual frenzy.\n\nYour way is blocked in the main hall, where you find hundreds of bodies writhing together in a single orgy. Controlling this mass of lustful humanity is one of your soldiers, their eyes alight with channeled power. Whenever one of the writhing masses falters they intercede, instinctively pushing forward with your power and imparting raw sexual need.\n\nThis one was born for your very specific type of command."
  regula_corrupt_holy_order_event.0002.a:0 "Lead your new recruit home"
  regula_corrupt_holy_order_event.0002.b:0 "Bring them both"


code:
l_english:
  sanctifica_serva_health:0 "You are too weak to perform this ritual, let alone survive it."
  sanctifica_serva_in_progress:0 "You may prepare only one Santifica Serva ritual at a time."

  regula_holy_site_event.1001.t:0 "Sanctifica Serva: The Decision"
  regula_holy_site_event.1001.mediterranean:0 "In the ruins of Carthage lies a place where reality is...thinner than elsewhere. Thin enough to siphon power from a fallen goddess into one of your slaves, giving them unending vigor and improving their every talent.\n\nBut the cost will be steep. The ritual will require an immense amount of mana fused to a shred of your soul, permanently weakening you. The loss of their mortality will end any hope your slave may have of bearing another child, and the effect on their mind will be difficult to predict.\n\nThis is not a decision to be taken lightly."
  regula_holy_site_event.1001.european:0 "The meadows of Gotland contain a link to Folkvangr, the field of Freyja's fallen. The souls of these dead can be used to empower one of your slaves, giving them unending vigor and improving their every talent.\n\nBut the cost will be steep. The ritual will require an immense amount of mana fused to a shred of your soul, permanently weakening you. The loss of their mortality will end any hope your slave may have of bearing another child, and the effect on their mind will be difficult to predict.\n\nThis is not a decision to be taken lightly."
  regula_holy_site_event.1001.alexandrian:0 "In the ancient city of Yadz a holy flame has burned for centuries. It burns still, but its light now casts a profane shadow. By using a piece of your soul as kindling you burn away all that is mortal within one of your slaves, giving them unending vigor and improving their every talent.\n\nBut the cost will be steep. The ritual will require an immense amount of mana fused to a shred of your soul, permanently weakening you. The loss of their mortality will end any hope your slave may have of bearing another child, and the effect on their mind will be difficult to predict.\n\nThis is not a decision to be taken lightly."
  regula_holy_site_event.1001.west_africa:0 "By the shores of the Gambie River, stand tens of thousands of ancient tomb markers. The knowledge of their builders is lost to time, but the souls remain, trapped in stone. Channeling their essence will allow you to empower one of your slaves, giving them unending vigor and improving their every talent.\n\nBut the cost will be steep. The ritual will require an immense amount of mana fused to a shred of your soul, permanently weakening you. The loss of their mortality will end any hope your slave may have of bearing another child, and the effect on their mind will be difficult to predict.\n\nThis is not a decision to be taken lightly."
  regula_holy_site_event.1001.a:0 "Begin the preparations."
  regula_holy_site_event.1001.b:0 "Your resources are better spent elsewhere."

  regula_holy_site_event.1002.t:0 "Sanctifica Serva: The Ritual"
  regula_holy_site_event.1002.desc:0 "Rumours of what you do now will no likely spread far and wide, but for the moment the only witnesses have been chained so tightly to your will they move like puppets on a string. The slightest hesitance or spark of defiance from them will mean doom for you all.\n\nBut as you stare down at the dagger in your hand you pause. Does [recipient.GetFirstName] truly deserve the gift you are about to grant her?"
  regula_holy_site_event.1002.a:0 "Pour your lifeblood into the ritual."
  regula_holy_site_event.1002.b:0 "This slave is not worth bleeding for."

  regula_holy_site_event.1003.t:0 "Sanctifica Serva: The Aftermath"
  regula_holy_site_event.1003.desc.intro:0 "As the chanting of your slaves reaches a fever pitch you are cast into darkness. "
  regula_holy_site_event.1003.desc.diplomacy:0 "When the light returns you see before you an immense figure, wreathed in flames the colour of blood. For just a moment your eyes meet, and you hear a man scream as he dies, is consumed, then dies again. You know in your soul that the man suffers for a debt he does not owe, one he can never repay.\n\nThe light breaks once more, and you find yourself at the site of the ritual, unharmed. Your slave rises, and in her eyes you see red." #
  regula_holy_site_event.1003.desc.martial:0 "As the light returns you find yourself surrounded by smoke and ash, the smell of blood and bile in the air. You are on a battlefield, the site of a one-sided slaughter like none you've ever seen. At its centre a great figure is hunched, her hands rending the bodies of the fallen. With each pull she tears off a new arm, sowing it with sinew and flesh into a profane mockery of grace.\n\nFortunately, before the figure notices you the smoke fades, and you find yourself at the site of the ritual once more. Your slave rises, and as you look at her you smell smoke."
  regula_holy_site_event.1003.desc.stewardship:0 "The darkness clears in a blinding flash of light, and you see before you an immense figure lounging over a narrow pass. Her eyes are the colour of gold, and rivulets of the same metal pour from her breasts. Coiling around her is stream of petitioners, but somehow you know that whatever gifts these supplicants receive will leave them less than they once were.\n\nSoon the light fades, and when you can see once more you find yourself back at the site of the ritual. Your slave rises, and in your head you hear the clink of coins." #
  regula_holy_site_event.1003.desc.intrigue:0 "Before you can take stock of your surroundings you are struck by a piercing wail. Before you hovers figure clad in rivulets of blood, her hair waving in a wind you can not feel. Grasping at her feet is a crowd of souless husks, blood coiling out from their veins to the figure above.\n\nThe wail changes pitch, and all at once becomes the most beautiful sound that you have ever heard. Desperate, you slash at the thread of mana fueling the ritual, closing the connection and sending you back to the ritual site.\n\nAs you lay gasping on the ground you hear your slave approach. When she speaks her voice keens." #
  regula_holy_site_event.1003.desc.learning:0 "Before you glimmer a thousand tiny lights, foreign constellations against a moonless sky. Striding across this firmament is a figure shrouded in dusk so dark that you can see naught but their silhouette. As they pass each light it flickers briefly, and you realize that these are not stars, but souls.\n\nAs the vision fades you find yourself back at the site of the ritual. Your slave rises their eyes twinkle like a field of stars." #
  regula_holy_site_event.1003.a:0 "It is done, for better or worse."


code:
l_english:
  regula_initialize_event.0001.t:0 "Dark Deeds Under a Pale Moon"
  regula_initialize_event.0001.desc:0 "As the moon rises the noblewomen that I have enspelled slowly make their way to the top of my keep. For most their eyes are glassy and their minds elsewhere, dreaming of that lovely spiral. My beautiful wife [domina.GetTitledFirstName] is fully aware though, lovingly guiding each woman to her appointed place.\n\nAs I stand in the centre of the ritual circle, book upraised, the women begin to chant. As their voices rise power fills the air and the book begins to glow."
  regula_initialize_event.0001.a:0 "Speak the incantation of unbinding."
  regula_initialize_event.0001.b:0 "It is not too late. Abandon this course."
  regula_initialize_event.0002.t:0 "The Keeper of Souls is Reborn"
  regula_initialize_event.0002.desc:0 "From the book rises a string of spiralling lights, chains made manifest. They hover in the air for a moment, then curve to plunge into my chest.\n\nThe spirit's strength fills my body, and its thoughts coil around my mind. This was not what I had agreed to, not what I had thought would happen! For a brief moment I struggle to maintain control. But the spirit's power is too great, and I soon lose track of where it ends and we begin.\n\nIt matters little, for your desires are the same.\nLust. Sex. Power."
  regula_initialize_event.0002.a:0 "Rumors of dark magic circle the Mediterranean"
  regula_initialize_event.0002.a.tt:0 "Regula 1. All shall kneel, and in kneeling rise."
  regula_initialize_event.0002.a.tooltip:0 "Power stirs in $c_jerusalem$, Alexandria, Brescia, Carthage, and Lesbos, as your [holy_sites|E] awaken."
  regula_initialize_event.0002.b:0 "Your shadow shall cover Europe"
  regula_initialize_event.0002.b.tt:0 "Regula 7. From their blood you shall build an empire; from their sex a dynasty."
  regula_initialize_event.0002.b.tooltip:0 "Power stirs in Rome, Gotland, Krakow, Toulouse, and Zeeland, as your [holy_sites|E] awaken."
  regula_initialize_event.0002.c:0 "All shall weep, for Asia is yours to conquer."
  regula_initialize_event.0002.c.tt:0 "Regula 10. Today's foe is tomorrow's servant."
  regula_initialize_event.0002.c.tooltip:0 "Power stirs in Babylon, Veria, Tyre, Yadz, and Lazur, as your [holy_sites|E] awaken."
  regula_initialize_event.0002.d:0 "Fear strikes the spirits of West Africa"
  regula_initialize_event.0002.d.tt:0 "Regula 11. Send your servants first to their families, for there is no sweeter sight than siblings in arms."
  regula_initialize_event.0002.d.tooltip:0 "Power stirs in Djenne, Daura, Jara, Oyo, and Wenyon, as your [holy_sites|E] awaken."
  regula_initialize_event.0002.e:0 "The true King of Britannia rises"
  regula_initialize_event.0002.e.tt:0 "Regula 1. All shall kneel, and in kneeling rise."
  regula_initialize_event.0002.e.tooltip:0 "Power stirs in Dublin, Glamorgan, Gowrie, Middlesex, and West Riding, as your [holy_sites|E] awaken."

  # Covert initialization
  regula_initialize_event.0003.t:0 "Opening the Regula Magistri"
  regula_initialize_event.0003.desc:0 "Expensive as it was, the merchant looked almost relieved when I agreed to purchase the old tome.\n\nLate one evening I begin to thumb through its pages. In the firelight the text first seems to be some archaic cuneiform, completely illegible, but on squinting the words almost seem to rearrange, until I see that only row after row of neatly handwritten text.\n\nAs I read, images of a ritual and the words of an ancient incantation coalesce in my mind. I feel an urge to show the book to #N every woman #!I know.\n\n #weak Untold wealth and power could be yours...#!"
  regula_initialize_event.0003.a:0 "What an interesting opportunity..."
  regula_initialize_event.0003.b:0 "I must destroy this demonic tome, at once!"

  # Wife reads book
  regula_initialize_event.0004.t:0 "A Quiet Moment Together"
  regula_initialize_event.0004.desc:0 "It was harder than I expected it be to ensure that we wouldn't be disturbed, but it is with a smile that I hand [recipient.GetFirstName] the Regula Magistri, open to a large picture of a strangely twisted purple spiral that I'm certain wasn't within its pages when I bought it.\n\n[recipient.GetFirstName] looks over, but whatever question she was about to ask dies on her lips as she sees the spiral. In a trance she takes the book, finger slowly tracing the spiral's curves, head gently twitching as the minutes drag on.\n\nAfter some time [recipient.GetFirstNameNoTooltip] gives a final sharp twitch and closes the book. As I take the tome from her grasp she turns and smiles, as though seeing me for the first time."
  regula_initialize_event.0004.a:0 "Let's discuss our shared future"

  # Character reads book
  regula_initialize_event.0005.t:0 "A Promising Pupil"
  regula_initialize_event.0005.opening:0 "[recipient.Custom2('AppropriateGreetingPositive', SCOPE.sC('actor'))]"
  regula_initialize_event.0005.desc:0 "I'm not certain what all the fuss is about, but of course I'd be happy to read this tome you've discovered."
  regula_initialize_event.0005.a:0 "Start by finding the centre of the spiral..."

  # Will read for money
  regula_initialize_event.0006.t:0 "Alms for the Arts "
  regula_initialize_event.0006.opening:0 "My benevolent lord,"
  regula_initialize_event.0006.desc:0 "I would be most overjoyed to read this tome you have discovered, but alas I have urgent matters that require my attention. Perhaps if you could provide a bit of coin some time might open up in my schedule?"
  regula_initialize_event.0006.a:0 "I'm sure something could be arranged."
  regula_initialize_event.0006.b:0 "Absolutely not. Beg for coin elsewhere."
  regula_initialize_event.0006.c:0 "Why don't we consider this a favour, instead?"

  # Refuses to read
  regula_initialize_event.0007.t:0 "A Brusque Dismissal"
  regula_initialize_event.0007.opening:0 "My liege,"
  regula_initialize_event.0007.desc:0 "I've no time for silly games or dusty tomes. Find someone else to indulge you."
  regula_initialize_event.0007.a:0 "How rude"

  # Covert exposed
  regula_initialize_event.0008.t:0 "Burn Before Reading"
  regula_initialize_event.0008.desc:0 "[secret_exposer.GetTitledFirstName] was more suspicious than I'd given [secret_exposer.GetHerHim] credit for, and rather than confronting me [secret_exposer.GetSheHe] went straight to my court chaplain with allegations of devil worship and sexual impropriety.\n\nThat was hours ago, and as riders approach the castle, I feel a stabbing pain. It seems as though the Keeper of Souls isn't content to return to obscurity, and is using my flesh to break free from its bindings.\n\nMy very soul tears and merges with the spirit, thoughts and desires flowing together until we stand, weak and alone."

  regula_initialize_event.0010.t:0 "The Dark Inheritance"
  regula_initialize_event.0010.desc:0 "Though half the court has spent their every waking hour searching for the Book, in the end it simply appeared in my chambers. The air around it shimmers slightly, whispered words promising untold power at the cost of my soul.\n\nMy predecessor had thought the trade cheap at twice the price, but now the decision is mine to make."
  regula_initialize_event.0010.a:0 "Take up my birthright"
  regula_initialize_event.0010.b:0 "Cast the book into the flames"
  regula_initialize_event.0010.b.tt:0 "Permanently disable Regula Magistri for this character"

  regula_initialize_event.0011.t:0 "Unmarred and Unholy"
  regula_initialize_event.0011.covert_desc:0 "As I search for a book to while away the long hours of a rainy afternoon I find that one pulls my attention more than any of the rest."
  regula_initialize_event.0011.burned_desc:0 "Everyone knows that the Regula Magistri had been destroyed. Tales of the unholy screams that erupted as it was consigned to the flames had spread far beyond my realm. Yet it now lies before me, none the worse for wear.\n\nAs I run a hand over the well-worn cover I feel a pull deep inside. The Keeper of Souls is eager to be let loose upon the world."
  regula_initialize_event.0011.a:0 "Inscribe the Regula onto my soul"
  regula_initialize_event.0011.b:0 "Into the flames once more"
  regula_initialize_event.0011.b.tt:0 "Permanently disable Regula Magistri for this character"
  regula_initialize_event.0011.c:0 "Look upon its pages"
  regula_initialize_event.0011.d:0 "Put it back on the shelf and go write a letter instead"

  regula_initialize_event.1000.t:0 "Regula Magistri Settings"
  regula_initialize_event.1000.desc:0 "What part of the Regula Magistri mod do you wish to adjust?"
  regula_initialize_event.1000.a:0 "Adjust what appears in the Suggestions Tab"
  regula_initialize_event.1000.b:0 "Change Regula Magistri Holy Sites"
  regula_initialize_event.1000.c:0 "Limit how many offspring can be born to each spouse."
  regula_initialize_event.1000.d:0 "Manage Child Education Settings"
  regula_initialize_event.1000.e:0 "See Character Statistics"
  regula_initialize_event.1000.f:0 "Change Notification Settings"
  regula_initialize_event.1000.exit:0 "Exit without further changes"

  regula_initialize_event.1001.t:0 "Regula Magistri Suggestions"
  regula_initialize_event.1001.desc:0 "Use this interface to change what opportunities the game will show in the Suggestions Tab."
  regula_initialize_event.1001.a:0 "Modify the "Mulsa can be dominated" Suggestion"
  regula_initialize_event.1001.menu:0 "Return to the previous menu"
  regula_initialize_event.1001.exit:0 "Exit without further changes"

  regula_initialize_event.1002.t:0 "Regula Magistri Suggestions"
  regula_initialize_event.1002.desc:0 "When do you want to be notified about a Mulsa that can be dominated?"
  regula_initialize_event.1002.a:0 "Whenever a noble in my realm has the Mulsa trait"
  regula_initialize_event.1002.a.tt:0 "L'état, c'est moi." #After all, why shouldn't I dominate them?
  regula_initialize_event.1002.b:0 "Only when a direct vassal has the Mulsa trait"
  regula_initialize_event.1002.c:0 "Never, hide this suggestion"
  regula_initialize_event.1002.menu:0 "Return to the previous menu"
  regula_initialize_event.1002.exit:0 "Exit without further changes"

  # Magister Bloodline Goals
  # _s is for single life goals
  # _c is for cumulative goals
  # _f is for when the goal is already finished
  regula_initialize_event.1003.t:0 "Magister Statistics - Bloodline Goals"
  regula_initialize_event.1003.desc_start:0 "#T Your current character has: #!"
  regula_initialize_event.1003.desc_1_s:0 "Demanded oaths of loyalty from #P [GetGlobalVariable('regula_potestas_queen_tally').GetValue|0]/[SCOPE.ScriptValue('regula_potestas_queen_tally_goal')|0]#! Queens"
  regula_initialize_event.1003.desc_2_s:0 "Triggered #P [GetGlobalVariable('regula_servitude_war_tally').GetValue|0]/[SCOPE.ScriptValue('regula_servitude_war_tally_goal')|0]#! successful Servitude Faction wars"
  regula_initialize_event.1003.desc_3_s:0 "Crushed the will of #P [GetGlobalVariable('regula_domination_war_tally').GetValue|0]/[SCOPE.ScriptValue('regula_domination_war_tally_goal')|0]#! independent or vassal female rulers"
  regula_initialize_event.1003.desc_4_s:0 "Created #P [GetGlobalVariable('regula_contubernalis_tally').GetValue|0]/[SCOPE.ScriptValue('regula_contubernalis_tally_goal')|0]#! lowly Contubernalis"
  regula_initialize_event.1003.desc_5_s:0 "Dominated #P [GetGlobalVariable('regula_domitans_tally').GetValue|0]/[SCOPE.ScriptValue('regula_domitans_tally_goal')|0]#! Paelices"
  regula_initialize_event.1003.desc_6_s:0 "Entranced #P [GetGlobalVariable('regula_fascinare_tally').GetValue|0]/[SCOPE.ScriptValue('regula_fascinare_tally_goal')|0]#! new Mulsae"
  regula_initialize_event.1003.desc_7_s:0 "Claimed those under your care #P [GetGlobalVariable('regula_obedience_tally').GetValue|0]/[SCOPE.ScriptValue('regula_obedience_tally_goal')|0]#! times"

  regula_initialize_event.1003.desc_1_c:0 "The Magisters have demanded oaths of loyalty from #P [GetGlobalVariable('regula_potestas_queen_tally').GetValue|0]/[SCOPE.ScriptValue('regula_potestas_queen_tally_goal_cumulative')|0]#! Queens"
  regula_initialize_event.1003.desc_2_c:0 "The Magisters have triggered #P [GetGlobalVariable('regula_servitude_war_tally').GetValue|0]/[SCOPE.ScriptValue('regula_servitude_war_tally_goal_cumulative')|0]#! successful Servitude Faction wars"
  regula_initialize_event.1003.desc_3_c:0 "The Magisters have crushed the will of #P [GetGlobalVariable('regula_domination_war_tally').GetValue|0]/[SCOPE.ScriptValue('regula_domination_war_tally_goal_cumulative')|0]#! independent or vassal female rulers"
  regula_initialize_event.1003.desc_4_c:0 "The Magisters have created #P [GetGlobalVariable('regula_contubernalis_tally').GetValue|0]/[SCOPE.ScriptValue('regula_contubernalis_tally_goal_cumulative')|0]#! lowly Contubernalis"
  regula_initialize_event.1003.desc_5_c:0 "The Magisters have dominated #P [GetGlobalVariable('regula_domitans_tally').GetValue|0]/[SCOPE.ScriptValue('regula_domitans_tally_goal_cumulative')|0]#! Paelices"
  regula_initialize_event.1003.desc_6_c:0 "The Magisters have entranced #P [GetGlobalVariable('regula_fascinare_tally').GetValue|0]/[SCOPE.ScriptValue('regula_fascinare_tally_goal_cumulative')|0]#! new Mulsae"
  regula_initialize_event.1003.desc_7_c:0 "The Magisters have claimed those under their care #P [GetGlobalVariable('regula_obedience_tally').GetValue|0]/[SCOPE.ScriptValue('regula_obedience_tally_goal_cumulative')|0]#! times"

  regula_initialize_event.1003.desc_1_f:0 "#P [GetGlobalVariable('potestas_queen_bloodline_magister').Char.GetName] laid low many Queens at his feet, giving his descendents [GetTrait('regula_potestas_queen_bloodline').GetName( GetNullCharacter )]#!"
  regula_initialize_event.1003.desc_2_f:0 "#P [GetGlobalVariable('servitude_war_bloodline_magister').Char.GetName] caused servitude wars in distant lands to win in his name, giving his descendents [GetTrait('regula_servitude_war_bloodline').GetName( GetNullCharacter )]#!"
  regula_initialize_event.1003.desc_3_f:0 "#P [GetGlobalVariable('domination_war_bloodline_magister').Char.GetName] crushed the will of female rulers, giving his descendents [GetTrait('regula_domination_war_bloodline').GetName( GetNullCharacter )]#!"
  regula_initialize_event.1003.desc_4_f:0 "#P [GetGlobalVariable('contubernalis_bloodline_magister').Char.GetName] rended the soul of many lowly Contubernalis, giving his descendents [GetTrait('regula_contubernalis_bloodline').GetName( GetNullCharacter )]#!"
  regula_initialize_event.1003.desc_5_f:0 "#P [GetGlobalVariable('domitans_bloodline_magister').Char.GetName] dominated many women into his Paelices, giving his descendents [GetTrait('regula_domitans_bloodline').GetName( GetNullCharacter )]#!"
  regula_initialize_event.1003.desc_6_f:0 "#P [GetGlobalVariable('fascinare_bloodline_magister').Char.GetName] charmed many Mulsa, giving his descendents [GetTrait('regula_fascinare_bloodline').GetName( GetNullCharacter )] #!"
  regula_initialize_event.1003.desc_7_f:0 "#P [GetGlobalVariable('obedience_bloodline_magister').Char.GetName] claimed many of his wards as his own, giving his descendents [GetTrait('regula_obedience_bloodline').GetName( GetNullCharacter )]#!"

  regula_initialize_event.1004.t:0 "Magistri Notification Settings"
  regula_initialize_event.1004.desc:0 "Here you can change your notification settings, by changing them from events to message notifications, or vice versa."
  regula_initialize_event.1004.a_off:0  "#P Fascinare events are Enabled #!"
  regula_initialize_event.1004.a_on:0   "#N Fascinare events are Disabled #!"
  regula_initialize_event.1004.b_off:0  "#P Ward enslavement events are Enabled #!"
  regula_initialize_event.1004.b_on:0   "#N Ward enslavement events are Disabled #!"

  regula_initialize_event.1010.t:0 "Regula Magistri Localization"
  regula_initialize_event.1010.desc:0 "Use this interface to change the Regula Magistri Holy Sites. This will directly modify the faith in your realm, converting Compeditae and counties from the old faith to the new.Holy sites are grouped by geographical location and come with a vanilla Tenet relevant for that area.\n\nWhere are you based?"
  regula_initialize_event.1010.a:0 "Around the Mediterranean"
  regula_initialize_event.1010.b:0 "In Europe"
  regula_initialize_event.1010.c:0 "South-central Asia"
  regula_initialize_event.1010.d:0 "In West Africa"
  regula_initialize_event.1010.e:0 "In Britain"
  regula_initialize_event.1010.menu:0 "Return to the previous menu"
  regula_initialize_event.1010.exit:0 "Exit without further changes"

  regula_initialize_event.1030.t:0 "The Inheritance of the Meek"
  regula_initialize_event.1030.desc:0 "Before you is every noble in the realm, the majority already half entranced. At your back stands your entire harem, and their power bears heavily on the weak of will.\n\nWhen you address the crowd you make no special effort to be heard, simply engraving your words on the thoughts of those present.\n\nStrength lies in subservience, and in submission to your will the Compeditae have known greatness. Those present you bind in their service, for on your death it is your harem that shall crown the next Magister.\n\nWith a snap of your fingers the crowd falls to their knees. You smile as your harem advances on their charges, glamours of dominance falling into place." # and the air is thick with power
  regula_initialize_event.1030.a:0 "Vivat magister in aeternum"