namespace = dp_char_editor

### 角色加点技能菜单 ###

dp_char_editor.1 = {
	type = character_event
	title = dp_char_editor.skill.t
	desc = dp_char_editor.skill.d
	theme = default
	override_background = { reference = study }

	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}

	option = {
		name = dp_char_editor.diplomacy.t
		trigger_event = dp_char_editor.3
	}
	
	option = {
		name = dp_char_editor.martial.t
		trigger_event = dp_char_editor.2
	}

	option = {
		name = dp_char_editor.stewardship.t
		trigger_event = dp_char_editor.4
	}

	option = {
		name = dp_char_editor.intrigue.t
		trigger_event = dp_char_editor.5
	}

	option = {
		name = dp_char_editor.learning.t
		trigger_event = dp_char_editor.6
	}

	option = {
		name = dp_char_editor.prowess.t
		trigger_event = dp_char_editor.7 #勇武加点
	}

	option = {
		name = dp_char_editor_main_menu
		trigger_event = dp_char_editor.1000
	}
}

### MARTIAL SKILL ###

dp_char_editor.2 = {
	type = character_event
	title = dp_char_editor.martial.t
	desc = dp_char_editor.skills.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = study }

	option = {
		name = dp_char_editor.skill.add10
		scope:char_editor = {
			add_martial_skill = 10
		}
		trigger_event = dp_char_editor.2
	}

	option = {
		name = dp_char_editor.skill.add5
		scope:char_editor = {
			add_martial_skill = 5
		}
		trigger_event = dp_char_editor.2
	}
	
	option = {
		name = dp_char_editor.skill.add1
		scope:char_editor = {
			add_martial_skill = 1
		}
		trigger_event = dp_char_editor.2
	}

	option = {
		name = dp_char_editor.skill.minus1
		scope:char_editor = {
			add_martial_skill = -1
		}
		trigger_event = dp_char_editor.2
	}

	option = {
		name = dp_char_editor.skill.minus5
		scope:char_editor = {
			add_martial_skill = -5
		}
		trigger_event = dp_char_editor.2
	}
	
	option = {
		name = dp_char_editor.skill.minus10
		scope:char_editor = {
			add_martial_skill = -10
		}
		trigger_event = dp_char_editor.2
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.1
	}
}

### DIPLOMACY SKILL ###

dp_char_editor.3 = {
	type = character_event
	title = dp_char_editor.diplomacy.t
	desc = dp_char_editor.skills.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = study }

	option = {
		name = dp_char_editor.skill.add10
		scope:char_editor = {
			add_diplomacy_skill = 10
		}
		trigger_event = dp_char_editor.3
	}

	option = {
		name = dp_char_editor.skill.add5
		scope:char_editor = {
			add_diplomacy_skill = 5
		}
		trigger_event = dp_char_editor.3
	}

	option = {
		name = dp_char_editor.skill.add1
		scope:char_editor = {
			add_diplomacy_skill = 1
		}
		trigger_event = dp_char_editor.3
	}

	option = {
		name = dp_char_editor.skill.minus1
		scope:char_editor = {
			add_diplomacy_skill = -1
		}
		trigger_event = dp_char_editor.3
	}

	option = {
		name = dp_char_editor.skill.minus5
		scope:char_editor = {
			add_diplomacy_skill = -5
		}
		trigger_event = dp_char_editor.3
	}
	
	option = {
		name = dp_char_editor.skill.minus10
		scope:char_editor = {
			add_diplomacy_skill = -10
		}
		trigger_event = dp_char_editor.3
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.1
	}
}

### STEWARDSHIP SKILL ###

dp_char_editor.4 = {
	type = character_event
	title = dp_char_editor.stewardship.t
	desc = dp_char_editor.skills.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = study }

	option = {
		name = dp_char_editor.skill.add10
		scope:char_editor = {
			add_stewardship_skill = 10
		}
		trigger_event = dp_char_editor.4
	}

	option = {
		name = dp_char_editor.skill.add5
		scope:char_editor = {
			add_stewardship_skill = 5
		}
		trigger_event = dp_char_editor.4
	}

	option = {
		name = dp_char_editor.skill.add1
		scope:char_editor = {
			add_stewardship_skill = 1
		}
		trigger_event = dp_char_editor.4
	}

	option = {
		name = dp_char_editor.skill.minus1
		scope:char_editor = {
			add_stewardship_skill = -1
		}
		trigger_event = dp_char_editor.4
	}

	option = {
		name = dp_char_editor.skill.minus5
		scope:char_editor = {
			add_stewardship_skill = -5
		}
		trigger_event = dp_char_editor.4
	}
	
	option = {
		name = dp_char_editor.skill.minus10
		scope:char_editor = {
			add_stewardship_skill = -10
		}
		trigger_event = dp_char_editor.4
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.1
	}
}

### INTRIGUE SKILL ###

dp_char_editor.5 = {
	type = character_event
	title = dp_char_editor.intrigue.t
	desc = dp_char_editor.skills.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = study }

	option = {
		name = dp_char_editor.skill.add10
		scope:char_editor = {
			add_intrigue_skill = 10
		}
		trigger_event = dp_char_editor.5
	}

	option = {
		name = dp_char_editor.skill.add5
		scope:char_editor = {
			add_intrigue_skill = 5
		}
		trigger_event = dp_char_editor.5
	}

	option = {
		name = dp_char_editor.skill.add1
		scope:char_editor = {
			add_intrigue_skill = 1
		}
		trigger_event = dp_char_editor.5
	}

	option = {
		name = dp_char_editor.skill.minus1
		scope:char_editor = {
			add_intrigue_skill = -1
		}
		trigger_event = dp_char_editor.5
	}

	option = {
		name = dp_char_editor.skill.minus5
		scope:char_editor = {
			add_intrigue_skill = -5
		}
		trigger_event = dp_char_editor.5
	}
	
	option = {
		name = dp_char_editor.skill.minus10
		scope:char_editor = {
			add_intrigue_skill = -10
		}
		trigger_event = dp_char_editor.5
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.1
	}
}

### LEARNING SKILL ###

dp_char_editor.6 = {
	type = character_event
	title = dp_char_editor.learning.t
	desc = dp_char_editor.skills.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = study }

	option = {
		name = dp_char_editor.skill.add10
		scope:char_editor = {
			add_learning_skill = 10
		}
		trigger_event = dp_char_editor.6
	}

	option = {
		name = dp_char_editor.skill.add5
		scope:char_editor = {
			add_learning_skill = 5
		}
		trigger_event = dp_char_editor.6
	}

	option = {
		name = dp_char_editor.skill.add1
		scope:char_editor = {
			add_learning_skill = 1
		}
		trigger_event = dp_char_editor.6
	}

	option = {
		name = dp_char_editor.skill.minus1
		scope:char_editor = {
			add_learning_skill = -1
		}
		trigger_event = dp_char_editor.6
	}

	option = {
		name = dp_char_editor.skill.minus5
		scope:char_editor = {
			add_learning_skill = -5
		}
		trigger_event = dp_char_editor.6
	}
	
	option = {
		name = dp_char_editor.skill.minus10
		scope:char_editor = {
			add_learning_skill = -10
		}
		trigger_event = dp_char_editor.6
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.1
	}
}

### 技能菜单 ###

dp_char_editor.7 = {
	type = character_event
	title = dp_char_editor.prowess.t
	desc = dp_char_editor.skills.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = study }

	option = {
		name = dp_char_editor.skill.add10
		scope:char_editor = {
			add_prowess_skill = 10
		}
		trigger_event = dp_char_editor.7
	}

	option = {
		name = dp_char_editor.skill.add5
		scope:char_editor = {
			add_prowess_skill = 5
		}
		trigger_event = dp_char_editor.7
	}

	option = {
		name = dp_char_editor.skill.add1
		scope:char_editor = {
			add_prowess_skill = 1
		}
		trigger_event = dp_char_editor.7
	}

	option = {
		name = dp_char_editor.skill.minus1
		scope:char_editor = {
			add_prowess_skill = -1
		}
		trigger_event = dp_char_editor.7
	}

	option = {
		name = dp_char_editor.skill.minus5
		scope:char_editor = {
			add_prowess_skill = -5
		}
		trigger_event = dp_char_editor.7
	}
	
	option = {
		name = dp_char_editor.skill.minus10
		scope:char_editor = {
			add_prowess_skill = -10
		}
		trigger_event = dp_char_editor.7
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.1
	}
}

### SPECIAL TRAIT MENU ###

dp_char_editor.8 = {
	type = character_event
	title = dp_char_editor.traits.special.t
	desc = dp_char_editor.traits.special.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = tavern }
	
	immediate = {
	}
	option = {
		name = immortal
		scope:char_editor = {
			if = {
				limit = {
					has_trait = immortal
				}
				remove_trait = immortal
			}
			else = {
				add_trait = immortal
			}
		}
		trigger_event = dp_char_editor.8
	}

	option = {
		name = trait_zg_buxiu
		scope:char_editor = {
			if = {
				limit = {
					has_trait = zg_buxiu
				}
				remove_trait = zg_buxiu
			}
			else = {
				add_trait = zg_buxiu
				set_immortal_age = 30
			}
		}
		trigger_event = dp_char_editor.8
	}

	option = {
		name = trait_100_stat_man
		scope:char_editor = {
			if = {
				limit = {
					has_trait = 100_stat_man
				}
				remove_trait = 100_stat_man
			}
			else = {
				add_trait = 100_stat_man
			}
		}
		trigger_event = dp_char_editor.8
	}

	option = {
		name = trait_nnn_challenger
		scope:char_editor = {
			if = {
				limit = {
					has_trait = nnn_challenger
				}
				remove_trait = nnn_challenger
			}
			else = {
				add_trait = nnn_challenger
			}
		}
		trigger_event = dp_char_editor.8
	}
	option = {
		name = trait_build_speed_cheat
		scope:char_editor = {
			if = {
				limit = {
					has_trait = build_speed_cheat
				}
				remove_trait = build_speed_cheat
			}
			else = {
				add_trait = build_speed_cheat
			}
		}
		trigger_event = dp_char_editor.8
	}
	option = {
		name = trait_stress_gain_remove
		scope:char_editor = {
			if = {
				limit = {
					has_trait = stress_gain_remove
				}
				remove_trait = stress_gain_remove
			}
			else = {
				add_trait = stress_gain_remove
			}
		}
		trigger_event = dp_char_editor.8
	}
	option = {
		name = trait_tyranny_gain_remove
		scope:char_editor = {
			if = {
				limit = {
					has_trait = tyranny_gain_remove
				}
				remove_trait = tyranny_gain_remove
			}
			else = {
				add_trait = tyranny_gain_remove
			}
		}
		trigger_event = dp_char_editor.8
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.10
	}
}

### 特质主菜单 ###

dp_char_editor.10 = {
	type = character_event
	title = dp_char_editor_menu.traits.t
	desc = dp_char_editor_menu.traits.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = tavern }
	
	# 7 Options fit nicely into an event window
	option = {
		name = dp_char_editor.traits.special.t
		trigger = { scope:char_editor = { has_character_flag = trait_menu_pg_1 } }
		trigger_event = dp_char_editor.8
	}

	option = {
		name = dp_char_editor.education.t
		trigger = { scope:char_editor = { has_character_flag = trait_menu_pg_1 } }
		trigger_event = dp_char_editor.11
	}

	option = {
		name = dp_char_editor.traits.personality.t
		trigger = { scope:char_editor = { has_character_flag = trait_menu_pg_1 } }
		scope:char_editor = { 
			add_character_flag = trait_menu_personality_pg_1 
		}
		trigger_event = dp_char_editor.12
	}

	option = {
		name = dp_char_editor.traits.stress.t
		trigger = { scope:char_editor = { has_character_flag = trait_menu_pg_1 } }
		trigger_event = dp_char_editor.17
	}

	option = {
		name = dp_char_editor.traits.congenital.t
		trigger = { scope:char_editor = { has_character_flag = trait_menu_pg_1 } }
		trigger_event = dp_char_editor.19
	}
	
	option = {
		name = dp_char_editor.traits.commander.t
		trigger = { scope:char_editor = { has_character_flag = trait_menu_pg_1 } }
		scope:char_editor = { 
			add_character_flag = trait_menu_commander_pg_1 
		}
		trigger_event = dp_char_editor.26
	}


	option = {
		name = dp_char_editor.traits.health.t
		trigger = { scope:char_editor = { has_character_flag = trait_menu_pg_1 } }
		trigger_event = dp_char_editor.28
	}

	### PAGE 2 ###
	
	option = {
		name = dp_char_editor.traits.fame.t
		trigger = { scope:char_editor = { has_character_flag = trait_menu_pg_2 } }
		scope:char_editor = {
			add_character_flag = trait_menu_fame_pg_1
		}
		trigger_event = dp_char_editor.16
	}
	
	option = {
		name = dp_char_editor.traits.infamy.t
		trigger = { scope:char_editor = { has_character_flag = trait_menu_pg_2 } }
		scope:char_editor = {
			add_character_flag = trait_menu_infamy_pg_1
		}
		trigger_event = dp_char_editor.13
	}

	option = {
		name = dp_char_editor.traits.lifestyle.t
		trigger = { scope:char_editor = { has_character_flag = trait_menu_pg_2 } }
		custom_tooltip = dp_char_editor.traits.lifestyle_TT
		scope:char_editor = {
			add_character_flag = trait_menu_lifestyle_pg_1
		}
		trigger_event = dp_char_editor.14
	}

	option = {
		name = dp_char_editor.traits.learned.t
		trigger = { scope:char_editor = { has_character_flag = trait_menu_pg_2 } }
		custom_tooltip = dp_char_editor.traits.learned_TT
		scope:char_editor = {
			add_character_flag = trait_menu_learned_pg_1
		}
		trigger_event = dp_char_editor.77
	}

	option = {
		name = dp_char_editor.traits.lifestyle_perk.t
		trigger = { scope:char_editor = { has_character_flag = trait_menu_pg_2 } }
		trigger_event = dp_char_editor.15
	}

	option = {
		name = dp_char_editor.traits.birth.t
		trigger = { scope:char_editor = { has_character_flag = trait_menu_pg_2 } }
		scope:char_editor = {
			add_character_flag = trait_menu_birth_pg_1
		}
		trigger_event = dp_char_editor.27
	}

	option = {
		name = dp_char_editor_forward
		scope:char_editor = {
			trait_menu_forward = yes
		}
		trigger_event = dp_char_editor.10
	}

	option = {
		name = dp_char_editor_backward
		scope:char_editor = {
			trait_menu_backward = yes
		}
		trigger_event = dp_char_editor.10
	}

	option = {
		name = dp_char_editor_main_menu
		scope:char_editor = {
			remove_trait_menu_pgs = yes
			remove_all_trait_menu_go_back_flags = yes
		}
		trigger_event = dp_char_editor.1000
	}
}

### 教育菜单 ###

dp_char_editor.11 = {
	type = character_event
	title = dp_char_editor.education.t
	desc = dp_char_editor.education.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = study }

	option = {
		name = dp_char_editor.traits.education_republican_knowledge
		scope:char_editor = { add_character_flag = last_event_11 }
		trigger_event = dp_char_editor.99
	}

	option = {
		name = dp_char_editor.traits.education.martial
		scope:char_editor = { add_character_flag = last_event_11 }
		trigger_event = dp_char_editor.33
	}

	option = {
		name = dp_char_editor.traits.education.diplomacy
		scope:char_editor = { add_character_flag = last_event_11 }
		trigger_event = dp_char_editor.34
	}

	option = {
		name = dp_char_editor.traits.education.stewardship
		scope:char_editor = { add_character_flag = last_event_11 }
		trigger_event = dp_char_editor.35
	}

	option = {
		name = dp_char_editor.traits.education.intrigue
		scope:char_editor = { add_character_flag = last_event_11 }
		trigger_event = dp_char_editor.36
	}

	option = {
		name = dp_char_editor.traits.education.learning
		scope:char_editor = { add_character_flag = last_event_11 }
		trigger_event = dp_char_editor.37
	}

	option = {
		name = dp_char_editor.traits.education.martial.prowess
		scope:char_editor = { add_character_flag = last_event_11 }
		trigger_event = dp_char_editor.38
	}

	option = {
		name = dp_char_editor_back
		scope:char_editor = {
			remove_all_trait_menu_go_back_flags = yes
		}
		trigger_event = dp_char_editor.10
	}
}

### 主要性格特征 ###

dp_char_editor.12 = {
	type = character_event
	title = dp_char_editor.traits.personality.t
	desc = dp_char_editor.traits.personality.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = feast }

	option = {
		name = trait_lustful
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_personality_pg_1 }
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = lustful } 
		}
		trigger_event = dp_char_editor.12
	}

	option = {
		name = trait_chaste
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_personality_pg_1 }
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = chaste } 
		}
		trigger_event = dp_char_editor.12
	}

	option = {
		name = trait_gluttonous
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_personality_pg_1 }
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = gluttonous } 
		}
		trigger_event = dp_char_editor.12
	}

	option = {
		name = trait_temperate
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_personality_pg_1 }
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = temperate } 
		}
		trigger_event = dp_char_editor.12
	}

	option = {
		name = trait_greedy
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_personality_pg_1 }
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = greedy } 
		}
		trigger_event = dp_char_editor.12
	}

	option = {
		name = trait_generous
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_personality_pg_1 }
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = generous } 
		}
		trigger_event = dp_char_editor.12
	}

	option = {
		name = trait_lazy
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_personality_pg_1 }
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = lazy } 
		}
		trigger_event = dp_char_editor.12
	}

	option = {
		name = trait_diligent
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_personality_pg_1 }
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = diligent } 
		}
		trigger_event = dp_char_editor.12
	}

	option = {
		name = trait_wrathful
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_personality_pg_2 }
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = wrathful } 
		}
		trigger_event = dp_char_editor.12
	}

	option = {
		name = trait_calm
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_personality_pg_2 }
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = calm } 
		}
		trigger_event = dp_char_editor.12
	}

	option = {
		name = trait_patient
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_personality_pg_2 }
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = patient } 
		}
		trigger_event = dp_char_editor.12
	}

	option = {
		name = trait_impatient
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_personality_pg_2 }
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = impatient } 
		}
		trigger_event = dp_char_editor.12
	}

	option = {
		name = trait_arrogant
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_personality_pg_2 }
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = arrogant } 
		}
		trigger_event = dp_char_editor.12
	}

	option = {
		name = trait_humble
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_personality_pg_2 }
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = humble } 
		}
		trigger_event = dp_char_editor.12
	}

	option = {
		name = trait_deceitful
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_personality_pg_2 }
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = deceitful } 
		}
		trigger_event = dp_char_editor.12
	}

	option = {
		name = trait_honest
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_personality_pg_2 }
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = honest } 
		}
		trigger_event = dp_char_editor.12
	}
	option = {
		name = trait_craven
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_personality_pg_3 }
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = craven } 
		}
		trigger_event = dp_char_editor.12
	}

	option = {
		name = trait_brave
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_personality_pg_3 }
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = brave } 
		}
		trigger_event = dp_char_editor.12
	}

	option = {
		name = trait_shy
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_personality_pg_3 }
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = shy } 
		}
		trigger_event = dp_char_editor.12
	}

	option = {
		name = trait_gregarious
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_personality_pg_3 }
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = gregarious } 
		}
		trigger_event = dp_char_editor.12
	}

	option = {
		name = trait_ambitious
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_personality_pg_3 }
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = ambitious } 
		}
		trigger_event = dp_char_editor.12
	}

	option = {
		name = trait_content
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_personality_pg_3 }
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = content } 
		}
		trigger_event = dp_char_editor.12
	}

	option = {
		name = trait_arbitrary
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_personality_pg_3 }
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = arbitrary } 
		}
		trigger_event = dp_char_editor.12
	}

	option = {
		name = trait_just
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_personality_pg_3 }
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = just } 
		}
		trigger_event = dp_char_editor.12
	}
	
	option = {
		name = trait_zealous
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_personality_pg_4 }
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = zealous } 
		}
		trigger_event = dp_char_editor.12
	}

	option = {
		name = trait_cynical
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_personality_pg_4 }
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = cynical } 
		}
		trigger_event = dp_char_editor.12
	}

	option = {
		name = trait_paranoid
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_personality_pg_4 }
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = paranoid } 
		}
		trigger_event = dp_char_editor.12
	}

	option = {
		name = trait_trusting
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_personality_pg_4 }
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = trusting } 
		}
		trigger_event = dp_char_editor.12
	}

	option = {
		name = trait_compassionate
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_personality_pg_4 }
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = compassionate } 
		}
		trigger_event = dp_char_editor.12
	}

	option = {
		name = trait_callous
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_personality_pg_4 }
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = callous } 
		}
		trigger_event = dp_char_editor.12
	}

	option = {
		name = trait_sadistic
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_personality_pg_4 }
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = sadistic} 
		}
		trigger_event = dp_char_editor.12
	}

	option = {
		name = trait_stubborn
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_personality_pg_4 }
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = stubborn} 
		}
		trigger_event = dp_char_editor.12
	}
	
	option = {
		name = trait_fickle
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_personality_pg_5 }
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = fickle} 
		}
		trigger_event = dp_char_editor.12
	}

	option = {
		name = trait_vengeful
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_personality_pg_5 }
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = vengeful} 
		}
		trigger_event = dp_char_editor.12
	}

	option = {
		name = trait_forgiving
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_personality_pg_5 }
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = forgiving} 
		}
		trigger_event = dp_char_editor.12
	}

	option = {
		name = trait_eccentric
		trigger = {
			scope:char_editor = {
				has_character_flag = trait_menu_personality_pg_5
				NOT = { has_trait = stubborn }  # 不能同时拥有顽固特质
				NOT = { has_trait = fickle }    # 不能同时拥有善变特质
			}
		}
		scope:char_editor = {
			LIT_personality_trait_check = { TRAIT = eccentric }
		}
		trigger_event = dp_char_editor.12
	}
	

	option = {
		name = dp_char_editor_forward
		scope:char_editor = {
			trait_menu_personality_forward = yes
		}
		trigger_event = dp_char_editor.12
	}

	option = {
		name = dp_char_editor_backward
		scope:char_editor = {
			trait_menu_personality_backward = yes
		}
		trigger_event = dp_char_editor.12
	}

	option = {
		name = dp_char_editor_back
		scope:char_editor = {
			remove_trait_menu_personality_pgs = yes
		}
		trigger_event = dp_char_editor.10
	}
}

### INFAMY TRAITS ###
dp_char_editor.13 = {
	type = character_event
	title = dp_char_editor.traits.infamy.t
	desc = dp_char_editor_menu.traits.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = throne_room }

	option = {
		name = trait_adulterer
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_infamy_pg_1 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = adulterer } 
		}
		trigger_event = dp_char_editor.13
	}

	option = {
		name = trait_fornicator
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_infamy_pg_1 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = fornicator } 
		}
		trigger_event = dp_char_editor.13
	}

	option = {
		name = trait_deviant
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_infamy_pg_1 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = deviant } 
		}
		trigger_event = dp_char_editor.13
	}

	option = {
		name = trait_kinslayer_1
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_infamy_pg_1 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = kinslayer_1 } 
		}
		trigger_event = dp_char_editor.13
	}

	option = {
		name = trait_kinslayer_2
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_infamy_pg_1 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = kinslayer_2 } 
		}
		trigger_event = dp_char_editor.13
	}

	option = {
		name = trait_kinslayer_3
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_infamy_pg_1 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = kinslayer_3 } 
		}
		trigger_event = dp_char_editor.13
	}

	option = {
		name = trait_incestuous
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_infamy_pg_1 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = incestuous} 
		}
		trigger_event = dp_char_editor.13
	}

	option = {
		name = trait_sodomite
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_infamy_pg_2 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = sodomite } 
		}
		trigger_event = dp_char_editor.13
	}

	option = {
		name = trait_witch
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_infamy_pg_2 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = witch } 
		}
		trigger_event = dp_char_editor.13
	}

	option = {
		name = trait_cannibal
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_infamy_pg_2 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = cannibal } 
		}
		trigger_event = dp_char_editor.13
	}

	option = {
		name = trait_excommunicated
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_infamy_pg_2 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = excommunicated } 
		}
		trigger_event = dp_char_editor.13
	}

	option = {
		name = trait_murderer
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_infamy_pg_2 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = murderer } 
		}
		trigger_event = dp_char_editor.13
	}

	option = {
		name = trait_decadent
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_infamy_pg_2 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = decadent } 
		}
		trigger_event = dp_char_editor.13
	}

	option = {
		name = dp_char_editor_forward
		scope:char_editor = {
			trait_menu_infamy_forward = yes
		}
		trigger_event = dp_char_editor.13
	}

	option = {
		name = dp_char_editor_backward
		scope:char_editor = {
			trait_menu_infamy_backward = yes
		}
		trigger_event = dp_char_editor.13
	}

	option = {
		name = dp_char_editor_back
		scope:char_editor = {
			remove_trait_menu_infamy_pgs = yes
		}
		trigger_event = dp_char_editor.10
	}
}

dp_char_editor.14 = {
	type = character_event
	title = dp_char_editor.traits.lifestyle.t
	desc = dp_char_editor_menu.traits.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = courtyard }

	option = {
		name = trait_celibate
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_lifestyle_pg_1 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = celibate } 
		}
		trigger_event = dp_char_editor.14
	}
	
	option = {
		name = trait_lifestyle_herbalist
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_lifestyle_pg_1 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = lifestyle_herbalist } 
		}
		trigger_event = dp_char_editor.14
	}
	
	option = {
		name = trait_lifestyle_gardener
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_lifestyle_pg_1 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = lifestyle_gardener } 
		}
		trigger_event = dp_char_editor.14
	}

	option = {
		name = trait_pilgrim
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_lifestyle_pg_1 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = pilgrim } 
		}
		trigger_event = dp_char_editor.14
	}

	option = {
		name = trait_lifestyle_mystic
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_lifestyle_pg_1 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = lifestyle_mystic } 
		}
		trigger_event = dp_char_editor.14
	}

	option = {
		name = trait_lifestyle_hunter
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_lifestyle_pg_1 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = lifestyle_hunter } 
		}
		trigger_event = dp_char_editor.14
	}

	option = {
		name = trait_traveler_1
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_lifestyle_pg_1 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = lifestyle_traveler } 
		}
		trigger_event = dp_char_editor.14
	}

	### PAGE 2 ###
	option = {
		name = trait_tourney_participant
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_lifestyle_pg_2 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = tourney_participant } 
		}
		trigger_event = dp_char_editor.14
	}

	option = {
		name = trait_blademaster_1
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_lifestyle_pg_2 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = lifestyle_blademaster} 
		}
		trigger_event = dp_char_editor.14
	}

	option = {
		name = trait_reveler_1
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_lifestyle_pg_2 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = lifestyle_reveler } 
		}
		trigger_event = dp_char_editor.14
	}

	option = {
		name = trait_physician_1
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_lifestyle_pg_2 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = lifestyle_physician } 
		}
		trigger_event = dp_char_editor.14
	}

	option = {
		name = trait_gallowsbait
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_lifestyle_pg_2 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = gallowsbait } 
		}
		trigger_event = dp_char_editor.14
	}

	option = {
		name = dp_char_editor_forward
		scope:char_editor = {
			trait_menu_lifestyle_forward = yes
		}
		trigger_event = dp_char_editor.14
	}

	option = {
		name = dp_char_editor_backward
		scope:char_editor = {
			trait_menu_lifestyle_backward = yes
		}
		trigger_event = dp_char_editor.14
	}

	option = {
		name = dp_char_editor_back
		scope:char_editor = {
			remove_trait_menu_lifestyle_pgs = yes
		}
		trigger_event = dp_char_editor.10
	}
}

dp_char_editor.15 = {
	type = character_event
	title = dp_char_editor.traits.lifestyle_perk.t
	desc = dp_char_editor_menu.traits.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = courtyard }

	option = {
		name = dp_char_editor.traits.lifestyle_perk_diplomacy.t
		trigger_event = dp_char_editor.62
	}
	
	option = {
		name = dp_char_editor.traits.lifestyle_perk_martial.t
		trigger_event = dp_char_editor.63
	}
	
	option = {
		name = dp_char_editor.traits.lifestyle_perk_stewardship.t
		trigger_event = dp_char_editor.64
	}

	option = {
		name = dp_char_editor.traits.lifestyle_perk_intrigue.t
		trigger_event = dp_char_editor.65
	}

	option = {
		name = dp_char_editor.traits.lifestyle_perk_learning.t
		trigger_event = dp_char_editor.66
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.10
	}
}

dp_char_editor.16 = {
	type = character_event
	title = dp_char_editor.traits.fame.t
	desc = dp_char_editor_menu.traits.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = throne_room }

	option = {
		name = trait_pilgrim
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_fame_pg_1 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = pilgrim } 
		}
		trigger_event = dp_char_editor.16
	}

	option = {
		name = trait_hajjah
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_fame_pg_1 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = hajjaj } 
		}
		trigger_event = dp_char_editor.16
	}

	option = {
		name = trait_devoted
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_fame_pg_1 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = devoted} 
		}
		trigger_event = dp_char_editor.16
	}

	option = {
		name = trait_sayyid
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_fame_pg_1 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = sayyid } 
		}
		trigger_event = dp_char_editor.16
	}

	option = {
		name = trait_saoshyant
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_fame_pg_1 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = saoshyant } 
		}
		trigger_event = dp_char_editor.16
	}

	option = {
		name = trait_saoshyant_descendant
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_fame_pg_1 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = saoshyant_descendant } 
		}
		trigger_event = dp_char_editor.16
	}

	option = {
		name = trait_paragon
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_fame_pg_1 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = paragon } 
		}
		trigger_event = dp_char_editor.16
	}

	option = {
		name = trait_savior
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_fame_pg_1 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = savior } 
		}
		trigger_event = dp_char_editor.16
	}

	### PAGE 2 ###

	option = {
		name = trait_divine_blood
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_fame_pg_2 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = divine_blood } 
		}
		trigger_event = dp_char_editor.16
	}

	option = {
		name = trait_blood_of_prophet
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_fame_pg_2 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = blood_of_prophet} 
		}
		trigger_event = dp_char_editor.16
	}

	option = {
		name = trait_faith_warrior
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_fame_pg_2 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = faith_warrior} 
		}
		trigger_event = dp_char_editor.16
	}

	option = {
		name = trait_saint
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_fame_pg_2 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = saint } 
		}
		trigger_event = dp_char_editor.16
	}

	option = {
		name = trait_order_member
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_fame_pg_2 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = order_member } 
		}
		trigger_event = dp_char_editor.16
	}

	option = {
		name = trait_berserker
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_fame_pg_2 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = berserker } 
		}
		trigger_event = dp_char_editor.16
	}

	option = {
		name = trait_shieldmaiden_female
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_fame_pg_2 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = shieldmaiden } 
		}
		trigger_event = dp_char_editor.16
	}

	option = {
		name = trait_adventurer
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_fame_pg_2 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = adventurer } 
		}
		trigger_event = dp_char_editor.16
	}

	### PAGE 3 ###

	option = {
		name = trait_varangian
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_fame_pg_3 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = varangian } 
		}
		trigger_event = dp_char_editor.16
	}

	option = {
		name = trait_poet
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_fame_pg_3 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = poet } 
		}
		trigger_event = dp_char_editor.16
	}

	option = {
		name = trait_viking_has_longships
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_fame_pg_3 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = viking } 
		}
		trigger_event = dp_char_editor.16
	}

	option = {
		name = trait_heresiarch
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_fame_pg_3 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = heresiarch } 
		}
		trigger_event = dp_char_editor.16
	}

	option = {
		name = trait_peasant_leader
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_fame_pg_3 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = peasant_leader } 

		}
		trigger_event = dp_char_editor.16
	}

	option = {
		name = trait_loyal
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_fame_pg_3 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = loyal } 
		}
		trigger_event = dp_char_editor.16
	}

	option = {
		name = trait_disloyal
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_fame_pg_3 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = disloyal } 
		}
		trigger_event = dp_char_editor.16
	}

	option = {
		name = dp_char_editor_forward
		scope:char_editor = {
			trait_menu_fame_forward = yes
		}
		trigger_event = dp_char_editor.16
	}

	option = {
		name = dp_char_editor_backward
		scope:char_editor = {
			trait_menu_fame_backward = yes
		}
		trigger_event = dp_char_editor.16
	}

	option = {
		name = dp_char_editor_back
		scope:char_editor = {
			remove_trait_menu_fame_pgs = yes
		}
		trigger_event = dp_char_editor.10
	}
}

### STRESS-RELATED TRAITS 1 ###

dp_char_editor.17 = {
	type = character_event
	title = dp_char_editor.traits.stress.t
	desc = dp_char_editor.traits.stress.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = bedchamber }

	option = {
		name = trait_athletic
		scope:char_editor = {
			if = {
				limit = {
					has_trait = athletic
				}
				remove_trait = athletic
			}
			else = {
				add_trait = athletic
			}
		}
		trigger_event = dp_char_editor.17
	}

	option = {
		name = trait_confider
		scope:char_editor = {
			if = {
				limit = {
					has_trait = confider
				}
				remove_trait = confider
			}
			else = {
				add_trait = confider
			}
		}
		trigger_event = dp_char_editor.17
	}

	option = {
		name = trait_journaller
		scope:char_editor = {
			if = {
				limit = {
					has_trait = journaller
				}
				remove_trait = journaller
			}
			else = {
				add_trait = journaller
			}
		}
		trigger_event = dp_char_editor.17
	}

	option = {
		name = trait_inappetetic
		scope:char_editor = {
			if = {
				limit = {
					has_trait = inappetetic
				}
				remove_trait = inappetetic
			}
			else = {
				add_trait = inappetetic
			}
		}
		trigger_event = dp_char_editor.17
	}

	option = {
		name = trait_comfort_eater
		scope:char_editor = {
			if = {
				limit = {
					has_trait = comfort_eater
				}
				remove_trait = comfort_eater
			}
			else = {
				add_trait = comfort_eater
			}
		}
		trigger_event = dp_char_editor.17
	}

	option = {
		name = trait_contrite
		scope:char_editor = {
			if = {
				limit = {
					has_trait = contrite
				}
				remove_trait = contrite
			}
			else = {
				add_trait = contrite
			}
		}
		trigger_event = dp_char_editor.17
	}

	option = {
		name = trait_improvident
		scope:char_editor = {
			if = {
				limit = {
					has_trait = improvident
				}
				remove_trait = improvident
			}
			else = {
				add_trait = improvident
			}
		}
		trigger_event = dp_char_editor.17
	}

	option = {
		name = trait_profligate
		scope:char_editor = {
			if = {
				limit = {
					has_trait = profligate
				}
				remove_trait = profligate
			}
			else = {
				add_trait = profligate
			}
		}
		trigger_event = dp_char_editor.17
	}

	option = {
		name = dp_char_editor_next
		trigger_event = dp_char_editor.18
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.10
	}
}

### STRESS-RELATED TRAITS 2 ###

dp_char_editor.18 = {
	type = character_event
	title = dp_char_editor.traits.stress.t
	desc = dp_char_editor.traits.stress.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = bedchamber }

	option = {
		name = trait_flagellant
		scope:char_editor = {
			if = {
				limit = {
					has_trait = flagellant
				}
				remove_trait = flagellant
			}
			else = {
				add_trait = flagellant
			}
		}
		trigger_event = dp_char_editor.18
	}

	option = {
		name = trait_irritable
		scope:char_editor = {
			if = {
				limit = {
					has_trait = irritable
				}
				remove_trait = irritable
			}
			else = {
				add_trait = irritable
			}
		}
		trigger_event = dp_char_editor.18
	}

	option = {
		name = trait_reclusive
		scope:char_editor = {
			if = {
				limit = {
					has_trait = reclusive
				}
				remove_trait = reclusive
			}
			else = {
				add_trait = reclusive
			}
		}
		trigger_event = dp_char_editor.18
	}

	option = {
		name = trait_rakish
		scope:char_editor = {
			if = {
				limit = {
					has_trait = rakish
				}
				remove_trait = rakish
			}
			else = {
				add_trait = rakish
			}
		}
		trigger_event = dp_char_editor.18
	}

	option = {
		name = trait_hashishiyah
		scope:char_editor = {
			if = {
				limit = {
					has_trait = hashishiyah
				}
				remove_trait = hashishiyah
			}
			else = {
				add_trait = hashishiyah
			}
		}
		trigger_event = dp_char_editor.18
	}

	option = {
		name = trait_drunkard
		scope:char_editor = {
			if = {
				limit = {
					has_trait = drunkard
				}
				remove_trait = drunkard
			}
			else = {
				add_trait = drunkard
			}
		}
		trigger_event = dp_char_editor.18
	}

	option = {
		name = dp_char_editor_next
		trigger_event = dp_char_editor.17
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.10
	}
}

### CONGENITAL TRAITS ###

dp_char_editor.19 = {
	type = character_event
	title = dp_char_editor.traits.congenital.t
	desc = dp_char_editor.traits.congenital.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = physicians_study }

	option = {
		name = dp_char_editor.traits.beauty.t
		trigger_event = dp_char_editor.20
	}

	option = {
		name = dp_char_editor.traits.intellect.t
		trigger_event = dp_char_editor.21
	}

	option = {
		name = dp_char_editor.traits.physique.t
		trigger_event = dp_char_editor.22
	}

	option = {
		name = dp_char_editor.traits.physical.good.t
		trigger_event = dp_char_editor.23
	}

	option = {
		name = dp_char_editor.traits.physical.bad.t
		trigger_event = dp_char_editor.24
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.10
	}
}

### BEAUTY TRAITS ###

dp_char_editor.20 = {
	type = character_event
	title = dp_char_editor.traits.beauty.t
	desc = dp_char_editor.traits.beauty.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = physicians_study }
	
	option = {
		name = trait_beauty_bad_3
		scope:char_editor = {
			if = {
				limit = {
					has_trait = beauty_bad_3
				}
				remove_trait = beauty_bad_3
			}
			else = {
				add_trait = beauty_bad_3
			}
		}
		trigger_event = dp_char_editor.20
	}

	option = {
		name = trait_beauty_bad_2
		scope:char_editor = {
			if = {
				limit = {
					has_trait = beauty_bad_2
				}
				remove_trait = beauty_bad_2
			}
			else = {
				add_trait = beauty_bad_2
			}
		}
		trigger_event = dp_char_editor.20
	}
	
	option = {
		name = trait_beauty_bad_1
		scope:char_editor = {
			if = {
				limit = {
					has_trait = beauty_bad_1
				}
				remove_trait = beauty_bad_1
			}
			else = {
				add_trait = beauty_bad_1
			}
		}
		trigger_event = dp_char_editor.20
	}

	option = {
		name = trait_beauty_good_1
		scope:char_editor = {
			if = {
				limit = {
					has_trait = beauty_good_1
				}
				remove_trait = beauty_good_1
			}
			else = {
				add_trait = beauty_good_1
			}
		}
		trigger_event = dp_char_editor.20
	}

	option = {
		name = trait_beauty_good_2
		scope:char_editor = {
			if = {
				limit = {
					has_trait = beauty_good_2
				}
				remove_trait = beauty_good_2
			}
			else = {
				add_trait = beauty_good_2
			}
		}
		trigger_event = dp_char_editor.20
	}

	option = {
		name = trait_beauty_good_3
		scope:char_editor = {
			if = {
				limit = {
					has_trait = beauty_good_3
				}
				remove_trait = beauty_good_3
			}
			else = {
				add_trait = beauty_good_3
			}
		}
		trigger_event = dp_char_editor.20
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.19
	}
}

### INTELLECT ###

dp_char_editor.21 = {
	type = character_event
	title = dp_char_editor.traits.intellect.t
	desc = dp_char_editor.traits.intellect.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = physicians_study }
	
	option = {
		name = trait_intellect_bad_3
		scope:char_editor = {
			if = {
				limit = {
					has_trait = intellect_bad_3
				}
				remove_trait = intellect_bad_3
			}
			else = {
				add_trait = intellect_bad_3
			}
		}
		trigger_event = dp_char_editor.21
	}

	option = {
		name = trait_intellect_bad_2
		scope:char_editor = {
			if = {
				limit = {
					has_trait = intellect_bad_2
				}
				remove_trait = intellect_bad_2
			}
			else = {
				add_trait = intellect_bad_2
			}
		}
		trigger_event = dp_char_editor.21
	}

	option = {
		name = trait_intellect_bad_1
		scope:char_editor = {
			if = {
				limit = {
					has_trait = intellect_bad_1
				}
				remove_trait = intellect_bad_1
			}
			else = {
				add_trait = intellect_bad_1
			}
		}
		trigger_event = dp_char_editor.21
	}

	option = {
		name = trait_intellect_good_1
		scope:char_editor = {
			if = {
				limit = {
					has_trait = intellect_good_1
				}
				remove_trait = intellect_good_1
			}
			else = {
				add_trait = intellect_good_1
			}
		}
		trigger_event = dp_char_editor.21
	}

	option = {
		name = trait_intellect_good_2
		scope:char_editor = {
			if = {
				limit = {
					has_trait = intellect_good_2
				}
				remove_trait = intellect_good_2
			}
			else = {
				add_trait = intellect_good_2
			}
		}
		trigger_event = dp_char_editor.21
	}

	option = {
		name = trait_intellect_good_3
		scope:char_editor = {
			if = {
				limit = {
					has_trait = intellect_good_3
				}
				remove_trait = intellect_good_3
			}
			else = {
				add_trait = intellect_good_3
			}
		}
		trigger_event = dp_char_editor.21
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.19
	}
}

### PHYSIQUE ###

dp_char_editor.22 = {
	type = character_event
	title = dp_char_editor.traits.physique.t
	desc = dp_char_editor.traits.physique.t
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = physicians_study }

	option = {
		name = trait_physique_bad_3
		scope:char_editor = {
			if = {
				limit = {
					has_trait = physique_bad_3
				}
				remove_trait = physique_bad_3
			}
			else = {
				add_trait = physique_bad_3
			}
		}
		trigger_event = dp_char_editor.22
	}

	option = {
		name = trait_physique_bad_2
		scope:char_editor = {
			if = {
				limit = {
					has_trait = physique_bad_2
				}
				remove_trait = physique_bad_2
			}
			else = {
				add_trait = physique_bad_2
			}
		}
		trigger_event = dp_char_editor.22
	}

	option = {
		name = trait_physique_bad_1
		scope:char_editor = {
			if = {
				limit = {
					has_trait = physique_bad_1
				}
				remove_trait = physique_bad_1
			}
			else = {
				add_trait = physique_bad_1
			}
		}
		trigger_event = dp_char_editor.22
	}

	option = {
		name = trait_physique_good_1
		scope:char_editor = {
			if = {
				limit = {
					has_trait = physique_good_1
				}
				remove_trait = physique_good_1
			}
			else = {
				add_trait = physique_good_1
			}
		}
		trigger_event = dp_char_editor.22
	}

	option = {
		name = trait_physique_good_2
		scope:char_editor = {
			if = {
				limit = {
					has_trait = physique_good_2
				}
				remove_trait = physique_good_2
			}
			else = {
				add_trait = physique_good_2
			}
		}
		trigger_event = dp_char_editor.22
	}

	option = {
		name = trait_physique_good_3
		scope:char_editor = {
			if = {
				limit = {
					has_trait = physique_good_3
				}
				remove_trait = physique_good_3
			}
			else = {
				add_trait = physique_good_3
			}
		}
		trigger_event = dp_char_editor.22
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.19
	}
}

### PHYSICAL GOOD ###

dp_char_editor.23 = {
	type = character_event
	title = dp_char_editor.traits.physical.good.t
	desc = dp_char_editor.traits.physical.good.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = physicians_study }

	option = {
		name = trait_pure_blooded
		scope:char_editor = {
			if = {
				limit = {
					has_trait = pure_blooded
				}
				remove_trait = pure_blooded
			}
			else = {
				add_trait = pure_blooded
			}
		}
		trigger_event = dp_char_editor.23
	}

	option = {
		name = trait_fecund
		scope:char_editor = {
			if = {
				limit = {
					has_trait = fecund
				}
				remove_trait = fecund
			}
			else = {
				add_trait = fecund
			}
		}
		trigger_event = dp_char_editor.23
	}

	option = {
		name = trait_strong
		scope:char_editor = {
			if = {
				limit = {
					has_trait = strong
				}
				remove_trait = strong
			}
			else = {
				add_trait = strong
			}
		}
		trigger_event = dp_char_editor.23
	}
	
	option = {
		name = trait_shrewd
		scope:char_editor = {
			if = {
				limit = {
					has_trait = shrewd
				}
				remove_trait = shrewd
			}
			else = {
				add_trait = shrewd
			}
		}
		trigger_event = dp_char_editor.23
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.19
	}
}

### PHYSICAL BAD 1 ###

dp_char_editor.24 = {
	type = character_event
	title = dp_char_editor.traits.physical.bad.t
	desc = dp_char_editor.traits.physical.bad.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = physicians_study }

	option = {
		name = trait_dwarf
		scope:char_editor = {
			if = {
				limit = {
					has_trait = dwarf
				}
				remove_trait = dwarf
			}
			else = {
				add_trait = dwarf
			}
		}
		trigger_event = dp_char_editor.24
	}

	option = {
		name = trait_giant
		scope:char_editor = {
			if = {
				limit = {
					has_trait = giant
				}
				remove_trait = giant
			}
			else = {
				add_trait = giant
			}
		}
		trigger_event = dp_char_editor.24
	}
	
	option = {
		name = trait_albino
		scope:char_editor = {
			if = {
				limit = {
					has_trait = albino
				}
				remove_trait = albino
			}
			else = {
				add_trait = albino
			}
		}
		trigger_event = dp_char_editor.24
	}

	option = {
		name = trait_weak
		scope:char_editor = {
			if = {
				limit = {
					has_trait = weak
				}
				remove_trait = weak
			}
			else = {
				add_trait = weak
			}
		}
		trigger_event = dp_char_editor.24
	}

	option = {
		name = trait_dull
		scope:char_editor = {
			if = {
				limit = {
					has_trait = dull
				}
				remove_trait = dull
			}
			else = {
				add_trait = dull
			}
		}
		trigger_event = dp_char_editor.24
	}

	option = {
		name = trait_infertile
		scope:char_editor = {
			if = {
				limit = {
					has_trait = infertile
				}
				remove_trait = infertile
			}
			else = {
				add_trait = infertile
			}
		}
		trigger_event = dp_char_editor.24
	}

	option = {
		name = trait_bleeder
		scope:char_editor = {
			if = {
				limit = {
					has_trait = bleeder
				}
				remove_trait = bleeder
			}
			else = {
				add_trait = bleeder
			}
		}
		trigger_event = dp_char_editor.24
	}

	option = {
		name = trait_wheezing
		scope:char_editor = {
			if = {
				limit = {
					has_trait = wheezing
				}
				remove_trait = wheezing
			}
			else = {
				add_trait = wheezing
			}
		}
		trigger_event = dp_char_editor.24
	}

	option = {
		name = dp_char_editor_next
		trigger_event = dp_char_editor.25
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.19
	}
}

### PHYSICAL BAD 2 ###

dp_char_editor.25 = {
	type = character_event
	title = dp_char_editor.traits.physical.bad.t
	desc = dp_char_editor.traits.physical.bad.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = physicians_study }

	option = {
		name = trait_scaly
		scope:char_editor = {
			if = {
				limit = {
					has_trait = scaly
				}
				remove_trait = scaly
			}
			else = {
				add_trait = scaly
			}
		}
		trigger_event = dp_char_editor.25
	}

	option = {
		name = trait_spindly
		scope:char_editor = {
			if = {
				limit = {
					has_trait = spindly
				}
				remove_trait = spindly
			}
			else = {
				add_trait = spindly
			}
		}
		trigger_event = dp_char_editor.25
	}

	option = {
		name = trait_impotent
		scope:char_editor = {
			if = {
				limit = {
					has_trait = impotent
				}
				remove_trait = impotent
			}
			else = {
				add_trait = impotent
			}
		}
		trigger_event = dp_char_editor.25
	}

	option = {
		name = trait_inbred
		scope:char_editor = {
			if = {
				limit = {
					has_trait = inbred
				}
				remove_trait = inbred
			}
			else = {
				add_trait = inbred
			}
		}
		trigger_event = dp_char_editor.25
	}

	option = {
		name = trait_stuttering
		scope:char_editor = {
			if = {
				limit = {
					has_trait = stuttering
				}
				remove_trait = stuttering
			}
			else = {
				add_trait = stuttering
			}
		}
		trigger_event = dp_char_editor.25
	}

	option = {
		name = trait_lisping
		scope:char_editor = {
			if = {
				limit = {
					has_trait = lisping
				}
				remove_trait = lisping
			}
			else = {
				add_trait = lisping
			}
		}
		trigger_event = dp_char_editor.25
	}

	option = {
		name = trait_hunchbacked
		scope:char_editor = {
			if = {
				limit = {
					has_trait = hunchbacked
				}
				remove_trait = hunchbacked
			}
			else = {
				add_trait = hunchbacked
			}
		}
		trigger_event = dp_char_editor.25
	}

	option = {
		name = trait_clubfooted
		scope:char_editor = {
			if = {
				limit = {
					has_trait = clubfooted
				}
				remove_trait = clubfooted
			}
			else = {
				add_trait = clubfooted
			}
		}
		trigger_event = dp_char_editor.25
	}

	option = {
		name = dp_char_editor_next
		trigger_event = dp_char_editor.24
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.19
	}
}

### COMMANDER TRAITS ###

dp_char_editor.26 = {
	type = character_event
	title = dp_char_editor.traits.commander.t
	desc = dp_char_editor.traits.commander.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = battlefield }

	option = {
		name = trait_logistician
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_commander_pg_1 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = logistician } 
		}
		trigger_event = dp_char_editor.26
	}

	option = {
		name = trait_military_engineer
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_commander_pg_1 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = military_engineer } 
		}
		trigger_event = dp_char_editor.26
	}

	option = {
		name = trait_aggressive_attacker
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_commander_pg_1 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = aggressive_attacker } 
		}
		trigger_event = dp_char_editor.26
	}

	option = {
		name = trait_unyielding_defender
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_commander_pg_1 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = unyielding_defender } 
		}
		trigger_event = dp_char_editor.26
	}

	option = {
		name = trait_forder
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_commander_pg_1 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = forder } 
		}
		trigger_event = dp_char_editor.26
	}

	option = {
		name = trait_flexible_leader
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_commander_pg_1 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = flexible_leader } 
		}
		trigger_event = dp_char_editor.26
	}

	option = {
		name = trait_desert_warrior
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_commander_pg_1 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = desert_warrior } 
		}
		trigger_event = dp_char_editor.26
	}

	### PAGE 2 ###

	option = {
		name = trait_jungle_stalker
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_commander_pg_2 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = jungle_stalker } 
		}
		trigger_event = dp_char_editor.26
	}

	option = {
		name = trait_reaver
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_commander_pg_2 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = reaver} 
		}
		trigger_event = dp_char_editor.26
	}

	option = {
		name = trait_reckless
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_commander_pg_2 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = reckless } 
		}
		trigger_event = dp_char_editor.26
	}

	option = {
		name = trait_holy_warrior
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_commander_pg_2 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = holy_warrior } 
		}
		trigger_event = dp_char_editor.26
	}
	option = {
		name = trait_open_terrain_expert
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_commander_pg_2 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = open_terrain_expert } 
		}
		trigger_event = dp_char_editor.26
	}

	option = {
		name = trait_rough_terrain_expert
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_commander_pg_2 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = rough_terrain_expert } 
		}
		trigger_event = dp_char_editor.26
	}

	option = {
		name = trait_forest_fighter
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_commander_pg_2 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = forest_fighter } 
		}
		trigger_event = dp_char_editor.26
	}

	### PAGE 3 ###

	option = {
		name = trait_cautious_leader
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_commander_pg_3 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = cautious_leader } 
		}
		trigger_event = dp_char_editor.26
	}

	option = {
		name = trait_organizer
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_commander_pg_3 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = organizer } 
		}
		trigger_event = dp_char_editor.26
	}

	option = {
		name = trait_winter_soldier
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_commander_pg_3 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = winter_soldier} 
		}
		trigger_event = dp_char_editor.26
	}

	option = {
		name = dp_char_editor_forward
		scope:char_editor = {
			trait_menu_commander_forward = yes
		}
		trigger_event = dp_char_editor.26
	}

	option = {
		name = dp_char_editor_backward
		scope:char_editor = {
			trait_menu_commander_backward = yes
		}
		trigger_event = dp_char_editor.26
	}

	option = {
		name = dp_char_editor_back
		scope:char_editor = {
			remove_trait_menu_commander_pgs = yes
		}
		trigger_event = dp_char_editor.10
	}
}

dp_char_editor.27 = {
	type = character_event
	title = dp_char_editor.traits.birth.t
	desc = dp_char_editor_menu.traits.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = bedchamber }

	option = {
		name = trait_bastard
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_birth_pg_1 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = bastard } 
		}
		trigger_event = dp_char_editor.27
	}

	option = {
		name = trait_legitimized_bastard
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_birth_pg_1 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = legitimized_bastard } 
		}
		trigger_event = dp_char_editor.27
	}

	option = {
		name = trait_disputed_heritage
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_birth_pg_1 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = disputed_heritage } 
		}
		trigger_event = dp_char_editor.27
	}

	option = {
		name = trait_child_of_concubine
		trigger = {
			AND = {
				scope:char_editor = { has_character_flag = trait_menu_birth_pg_1 }
				scope:char_editor = { is_male = yes }
			}		
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = child_of_concubine_male } 
		}
		trigger_event = dp_char_editor.27
	}

	option = {
		name = trait_child_of_concubine
		trigger = {
			AND = {
				scope:char_editor = { has_character_flag = trait_menu_birth_pg_1 }
				scope:char_editor = { is_female = yes }
			}		
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = child_of_concubine_female } 
		}
		trigger_event = dp_char_editor.27
	}

	option = {
		name = trait_wild_oat
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_birth_pg_1 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = wild_oat } 
		}
		trigger_event = dp_char_editor.27
	}

	option = {
		name = trait_bastard_founder
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_birth_pg_1 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = bastard_founder } 
		}
		trigger_event = dp_char_editor.27
	}

	option = {
		name = trait_twin
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_birth_pg_1 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = twin } 
		}
		trigger_event = dp_char_editor.27
	}

	### PAGE 2 ###

	option = {
		name = trait_born_in_the_purple
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_birth_pg_2 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = born_in_the_purple } 
		}
		trigger_event = dp_char_editor.27
	}

	option = {
		name = trait_augustus
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_birth_pg_2 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = augustus } 
		}
		trigger_event = dp_char_editor.27
	}

	option = {
		name = trait_conqueror
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_birth_pg_2 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = conqueror } 
		}
		trigger_event = dp_char_editor.27
	}

	option = {
		name = trait_chakravarti
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_birth_pg_2 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = chakravarti } 
		}
		trigger_event = dp_char_editor.27
	}

	option = {
		name = trait_greatest_of_khans
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_birth_pg_2 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = greatest_of_khans } 
		}
		trigger_event = dp_char_editor.27
	}

	option = {
		name = trait_reincarnation
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_birth_pg_2 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = reincarnation } 
		}
		trigger_event = dp_char_editor.27
	}

	option = {
		name = trait_extolled
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_birth_pg_2 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = extolled } 
		}
		trigger_event = dp_char_editor.27
	}

	option = {
		name = trait_saint
		trigger = {
			scope:char_editor = { has_character_flag = trait_menu_birth_pg_2 }
		}
		scope:char_editor = {
			LIT_trait_check = { TRAIT = saint } 
		}
		trigger_event = dp_char_editor.27
	}

	option = {
		name = dp_char_editor_forward
		scope:char_editor = {
			trait_menu_birth_forward = yes
		}
		trigger_event = dp_char_editor.27
	}

	option = {
		name = dp_char_editor_backward
		scope:char_editor = {
			trait_menu_birth_backward = yes
		}
		trigger_event = dp_char_editor.27
	}

	option = {
		name = dp_char_editor_back
		scope:char_editor = {
			remove_trait_menu_birth_pgs = yes
		}
		trigger_event = dp_char_editor.10
	}
}

### HEALTH ISSUES 1 ###

dp_char_editor.28 = {
	type = character_event
	title = dp_char_editor.traits.health.t
	desc = dp_char_editor.traits.health.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = physicians_study }

	option = {
		name = trait_depressed_1
		scope:char_editor = {
			if = {
				limit = {
					has_trait = depressed_1
				}
				remove_trait = depressed_1
			}
			else = {
				add_trait = depressed_1
			}
		}
		trigger_event = dp_char_editor.28
	}

	option = {
		name = dp_char_editor.traits.health.depressed_genetic
		scope:char_editor = {
			if = {
				limit = {
					has_trait = depressed_genetic
				}
				remove_trait = depressed_genetic
			}
			else = {
				add_trait = depressed_genetic
			}
		}
		trigger_event = dp_char_editor.28
	}

	option = {
		name = trait_lunatic_1
		scope:char_editor = {
			if = {
				limit = {
					has_trait = lunatic_1
				}
				remove_trait = lunatic_1
			}
			else = {
				add_trait = lunatic_1
			}
		}
		trigger_event = dp_char_editor.28
	}

	option = {
		name = dp_char_editor.traits.health.lunatic_genetic
		scope:char_editor = {
			if = {
				limit = {
					has_trait = lunatic_genetic
				}
				remove_trait = lunatic_genetic
			}
			else = {
				add_trait = lunatic_genetic
			}
		}
		trigger_event = dp_char_editor.28
	}

	option = {
		name = trait_possessed_1
		scope:char_editor = {
			if = {
				limit = {
					has_trait = possessed_1
				}
				remove_trait = possessed_1
			}
			else = {
				add_trait = possessed_1
			}
		}
		trigger_event = dp_char_editor.28
	}

	option = {
		name = dp_char_editor.traits.health.possessed_genetic
		scope:char_editor = {
			if = {
				limit = {
					has_trait = possessed_genetic
				}
				remove_trait = possessed_genetic
			}
			else = {
				add_trait = possessed_genetic
			}
		}
		trigger_event = dp_char_editor.28
	}

	option = {
		name = trait_ill
		scope:char_editor = {
			if = {
				limit = {
					has_trait = ill
				}
				remove_trait = ill
			}
			else = {
				add_trait = ill
			}
		}
		trigger_event = dp_char_editor.28
	}

	option = {
		name = trait_pneumonic
		scope:char_editor = {
			if = {
				limit = {
					has_trait = pneumonic
				}
				remove_trait = pneumonic
			}
			else = {
				add_trait = pneumonic
			}
		}
		trigger_event = dp_char_editor.28
	}

	option = {
		name = dp_char_editor_next
		trigger_event = dp_char_editor.29
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.10
	}
}

### HEALTH ISSUES 2 ###

dp_char_editor.29 = {
	type = character_event
	title = dp_char_editor.traits.health.t
	desc = dp_char_editor.traits.health.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = physicians_study }
	
	option = {
		name = trait_early_great_pox
		scope:char_editor = {
			if = {
				limit = {
					has_trait = early_great_pox
				}
				remove_trait = early_great_pox
			}
			else = {
				add_trait = early_great_pox
			}
		}
		trigger_event = dp_char_editor.29
	}

	option = {
		name = trait_great_pox
		scope:char_editor = {
			if = {
				limit = {
					has_trait = great_pox
				}
				remove_trait = great_pox
			}
			else = {
				add_trait = great_pox
			}
		}
		trigger_event = dp_char_editor.29
	}

	option = {
		name = trait_lovers_pox
		scope:char_editor = {
			if = {
				limit = {
					has_trait = lovers_pox
				}
				remove_trait = lovers_pox
			}
			else = {
				add_trait = lovers_pox
			}
		}
		trigger_event = dp_char_editor.29
	}

	option = {
		name = trait_leper
		scope:char_editor = {
			if = {
				limit = {
					has_trait = leper
				}
				remove_trait = leper
			}
			else = {
				add_trait = leper
			}
		}
		trigger_event = dp_char_editor.29
	}

	option = {
		name = trait_wounded_1
		scope:char_editor = {
			if = {
				limit = {
					has_trait = wounded_1
				}
				remove_trait = wounded_1
			}
			else = {
				add_trait = wounded_1
			}
		}
		trigger_event = dp_char_editor.29
	}

	option = {
		name = trait_wounded_2
		scope:char_editor = {
			if = {
				limit = {
					has_trait = wounded_2
				}
				remove_trait = wounded_2
			}
			else = {
				add_trait = wounded_2
			}
		}
		trigger_event = dp_char_editor.29
	}

	option = {
		name = trait_wounded_3
		scope:char_editor = {
			if = {
				limit = {
					has_trait = wounded_3
				}
				remove_trait = wounded_3
			}
			else = {
				add_trait = wounded_3
			}
		}
		trigger_event = dp_char_editor.29
	}

	option = {
		name = trait_maimed
		scope:char_editor = {
			if = {
				limit = {
					has_trait = maimed
				}
				remove_trait = maimed
			}
			else = {
				add_trait = maimed
			}
		}
		trigger_event = dp_char_editor.29
	}

	option = {
		name = dp_char_editor_next
		trigger_event = dp_char_editor.30
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.10
	}
}

### HEALTH ISSUES 3 ###

dp_char_editor.30 = {
	type = character_event
	title = dp_char_editor.traits.health.t
	desc = dp_char_editor.traits.health.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = physicians_study }

	option = {
		name = trait_one_eyed
		scope:char_editor = {
			if = {
				limit = {
					has_trait = one_eyed
				}
				remove_trait = one_eyed
			}
			else = {
				add_trait = one_eyed
			}
		}
		trigger_event = dp_char_editor.30
	}

	option = {
		name = trait_one_legged
		scope:char_editor = {
			if = {
				limit = {
					has_trait = one_legged
				}
				remove_trait = one_legged
			}
			else = {
				add_trait = one_legged
			}
		}
		trigger_event = dp_char_editor.30
	}

	option = {
		name = trait_disfigured
		scope:char_editor = {
			if = {
				limit = {
					has_trait = disfigured
				}
				remove_trait = disfigured
			}
			else = {
				add_trait = disfigured
			}
		}
		trigger_event = dp_char_editor.30
	}

	option = {
		name = trait_infirm
		scope:char_editor = {
			if = {
				limit = {
					has_trait = infirm
				}
				remove_trait = infirm
			}
			else = {
				add_trait = infirm
			}
		}
		trigger_event = dp_char_editor.30
	}

	option = {
		name = trait_incapable
		scope:char_editor = {
			if = {
				limit = {
					has_trait = incapable
				}
				remove_trait = incapable
			}
			else = {
				add_trait = incapable
			}
		}
		trigger_event = dp_char_editor.30
	}

	option = {
		name = trait_gout_ridden
		scope:char_editor = {
			if = {
				limit = {
					has_trait = gout_ridden
				}
				remove_trait = gout_ridden
			}
			else = {
				add_trait = gout_ridden
			}
		}
		trigger_event = dp_char_editor.30
	}

	option = {
		name = trait_consumption
		scope:char_editor = {
			if = {
				limit = {
					has_trait = consumption
				}
				remove_trait = consumption
			}
			else = {
				add_trait = consumption
			}
		}
		trigger_event = dp_char_editor.30
	}

	option = {
		name = trait_cancer
		scope:char_editor = {
			if = {
				limit = {
					has_trait = cancer
				}
				remove_trait = cancer
			}
			else = {
				add_trait = cancer
			}
		}
		trigger_event = dp_char_editor.30
	}

	option = {
		name = dp_char_editor_next
		trigger_event = dp_char_editor.31
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.10
	}
}

### HEALTH ISSUES 4 ###

dp_char_editor.31 = {
	type = character_event
	title = dp_char_editor.traits.health.t
	desc = dp_char_editor.traits.health.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}

	option = {
		name = trait_typhus
		scope:char_editor = {
			if = {
				limit = {
					has_trait = typhus
				}
				remove_trait = typhus
			}
			else = {
				add_trait = typhus
			}
		}
		trigger_event = dp_char_editor.31
	}

	option = {
		name = trait_bubonic_plague
		scope:char_editor = {
			if = {
				limit = {
					has_trait = bubonic_plague
				}
				remove_trait = bubonic_plague
			}
			else = {
				add_trait = bubonic_plague
			}
		}
		trigger_event = dp_char_editor.31
	}

	option = {
		name = trait_smallpox
		scope:char_editor = {
			if = {
				limit = {
					has_trait = smallpox
				}
				remove_trait = smallpox
			}
			else = {
				add_trait = smallpox
			}
		}
		trigger_event = dp_char_editor.31
	}

	option = {
		name = trait_sickly
		scope:char_editor = {
			if = {
				limit = {
					has_trait = sickly
				}
				remove_trait = sickly
			}
			else = {
				add_trait = sickly
			}
		}
		trigger_event = dp_char_editor.31
	}

	option = {
		name = trait_scarred
		scope:char_editor = {
			if = {
				limit = {
					has_trait = scarred
				}
				remove_trait = scarred
			}
			else = {
				add_trait = scarred
			}
		}
		trigger_event = dp_char_editor.31
	}

	option = {
		name = trait_eunuch
		scope:char_editor = {
			if = {
				limit = {
					has_trait = eunuch
				}
				remove_trait = eunuch
			}
			else = {
				add_trait = eunuch
			}
		}
		trigger_event = dp_char_editor.31
	}

	option = {
		name = trait_blind
		scope:char_editor = {
			if = {
				limit = {
					has_trait = blind
				}
				remove_trait = blind
			}
			else = {
				add_trait = blind
			}
		}
		trigger_event = dp_char_editor.31
	}

	option = {
		name = dp_char_editor_next
		trigger_event = dp_char_editor.28
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.10
	}
}

### SEXUALITY ###

dp_char_editor.32 = {
	type = character_event
	title = dp_char_editor.sexuality.t
	desc = dp_char_editor.sexuality.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = garden }
	
	option = {
		name = game_concept_heterosexual
		scope:char_editor = {
			set_sexuality = heterosexual
		}
		trigger_event = dp_char_editor.32
	}

	option = {
		name = game_concept_homosexual
		scope:char_editor = {
			set_sexuality = homosexual
		}
		trigger_event = dp_char_editor.32
	}

	option = {
		name = game_concept_bisexual
		scope:char_editor = {
			set_sexuality = bisexual
		}
		trigger_event = dp_char_editor.32
	}

	option = {
		name = game_concept_asexual
		scope:char_editor = {
			set_sexuality = asexual
		}
		trigger_event = dp_char_editor.32
	}

	option = {
		name = dp_char_editor_main_menu
		trigger_event = dp_char_editor.1000
	}
}

### junshi ###

dp_char_editor.33 = {
	type = character_event
	title = dp_char_editor.education.t
	desc = dp_char_editor.education.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}

	option = {
		name = trait_education_martial_1
		scope:char_editor = {
			if = {
				limit = {
					has_trait = education_martial_1
				}
				remove_trait = education_martial_1
			}
			else = {
				add_trait = education_martial_1
			}
		}
		trigger_event = dp_char_editor.33
	}
	
	option = {
		name = trait_education_martial_2
		scope:char_editor = {
			if = {
				limit = {
					has_trait = education_martial_2
				}
				remove_trait = education_martial_2
			}
			else = {
				add_trait = education_martial_2
			}
		}
		trigger_event = dp_char_editor.33
	}

	option = {
		name = trait_education_martial_3
		scope:char_editor = {
			if = {
				limit = {
					has_trait = education_martial_3
				}
				remove_trait = education_martial_3
			}
			else = {
				add_trait = education_martial_3
			}
		}
		trigger_event = dp_char_editor.33
	}

	option = {
		name = trait_education_martial_4
		scope:char_editor = {
			if = {
				limit = {
					has_trait = education_martial_4
				}
				remove_trait = education_martial_4
			}
			else = {
				add_trait = education_martial_4
			}
		}
		trigger_event = dp_char_editor.33
	}

	option = {
		name = trait_education_martial_5
		scope:char_editor = {
			if = {
				limit = {
					has_trait = education_martial_5
				}
				remove_trait = education_martial_5
			}
			else = {
				add_trait = education_martial_5
			}
		}
		trigger_event = dp_char_editor.33
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.11
	}
}

### waijiaojiaoyu ###

dp_char_editor.34 = {
	type = character_event
	title = dp_char_editor.education.t
	desc = dp_char_editor.education.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}

	option = {
		name = trait_education_diplomacy_1
		scope:char_editor = {
			if = {
				limit = {
					has_trait = education_diplomacy_1
				}
				remove_trait = education_diplomacy_1
			}
			else = {
				add_trait = education_diplomacy_1
			}
		}
		trigger_event = dp_char_editor.34
	}
	
	option = {
		name = trait_education_diplomacy_2
		scope:char_editor = {
			if = {
				limit = {
					has_trait = education_diplomacy_2
				}
				remove_trait = education_diplomacy_2
			}
			else = {
				add_trait = education_diplomacy_2
			}
		}
		trigger_event = dp_char_editor.34
	}

	option = {
		name = trait_education_diplomacy_3
		scope:char_editor = {
			if = {
				limit = {
					has_trait = education_diplomacy_3
				}
				remove_trait = education_diplomacy_3
			}
			else = {
				add_trait = education_diplomacy_3
			}
		}
		trigger_event = dp_char_editor.34
	}

	option = {
		name = trait_education_diplomacy_4
		scope:char_editor = {
			if = {
				limit = {
					has_trait = education_diplomacy_4
				}
				remove_trait = education_diplomacy_4
			}
			else = {
				add_trait = education_diplomacy_4
			}
		}
		trigger_event = dp_char_editor.34
	}

	option = {
		name = trait_education_diplomacy_5
		scope:char_editor = {
			if = {
				limit = {
					has_trait = education_diplomacy_5
				}
				remove_trait = education_diplomacy_5
			}
			else = {
				add_trait = education_diplomacy_5
			}
		}
		trigger_event = dp_char_editor.34
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.11
	}
}

### STEWARDSHIP EDUCATION ###

dp_char_editor.35 = {
	type = character_event
	title = dp_char_editor.education.t
	desc = dp_char_editor.education.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}

	option = {
		name = trait_education_stewardship_1
		scope:char_editor = {
			if = {
				limit = {
					has_trait = education_stewardship_1
				}
				remove_trait = education_stewardship_1
			}
			else = {
				add_trait = education_stewardship_1
			}
		}
		trigger_event = dp_char_editor.35
	}
	
	option = {
		name = trait_education_stewardship_2
		scope:char_editor = {
			if = {
				limit = {
					has_trait = education_stewardship_2
				}
				remove_trait = education_stewardship_2
			}
			else = {
				add_trait = education_stewardship_2
			}
		}
		trigger_event = dp_char_editor.35
	}

	option = {
		name = trait_education_stewardship_3
		scope:char_editor = {
			if = {
				limit = {
					has_trait = education_stewardship_3
				}
				remove_trait = education_stewardship_3
			}
			else = {
				add_trait = education_stewardship_3
			}
		}
		trigger_event = dp_char_editor.35
	}

	option = {
		name = trait_education_stewardship_4
		scope:char_editor = {
			if = {
				limit = {
					has_trait = education_stewardship_4
				}
				remove_trait = education_stewardship_4
			}
			else = {
				add_trait = education_stewardship_4
			}
		}
		trigger_event = dp_char_editor.35
	}

	option = {
		name = trait_education_stewardship_5
		scope:char_editor = {
			if = {
				limit = {
					has_trait = education_stewardship_5
				}
				remove_trait = education_stewardship_5
			}
			else = {
				add_trait = education_stewardship_5
			}
		}
		trigger_event = dp_char_editor.35
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.11
	}
}

### INTRIGUE EDUCATION ###

dp_char_editor.36 = {
	type = character_event
	title = dp_char_editor.education.t
	desc = dp_char_editor.education.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}

	option = {
		name = trait_education_intrigue_1
		scope:char_editor = {
			if = {
				limit = {
					has_trait = education_intrigue_1
				}
				remove_trait = education_intrigue_1
			}
			else = {
				add_trait = education_intrigue_1
			}
		}
		trigger_event = dp_char_editor.36
	}
	
	option = {
		name = trait_education_intrigue_2
		scope:char_editor = {
			if = {
				limit = {
					has_trait = education_intrigue_2
				}
				remove_trait = education_intrigue_2
			}
			else = {
				add_trait = education_intrigue_2
			}
		}
		trigger_event = dp_char_editor.36
	}

	option = {
		name = trait_education_intrigue_3
		scope:char_editor = {
			if = {
				limit = {
					has_trait = education_intrigue_3
				}
				remove_trait = education_intrigue_3
			}
			else = {
				add_trait = education_intrigue_3
			}
		}
		trigger_event = dp_char_editor.36
	}

	option = {
		name = trait_education_intrigue_4
		scope:char_editor = {
			if = {
				limit = {
					has_trait = education_intrigue_4
				}
				remove_trait = education_intrigue_4
			}
			else = {
				add_trait = education_intrigue_4
			}
		}
		trigger_event = dp_char_editor.36
	}

	option = {
		name = trait_education_intrigue_5
		scope:char_editor = {
			if = {
				limit = {
					has_trait = education_intrigue_5
				}
				remove_trait = education_intrigue_5
			}
			else = {
				add_trait = education_intrigue_5
			}
		}
		trigger_event = dp_char_editor.36
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.11
	}
}

### 学识 EDUCATION ###

dp_char_editor.37 = {
	type = character_event
	title = dp_char_editor.education.t
	desc = dp_char_editor.education.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}

	option = {
		name = trait_education_learning_1
		scope:char_editor = {
			if = {
				limit = {
					has_trait = education_learning_1
				}
				remove_trait = education_learning_1
			}
			else = {
				add_trait = education_learning_1
			}
		}
		trigger_event = dp_char_editor.37
	}
	
	option = {
		name = trait_education_learning_2
		scope:char_editor = {
			if = {
				limit = {
					has_trait = education_learning_2
				}
				remove_trait = education_learning_2
			}
			else = {
				add_trait = education_learning_2
			}
		}
		trigger_event = dp_char_editor.37
	}

	option = {
		name = trait_education_learning_3
		scope:char_editor = {
			if = {
				limit = {
					has_trait = education_learning_3
				}
				remove_trait = education_learning_3
			}
			else = {
				add_trait = education_learning_3
			}
		}
		trigger_event = dp_char_editor.37
	}

	option = {
		name = trait_education_learning_4
		scope:char_editor = {
			if = {
				limit = {
					has_trait = education_learning_4
				}
				remove_trait = education_learning_4
			}
			else = {
				add_trait = education_learning_4
			}
		}
		trigger_event = dp_char_editor.37
	}

	option = {
		name = trait_education_learning_5
		scope:char_editor = {
			if = {
				limit = {
					has_trait = education_learning_5
				}
				remove_trait = education_learning_5
			}
			else = {
				add_trait = education_learning_5
			}
		}
		trigger_event = dp_char_editor.37
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.11
	}
}

### 教育-勇武特质选项 ###

dp_char_editor.38 = {
	type = character_event
	title = dp_char_editor.education.t
	desc = dp_char_editor.education.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}

	option = {
		name = trait_education_martial_prowess_1
		scope:char_editor = {
			if = {
				limit = {
					has_trait = education_martial_prowess_1
				}
				remove_trait = education_martial_prowess_1
			}
			else = {
				add_trait = education_martial_prowess_1
			}
		}
		trigger_event = dp_char_editor.38
	}
	
	option = {
		name = trait_education_martial_prowess_2
		scope:char_editor = {
			if = {
				limit = {
					has_trait = education_martial_prowess_2
				}
				remove_trait = education_martial_prowess_2
			}
			else = {
				add_trait = education_martial_prowess_2
			}
		}
		trigger_event = dp_char_editor.38
	}

	option = {
		name = trait_education_martial_prowess_3
		scope:char_editor = {
			if = {
				limit = {
					has_trait = education_martial_prowess_3
				}
				remove_trait = education_martial_prowess_3
			}
			else = {
				add_trait = education_martial_prowess_3
			}
		}
		trigger_event = dp_char_editor.38
	}

	option = {
		name = trait_education_martial_prowess_4
		scope:char_editor = {
			if = {
				limit = {
					has_trait = education_martial_prowess_4
				}
				remove_trait = education_martial_prowess_4
			}
			else = {
				add_trait = education_martial_prowess_4
			}
		}
		trigger_event = dp_char_editor.38
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.11
	}
}

### 教育-共和国学特质选项 ###

dp_char_editor.99 = {
	type = character_event
	title = dp_char_editor.education.t
	desc = dp_char_editor.education.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}

	option = {
		name = trait_education_republican_knowledge_1
		scope:char_editor = {
			if = {
				limit = {
					has_trait = education_republican_knowledge_1
				}
				remove_trait = education_republican_knowledge_1
			}
			else = {
				add_trait = education_republican_knowledge_1
			}
		}
		trigger_event = dp_char_editor.99
	}
	
	option = {
		name = trait_education_republican_knowledge_2
		scope:char_editor = {
			if = {
				limit = {
					has_trait = education_republican_knowledge_2
				}
				remove_trait = education_republican_knowledge_2
			}
			else = {
				add_trait = education_republican_knowledge_2
			}
		}
		trigger_event = dp_char_editor.99
	}

	option = {
		name = trait_education_republican_knowledge_3
		scope:char_editor = {
			if = {
				limit = {
					has_trait = education_republican_knowledge_3
				}
				remove_trait = education_republican_knowledge_3
			}
			else = {
				add_trait = education_republican_knowledge_3
			}
		}
		trigger_event = dp_char_editor.99
	}

	option = {
		name = education_republican_knowledge_4
		scope:char_editor = {
			if = {
				limit = {
					has_trait = education_republican_knowledge_4
				}
				remove_trait = education_republican_knowledge_4
			}
			else = {
				add_trait = education_republican_knowledge_4
			}
		}
		trigger_event = dp_char_editor.99
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.11
	}
}

### CULTURE GROUP ###

dp_char_editor.39 = {
	type = character_event
	title = dp_char_editor.culture.group.t
	desc = dp_char_editor.culture.group.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = throne_room }
	
	option = {
		name = akan
		trigger = {
			scope:char_editor = {
				has_character_flag = akan_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:akan
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = kru
		trigger = {
			scope:char_editor = {
				has_character_flag = akan_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:kru
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = guan
		trigger = {
			scope:char_editor = {
				has_character_flag = akan_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:guan
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = bedouin
		trigger = {
			scope:char_editor = {
				has_character_flag = arabic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:bedouin
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = levantine
		trigger = {
			scope:char_editor = {
				has_character_flag = arabic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:levantine
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = egyptian
		trigger = {
			scope:char_editor = {
				has_character_flag = arabic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:egyptian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = maghrebi
		trigger = {
			scope:char_editor = {
				has_character_flag = arabic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:maghrebi
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = andalusian
		trigger = {
			scope:char_editor = {
				has_character_flag = arabic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:andalusian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = yemeni
		trigger = {
			scope:char_editor = {
				has_character_flag = arabic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:yemeni
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = latgalian
		trigger = {
			scope:char_editor = {
				has_character_flag = baltic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:latgalian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = lithuanian
		trigger = {
			scope:char_editor = {
				has_character_flag = baltic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:lithuanian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = prussian
		trigger = {
			scope:char_editor = {
				has_character_flag = baltic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:prussian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = finnish
		trigger = {
			scope:char_editor = {
				has_character_flag = balto_finnic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:finnish
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = sami
		trigger = {
			scope:char_editor = {
				has_character_flag = balto_finnic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:sami
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = estonian
		trigger = {
			scope:char_editor = {
				has_character_flag = balto_finnic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:estonian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = karelian
		trigger = {
			scope:char_editor = {
				has_character_flag = balto_finnic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:karelian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = vepsian
		trigger = {
			scope:char_editor = {
				has_character_flag = balto_finnic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:vepsian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = butr
		trigger = {
			scope:char_editor = {
				has_character_flag = berber_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:butr
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = baranis
		trigger = {
			scope:char_editor = {
				has_character_flag = berber_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:baranis
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = zaghawa
		trigger = {
			scope:char_editor = {
				has_character_flag = berber_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:zaghawa
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = pictish
		trigger = {
			scope:char_editor = {
				has_character_flag = brythonic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:pictish
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = welsh
		trigger = {
			scope:char_editor = {
				has_character_flag = brythonic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:welsh
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = breton
		trigger = {
			scope:char_editor = {
				has_character_flag = brythonic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:breton
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = cornish
		trigger = {
			scope:char_editor = {
				has_character_flag = brythonic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:cornish
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = cumbrian
		trigger = {
			scope:char_editor = {
				has_character_flag = brythonic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:cumbrian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = burmese
		trigger = {
			scope:char_editor = {
				has_character_flag = burman_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:burmese
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = mon
		trigger = {
			scope:char_editor = {
				has_character_flag = burman_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:mon
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = armenian
		trigger = {
			scope:char_editor = {
				has_character_flag = byzantine_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:armenian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = greek
		trigger = {
			scope:char_editor = {
				has_character_flag = byzantine_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:greek
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = alan
		trigger = {
			scope:char_editor = {
				has_character_flag = byzantine_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:alan
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = georgian
		trigger = {
			scope:char_editor = {
				has_character_flag = byzantine_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:georgian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = assyrian
		trigger = {
			scope:char_editor = {
				has_character_flag = byzantine_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:assyrian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = kanuri
		trigger = {
			scope:char_editor = {
				has_character_flag = central_african_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:kanuri
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = hausa
		trigger = {
			scope:char_editor = {
				has_character_flag = central_african_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:hausa
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = sao
		trigger = {
			scope:char_editor = {
				has_character_flag = central_african_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:sao
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = nupe
		trigger = {
			scope:char_editor = {
				has_character_flag = central_african_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:nupe
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = saxon
		trigger = {
			scope:char_editor = {
				has_character_flag = central_germanic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:saxon
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = franconian
		trigger = {
			scope:char_editor = {
				has_character_flag = central_germanic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:franconian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = swabian
		trigger = {
			scope:char_editor = {
				has_character_flag = central_germanic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:swabian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = bavarian
		trigger = {
			scope:char_editor = {
				has_character_flag = central_germanic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:bavarian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = frisian
		trigger = {
			scope:char_editor = {
				has_character_flag = central_germanic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:frisian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = dutch
		trigger = {
			scope:char_editor = {
				has_character_flag = central_germanic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:dutch
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = german
		trigger = {
			scope:char_editor = {
				has_character_flag = central_germanic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:german
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = han
		trigger = {
			scope:char_editor = {
				has_character_flag = chinese_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:han
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = tamil
		trigger = {
			scope:char_editor = {
				has_character_flag = dravidian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:tamil
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = telugu
		trigger = {
			scope:char_editor = {
				has_character_flag = dravidian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:telugu
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = kannada
		trigger = {
			scope:char_editor = {
				has_character_flag = dravidian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:kannada
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = ethiopian
		trigger = {
			scope:char_editor = {
				has_character_flag = east_african_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:ethiopian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = nubian
		trigger = {
			scope:char_editor = {
				has_character_flag = east_african_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:nubian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = welayta
		trigger = {
			scope:char_editor = {
				has_character_flag = east_african_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:welayta
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = daju
		trigger = {
			scope:char_editor = {
				has_character_flag = east_african_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:daju
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = russian
		trigger = {
			scope:char_editor = {
				has_character_flag = east_slavic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:russian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = ilmenian
		trigger = {
			scope:char_editor = {
				has_character_flag = east_slavic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:ilmenian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = severian
		trigger = {
			scope:char_editor = {
				has_character_flag = east_slavic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:severian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = volhynian
		trigger = {
			scope:char_editor = {
				has_character_flag = east_slavic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:volhynian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = frankish
		trigger = {
			scope:char_editor = {
				has_character_flag = frankish_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:frankish
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = french
		trigger = {
			scope:char_editor = {
				has_character_flag = frankish_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:french
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = norman
		trigger = {
			scope:char_editor = {
				has_character_flag = frankish_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:norman
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = occitan
		trigger = {
			scope:char_editor = {
				has_character_flag = frankish_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:occitan
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = outremer
		trigger = {
			scope:char_editor = {
				has_character_flag = frankish_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:outremer
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = irish
		trigger = {
			scope:char_editor = {
				has_character_flag = goidelic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:irish
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = gaelic
		trigger = {
			scope:char_editor = {
				has_character_flag = goidelic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:gaelic
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = basque
		trigger = {
			scope:char_editor = {
				has_character_flag = iberian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:basque
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = castilian
		trigger = {
			scope:char_editor = {
				has_character_flag = iberian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:castilian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = catalan
		trigger = {
			scope:char_editor = {
				has_character_flag = iberian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:catalan
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = portuguese
		trigger = {
			scope:char_editor = {
				has_character_flag = iberian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:portuguese
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = visigothic
		trigger = {
			scope:char_editor = {
				has_character_flag = iberian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:visigothic
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = galician
		trigger = {
			scope:char_editor = {
				has_character_flag = iberian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:galician
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = asturleonese
		trigger = {
			scope:char_editor = {
				has_character_flag = iberian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:asturleonese
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = aragonese
		trigger = {
			scope:char_editor = {
				has_character_flag = iberian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:aragonese
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = suebi
		trigger = {
			scope:char_editor = {
				has_character_flag = iberian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:suebi
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = bengali
		trigger = {
			scope:char_editor = {
				has_character_flag = indo_aryan_culture_pg_1
			}
		}
		scope:char_editor = {
			set_culture = culture:bengali
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = oriya
		trigger = {
			scope:char_editor = {
				has_character_flag = indo_aryan_culture_pg_1
			}
		}
		scope:char_editor = {
			set_culture = culture:oriya
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = assamese
		trigger = {
			scope:char_editor = {
				has_character_flag = indo_aryan_culture_pg_1
			}
		}
		scope:char_editor = {
			set_culture = culture:assamese
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = hindustani
		trigger = {
			scope:char_editor = {
				has_character_flag = indo_aryan_culture_pg_1
			}
		}
		scope:char_editor = {
			set_culture = culture:hindustani
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = gujarati
		trigger = {
			scope:char_editor = {
				has_character_flag = indo_aryan_culture_pg_1
			}
		}
		scope:char_editor = {
			set_culture = culture:gujarati
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = punjabi
		trigger = {
			scope:char_editor = {
				has_character_flag = indo_aryan_culture_pg_1
			}
		}
		scope:char_editor = {
			set_culture = culture:punjabi
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = rajput
		trigger = {
			scope:char_editor = {
				has_character_flag = indo_aryan_culture_pg_1
			}
		}
		scope:char_editor = {
			set_culture = culture:rajput
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = sindhi
		trigger = {
			scope:char_editor = {
				has_character_flag = indo_aryan_culture_pg_1
			}
		}
		scope:char_editor = {
			set_culture = culture:sindhi
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = marathi
		trigger = {
			scope:char_editor = {
				has_character_flag = indo_aryan_culture_pg_2
			}
		}
		scope:char_editor = {
			set_culture = culture:marathi
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = kashmiri
		trigger = {
			scope:char_editor = {
				has_character_flag = indo_aryan_culture_pg_2
			}
		}
		scope:char_editor = {
			set_culture = culture:kashmiri
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = sinhala
		trigger = {
			scope:char_editor = {
				has_character_flag = indo_aryan_culture_pg_2
			}
		}
		scope:char_editor = {
			set_culture = culture:sinhala
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = nepali
		trigger = {
			scope:char_editor = {
				has_character_flag = indo_aryan_culture_pg_2
			}
		}
		scope:char_editor = {
			set_culture = culture:nepali
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = persian
		trigger = {
			scope:char_editor = {
				has_character_flag = iranian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:persian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = sogdian
		trigger = {
			scope:char_editor = {
				has_character_flag = iranian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:sogdian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = tocharian
		trigger = {
			scope:char_editor = {
				has_character_flag = iranian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:tocharian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = kurdish
		trigger = {
			scope:char_editor = {
				has_character_flag = iranian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:kurdish
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = afghan
		trigger = {
			scope:char_editor = {
				has_character_flag = iranian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:afghan
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = baloch
		trigger = {
			scope:char_editor = {
				has_character_flag = iranian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:baloch
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = saka
		trigger = {
			scope:char_editor = {
				has_character_flag = iranian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:saka
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = daylamite
		trigger = {
			scope:char_editor = {
				has_character_flag = iranian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:daylamite
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = khwarezmian
		trigger = {
			scope:char_editor = {
				has_character_flag = iranian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:khwarezmian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = tajik
		trigger = {
			scope:char_editor = {
				has_character_flag = iranian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:tajik
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = ashkenazi
		trigger = {
			scope:char_editor = {
				has_character_flag = israelite_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:ashkenazi
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = sephardi
		trigger = {
			scope:char_editor = {
				has_character_flag = israelite_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:sephardi
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = italian
		trigger = {
			scope:char_editor = {
				has_character_flag = latin_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:italian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = roman
		trigger = {
			scope:char_editor = {
				has_character_flag = latin_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:roman
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = cisalpine
		trigger = {
			scope:char_editor = {
				has_character_flag = latin_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:cisalpine
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = sardinian
		trigger = {
			scope:char_editor = {
				has_character_flag = latin_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:sardinian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = sicilian
		trigger = {
			scope:char_editor = {
				has_character_flag = latin_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:sicilian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = lombard
		trigger = {
			scope:char_editor = {
				has_character_flag = latin_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:lombard
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = mogyer
		trigger = {
			scope:char_editor = {
				has_character_flag = magyar_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:mogyer
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = hungarian
		trigger = {
			scope:char_editor = {
				has_character_flag = magyar_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:hungarian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = mongol
		trigger = {
			scope:char_editor = {
				has_character_flag = mongolic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:mongol
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = buryat
		trigger = {
			scope:char_editor = {
				has_character_flag = mongolic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:buryat
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = oirat
		trigger = {
			scope:char_editor = {
				has_character_flag = mongolic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:oirat
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = naiman
		trigger = {
			scope:char_editor = {
				has_character_flag = mongolic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:naiman
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = kerait
		trigger = {
			scope:char_editor = {
				has_character_flag = mongolic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:kerait
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = khitan
		trigger = {
			scope:char_editor = {
				has_character_flag = mongolic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:khitan
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = tuyuhun
		trigger = {
			scope:char_editor = {
				has_character_flag = mongolic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:tuyuhun
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = jurchen
		trigger = {
			scope:char_editor = {
				has_character_flag = mongolic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:jurchen
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = norse
		trigger = {
			scope:char_editor = {
				has_character_flag = north_germanic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:norse
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = swedish
		trigger = {
			scope:char_editor = {
				has_character_flag = north_germanic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:swedish
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = norwegian
		trigger = {
			scope:char_editor = {
				has_character_flag = north_germanic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:norwegian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = danish
		trigger = {
			scope:char_editor = {
				has_character_flag = north_germanic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:danish
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = tangut
		trigger = {
			scope:char_editor = {
				has_character_flag = qiangic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:tangut
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = qiang
		trigger = {
			scope:char_editor = {
				has_character_flag = qiangic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:qiang
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = soninke
		trigger = {
			scope:char_editor = {
				has_character_flag = sahelian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:soninke
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = bozo
		trigger = {
			scope:char_editor = {
				has_character_flag = sahelian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:bozo
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = mossi
		trigger = {
			scope:char_editor = {
				has_character_flag = sahelian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:mossi
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = sorko
		trigger = {
			scope:char_editor = {
				has_character_flag = sahelian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:sorko
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = gaw
		trigger = {
			scope:char_editor = {
				has_character_flag = sahelian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:gaw
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = songhai
		trigger = {
			scope:char_editor = {
				has_character_flag = sahelian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:songhai
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = pulaar
		trigger = {
			scope:char_editor = {
				has_character_flag = senegambian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:pulaar
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = serer
		trigger = {
			scope:char_editor = {
				has_character_flag = senegambian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:serer
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = wolof
		trigger = {
			scope:char_editor = {
				has_character_flag = senegambian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:wolof
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = somali
		trigger = {
			scope:char_editor = {
				has_character_flag = somalian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:somali
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = beja
		trigger = {
			scope:char_editor = {
				has_character_flag = somalian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:beja
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = afar
		trigger = {
			scope:char_editor = {
				has_character_flag = somalian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:afar
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = croatian
		trigger = {
			scope:char_editor = {
				has_character_flag = south_slavic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:croatian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = bosnian
		trigger = {
			scope:char_editor = {
				has_character_flag = south_slavic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:bosnian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = serbian
		trigger = {
			scope:char_editor = {
				has_character_flag = south_slavic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:serbian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = vlach
		trigger = {
			scope:char_editor = {
				has_character_flag = south_slavic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:vlach
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = bulgarian
		trigger = {
			scope:char_editor = {
				has_character_flag = south_slavic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:bulgarian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = bodpa
		trigger = {
			scope:char_editor = {
				has_character_flag = tibetan_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:bodpa
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = zhangzhung
		trigger = {
			scope:char_editor = {
				has_character_flag = tibetan_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:zhangzhung
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = sumpa
		trigger = {
			scope:char_editor = {
				has_character_flag = tibetan_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:sumpa
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = tsangpa
		trigger = {
			scope:char_editor = {
				has_character_flag = tibetan_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:tsangpa
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = kirati
		trigger = {
			scope:char_editor = {
				has_character_flag = tibetan_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:kirati
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = lhomon
		trigger = {
			scope:char_editor = {
				has_character_flag = tibetan_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:lhomon
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = turkish
		trigger = {
			scope:char_editor = {
				has_character_flag = turkic_culture_pg_1
			}
		}
		scope:char_editor = {
			set_culture = culture:turkish
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = pecheneg
		trigger = {
			scope:char_editor = {
				has_character_flag = turkic_culture_pg_1
			}
		}
		scope:char_editor = {
			set_culture = culture:pecheneg
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = khazar
		trigger = {
			scope:char_editor = {
				has_character_flag = turkic_culture_pg_1
			}
		}
		scope:char_editor = {
			set_culture = culture:khazar
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = cuman
		trigger = {
			scope:char_editor = {
				has_character_flag = turkic_culture_pg_1
			}
		}
		scope:char_editor = {
			set_culture = culture:cuman
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = bolghar
		trigger = {
			scope:char_editor = {
				has_character_flag = turkic_culture_pg_1
			}
		}
		scope:char_editor = {
			set_culture = culture:bolghar
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = bashkir
		trigger = {
			scope:char_editor = {
				has_character_flag = turkic_culture_pg_1
			}
		}
		scope:char_editor = {
			set_culture = culture:bashkir
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = avar
		trigger = {
			scope:char_editor = {
				has_character_flag = turkic_culture_pg_1
			}
		}
		scope:char_editor = {
			set_culture = culture:avar
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = karluk
		trigger = {
			scope:char_editor = {
				has_character_flag = turkic_culture_pg_1
			}
		}
		scope:char_editor = {
			set_culture = culture:karluk
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = kimek
		trigger = {
			scope:char_editor = {
				has_character_flag = turkic_culture_pg_2
			}
		}
		scope:char_editor = {
			set_culture = culture:kimek
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = kipchak
		trigger = {
			scope:char_editor = {
				has_character_flag = turkic_culture_pg_2
			}
		}
		scope:char_editor = {
			set_culture = culture:kipchak
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = laktan
		trigger = {
			scope:char_editor = {
				has_character_flag = turkic_culture_pg_2
			}
		}
		scope:char_editor = {
			set_culture = culture:laktan
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = kirghiz
		trigger = {
			scope:char_editor = {
				has_character_flag = turkic_culture_pg_2
			}
		}
		scope:char_editor = {
			set_culture = culture:kirghiz
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = uyghur
		trigger = {
			scope:char_editor = {
				has_character_flag = turkic_culture_pg_2
			}
		}
		scope:char_editor = {
			set_culture = culture:uyghur
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = yughur
		trigger = {
			scope:char_editor = {
				has_character_flag = turkic_culture_pg_2
			}
		}
		scope:char_editor = {
			set_culture = culture:yughur
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = uriankhai
		trigger = {
			scope:char_editor = {
				has_character_flag = turkic_culture_pg_2
			}
		}
		scope:char_editor = {
			set_culture = culture:uriankhai
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = chuvash
		trigger = {
			scope:char_editor = {
				has_character_flag = turkic_culture_pg_2
			}
		}
		scope:char_editor = {
			set_culture = culture:chuvash
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = shatuo
		trigger = {
			scope:char_editor = {
				has_character_flag = turkic_culture_pg_3
			}
		}
		scope:char_editor = {
			set_culture = culture:shatuo
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = ongud
		trigger = {
			scope:char_editor = {
				has_character_flag = turkic_culture_pg_3
			}
		}
		scope:char_editor = {
			set_culture = culture:ongud
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = komi
		trigger = {
			scope:char_editor = {
				has_character_flag = ugro_permian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:komi
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = khanty
		trigger = {
			scope:char_editor = {
				has_character_flag = ugro_permian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:khanty
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = samoyed
		trigger = {
			scope:char_editor = {
				has_character_flag = ugro_permian_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:samoyed
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = mordvin
		trigger = {
			scope:char_editor = {
				has_character_flag = volga_finnic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:mordvin
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = merya
		trigger = {
			scope:char_editor = {
				has_character_flag = volga_finnic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:merya
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = meshchera
		trigger = {
			scope:char_editor = {
				has_character_flag = volga_finnic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:meshchera
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = mari
		trigger = {
			scope:char_editor = {
				has_character_flag = volga_finnic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:mari
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = muroma
		trigger = {
			scope:char_editor = {
				has_character_flag = volga_finnic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:muroma
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = malinke
		trigger = {
			scope:char_editor = {
				has_character_flag = west_african_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:malinke
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = bobo
		trigger = {
			scope:char_editor = {
				has_character_flag = west_african_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:bobo
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = gur
		trigger = {
			scope:char_editor = {
				has_character_flag = west_african_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:gur
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = marka
		trigger = {
			scope:char_editor = {
				has_character_flag = west_african_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:marka
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = mel
		trigger = {
			scope:char_editor = {
				has_character_flag = west_african_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:mel
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = english
		trigger = {
			scope:char_editor = {
				has_character_flag = west_germanic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:english
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = anglo_saxon
		trigger = {
			scope:char_editor = {
				has_character_flag = west_germanic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:anglo_saxon
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = old_saxon
		trigger = {
			scope:char_editor = {
				has_character_flag = west_germanic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:old_saxon
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = scottish
		trigger = {
			scope:char_editor = {
				has_character_flag = west_germanic_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:scottish
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = pommeranian
		trigger = {
			scope:char_editor = {
				has_character_flag = west_slavic_culture_group
			}
		}
		scope:char_editor = {
			set_culture = culture:pommeranian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = czech
		trigger = {
			scope:char_editor = {
				has_character_flag = west_slavic_culture_group
			}
		}
		scope:char_editor = {
			set_culture = culture:czech
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = polish
		trigger = {
			scope:char_editor = {
				has_character_flag = west_slavic_culture_group
			}
		}
		scope:char_editor = {
			set_culture = culture:polish
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = polabian
		trigger = {
			scope:char_editor = {
				has_character_flag = west_slavic_culture_group
			}
		}
		scope:char_editor = {
			set_culture = culture:polabian
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = slovien
		trigger = {
			scope:char_editor = {
				has_character_flag = west_slavic_culture_group
			}
		}
		scope:char_editor = {
			set_culture = culture:slovien
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = ewe
		trigger = {
			scope:char_editor = {
				has_character_flag = yoruba_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:ewe
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = igbo
		trigger = {
			scope:char_editor = {
				has_character_flag = yoruba_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:igbo
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = edo
		trigger = {
			scope:char_editor = {
				has_character_flag = yoruba_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:edo
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = yoruba
		trigger = {
			scope:char_editor = {
				has_character_flag = yoruba_culture_pg
			}
		}
		scope:char_editor = {
			set_culture = culture:yoruba
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = dp_char_editor_forward
		trigger = {
			scope:char_editor = {
				OR = {
					has_character_flag = indo_aryan_culture_pg_1
					has_character_flag = indo_aryan_culture_pg_2
				}
			}
		}
		scope:char_editor = {
			indo_aryan_culture_forward = yes
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = dp_char_editor_backward
		trigger = {
			scope:char_editor = {
				OR = {
					has_character_flag = indo_aryan_culture_pg_1
					has_character_flag = indo_aryan_culture_pg_2
				}
			}
		}
		scope:char_editor = {
			indo_aryan_culture_backward = yes
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = dp_char_editor_forward
		trigger = {
			scope:char_editor = {
				OR = {
					has_character_flag = turkic_culture_pg_1
					has_character_flag = turkic_culture_pg_2
					has_character_flag = turkic_culture_pg_3
				}
			}
		}
		scope:char_editor = {
			turkic_culture_forward = yes
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = dp_char_editor_backward
		trigger = {
			scope:char_editor = {
				OR = {
					has_character_flag = turkic_culture_pg_1
					has_character_flag = turkic_culture_pg_2
					has_character_flag = turkic_culture_pg_3
				}
			}
		}
		scope:char_editor = {
			turkic_culture_backward = yes
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = dp_char_editor_back
		scope:char_editor = {
			if = { limit = { has_character_flag = akan_culture_pg } remove_character_flag = akan_culture_pg }
			if = { limit = { has_character_flag = arabic_culture_pg } remove_character_flag = arabic_culture_pg }
			if = { limit = { has_character_flag = baltic_culture_pg } remove_character_flag = baltic_culture_pg }
			if = { limit = { has_character_flag = balto_finnic_culture_pg } remove_character_flag = balto_finnic_culture_pg }
			if = { limit = { has_character_flag = berber_culture_pg } remove_character_flag = berber_culture_pg }
			if = { limit = { has_character_flag = brythonic_culture_pg } remove_character_flag = brythonic_culture_pg }
			if = { limit = { has_character_flag = burman_culture_pg } remove_character_flag = burman_culture_pg }
			if = { limit = { has_character_flag = byzantine_culture_pg } remove_character_flag = byzantine_culture_pg }
			if = { limit = { has_character_flag = central_african_culture_pg } remove_character_flag = central_african_culture_pg }
			if = { limit = { has_character_flag = central_germanic_culture_pg } remove_character_flag = central_germanic_culture_pg }
			if = { limit = { has_character_flag = chinese_culture_pg } remove_character_flag = chinese_culture_pg }
			if = { limit = { has_character_flag = dravidian_culture_pg } remove_character_flag = dravidian_culture_pg }
			if = { limit = { has_character_flag = east_african_culture_pg } remove_character_flag = east_african_culture_pg }
			if = { limit = { has_character_flag = east_slavic_culture_pg } remove_character_flag = east_slavic_culture_pg }
			if = { limit = { has_character_flag = frankish_culture_pg } remove_character_flag = frankish_culture_pg }
			if = { limit = { has_character_flag = goidelic_culture_pg } remove_character_flag = goidelic_culture_pg }
			if = { limit = { has_character_flag = iberian_culture_pg } remove_character_flag = iberian_culture_pg }
			if = { limit = { has_character_flag = indo_aryan_culture_pg_1 } remove_character_flag = indo_aryan_culture_pg_1 }
			if = { limit = { has_character_flag = indo_aryan_culture_pg_2 } remove_character_flag = indo_aryan_culture_pg_2 }
			if = { limit = { has_character_flag = iranian_culture_pg } remove_character_flag = iranian_culture_pg }
			if = { limit = { has_character_flag = israelite_culture_pg } remove_character_flag = israelite_culture_pg }
			if = { limit = { has_character_flag = latin_culture_pg } remove_character_flag = latin_culture_pg }
			if = { limit = { has_character_flag = magyar_culture_pg } remove_character_flag = magyar_culture_pg }
			if = { limit = { has_character_flag = mongolic_culture_pg } remove_character_flag = mongolic_culture_pg }
			if = { limit = { has_character_flag = north_germanic_culture_pg } remove_character_flag = north_germanic_culture_pg }
			if = { limit = { has_character_flag = qiangic_culture_pg } remove_character_flag = qiangic_culture_pg }
			if = { limit = { has_character_flag = sahelian_culture_pg } remove_character_flag = sahelian_culture_pg }
			if = { limit = { has_character_flag = senegambian_culture_pg } remove_character_flag = senegambian_culture_pg }
			if = { limit = { has_character_flag = somalian_culture_pg } remove_character_flag = somalian_culture_pg }
			if = { limit = { has_character_flag = south_slavic_culture_pg } remove_character_flag = south_slavic_culture_pg }
			if = { limit = { has_character_flag = tibetan_culture_pg } remove_character_flag = tibetan_culture_pg }
			if = { limit = { has_character_flag = turkic_culture_pg_1 } remove_character_flag = turkic_culture_pg_1 }
			if = { limit = { has_character_flag = turkic_culture_pg_2 } remove_character_flag = turkic_culture_pg_2 }
			if = { limit = { has_character_flag = turkic_culture_pg_3 } remove_character_flag = turkic_culture_pg_3 }
			if = { limit = { has_character_flag = ugro_permian_culture_pg } remove_character_flag = ugro_permian_culture_pg }
			if = { limit = { has_character_flag = volga_finnic_culture_pg } remove_character_flag = volga_finnic_culture_pg }
			if = { limit = { has_character_flag = west_african_culture_pg } remove_character_flag = west_african_culture_pg }
			if = { limit = { has_character_flag = west_germanic_culture_pg } remove_character_flag = west_germanic_culture_pg }
			if = { limit = { has_character_flag = west_slavic_culture_group } remove_character_flag = west_slavic_culture_group }
			if = { limit = { has_character_flag = yoruba_culture_pg } remove_character_flag = yoruba_culture_pg }
		}
		trigger_event = dp_char_editor.40
	}
}

### CULTURE PAGES ###

dp_char_editor.40 = {
	type = character_event
	title = dp_char_editor.culture.group.t
	desc = dp_char_editor.culture.group.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = throne_room }
	
	option = {
		name = akan_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_1
			}
		}
		scope:char_editor = {
			add_character_flag = akan_culture_pg
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = arabic_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_1
			}
		}
		scope:char_editor = {
			add_character_flag = arabic_culture_pg
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = baltic_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_1
			}
		}
		scope:char_editor = {
			add_character_flag = baltic_culture_pg
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = balto_finnic_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_1
			}
		}
		scope:char_editor = {
			add_character_flag = balto_finnic_culture_pg
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = berber_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_1
			}
		}
		scope:char_editor = {
			add_character_flag = berber_culture_pg
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = brythonic_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_1
			}
		}
		scope:char_editor = {
			add_character_flag = brythonic_culture_pg
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = burman_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_1
			}
		}
		scope:char_editor = {
			add_character_flag = burman_culture_pg
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = byzantine_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_1
			}
		}
		scope:char_editor = {
			add_character_flag = byzantine_culture_pg
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = central_african_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_2
			}
		}
		scope:char_editor = {
			add_character_flag = central_african_culture_pg
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = central_germanic_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_2
			}
		}
		scope:char_editor = {
			add_character_flag = central_germanic_culture_pg
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = chinese_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_2
			}
		}
		scope:char_editor = {
			add_character_flag = chinese_culture_pg
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = dravidian_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_2
			}
		}
		scope:char_editor = {
			add_character_flag = dravidian_culture_pg
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = east_african_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_2
			}
		}
		scope:char_editor = {
			add_character_flag = east_african_culture_pg
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = east_slavic_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_2
			}
		}
		scope:char_editor = {
			add_character_flag = east_slavic_culture_pg
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = frankish_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_2
			}
		}
		scope:char_editor = {
			add_character_flag = frankish_culture_pg
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = goidelic_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_2
			}
		}
		scope:char_editor = {
			add_character_flag = goidelic_culture_pg
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = iberian_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_3
			}
		}
		scope:char_editor = {
			add_character_flag = iberian_culture_pg
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = indo_aryan_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_3
			}
		}
		scope:char_editor = {
			add_character_flag = indo_aryan_culture_pg_1
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = iranian_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_3
			}
		}
		scope:char_editor = {
			add_character_flag = iranian_culture_pg
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = israelite_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_3
			}
		}
		scope:char_editor = {
			add_character_flag = israelite_culture_pg
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = latin_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_3
			}
		}
		scope:char_editor = {
			add_character_flag = latin_culture_pg
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = magyar_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_3
			}
		}
		scope:char_editor = {
			add_character_flag = magyar_culture_pg
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = mongolic_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_3
			}
		}
		scope:char_editor = {
			add_character_flag = mongolic_culture_pg
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = north_germanic_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_3
			}
		}
		scope:char_editor = {
			add_character_flag = north_germanic_culture_pg
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = qiangic_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_4
			}
		}
		scope:char_editor = {
			add_character_flag = qiangic_culture_pg
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = sahelian_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_4
			}
		}
		scope:char_editor = {
			add_character_flag = sahelian_culture_pg
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = senegambian_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_4
			}
		}
		scope:char_editor = {
			add_character_flag = senegambian_culture_pg
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = somalian_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_4
			}
		}
		scope:char_editor = {
			add_character_flag = somalian_culture_pg
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = south_slavic_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_4
			}
		}
		scope:char_editor = {
			add_character_flag = south_slavic_culture_pg
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = tibetan_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_4
			}
		}
		scope:char_editor = {
			add_character_flag = tibetan_culture_pg
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = turkic_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_4
			}
		}
		scope:char_editor = {
			add_character_flag = turkic_culture_pg_1
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = ugro_permian_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_4
			}
		}
		scope:char_editor = {
			add_character_flag = ugro_permian_culture_pg
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = volga_finnic_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_5
			}
		}
		scope:char_editor = {
			add_character_flag = volga_finnic_culture_pg
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = west_african_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_5
			}
		}
		scope:char_editor = {
			add_character_flag = west_african_culture_pg
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = west_germanic_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_5
			}
		}
		scope:char_editor = {
			add_character_flag = west_germanic_culture_pg
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = west_slavic_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_5
			}
		}
		scope:char_editor = {
			add_character_flag = west_slavic_culture_group
		}
		trigger_event = dp_char_editor.39
	}
	
	option = {
		name = yoruba_group
		trigger = {
			scope:char_editor = {
				has_character_flag = culture_pg_5
			}
		}
		scope:char_editor = {
			add_character_flag = yoruba_culture_pg
		}
		trigger_event = dp_char_editor.39
	}

	option = {
		name = dp_char_editor_forward
		culture_forward = yes
		trigger_event = dp_char_editor.40
	}
	option = {
		name = dp_char_editor_backward
		culture_backward = yes
		trigger_event = dp_char_editor.40
	}

	option = {
		name = dp_char_editor_main_menu
		scope:char_editor = {
			remove_culture_pgs = yes
		}

		trigger_event = dp_char_editor.1000
	}
}

### RELIGION PAGES ###

dp_char_editor.41 = {
	type = character_event
	title = dp_char_editor.religion.group.t
	desc = dp_char_editor.religion.group.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = temple }
	
	option = {
		name = christianity_religion
		trigger = {
			scope:char_editor = {
				has_character_flag = religion_pg_1
			}
		}
		scope:char_editor = {
			add_character_flag = christianity_religion_pg_1
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = judaism_religion
		trigger = {
			scope:char_editor = {
				has_character_flag = religion_pg_1
			}
		}
		scope:char_editor = {
			add_character_flag = judaism_religion_pg
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = islam_religion
		trigger = {
			scope:char_editor = {
				has_character_flag = religion_pg_1
			}
		}
		scope:char_editor = {
			add_character_flag = islam_religion_pg_1
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = taoism_religion
		trigger = {
			scope:char_editor = {
				has_character_flag = religion_pg_1
			}
		}
		scope:char_editor = {
			add_character_flag = taoism_religion_pg
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = buddhism_religion
		trigger = {
			scope:char_editor = {
				has_character_flag = religion_pg_1
			}
		}
		scope:char_editor = {
			add_character_flag = buddhism_religion_pg
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = hinduism_religion
		trigger = {
			scope:char_editor = {
				has_character_flag = religion_pg_1
			}
		}
		scope:char_editor = {
			add_character_flag = hinduism_religion_pg
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = jainism_religion
		trigger = {
			scope:char_editor = {
				has_character_flag = religion_pg_1
			}
		}
		scope:char_editor = {
			add_character_flag = jainism_religion_pg
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = bon_religion
		trigger = {
			scope:char_editor = {
				has_character_flag = religion_pg_1
			}
		}
		scope:char_editor = {
			add_character_flag = bon_religion_pg
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = tani_religion
		trigger = {
			scope:char_editor = {
				has_character_flag = religion_pg_2
			}
		}
		scope:char_editor = {
			add_character_flag = tani_religion_pg
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = dualism_religion
		trigger = {
			scope:char_editor = {
				has_character_flag = religion_pg_2
			}
		}
		scope:char_editor = {
			add_character_flag = dualism_religion_pg
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = mundhum_religion
		trigger = {
			scope:char_editor = {
				has_character_flag = religion_pg_2
			}
		}
		scope:char_editor = {
			add_character_flag = mundhum_religion_pg
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = qiangic_religion
		trigger = {
			scope:char_editor = {
				has_character_flag = religion_pg_2
			}
		}
		scope:char_editor = {
			add_character_flag = qiangic_religion_pg
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = yazidi_religion
		trigger = {
			scope:char_editor = {
				has_character_flag = religion_pg_2
			}
		}
		scope:char_editor = {
			add_character_flag = yazidi_religion_pg
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = zoroastrianism_religion
		trigger = {
			scope:char_editor = {
				has_character_flag = religion_pg_2
			}
		}
		scope:char_editor = {
			add_character_flag = zoroastrianism_religion_pg
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = west_african_religion
		trigger = {
			scope:char_editor = {
				has_character_flag = religion_pg_2
			}
		}
		scope:char_editor = {
			add_character_flag = west_african_religion_pg
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = norse_pagan
		trigger = {
			scope:char_editor = {
				has_character_flag = religion_pg_2
			}
		}
		scope:char_editor = {
			set_character_faith = faith:norse_pagan
		}
		trigger_event = dp_char_editor.41
	}
	
	option = {
		name = hellenic_pagan
		trigger = {
			scope:char_editor = {
				has_character_flag = religion_pg_3
			}
		}
		scope:char_editor = {
			set_character_faith = faith:hellenic_pagan
		}
		trigger_event = dp_char_editor.41
	}
	
	option = {
		name = akom_pagan
		trigger = {
			scope:char_editor = {
				has_character_flag = religion_pg_3
			}
		}
		scope:char_editor = {
			set_character_faith = faith:akom_pagan
		}
		trigger_event = dp_char_editor.41
	}
	
	option = {
		name = baltic_pagan
		trigger = {
			scope:char_editor = {
				has_character_flag = religion_pg_3
			}
		}
		scope:char_editor = {
			set_character_faith = faith:baltic_pagan
		}
		trigger_event = dp_char_editor.41
	}
	
	option = {
		name = finnish_pagan
		trigger = {
			scope:char_editor = {
				has_character_flag = religion_pg_3
			}
		}
		scope:char_editor = {
			set_character_faith = faith:finnish_pagan
		}
		trigger_event = dp_char_editor.41
	}
	
	option = {
		name = kushitism_pagan
		trigger = {
			scope:char_editor = {
				has_character_flag = religion_pg_3
			}
		}
		scope:char_editor = {
			set_character_faith = faith:kushitism_pagan
		}
		trigger_event = dp_char_editor.41
	}
	
	option = {
		name = magyar_pagan
		trigger = {
			scope:char_editor = {
				has_character_flag = religion_pg_3
			}
		}
		scope:char_editor = {
			set_character_faith = faith:magyar_pagan
		}
		trigger_event = dp_char_editor.41
	}
	
	option = {
		name = paganism_religion
		trigger = {
			scope:char_editor = {
				has_character_flag = religion_pg_3
			}
		}
		scope:char_editor = {
			set_character_faith = faith:pagan
		}
		trigger_event = dp_char_editor.41
	}
	
	option = {
		name = slavic_pagan
		trigger = {
			scope:char_editor = {
				has_character_flag = religion_pg_3
			}
		}
		scope:char_editor = {
			set_character_faith = faith:slavic_pagan
		}
		trigger_event = dp_char_editor.41
	}
	
	option = {
		name = tengri_pagan
		trigger = {
			scope:char_editor = {
				has_character_flag = religion_pg_4
			}
		}
		scope:char_editor = {
			set_character_faith = faith:tengri_pagan
		}
		trigger_event = dp_char_editor.41
	}
	
	option = {
		name = waaqism_pagan
		trigger = {
			scope:char_editor = {
				has_character_flag = religion_pg_4
			}
		}
		scope:char_editor = {
			set_character_faith = faith:waaqism_pagan
		}
		trigger_event = dp_char_editor.41
	}
	
	option = {
		name = west_african_bori_pagan
		trigger = {
			scope:char_editor = {
				has_character_flag = religion_pg_4
			}
		}
		scope:char_editor = {
			set_character_faith = faith:west_african_bori_pagan
		}
		trigger_event = dp_char_editor.41
	}
	
	option = {
		name = west_african_orisha_pagan
		trigger = {
			scope:char_editor = {
				has_character_flag = religion_pg_4
			}
		}
		scope:char_editor = {
			set_character_faith = faith:west_african_orisha_pagan
		}
		trigger_event = dp_char_editor.41
	}
	
	option = {
		name = west_african_roog_pagan
		trigger = {
			scope:char_editor = {
				has_character_flag = religion_pg_4
			}
		}
		scope:char_editor = {
			set_character_faith = faith:west_african_roog_pagan
		}
		trigger_event = dp_char_editor.41
	}
	
	option = {
		name = zun_pagan
		trigger = {
			scope:char_editor = {
				has_character_flag = religion_pg_4
			}
		}
		scope:char_editor = {
			set_character_faith = faith:zun_pagan
		}
		trigger_event = dp_char_editor.41
	}
	
	option = {
		name = dp_char_editor_forward
		religion_forward = yes
		trigger_event = dp_char_editor.41
	}

	option = {
		name = dp_char_editor_backward
		religion_backward = yes
		trigger_event = dp_char_editor.41
	}

	option = {
		name = dp_char_editor_main_menu
		scope:char_editor = {
			remove_religion_pgs = yes
		}

		trigger_event = dp_char_editor.1000
	}
}

### RELIGION GROUP ###

dp_char_editor.42 = {
	type = character_event
	title = dp_char_editor.religion.group.t
	desc = dp_char_editor.religion.group.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = temple }
	option = {
		name = bon
		trigger = {
			scope:char_editor = {
				has_character_flag = bon_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:bon
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = old_bon
		trigger = {
			scope:char_editor = {
				has_character_flag = bon_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:old_bon
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = theravada
		trigger = {
			scope:char_editor = {
				has_character_flag = buddhism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:theravada
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = mahayana
		trigger = {
			scope:char_editor = {
				has_character_flag = buddhism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:mahayana
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = vajrayana
		trigger = {
			scope:char_editor = {
				has_character_flag = buddhism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:vajrayana
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = ari
		trigger = {
			scope:char_editor = {
				has_character_flag = buddhism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:ari
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = lamaism
		trigger = {
			scope:char_editor = {
				has_character_flag = buddhism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:lamaism
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = orthodox
		trigger = {
			scope:char_editor = {
				has_character_flag = christianity_religion_pg_1
			}
		}
		scope:char_editor = {
			set_character_faith = faith:orthodox
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = coptic
		trigger = {
			scope:char_editor = {
				has_character_flag = christianity_religion_pg_1
			}
		}
		scope:char_editor = {
			set_character_faith = faith:coptic
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = armenian_apostolic
		trigger = {
			scope:char_editor = {
				has_character_flag = christianity_religion_pg_1
			}
		}
		scope:char_editor = {
			set_character_faith = faith:armenian_apostolic
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = catholic
		trigger = {
			scope:char_editor = {
				has_character_flag = christianity_religion_pg_1
			}
		}
		scope:char_editor = {
			set_character_faith = faith:catholic
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = conversos
		trigger = {
			scope:char_editor = {
				has_character_flag = christianity_religion_pg_1
			}
		}
		scope:char_editor = {
			set_character_faith = faith:conversos
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = cathar
		trigger = {
			scope:char_editor = {
				has_character_flag = christianity_religion_pg_1
			}
		}
		scope:char_editor = {
			set_character_faith = faith:cathar
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = waldensian
		trigger = {
			scope:char_editor = {
				has_character_flag = christianity_religion_pg_1
			}
		}
		scope:char_editor = {
			set_character_faith = faith:waldensian
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = lollard
		trigger = {
			scope:char_editor = {
				has_character_flag = christianity_religion_pg_1
			}
		}
		scope:char_editor = {
			set_character_faith = faith:lollard
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = iconoclast
		trigger = {
			scope:char_editor = {
				has_character_flag = christianity_religion_pg_2
			}
		}
		scope:char_editor = {
			set_character_faith = faith:iconoclast
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = bogomilist
		trigger = {
			scope:char_editor = {
				has_character_flag = christianity_religion_pg_2
			}
		}
		scope:char_editor = {
			set_character_faith = faith:bogomilist
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = paulician
		trigger = {
			scope:char_editor = {
				has_character_flag = christianity_religion_pg_2
			}
		}
		scope:char_editor = {
			set_character_faith = faith:paulician
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = nestorian
		trigger = {
			scope:char_editor = {
				has_character_flag = christianity_religion_pg_2
			}
		}
		scope:char_editor = {
			set_character_faith = faith:nestorian
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = messalian
		trigger = {
			scope:char_editor = {
				has_character_flag = christianity_religion_pg_2
			}
		}
		scope:char_editor = {
			set_character_faith = faith:messalian
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = adamites
		trigger = {
			scope:char_editor = {
				has_character_flag = christianity_religion_pg_2
			}
		}
		scope:char_editor = {
			set_character_faith = faith:adamites
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = insular_celtic
		trigger = {
			scope:char_editor = {
				has_character_flag = christianity_religion_pg_2
			}
		}
		scope:char_editor = {
			set_character_faith = faith:insular_celtic
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = bosnian_church
		trigger = {
			scope:char_editor = {
				has_character_flag = christianity_religion_pg_2
			}
		}
		scope:char_editor = {
			set_character_faith = faith:bosnian_church
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = manichean
		trigger = {
			scope:char_editor = {
				has_character_flag = dualism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:manichean
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = mandeaism
		trigger = {
			scope:char_editor = {
				has_character_flag = dualism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:mandeaism
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = sabianism
		trigger = {
			scope:char_editor = {
				has_character_flag = dualism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:sabianism
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = valentinianism
		trigger = {
			scope:char_editor = {
				has_character_flag = dualism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:valentinianism
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = sethianism
		trigger = {
			scope:char_editor = {
				has_character_flag = dualism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:sethianism
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = priscillianism
		trigger = {
			scope:char_editor = {
				has_character_flag = dualism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:priscillianism
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = cainitism
		trigger = {
			scope:char_editor = {
				has_character_flag = dualism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:cainitism
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = donyipoloism
		trigger = {
			scope:char_editor = {
				has_character_flag = tani_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:donyipoloism
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = sedism
		trigger = {
			scope:char_editor = {
				has_character_flag = tani_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:sedism
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = vaishnavism
		trigger = {
			scope:char_editor = {
				has_character_flag = hinduism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:vaishnavism
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = advaitism
		trigger = {
			scope:char_editor = {
				has_character_flag = hinduism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:advaitism
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = shaivism
		trigger = {
			scope:char_editor = {
				has_character_flag = hinduism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:shaivism
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = srikula_shaktism
		trigger = {
			scope:char_editor = {
				has_character_flag = hinduism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:srikula_shaktism
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = kalikula_shaktism
		trigger = {
			scope:char_editor = {
				has_character_flag = hinduism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:kalikula_shaktism
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = smartism
		trigger = {
			scope:char_editor = {
				has_character_flag = hinduism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:smartism
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = krishnaism
		trigger = {
			scope:char_editor = {
				has_character_flag = hinduism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:krishnaism
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = ashari
		trigger = {
			scope:char_editor = {
				has_character_flag = islam_religion_pg_1
			}
		}
		scope:char_editor = {
			set_character_faith = faith:ashari
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = muwalladi
		trigger = {
			scope:char_editor = {
				has_character_flag = islam_religion_pg_1
			}
		}
		scope:char_editor = {
			set_character_faith = faith:muwalladi
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = maturidi
		trigger = {
			scope:char_editor = {
				has_character_flag = islam_religion_pg_1
			}
		}
		scope:char_editor = {
			set_character_faith = faith:maturidi
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = masmudi
		trigger = {
			scope:char_editor = {
				has_character_flag = islam_religion_pg_1
			}
		}
		scope:char_editor = {
			set_character_faith = faith:masmudi
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = mutazila
		trigger = {
			scope:char_editor = {
				has_character_flag = islam_religion_pg_1
			}
		}
		scope:char_editor = {
			set_character_faith = faith:mutazila
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = quranist
		trigger = {
			scope:char_editor = {
				has_character_flag = islam_religion_pg_1
			}
		}
		scope:char_editor = {
			set_character_faith = faith:quranist
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = ismaili
		trigger = {
			scope:char_editor = {
				has_character_flag = islam_religion_pg_1
			}
		}
		scope:char_editor = {
			set_character_faith = faith:ismaili
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = qarmatian
		trigger = {
			scope:char_editor = {
				has_character_flag = islam_religion_pg_1
			}
		}
		scope:char_editor = {
			set_character_faith = faith:qarmatian
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = nizari
		trigger = {
			scope:char_editor = {
				has_character_flag = islam_religion_pg_2
			}
		}
		scope:char_editor = {
			set_character_faith = faith:nizari
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = zayidi
		trigger = {
			scope:char_editor = {
				has_character_flag = islam_religion_pg_2
			}
		}
		scope:char_editor = {
			set_character_faith = faith:zayidi
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = imami
		trigger = {
			scope:char_editor = {
				has_character_flag = islam_religion_pg_2
			}
		}
		scope:char_editor = {
			set_character_faith = faith:imami
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = ghulat
		trigger = {
			scope:char_editor = {
				has_character_flag = islam_religion_pg_2
			}
		}
		scope:char_editor = {
			set_character_faith = faith:ghulat
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = alawite
		trigger = {
			scope:char_editor = {
				has_character_flag = islam_religion_pg_2
			}
		}
		scope:char_editor = {
			set_character_faith = faith:alawite
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = alevi
		trigger = {
			scope:char_editor = {
				has_character_flag = islam_religion_pg_2
			}
		}
		scope:char_editor = {
			set_character_faith = faith:alevi
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = druze
		trigger = {
			scope:char_editor = {
				has_character_flag = islam_religion_pg_2
			}
		}
		scope:char_editor = {
			set_character_faith = faith:druze
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = ibadi
		trigger = {
			scope:char_editor = {
				has_character_flag = islam_religion_pg_2
			}
		}
		scope:char_editor = {
			set_character_faith = faith:ibadi
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = azariqa
		trigger = {
			scope:char_editor = {
				has_character_flag = islam_religion_pg_3
			}
		}
		scope:char_editor = {
			set_character_faith = faith:azariqa
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = najdat
		trigger = {
			scope:char_editor = {
				has_character_flag = islam_religion_pg_3
			}
		}
		scope:char_editor = {
			set_character_faith = faith:najdat
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = sufri
		trigger = {
			scope:char_editor = {
				has_character_flag = islam_religion_pg_3
			}
		}
		scope:char_editor = {
			set_character_faith = faith:sufri
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = digambara
		trigger = {
			scope:char_editor = {
				has_character_flag = jainism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:digambara
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = svetambara
		trigger = {
			scope:char_editor = {
				has_character_flag = jainism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:svetambara
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = yapaniya
		trigger = {
			scope:char_editor = {
				has_character_flag = jainism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:yapaniya
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = rabbinism
		trigger = {
			scope:char_editor = {
				has_character_flag = judaism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:rabbinism
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = karaism
		trigger = {
			scope:char_editor = {
				has_character_flag = judaism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:karaism
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = haymanot
		trigger = {
			scope:char_editor = {
				has_character_flag = judaism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:haymanot
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = malabarism
		trigger = {
			scope:char_editor = {
				has_character_flag = judaism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:malabarism
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = samaritan
		trigger = {
			scope:char_editor = {
				has_character_flag = judaism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:samaritan
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = kabarism
		trigger = {
			scope:char_editor = {
				has_character_flag = judaism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:kabarism
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = kiratism
		trigger = {
			scope:char_editor = {
				has_character_flag = mundhum_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:kiratism
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = yumaism
		trigger = {
			scope:char_editor = {
				has_character_flag = mundhum_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:yumaism
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = rrmeaism
		trigger = {
			scope:char_editor = {
				has_character_flag = qiangic_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:rrmeaism
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = melieism
		trigger = {
			scope:char_editor = {
				has_character_flag = qiangic_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:melieism
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = quanzhen
		trigger = {
			scope:char_editor = {
				has_character_flag = taoism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:quanzhen
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = shangqing
		trigger = {
			scope:char_editor = {
				has_character_flag = taoism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:shangqing
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = zhengyi
		trigger = {
			scope:char_editor = {
				has_character_flag = taoism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:zhengyi
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = west_african_pagan
		trigger = {
			scope:char_editor = {
				has_character_flag = west_african_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:west_african_pagan
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = west_african_bidu_pagan
		trigger = {
			scope:char_editor = {
				has_character_flag = west_african_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:west_african_bidu_pagan
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = kitebacilweism
		trigger = {
			scope:char_editor = {
				has_character_flag = yazidi_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:kitebacilweism
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = meshefaresism
		trigger = {
			scope:char_editor = {
				has_character_flag = yazidi_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:meshefaresism
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = yazidi
		trigger = {
			scope:char_editor = {
				has_character_flag = yazidi_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:yazidi
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = mazdayasna
		trigger = {
			scope:char_editor = {
				has_character_flag = zoroastrianism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:mazdayasna
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = zurvanism
		trigger = {
			scope:char_editor = {
				has_character_flag = zoroastrianism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:zurvanism
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = gayomarthianism
		trigger = {
			scope:char_editor = {
				has_character_flag = zoroastrianism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:gayomarthianism
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = khurmazta
		trigger = {
			scope:char_editor = {
				has_character_flag = zoroastrianism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:khurmazta
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = mazdakism
		trigger = {
			scope:char_editor = {
				has_character_flag = zoroastrianism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:mazdakism
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = khurramism
		trigger = {
			scope:char_editor = {
				has_character_flag = zoroastrianism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:khurramism
		}
		trigger_event = dp_char_editor.42
	}
	
	option = {
		name = urartuism
		trigger = {
			scope:char_editor = {
				has_character_flag = zoroastrianism_religion_pg
			}
		}
		scope:char_editor = {
			set_character_faith = faith:urartuism
		}
		trigger_event = dp_char_editor.42
	}
	option = {
		name = dp_char_editor_forward
		trigger = {
			scope:char_editor = {
				OR = {
					has_character_flag = christianity_religion_pg_1
					has_character_flag = christianity_religion_pg_2
				}
			}
		}
		scope:char_editor = {
			christianity_religion_forward = yes
		}
		trigger_event = dp_char_editor.42
	}
	option = {
		name = dp_char_editor_backward
		trigger = {
			scope:char_editor = {
				OR = {
					has_character_flag = christianity_religion_pg_1
					has_character_flag = christianity_religion_pg_2
				}
			}
		}
		scope:char_editor = {
			christianity_religion_backward = yes
		}
		trigger_event = dp_char_editor.42
	}
	option = {
		name = dp_char_editor_forward
		trigger = {
			scope:char_editor = {
				OR = {
					has_character_flag = islam_religion_pg_1
					has_character_flag = islam_religion_pg_2
					has_character_flag = islam_religion_pg_3
				}
			}
		}
		scope:char_editor = {
			islam_religion_forward = yes
		}
		trigger_event = dp_char_editor.42
	}
	option = {
		name = dp_char_editor_backward
		trigger = {
			scope:char_editor = {
				OR = {
					has_character_flag = islam_religion_pg_1
					has_character_flag = islam_religion_pg_2
					has_character_flag = islam_religion_pg_3
				}
			}
		}
		scope:char_editor = {
			islam_religion_backward = yes
		}
		trigger_event = dp_char_editor.42
	}
	option = {
		name = dp_char_editor_back
		scope:char_editor = {
 			if = { limit = { has_character_flag = bon_religion_pg } remove_character_flag = bon_religion_pg }
 			if = { limit = { has_character_flag = buddhism_religion_pg } remove_character_flag = buddhism_religion_pg }
 			if = { limit = { has_character_flag = christianity_religion_pg_1 } remove_character_flag = christianity_religion_pg_1 }
 			if = { limit = { has_character_flag = christianity_religion_pg_2 } remove_character_flag = christianity_religion_pg_2 }
 			if = { limit = { has_character_flag = tani_religion_pg } remove_character_flag = tani_religion_pg }
 			if = { limit = { has_character_flag = dualism_religion_pg } remove_character_flag = dualism_religion_pg }
 			if = { limit = { has_character_flag = hinduism_religion_pg } remove_character_flag = hinduism_religion_pg }
 			if = { limit = { has_character_flag = islam_religion_pg_1 } remove_character_flag = islam_religion_pg_1 }
 			if = { limit = { has_character_flag = islam_religion_pg_2 } remove_character_flag = islam_religion_pg_2 }
 			if = { limit = { has_character_flag = islam_religion_pg_3 } remove_character_flag = islam_religion_pg_3 }
 			if = { limit = { has_character_flag = jainism_religion_pg } remove_character_flag = jainism_religion_pg }
 			if = { limit = { has_character_flag = judaism_religion_pg } remove_character_flag = judaism_religion_pg }
 			if = { limit = { has_character_flag = mundhum_religion_pg } remove_character_flag = mundhum_religion_pg }
 			if = { limit = { has_character_flag = qiangic_religion_pg } remove_character_flag = qiangic_religion_pg }
 			if = { limit = { has_character_flag = taoism_religion_pg } remove_character_flag = taoism_religion_pg }
 			if = { limit = { has_character_flag = west_african_religion_pg } remove_character_flag = west_african_religion_pg }
 			if = { limit = { has_character_flag = yazidi_religion_pg } remove_character_flag = yazidi_religion_pg }
 			if = { limit = { has_character_flag = zoroastrianism_religion_pg } remove_character_flag = zoroastrianism_religion_pg }
		}
		trigger_event = dp_char_editor.41
	}
}

### NAME MENU ###
#重命名
dp_char_editor.43 = {
	type = character_event
	title = dp_char_editor.naming.t
	desc = dp_char_editor.naming.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { event_background = council_chamber	}

	widgets = {
		widget = {
			gui = "event_window_widget_name_child"
			container = "dynamic_birth_name"
			controller = name_character
			setup_scope = { scope:char_editor = { save_scope_as = name_character_target } }
		}
	}

	option = {
		name = dp_char_editor_main_menu
		trigger_event = dp_char_editor.1000
	}
}

dp_char_editor.44 = {
	type = character_event
	title = dp_char_editor.presents.t
	desc = dp_char_editor.presents.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = terrain }
	
	option = {
		name = dp_char_editor.presents.lifestyle.t
		trigger_event = dp_char_editor.45
	}
	
	option = {
		name = dp_char_editor.presents.health.t
		trigger_event = dp_char_editor.46
	}
	
	option = {
		name = dp_char_editor.presents.traits.t
		trigger_event = dp_char_editor.47
	}
	
	option = {
		name = dp_char_editor.presents.characters.t
		trigger_event = dp_char_editor.48
	}
	
	option = {
		name = dp_char_editor.presents.innovation.t
		trigger_event = dp_char_editor.49
	}

	option = {
		name = dp_char_editor_main_menu
		trigger_event = dp_char_editor.1000
	}
}

dp_char_editor.45 = {
	type = character_event
	title = dp_char_editor.presents.lifestyle.t
	desc = dp_char_editor.presents.lifestyle.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = council_chamber }
	
	option = {
		name = dp_char_editor.all.t
		custom_tooltip = fulfill_lifestyle
		hidden_effect = {
			scope:char_editor = {
				if = {
					limit = {
						OR = {
							has_character_flag = martial_effect
							has_character_flag = diplo_effect
							has_character_flag = steward_effect
							has_character_flag = intrigue_effect
							has_character_flag = learning_effect
							has_character_flag = wanderer_effect
						}
					}
					lifestyle_martial_present_no_effect = yes
					lifestyle_diplomacy_present_no_effect = yes
					lifestyle_steward_present_no_effect = yes
					lifestyle_intrigue_present_no_effect = yes
					lifestyle_learning_present_no_effect = yes
					lifestyle_wanderer_present_no_effect = yes
					remove_character_flag = martial_effect
					remove_character_flag = diplo_effect
					remove_character_flag = steward_effect
					remove_character_flag = intrigue_effect
					remove_character_flag = learning_effect
					remove_character_flag = wanderer_effect
				}
				else = {
					lifestyle_martial_present_effect = yes
					lifestyle_diplomacy_present_effect = yes
					lifestyle_steward_present_effect = yes
					lifestyle_intrigue_present_effect = yes
					lifestyle_learning_present_effect = yes
					lifestyle_wanderer_present_effect = yes
					add_character_flag = martial_effect
					add_character_flag = diplo_effect
					add_character_flag = steward_effect
					add_character_flag = intrigue_effect
					add_character_flag = learning_effect
					add_character_flag = wanderer_effect
				}
			}
		}
		trigger_event = dp_char_editor.45
	}
	
	option = {
		name = dp_char_editor.martial.t
		custom_tooltip = fulfill_lifestyle
		hidden_effect = {
			scope:char_editor = {
				if = {
					limit = {
						has_character_flag = martial_effect
					}
					lifestyle_martial_present_no_effect = yes
					remove_character_flag = martial_effect
				}
				else = {
					lifestyle_martial_present_effect = yes
					add_character_flag = martial_effect
				}
			}
		}
		trigger_event = dp_char_editor.45
	}
	
	option = {
		name = dp_char_editor.diplomacy.t
		custom_tooltip = fulfill_lifestyle
		hidden_effect = {
			scope:char_editor = {
				if = {
					limit = {
						has_character_flag = diplo_effect
					}
					lifestyle_diplomacy_present_no_effect = yes
					remove_character_flag = diplo_effect
				}
				else = {
					lifestyle_diplomacy_present_effect = yes
					add_character_flag = diplo_effect
				}
			}
		}
		trigger_event = dp_char_editor.45
	}
	
	option = {
		name = dp_char_editor.stewardship.t
		custom_tooltip = fulfill_lifestyle
		hidden_effect = {
			scope:char_editor = {
				if = {
					limit = {
						has_character_flag = steward_effect
					}
					lifestyle_steward_present_no_effect = yes
					remove_character_flag = steward_effect
				}
				else = {
					lifestyle_steward_present_effect = yes
					add_character_flag = steward_effect
				}
			}
		}
		trigger_event = dp_char_editor.45
	}
	
	option = {
		name = dp_char_editor.intrigue.t
		custom_tooltip = fulfill_lifestyle
		hidden_effect = {
			scope:char_editor = {
				if = {
					limit = {
						has_character_flag = intrigue_effect
					}
					lifestyle_intrigue_present_no_effect = yes
					remove_character_flag = intrigue_effect
				}
				else = {
					lifestyle_intrigue_present_effect = yes
					add_character_flag = intrigue_effect
				}
			}
		}
		trigger_event = dp_char_editor.45
	}
	
	option = {
		name = dp_char_editor.learning.t
		custom_tooltip = fulfill_lifestyle
		hidden_effect = {
			scope:char_editor = {
				if = {
					limit = {
						has_character_flag = learning_effect
					}
					lifestyle_learning_present_no_effect = yes
					remove_character_flag = learning_effect
				}
				else = {
					lifestyle_learning_present_effect = yes
					add_character_flag = learning_effect
				}
			}
		}
		trigger_event = dp_char_editor.45
	}
	option = {
		name = dp_char_editor.wanderer.t
		custom_tooltip = fulfill_lifestyle
		hidden_effect = {
			scope:char_editor = {
				if = {
					limit = {
						has_character_flag = wanderer_effect
					}
					lifestyle_wanderer_present_no_effect = yes
					remove_character_flag = wanderer_effect
				}
				else = {
					lifestyle_wanderer_present_effect = yes
					add_character_flag = wanderer_effect
				}
			}
		}
		trigger_event = dp_char_editor.45
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.44
	}
}

dp_char_editor.46 = {
	type = character_event
	title = dp_char_editor.presents.health.t
	desc = dp_char_editor.presents.health.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = physicians_study }
	
	option = {
		name = dp_char_editor.presents.eliminate_problems
		hidden_effect = {
			scope:char_editor = {
				set_weight_0 = yes
				eliminated_health_problem_effect = yes
			}
		}
		trigger_event = dp_char_editor.46
	}
	
	option = {
		name = dp_char_editor.presents.good_genes
		hidden_effect = {
			scope:char_editor ={
				remove_trait = beauty_bad_3
				remove_trait = intellect_bad_3
				remove_trait = physique_bad_3
				remove_trait = inbred
				remove_trait = impotent
				if = {
					limit = {
						OR = {
							has_trait = physique_good_3
							has_trait = intellect_good_3
							has_trait = beauty_good_3
							has_trait = pure_blooded
							has_trait = fecund
						}
					}
					remove_health_conflict_effect = yes
				}
				else = {
					add_trait = physique_good_3
					add_trait = intellect_good_3
					add_trait = beauty_good_3
					add_trait = pure_blooded
					add_trait = fecund
				}
			}
		}
		trigger_event = dp_char_editor.46
	}
	
	option = {
		name = dp_char_editor.presents.bad_genes
		hidden_effect = {
			scope:char_editor ={
				remove_trait = physique_good_3
				remove_trait = intellect_good_3
				remove_trait = beauty_good_3
				remove_trait = pure_blooded
				remove_trait = fecund
				if = {
					limit = {
						OR = {
							has_trait = beauty_bad_3
							has_trait = intellect_bad_3
							has_trait = physique_bad_3
						}
					}
					remove_health_conflict_effect = yes
					add_trait = beauty_good_3
					remove_trait = beauty_good_3
				}
				else = {
					add_trait = beauty_bad_3
					add_trait = intellect_bad_3
					add_trait = physique_bad_3
					add_trait = inbred
					add_trait = impotent
				}
			}
		}
		trigger_event = dp_char_editor.46
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.44
	}
}

dp_char_editor.47 = {
	type = character_event
	title = dp_char_editor.presents.traits.t
	desc = dp_char_editor.presents.traits.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = throne_room }
	
	option = {
		name = dp_char_editor.presents.randomizer
		custom_tooltip = dp_char_editor.presents.randomizer_TT
		hidden_effect = { 
			scope:char_editor = {
				clear_personality_traits_effect = yes
				personality_trait_randomizer_effect = yes
			}
		}
		trigger_event = dp_char_editor.47
	}
	
	option = {
		name = dp_char_editor.presents.special_traits
		hidden_effect = { 
			scope:char_editor = {
				if = { limit = { has_trait = immortal } 
					remove_trait = immortal 
					if = { limit = { NOT = { has_character_flag = dp_char_editor_presents_special_traits } } add_character_flag = dp_char_editor_presents_special_traits }
				}
				if = { limit = { has_trait = zg_buxiu } 
				remove_trait = zg_buxiu 
				if = { limit = { NOT = { has_character_flag = dp_char_editor_presents_special_traits } } add_character_flag = dp_char_editor_presents_special_traits }
			}
				if = { limit = { has_trait = 100_stat_man } 
					remove_trait = 100_stat_man 
					if = { limit = { NOT = { has_character_flag = dp_char_editor_presents_special_traits } } add_character_flag = dp_char_editor_presents_special_traits }
				}
				if = { limit = { has_trait = nnn_challenger } 
					remove_trait = nnn_challenger 
					if = { limit = { NOT = { has_character_flag = dp_char_editor_presents_special_traits } } add_character_flag = dp_char_editor_presents_special_traits }
				}

				if = { limit = { has_trait = build_speed_cheat } 
					remove_trait = build_speed_cheat 
					if = { limit = { NOT = { has_character_flag = dp_char_editor_presents_special_traits } } add_character_flag = dp_char_editor_presents_special_traits }
				}
				if = { limit = { has_trait = stress_gain_remove } 
					remove_trait = stress_gain_remove 
					if = { limit = { NOT = { has_character_flag = dp_char_editor_presents_special_traits } } add_character_flag = dp_char_editor_presents_special_traits }
				}
				if = { limit = { has_trait = tyranny_gain_remove } 
					remove_trait = tyranny_gain_remove 
					if = { limit = { NOT = { has_character_flag = dp_char_editor_presents_special_traits } } add_character_flag = dp_char_editor_presents_special_traits }
				}
			
				if = { limit = { NOT = { has_character_flag = dp_char_editor_presents_special_traits } }
					add_trait = immortal
					set_immortal_age = 30
					add_trait = 100_stat_man
					add_trait = nnn_challenger
					add_trait = build_speed_cheat
					add_trait = stress_gain_remove
					add_trait = tyranny_gain_remove
				}	
				remove_character_flag = dp_char_editor_presents_special_traits

			}
		}
		trigger_event = dp_char_editor.47
	}
	
	option = {
		name = dp_char_editor.presents.commander
		hidden_effect = {
			scope:char_editor = {
				if = {
					limit = {
						has_character_flag = commander_effect
					}
					remove_commander_traits_effect = yes
					remove_character_flag = commander_effect
				}
				else = {
					add_commander_traits_effect = yes
					add_character_flag = commander_effect
				}
			}
		}
		trigger_event = dp_char_editor.47
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.44
	}
}

dp_char_editor.48 = {
	type = character_event
	title = dp_char_editor.presents.characters.t
	desc = dp_char_editor.presents.characters.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = docks }
	
	option = {
		name = dp_char_editor.presents.chungus
		hidden_effect = {
			scope:char_editor = {
				if = { limit = { has_trait = dwarf } remove_trait = dwarf }
				if = {
					limit = {
						OR = {
							has_trait = giant
							has_trait = physique_good_3
						}
					}
					set_weight_0 = yes
					remove_trait = dwarf
					remove_trait = physique_good_1
					remove_trait = physique_good_2
					remove_trait = physique_good_3
					remove_trait = physique_bad_1
					remove_trait = physique_bad_2
					remove_trait = physique_bad_3
					remove_trait = giant
				}
				else = {
					change_current_weight = 100
					add_trait = physique_good_3
					add_trait = giant
				}
			}
		}
		trigger_event = dp_char_editor.48
	}
	
	option = {
		name = dp_char_editor.presents.midget
		hidden_effect = {
			scope:char_editor ={
				if = { limit = { has_trait = giant } remove_trait = giant }
				set_weight_0 = yes
				if = {
					limit = {
						OR = {
							has_trait = dwarf
						}
					}
					remove_trait = dwarf
					remove_trait = giant
				}
				else = {
					add_trait = dwarf
				}
			}
		}
		trigger_event = dp_char_editor.48
	}
	
	option = {
		name = dp_char_editor.presents.ghostly
		hidden_effect = {
			scope:char_editor ={
				if = {
					limit = {
						OR = {
							has_trait = albino
							has_trait = spindly
						}
					}
					remove_trait = albino
					remove_trait = spindly
					set_weight_0 = yes
				}
				else = {
					add_trait = spindly
					add_trait = albino
					change_current_weight = -50
				}
			}
		}
		trigger_event = dp_char_editor.48
	}
	
	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.44
	}
}

dp_char_editor.49 = {
	type = character_event
	title = dp_char_editor.presents.innovation.t
	desc = dp_char_editor.presents.innovation.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { event_background = study }
	#部落革新
	option = {
		name = tribal_innovation_decision
		trigger_event = dp_char_editor.49
		innovation_tribal_effect = yes
	}
	#中世纪早期
	option = {
		name = early_medival_innovation_decision
		trigger_event = dp_char_editor.49
		innovation_early_medival_effect = yes
	}
	#中世纪盛期
	option = {
		name = high_medival_innovation_decision
		trigger_event = dp_char_editor.49
		innovation_high_medival_effect = yes
	}
	#中世纪晚期
	option = {
		name = late_medival_innovation_decision
		trigger_event = dp_char_editor.49
		innovation_late_medival_effect = yes
	}
	#特殊革新
	option = {
		name = special_innovation_decision
		trigger_event = dp_char_editor.49
		innovation_special_effect = yes
	}
	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.44
	}
}

dp_char_editor.50 = {
	type = character_event
	title = dp_char_editor.modifiers.t
	desc = dp_char_editor.modifiers.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = market_west }
	
	option = {
		name = dp_char_editor_main_menu
		scope:char_editor = {
			remove_modifier_pgs = yes
			remove_all_modifier_go_back_flags = yes
		}
		trigger_event = dp_char_editor.1000
	}
	option = {
		name = dp_char_editor.modifiers.prestige.t
		trigger = { scope:char_editor = { has_character_flag = modifier_pg_1 } }
		scope:char_editor = { add_character_flag = prestige_modifier_pg_1 }
		trigger_event = dp_char_editor.52
	}
	option = {
		name = dp_char_editor.modifiers.piety.t
		trigger = { scope:char_editor = { has_character_flag = modifier_pg_1 } }
		scope:char_editor = { add_character_flag = piety_modifier_pg_1 }
		trigger_event = dp_char_editor.53
	}
	option = {
		name = dp_char_editor.modifiers.income.t
		trigger = { scope:char_editor = { has_character_flag = modifier_pg_1 } }
		scope:char_editor = { add_character_flag = income_modifier_pg_1 }
		trigger_event = dp_char_editor.54
	}
	option = {
		name = dp_char_editor.modifiers.opinion.t
		trigger = { scope:char_editor = { has_character_flag = modifier_pg_1 } }
		scope:char_editor = { add_character_flag = opinion_modifier_pg_1 }
		trigger_event = dp_char_editor.51
	}
	option = {
		name = dp_char_editor.modifiers.health.t
		trigger = { scope:char_editor = { has_character_flag = modifier_pg_1 } }
		scope:char_editor = { add_character_flag = health_modifier_pg_1 }
		trigger_event = dp_char_editor.55
	}
	option = {
		name = dp_char_editor.modifiers.intrigue.t
		trigger = { scope:char_editor = { has_character_flag = modifier_pg_1 } }
		scope:char_editor = { add_character_flag = intrigue_modifier_pg_1 }
		trigger_event = dp_char_editor.56
	}
	option = {
		name = dp_char_editor.modifiers.authority.t
		trigger = { scope:char_editor = { has_character_flag = modifier_pg_1 } }
		scope:char_editor = { add_character_flag = authority_modifier_pg_1 }
		trigger_event = dp_char_editor.58
	}
	option = {
		name = dp_char_editor.modifiers.provincial.t
		trigger = { scope:char_editor = { has_character_flag = modifier_pg_2 } }
		scope:char_editor = { add_character_flag = provincial_modifier_pg_1 }
		trigger_event = dp_char_editor.57
	}
	option = {
		name = dp_char_editor.modifiers.governing.t
		trigger = { scope:char_editor = { has_character_flag = modifier_pg_2 } }
		scope:char_editor = { add_character_flag = governing_modifier_pg_1 }
		trigger_event = dp_char_editor.59
	}
	option = {
		name = dp_char_editor.modifiers.military.t
		trigger = { scope:char_editor = { has_character_flag = modifier_pg_2 } }
		scope:char_editor = { add_character_flag = military_modifier_pg_1 }
		trigger_event = dp_char_editor.60
	}
	option = {
		name = dp_char_editor.modifiers.learning.t
		trigger = { scope:char_editor = { has_character_flag = modifier_pg_2 } }
		trigger_event = dp_char_editor.61
	}
	option = {
		name = dp_char_editor.reset_all_modifier_instances
		trigger = { scope:char_editor = { has_character_flag = modifier_pg_2 } }
		custom_tooltip = reset_all_modifier_instances_warning_tt
		scope:char_editor = {
			reset_all_modifier_instances = yes
		}
		trigger_event = dp_char_editor.50
	}
	
	option = {
		name = dp_char_editor_forward
		modifier_forward = yes
		trigger_event = dp_char_editor.50
	}
	option = {
		name = dp_char_editor_backward
		modifier_backward = yes
		trigger_event = dp_char_editor.50
	}
}

dp_char_editor.51 = {
	type = character_event
	title = dp_char_editor.modifiers.opinion.t
	desc = dp_char_editor.modifiers.opinion.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = market_west }
	option = {
		name = MOD_GENERAL_OPINION
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_1 } }
		scope:char_editor = {
			##remove_opinion_modifier_pgs = yes
			add_character_flag = general_opinion_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_ATTRACTION_OPINION
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_1 } }
		scope:char_editor = {
			##remove_opinion_modifier_pgs = yes
			add_character_flag = attraction_opinion_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_SPOUSE_OPINION
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_1 } }
		scope:char_editor = {
			##remove_opinion_modifier_pgs = yes
			add_character_flag = spouse_opinion_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_TWIN_OPINION
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_1 } }
		scope:char_editor = {
			##remove_opinion_modifier_pgs = yes
			add_character_flag = twin_opinion_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_CLOSE_RELATIVE_OPINION
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_1 } }
		scope:char_editor = {
			##remove_opinion_modifier_pgs = yes
			add_character_flag = close_relative_opinion_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_DYNASTY_HOUSE_OPINION
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_1 } }
		scope:char_editor = {
			##remove_opinion_modifier_pgs = yes
			add_character_flag = dynasty_house_opinion_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_DYNASTY_OPINION
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_1 } }
		scope:char_editor = {
			##remove_opinion_modifier_pgs = yes
			add_character_flag = dynasty_opinion_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_LIEGE_OPINION
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_1 } }
		scope:char_editor = {
			##remove_opinion_modifier_pgs = yes
			add_character_flag = liege_opinion_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_VASSAL_OPINION
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_2 } }
		scope:char_editor = {
			##remove_opinion_modifier_pgs = yes
			add_character_flag = vassal_opinion_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_INDEPENDENT_RULER_OPINION
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_2 } }
		scope:char_editor = {
			##remove_opinion_modifier_pgs = yes
			add_character_flag = independent_ruler_opinion_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_RELIGIOUS_VASSAL_OPINION
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_2 } }
		scope:char_editor = {
			##remove_opinion_modifier_pgs = yes
			add_character_flag = religious_vassal_opinion_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_RELIGIOUS_HEAD_OPINION
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_2 } }
		scope:char_editor = {
			##remove_opinion_modifier_pgs = yes
			add_character_flag = religious_head_opinion_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_DIFFERENT_FAITH_LIEGE_OPINION
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_2 } }
		scope:char_editor = {
			##remove_opinion_modifier_pgs = yes
			add_character_flag = different_faith_liege_opinion_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_CLERGY_OPINION
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_2 } }
		scope:char_editor = {
			##remove_opinion_modifier_pgs = yes
			add_character_flag = clergy_opinion_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_COUNCILLOR_OPINION
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_2 } }
		scope:char_editor = {
			##remove_opinion_modifier_pgs = yes
			add_character_flag = councillor_opinion_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_REALM_PRIEST_OPINION
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_2 } }
		scope:char_editor = {
			##remove_opinion_modifier_pgs = yes
			add_character_flag = realm_priest_opinion_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_POWERFUL_VASSAL_OPINION
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_3 } }
		scope:char_editor = {
			##remove_opinion_modifier_pgs = yes
			add_character_flag = powerful_vassal_opinion_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_COURTIER_OPINION
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_3 } }
		scope:char_editor = {
			##remove_opinion_modifier_pgs = yes
			add_character_flag = courtier_opinion_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_GUEST_OPINION
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_3 } }
		scope:char_editor = {
			##remove_opinion_modifier_pgs = yes
			add_character_flag = guest_opinion_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_COURTIER_AND_GUEST_OPINION
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_3 } }
		scope:char_editor = {
			##remove_opinion_modifier_pgs = yes
			add_character_flag = courtier_and_guest_opinion_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_PRISONER_OPINION
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_3 } }
		scope:char_editor = {
			##remove_opinion_modifier_pgs = yes
			add_character_flag = prisoner_opinion_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_PLAYER_HEIR_OPINION
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_3 } }
		scope:char_editor = {
			#remove_opinion_modifier_pgs = yes
			add_character_flag = player_heir_opinion_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_CHILD_OPINION
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_3 } }
		scope:char_editor = {
			#remove_opinion_modifier_pgs = yes
			add_character_flag = child_opinion_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = child_except_player_heir_opinion
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_3 } }
		scope:char_editor = {
			#remove_opinion_modifier_pgs = yes
			add_character_flag = child_except_player_heir_opinion_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_ELIGIBLE_CHILD_OPINION
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_4 } }
		scope:char_editor = {
			#remove_opinion_modifier_pgs = yes
			add_character_flag = eligible_child_opinion_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = eligible_child_except_player_heir_opinion
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_4 } }
		scope:char_editor = {
			#remove_opinion_modifier_pgs = yes
			add_character_flag = eligible_child_except_player_heir_opinion_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_OPINION_OF_LIEGE
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_4 } }
		scope:char_editor = {
			#remove_opinion_modifier_pgs = yes
			add_character_flag = opinion_of_liege_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_OPINION_OF_VASSAL
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_4 } }
		scope:char_editor = {
			#remove_opinion_modifier_pgs = yes
			add_character_flag = opinion_of_vassal_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_OPINION_OF_SAME_CULTURE
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_4 } }
		scope:char_editor = {
			#remove_opinion_modifier_pgs = yes
			add_character_flag = opinion_of_same_culture_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_OPINION_OF_DIFFERENT_CULTURE
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_4 } }
		scope:char_editor = {
			#remove_opinion_modifier_pgs = yes
			add_character_flag = opinion_of_different_culture_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_OPINION_OF_SAME_FAITH
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_4 } }
		scope:char_editor = {
			#remove_opinion_modifier_pgs = yes
			add_character_flag = opinion_of_same_faith_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_OPINION_OF_DIFFERENT_FAITH
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_4 } }
		scope:char_editor = {
			#remove_opinion_modifier_pgs = yes
			add_character_flag = opinion_of_different_faith_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_OPINION_OF_DIFFERENT_FAITH_LIEGE
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_5 } }
		scope:char_editor = {
			#remove_opinion_modifier_pgs = yes
			add_character_flag = opinion_of_different_faith_liege_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_SAME_CULTURE_OPINION
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_5 } }
		scope:char_editor = {
			#remove_opinion_modifier_pgs = yes
			add_character_flag = same_culture_opinion_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_DIFFERENT_CULTURE_OPINION
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_5 } }
		scope:char_editor = {
			#remove_opinion_modifier_pgs = yes
			add_character_flag = different_culture_opinion_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_SAME_FAITH_OPINION
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_5 } }
		scope:char_editor = {
			#remove_opinion_modifier_pgs = yes
			add_character_flag = same_faith_opinion_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_DIFFERENT_FAITH_OPINION
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_5 } }
		scope:char_editor = {
			#remove_opinion_modifier_pgs = yes
			add_character_flag = different_faith_opinion_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_DIRECT_VASSAL_OPINION
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_5 } }
		scope:char_editor = {
			#remove_opinion_modifier_pgs = yes
			add_character_flag = direct_vassal_opinion_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_FELLOW_VASSAL_OPINION
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_5 } }
		scope:char_editor = {
			#remove_opinion_modifier_pgs = yes
			add_character_flag = fellow_vassal_opinion_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_OPINION_OF_MALE_RULERS
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_5 } }
		scope:char_editor = {
			#remove_opinion_modifier_pgs = yes
			add_character_flag = opinion_of_male_rulers_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_OPINION_OF_FEMALE_RULERS
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_6 } }
		scope:char_editor = {
			#remove_opinion_modifier_pgs = yes
			add_character_flag = opinion_of_female_rulers_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_COUNTY_OPINION_ADD
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_6 } }
		scope:char_editor = {
			#remove_opinion_modifier_pgs = yes
			add_character_flag = county_opinion_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_COUNTY_OPINION_DIFFERENT_FAITH_MULT
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_6 } }
		scope:char_editor = {
			#remove_opinion_modifier_pgs = yes
			add_character_flag = different_faith_county_opinion_mult_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = county_opinion_even_if_baron
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_6 } }
		scope:char_editor = {
			#remove_opinion_modifier_pgs = yes
			add_character_flag = county_opinion_add_even_if_baron_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = different_faith_county_opinion_mult_even_if_baron
		trigger = { scope:char_editor = { has_character_flag = opinion_modifier_pg_6 } }
		scope:char_editor = {
			#remove_opinion_modifier_pgs = yes
			add_character_flag = different_faith_county_opinion_mult_even_if_baron_flag
			add_character_flag = last_event_51
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = dp_char_editor_forward
		scope:char_editor = {
			opinion_modifier_forward = yes
		}
		trigger_event = dp_char_editor.51
	}
	option = {
		name = dp_char_editor_backward
		scope:char_editor = {
			opinion_modifier_backward = yes
		}
		trigger_event = dp_char_editor.51
	}
	option = {
		name = dp_char_editor_back
		scope:char_editor = {
			#remove_opinion_modifier_pgs = yes
			#This effect is now being called in the effect below, should be redundant here.
			remove_all_modifier_go_back_flags = yes
		}
		trigger_event = dp_char_editor.50
	}
}

dp_char_editor.52 = {
	type = character_event
	title = dp_char_editor.modifiers.prestige.t
	desc = dp_char_editor.modifiers.prestige.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = market_west }
	option = {
		name = MOD_MONTHLY_PRESTIGE
		trigger = { scope:char_editor = { has_character_flag = prestige_modifier_pg_1 } }
		scope:char_editor = {
			#remove_prestige_modifier_pgs = yes
			add_character_flag = monthly_prestige_flag
			add_character_flag = last_event_52
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MONTHLY_PRESTIGE_GAIN_MULT
		trigger = { scope:char_editor = { has_character_flag = prestige_modifier_pg_1 } }
		scope:char_editor = {
			#remove_prestige_modifier_pgs = yes
			add_character_flag = monthly_prestige_gain_mult_flag
			add_character_flag = last_event_52
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MONTHLY_DYNASTY_PRESTIGE
		trigger = { scope:char_editor = { has_character_flag = prestige_modifier_pg_1 } }
		scope:char_editor = {
			#remove_prestige_modifier_pgs = yes
			add_character_flag = monthly_dynasty_prestige_flag
			add_character_flag = last_event_52
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MONTHLY_DYNASTY_PRESTIGE_MULT
		trigger = { scope:char_editor = { has_character_flag = prestige_modifier_pg_1 } }
		scope:char_editor = {
			#remove_prestige_modifier_pgs = yes
			add_character_flag = monthly_dynasty_prestige_mult_flag
			add_character_flag = last_event_52
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MONTHLY_PRESTIGE_GAIN_PER_KNIGHT_ADD
		trigger = { scope:char_editor = { has_character_flag = prestige_modifier_pg_1 } }
		scope:char_editor = {
			#remove_prestige_modifier_pgs = yes
			add_character_flag = monthly_prestige_gain_per_knight_flag
			add_character_flag = last_event_52
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MONTHLY_PRESTIGE_GAIN_PER_KNIGHT_MULT
		trigger = { scope:char_editor = { has_character_flag = prestige_modifier_pg_1 } }
		scope:char_editor = {
			#remove_prestige_modifier_pgs = yes
			add_character_flag = monthly_prestige_gain_per_knight_mult_flag
			add_character_flag = last_event_52
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MONTHLY_PRESTIGE_GAIN_PER_DREAD_ADD
		trigger = { scope:char_editor = { has_character_flag = prestige_modifier_pg_1 } }
		scope:char_editor = {
			#remove_prestige_modifier_pgs = yes
			add_character_flag = monthly_prestige_gain_per_dread_flag
			add_character_flag = last_event_52
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MONTHLY_PRESTIGE_GAIN_PER_DREAD_MULT
		trigger = { scope:char_editor = { has_character_flag = prestige_modifier_pg_1 } }
		scope:char_editor = {
			#remove_prestige_modifier_pgs = yes
			add_character_flag = monthly_prestige_gain_per_dread_mult_flag
			add_character_flag = last_event_52
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_PRESTIGE_LEVEL_IMPACT_MULT
		trigger = { scope:char_editor = { has_character_flag = prestige_modifier_pg_2 } }
		scope:char_editor = {
			#remove_prestige_modifier_pgs = yes
			add_character_flag = prestige_level_impact_mult_flag
			add_character_flag = last_event_52
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_DIPLOMACY_PER_PRESTIGE_LEVEL
		trigger = { scope:char_editor = { has_character_flag = prestige_modifier_pg_2 } }
		scope:char_editor = {
			#remove_prestige_modifier_pgs = yes
			add_character_flag = diplomacy_per_prestige_level_flag
			add_character_flag = last_event_52
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MARTIAL_PER_PRESTIGE_LEVEL
		trigger = { scope:char_editor = { has_character_flag = prestige_modifier_pg_2 } }
		scope:char_editor = {
			#remove_prestige_modifier_pgs = yes
			add_character_flag = martial_per_prestige_level_flag
			add_character_flag = last_event_52
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_STEWARDSHIP_PER_PRESTIGE_LEVEL
		trigger = { scope:char_editor = { has_character_flag = prestige_modifier_pg_2 } }
		scope:char_editor = {
			#remove_prestige_modifier_pgs = yes
			add_character_flag = stewardship_per_prestige_level_flag
			add_character_flag = last_event_52
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_INTRIGUE_PER_PRESTIGE_LEVEL
		trigger = { scope:char_editor = { has_character_flag = prestige_modifier_pg_2 } }
		scope:char_editor = {
			#remove_prestige_modifier_pgs = yes
			add_character_flag = intrigue_per_prestige_level_flag
			add_character_flag = last_event_52
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_LEARNING_PER_PRESTIGE_LEVEL
		trigger = { scope:char_editor = { has_character_flag = prestige_modifier_pg_2 } }
		scope:char_editor = {
			#remove_prestige_modifier_pgs = yes
			add_character_flag = learning_per_prestige_level_flag
			add_character_flag = last_event_52
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_PROWESS_PER_PRESTIGE_LEVEL
		trigger = { scope:char_editor = { has_character_flag = prestige_modifier_pg_2 } }
		scope:char_editor = {
			#remove_prestige_modifier_pgs = yes
			add_character_flag = prowess_per_prestige_level_flag
			add_character_flag = last_event_52
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MONTHLY_PRESTIGE_FROM_BUILDINGS_MULT
		trigger = { scope:char_editor = { has_character_flag = prestige_modifier_pg_2 } }
		scope:char_editor = {
			#remove_prestige_modifier_pgs = yes
			add_character_flag = monthly_prestige_from_buildings_mult_flag
			add_character_flag = last_event_52
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MONTHLY_PRESTIGE_GAIN_PER_HAPPY_POWERFUL_VASSAL_ADD
		trigger = { scope:char_editor = { has_character_flag = prestige_modifier_pg_3 } }
		scope:char_editor = {
			#remove_prestige_modifier_pgs = yes
			add_character_flag = monthly_prestige_gain_per_happy_powerful_vassal_flag
			add_character_flag = last_event_52
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MONTHLY_PRESTIGE_GAIN_PER_HAPPY_POWERFUL_VASSAL_MULT
		trigger = { scope:char_editor = { has_character_flag = prestige_modifier_pg_3 } }
		scope:char_editor = {
			#remove_prestige_modifier_pgs = yes
			add_character_flag = monthly_prestige_gain_per_happy_powerful_vassal_mult_flag
			add_character_flag = last_event_52
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = dp_char_editor_forward
		scope:char_editor = {
			prestige_modifier_forward = yes
		}
		trigger_event = dp_char_editor.52
	}
	option = {
		name = dp_char_editor_backward
		scope:char_editor = {
			prestige_modifier_backward = yes
		}
		trigger_event = dp_char_editor.52
	}
	option = {
		name = dp_char_editor_back
		scope:char_editor = {
			#remove_prestige_modifier_pgs = yes
			#This effect is now being called in the effect below, should be redundant here.
			remove_all_modifier_go_back_flags = yes
		}
		trigger_event = dp_char_editor.50
	}
}

dp_char_editor.53 = {
	type = character_event
	title = dp_char_editor.modifiers.piety.t
	desc = dp_char_editor.modifiers.piety.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = market_west }
	option = {
		name = MOD_MONTHLY_PIETY
		trigger = { scope:char_editor = { has_character_flag = piety_modifier_pg_1 } }
		scope:char_editor = {
			#remove_piety_modifier_pgs = yes
			add_character_flag = monthly_piety_flag
			add_character_flag = last_event_53
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MONTHLY_PIETY_GAIN_MULT
		trigger = { scope:char_editor = { has_character_flag = piety_modifier_pg_1 } }
		scope:char_editor = {
			#remove_piety_modifier_pgs = yes
			add_character_flag = monthly_piety_gain_mult_flag
			add_character_flag = last_event_53
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MONTHLY_PIETY_GAIN_PER_KNIGHT_ADD
		trigger = { scope:char_editor = { has_character_flag = piety_modifier_pg_1 } }
		scope:char_editor = {
			#remove_piety_modifier_pgs = yes
			add_character_flag = monthly_piety_gain_per_knight_flag
			add_character_flag = last_event_53
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MONTHLY_PIETY_GAIN_PER_KNIGHT_MULT
		trigger = { scope:char_editor = { has_character_flag = piety_modifier_pg_1 } }
		scope:char_editor = {
			#remove_piety_modifier_pgs = yes
			add_character_flag = monthly_piety_gain_per_knight_mult_flag
			add_character_flag = last_event_53
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MONTHLY_PIETY_GAIN_PER_DREAD_ADD
		trigger = { scope:char_editor = { has_character_flag = piety_modifier_pg_1 } }
		scope:char_editor = {
			#remove_piety_modifier_pgs = yes
			add_character_flag = monthly_piety_gain_per_dread_flag
			add_character_flag = last_event_53
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MONTHLY_PIETY_GAIN_PER_DREAD_MULT
		trigger = { scope:char_editor = { has_character_flag = piety_modifier_pg_1 } }
		scope:char_editor = {
			#remove_piety_modifier_pgs = yes
			add_character_flag = monthly_piety_gain_per_dread_mult_flag
			add_character_flag = last_event_53
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_PIETY_LEVEL_IMPACT_MULT
		trigger = { scope:char_editor = { has_character_flag = piety_modifier_pg_1 } }
		scope:char_editor = {
			#remove_piety_modifier_pgs = yes
			add_character_flag = piety_level_impact_mult_flag
			add_character_flag = last_event_53
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MONTHLY_PIETY_FROM_BUILDINGS_MULT
		trigger = { scope:char_editor = { has_character_flag = piety_modifier_pg_1 } }
		scope:char_editor = {
			#remove_piety_modifier_pgs = yes
			add_character_flag = monthly_piety_from_buildings_mult_flag
			add_character_flag = last_event_53
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_DIPLOMACY_PER_PIETY_LEVEL
		trigger = { scope:char_editor = { has_character_flag = piety_modifier_pg_2 } }
		scope:char_editor = {
			#remove_piety_modifier_pgs = yes
			add_character_flag = diplomacy_per_piety_level_flag
			add_character_flag = last_event_53
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MARTIAL_PER_PIETY_LEVEL
		trigger = { scope:char_editor = { has_character_flag = piety_modifier_pg_2 } }
		scope:char_editor = {
			#remove_piety_modifier_pgs = yes
			add_character_flag = martial_per_piety_level_flag
			add_character_flag = last_event_53
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_STEWARDSHIP_PER_PIETY_LEVEL
		trigger = { scope:char_editor = { has_character_flag = piety_modifier_pg_2 } }
		scope:char_editor = {
			#remove_piety_modifier_pgs = yes
			add_character_flag = stewardship_per_piety_level_flag
			add_character_flag = last_event_53
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_INTRIGUE_PER_PIETY_LEVEL
		trigger = { scope:char_editor = { has_character_flag = piety_modifier_pg_2 } }
		scope:char_editor = {
			#remove_piety_modifier_pgs = yes
			add_character_flag = intrigue_per_piety_level_flag
			add_character_flag = last_event_53
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_LEARNING_PER_PIETY_LEVEL
		trigger = { scope:char_editor = { has_character_flag = piety_modifier_pg_2 } }
		scope:char_editor = {
			#remove_piety_modifier_pgs = yes
			add_character_flag = learning_per_piety_level_flag
			add_character_flag = last_event_53
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_PROWESS_PER_PIETY_LEVEL
		trigger = { scope:char_editor = { has_character_flag = piety_modifier_pg_2 } }
		scope:char_editor = {
			#remove_piety_modifier_pgs = yes
			add_character_flag = prowess_per_piety_level_flag
			add_character_flag = last_event_53
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MONTHLY_PIETY_GAIN_PER_HAPPY_POWERFUL_VASSAL_ADD
		trigger = { scope:char_editor = { has_character_flag = piety_modifier_pg_2 } }
		scope:char_editor = {
			#remove_piety_modifier_pgs = yes
			add_character_flag = monthly_piety_gain_per_happy_powerful_vassal_flag
			add_character_flag = last_event_53
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MONTHLY_PIETY_GAIN_PER_HAPPY_POWERFUL_VASSAL_MULT
		trigger = { scope:char_editor = { has_character_flag = piety_modifier_pg_2 } }
		scope:char_editor = {
			#remove_piety_modifier_pgs = yes
			add_character_flag = monthly_piety_gain_per_happy_powerful_vassal_mult_flag
			add_character_flag = last_event_53
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_FAITH_CONVERSION_PIETY_COST_ADD
		trigger = { scope:char_editor = { has_character_flag = piety_modifier_pg_3 } }
		scope:char_editor = {
			#remove_piety_modifier_pgs = yes
			add_character_flag = faith_conversion_piety_cost_flag
			add_character_flag = last_event_53
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = faith_conversion_piety_cost_mult
		trigger = { scope:char_editor = { has_character_flag = piety_modifier_pg_3 } }
		scope:char_editor = {
			#remove_piety_modifier_pgs = yes
			add_character_flag = faith_conversion_piety_cost_mult_flag
			add_character_flag = last_event_53
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_FAITH_CREATION_PIETY_COST_ADD
		trigger = { scope:char_editor = { has_character_flag = piety_modifier_pg_3 } }
		scope:char_editor = {
			#remove_piety_modifier_pgs = yes
			add_character_flag = faith_creation_piety_cost_flag
			add_character_flag = last_event_53
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = faith_creation_piety_cost_mult
		trigger = { scope:char_editor = { has_character_flag = piety_modifier_pg_3 } }
		scope:char_editor = {
			#remove_piety_modifier_pgs = yes
			add_character_flag = faith_creation_piety_cost_mult_flag
			add_character_flag = last_event_53
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = dp_char_editor_forward
		scope:char_editor = {
			piety_modifier_forward = yes
		}
		trigger_event = dp_char_editor.53
	}
	option = {
		name = dp_char_editor_backward
		scope:char_editor = {
			piety_modifier_backward = yes
		}
		trigger_event = dp_char_editor.53
	}
	option = {
		name = dp_char_editor_back
		scope:char_editor = {
			#remove_piety_modifier_pgs = yes
			#This effect is now being called in the effect below, should be redundant here.
			remove_all_modifier_go_back_flags = yes
		}
		trigger_event = dp_char_editor.50
	}
}

dp_char_editor.54 = {
	type = character_event
	title = dp_char_editor.modifiers.income.t
	desc = dp_char_editor.modifiers.income.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = market_west }
	option = {
		name = MOD_MONTHLY_INCOME
		trigger = { scope:char_editor = { has_character_flag = income_modifier_pg_1 } }
		scope:char_editor = {
			#remove_income_modifier_pgs = yes
			add_character_flag = monthly_income_flag
			add_character_flag = last_event_54
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MONTHLY_INCOME_MULT
		trigger = { scope:char_editor = { has_character_flag = income_modifier_pg_1 } }
		scope:char_editor = {
			#remove_income_modifier_pgs = yes
			add_character_flag = monthly_income_mult_flag
			add_character_flag = last_event_54
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_TAX_MULT
		trigger = { scope:char_editor = { has_character_flag = income_modifier_pg_1 } }
		scope:char_editor = {
			#remove_income_modifier_pgs = yes
			add_character_flag = tax_mult_flag
			add_character_flag = last_event_54
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_DOMAIN_TAX_MULT
		trigger = { scope:char_editor = { has_character_flag = income_modifier_pg_1 } }
		scope:char_editor = {
			#remove_income_modifier_pgs = yes
			add_character_flag = domain_tax_mult_flag
			add_character_flag = last_event_54
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_VASSAL_TAX_MULT
		trigger = { scope:char_editor = { has_character_flag = income_modifier_pg_1 } }
		scope:char_editor = {
			#remove_income_modifier_pgs = yes
			add_character_flag = vassal_tax_mult_flag
			add_character_flag = last_event_54
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MONTHLY_WAR_INCOME_ADD
		trigger = { scope:char_editor = { has_character_flag = income_modifier_pg_1 } }
		scope:char_editor = {
			#remove_income_modifier_pgs = yes
			add_character_flag = monthly_war_income_flag
			add_character_flag = last_event_54
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MONTHLY_WAR_INCOME_MULT
		trigger = { scope:char_editor = { has_character_flag = income_modifier_pg_1 } }
		scope:char_editor = {
			#remove_income_modifier_pgs = yes
			add_character_flag = monthly_war_income_mult_flag
			add_character_flag = last_event_54
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MONTHLY_INCOME_PER_STRESS_LEVEL_ADD
		trigger = { scope:char_editor = { has_character_flag = income_modifier_pg_1 } }
		scope:char_editor = {
			#remove_income_modifier_pgs = yes
			add_character_flag = monthly_income_per_stress_level_flag
			add_character_flag = last_event_54
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MONTHLY_INCOME_PER_STRESS_LEVEL_MULT
		trigger = { scope:char_editor = { has_character_flag = income_modifier_pg_2 } }
		scope:char_editor = {
			#remove_income_modifier_pgs = yes
			add_character_flag = monthly_income_per_stress_level_mult_flag
			add_character_flag = last_event_54
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_DOMAIN_TAX_SAME_FAITH_MULT
		trigger = { scope:char_editor = { has_character_flag = income_modifier_pg_2 } }
		scope:char_editor = {
			#remove_income_modifier_pgs = yes
			add_character_flag = domain_tax_same_faith_mult_flag
			add_character_flag = last_event_54
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_DOMAIN_TAX_DIFFERENT_FAITH_MULT
		trigger = { scope:char_editor = { has_character_flag = income_modifier_pg_2 } }
		scope:char_editor = {
			#remove_income_modifier_pgs = yes
			add_character_flag = domain_tax_different_faith_mult_flag
			add_character_flag = last_event_54
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = domain_tax_mult_even_if_baron
		trigger = { scope:char_editor = { has_character_flag = income_modifier_pg_2 } }
		scope:char_editor = {
			#remove_income_modifier_pgs = yes
			add_character_flag = domain_tax_mult_even_if_baron_flag
			add_character_flag = last_event_54
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = domain_tax_same_faith_mult_even_if_baron
		trigger = { scope:char_editor = { has_character_flag = income_modifier_pg_2 } }
		scope:char_editor = {
			#remove_income_modifier_pgs = yes
			add_character_flag = domain_tax_same_faith_mult_even_if_baron_flag
			add_character_flag = last_event_54
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = domain_tax_different_faith_mult_even_if_baron
		trigger = { scope:char_editor = { has_character_flag = income_modifier_pg_2 } }
		scope:char_editor = {
			#remove_income_modifier_pgs = yes
			add_character_flag = domain_tax_different_faith_mult_even_if_baron_flag
			add_character_flag = last_event_54
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = dp_char_editor_forward
		scope:char_editor = {
			income_modifier_forward = yes
		}
		trigger_event = dp_char_editor.54
	}
	option = {
		name = dp_char_editor_backward
		scope:char_editor = {
			income_modifier_backward = yes
		}
		trigger_event = dp_char_editor.54
	}
	option = {
		name = dp_char_editor_back
		scope:char_editor = {
			#remove_income_modifier_pgs = yes
			#This effect is now being called in the effect below, should be redundant here.
			remove_all_modifier_go_back_flags = yes
		}
		trigger_event = dp_char_editor.50
	}
}

dp_char_editor.55 = {
	type = character_event
	title = dp_char_editor.modifiers.health.t
	desc = dp_char_editor.modifiers.health.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = market_west }
	
	option = {
		name = MOD_HEALTH
		trigger = { scope:char_editor = { has_character_flag = health_modifier_pg_1 } }
		scope:char_editor = {
			#remove_health_modifier_pgs = yes
			add_character_flag = health_flag
			add_character_flag = last_event_55
		}
		trigger_event = dp_char_editor.999
	}
	
	option = {
		name = MOD_FERTILITY
		trigger = { scope:char_editor = { has_character_flag = health_modifier_pg_1 } }
		scope:char_editor = {
			#remove_health_modifier_pgs = yes
			add_character_flag = fertility_flag
			add_character_flag = last_event_55
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_STRESS_GAIN_MULT
		trigger = { scope:char_editor = { has_character_flag = health_modifier_pg_1 } }
		scope:char_editor = {
			#remove_health_modifier_pgs = yes
			add_character_flag = stress_gain_mult_flag
			add_character_flag = last_event_55
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_STRESS_LOSS_MULT
		trigger = { scope:char_editor = { has_character_flag = health_modifier_pg_1 } }
		scope:char_editor = {
			#remove_health_modifier_pgs = yes
			add_character_flag = stress_loss_mult_flag
			add_character_flag = last_event_55
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_YEARS_OF_FERTILITY
		trigger = { scope:char_editor = { has_character_flag = health_modifier_pg_1 } }
		scope:char_editor = {
			#remove_health_modifier_pgs = yes
			add_character_flag = years_of_fertility_flag
			add_character_flag = last_event_55
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_LIFE_EXPECTANCY
		trigger = { scope:char_editor = { has_character_flag = health_modifier_pg_1 } }
		scope:char_editor = {
			#remove_health_modifier_pgs = yes
			add_character_flag = life_expectancy_flag
			add_character_flag = last_event_55
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_HEALTH_NEGATE_PENALTY
		trigger = { scope:char_editor = { has_character_flag = health_modifier_pg_1 } }
		scope:char_editor = {
			#remove_health_modifier_pgs = yes
			add_character_flag = negate_health_penalty_flag
			add_character_flag = last_event_55
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_FERTILITY_NEGATE_PENALTY
		trigger = { scope:char_editor = { has_character_flag = health_modifier_pg_1 } }
		scope:char_editor = {
			#remove_health_modifier_pgs = yes
			add_character_flag = negate_fertility_penalty_flag
			add_character_flag = last_event_55
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_INBREEDING_CHANCE
		trigger = { scope:char_editor = { has_character_flag = health_modifier_pg_2 } }
		scope:char_editor = {
			#remove_health_modifier_pgs = yes
			add_character_flag = inbreeding_chance_flag
			add_character_flag = last_event_55
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_POSITIVE_INACTIVE_INHERITANCE_CHANCE
		trigger = { scope:char_editor = { has_character_flag = health_modifier_pg_2 } }
		scope:char_editor = {
			#remove_health_modifier_pgs = yes
			add_character_flag = positive_inactive_inheritance_chance_flag
			add_character_flag = last_event_55
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_NEGATIVE_INACTIVE_INHERITANCE_CHANCE
		trigger = { scope:char_editor = { has_character_flag = health_modifier_pg_2 } }
		scope:char_editor = {
			#remove_health_modifier_pgs = yes
			add_character_flag = negative_inactive_inheritance_chance_flag
			add_character_flag = last_event_55
		}
		trigger_event = dp_char_editor.999
	}
	
	option = {
		name = MOD_POSITIVE_RANDOM_GENETIC_CHANCE
		trigger = { scope:char_editor = { has_character_flag = health_modifier_pg_2 } }
		scope:char_editor = {
			#remove_health_modifier_pgs = yes
			add_character_flag = positive_random_genetic_chance_flag
			add_character_flag = last_event_55
		}
		trigger_event = dp_char_editor.999
	}
	
	option = {
		name = MOD_NEGATIVE_RANDOM_GENETIC_CHANCE
		trigger = { scope:char_editor = { has_character_flag = health_modifier_pg_2 } }
		scope:char_editor = {
			#remove_health_modifier_pgs = yes
			add_character_flag = negative_random_genetic_chance_flag
			add_character_flag = last_event_55
		}
		trigger_event = dp_char_editor.999
	}
	
	option = {
		name = MOD_GENETIC_TRAIT_STRENGTHEN_CHANCE
		trigger = { scope:char_editor = { has_character_flag = health_modifier_pg_2 } }
		scope:char_editor = {
			#remove_health_modifier_pgs = yes
			add_character_flag = genetic_trait_strengthen_chance_flag
			add_character_flag = last_event_55
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_DIPLOMACY_PER_STRESS_LEVEL
		trigger = { scope:char_editor = { has_character_flag = health_modifier_pg_2 } }
		scope:char_editor = {
			#remove_health_modifier_pgs = yes
			add_character_flag = diplomacy_per_stress_level_flag
			add_character_flag = last_event_55
		}
		trigger_event = dp_char_editor.999
	}
	
	option = {
		name = MOD_MARTIAL_PER_STRESS_LEVEL
		trigger = { scope:char_editor = { has_character_flag = health_modifier_pg_2 } }
		scope:char_editor = {
			#remove_health_modifier_pgs = yes
			add_character_flag = martial_per_stress_level_flag
			add_character_flag = last_event_55
		}
		trigger_event = dp_char_editor.999
	}
	
	option = {
		name = MOD_STEWARDSHIP_PER_STRESS_LEVEL
		trigger = { scope:char_editor = { has_character_flag = health_modifier_pg_3 } }
		scope:char_editor = {
			#remove_health_modifier_pgs = yes
			add_character_flag = stewardship_per_stress_level_flag
			add_character_flag = last_event_55
		}
		trigger_event = dp_char_editor.999
	}
	
	option = {
		name = MOD_INTRIGUE_PER_STRESS_LEVEL
		trigger = { scope:char_editor = { has_character_flag = health_modifier_pg_3 } }
		scope:char_editor = {
			#remove_health_modifier_pgs = yes
			add_character_flag = intrigue_per_stress_level_flag
			add_character_flag = last_event_55
		}
		trigger_event = dp_char_editor.999
	}
	
	option = {
		name = MOD_LEARNING_PER_STRESS_LEVEL
		trigger = { scope:char_editor = { has_character_flag = health_modifier_pg_3 } }
		scope:char_editor = {
			#remove_health_modifier_pgs = yes
			add_character_flag = learning_per_stress_level_flag
			add_character_flag = last_event_55
		}
		trigger_event = dp_char_editor.999
	}
	
	option = {
		name = MOD_PROWESS_PER_STRESS_LEVEL
		trigger = { scope:char_editor = { has_character_flag = health_modifier_pg_3 } }
		scope:char_editor = {
			#remove_health_modifier_pgs = yes
			add_character_flag = prowess_per_stress_level_flag
			add_character_flag = last_event_55
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = dp_char_editor_forward
		scope:char_editor = {
			health_modifier_forward = yes
		}
		trigger_event = dp_char_editor.55
	}
	option = {
		name = dp_char_editor_backward
		scope:char_editor = {
			health_modifier_backward = yes
		}
		trigger_event = dp_char_editor.55
	}
	option = {
		name = dp_char_editor_back
		scope:char_editor = {
			#remove_health_modifier_pgs = yes
			#This effect is now being called in the effect below, should be redundant here.
			remove_all_modifier_go_back_flags = yes
		}
		trigger_event = dp_char_editor.50
	}
}

dp_char_editor.56 = {
	type = character_event
	title = dp_char_editor.modifiers.intrigue.t
	desc = dp_char_editor.modifiers.intrigue.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = market_west }
	
	### Was throwing errors, don't think the modifier works as intended regardless ###
	# option = {
	# 	name = MOD_SCHEME_SECRECY
	# 	trigger = { scope:char_editor = { has_character_flag = intrigue_modifier_pg_1 } }
	# 	scope:char_editor = {
	# 		#remove_intrigue_modifier_pgs = yes
	# 		add_character_flag = scheme_secrecy_flag
	# 		add_character_flag = last_event_56
	# 	}
	# 	trigger_event = dp_char_editor.999
	# }
	### Was throwing errors, don't think the modifier works as intended regardless ###
	# option = {
	# 	name = MOD_SCHEME_POWER
	# 	trigger = { scope:char_editor = { has_character_flag = intrigue_modifier_pg_1 } }
	# 	scope:char_editor = {
	# 		#remove_intrigue_modifier_pgs = yes
	# 		add_character_flag = scheme_power_flag
	# 		add_character_flag = last_event_56
	# 	}
	# 	trigger_event = dp_char_editor.999
	# }
	### Was throwing errors, don't think the modifier works as intended regardless ###
	# option = {
	# 	name = MOD_SCHEME_RESISTANCE
	# 	trigger = { scope:char_editor = { has_character_flag = intrigue_modifier_pg_1 } }
	# 	scope:char_editor = {
	# 		#remove_intrigue_modifier_pgs = yes
	# 		add_character_flag = scheme_resistance_flag
	# 		add_character_flag = last_event_56
	# 	}
	# 	trigger_event = dp_char_editor.999
	# }
	### Was throwing errors, don't think the modifier works as intended regardless ###
	# option = {
	# 	name = MOD_SCHEME_SUCCESS
	# 	trigger = { scope:char_editor = { has_character_flag = intrigue_modifier_pg_1 } }
	# 	scope:char_editor = {
	# 		#remove_intrigue_modifier_pgs = yes
	# 		add_character_flag = scheme_success_chance_flag
	# 		add_character_flag = last_event_56
	# 	}
	# 	trigger_event = dp_char_editor.999
	# }
	option = {
		name = MOD_MAX_PERSONAL_SCHEMES_ADD
		trigger = { scope:char_editor = { has_character_flag = intrigue_modifier_pg_1 } }
		scope:char_editor = {
			#remove_intrigue_modifier_pgs = yes
			add_character_flag = max_personal_schemes_flag
			add_character_flag = last_event_56
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MAX_HOSTILE_SCHEMES_ADD
		trigger = { scope:char_editor = { has_character_flag = intrigue_modifier_pg_1 } }
		scope:char_editor = {
			#remove_intrigue_modifier_pgs = yes
			add_character_flag = max_hostile_schemes_flag
			add_character_flag = last_event_56
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_SCHEME_DISCOVERY_CHANCE_MULT
		trigger = { scope:char_editor = { has_character_flag = intrigue_modifier_pg_2 } }
		scope:char_editor = {
			#remove_intrigue_modifier_pgs = yes
			add_character_flag = scheme_discovery_chance_mult_flag
			add_character_flag = last_event_56
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_OWNED_PERSONAL_SCHEME_SUCCESS_ADD
		trigger = { scope:char_editor = { has_character_flag = intrigue_modifier_pg_2 } }
		scope:char_editor = {
			#remove_intrigue_modifier_pgs = yes
			add_character_flag = owned_personal_scheme_success_chance_flag
			add_character_flag = last_event_56
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_OWNED_HOSTILE_SCHEME_SUCCESS_ADD
		trigger = { scope:char_editor = { has_character_flag = intrigue_modifier_pg_3 } }
		scope:char_editor = {
			#remove_intrigue_modifier_pgs = yes
			add_character_flag = owned_hostile_scheme_success_chance_flag
			add_character_flag = last_event_56
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_ENEMY_PERSONAL_SCHEME_SUCCESS_ADD
		trigger = { scope:char_editor = { has_character_flag = intrigue_modifier_pg_3 } }
		scope:char_editor = {
			#remove_intrigue_modifier_pgs = yes
			add_character_flag = enemy_personal_scheme_success_chance_flag
			add_character_flag = last_event_56
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_ENEMY_HOSTILE_SCHEME_SUCCESS_ADD
		trigger = { scope:char_editor = { has_character_flag = intrigue_modifier_pg_3 } }
		scope:char_editor = {
			#remove_intrigue_modifier_pgs = yes
			add_character_flag = enemy_hostile_scheme_success_chance_flag
			add_character_flag = last_event_56
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_DIPLOMACY_SCHEME_RESISTANCE
		trigger = { scope:char_editor = { has_character_flag = intrigue_modifier_pg_4 } }
		scope:char_editor = {
			#remove_intrigue_modifier_pgs = yes
			add_character_flag = diplomacy_scheme_resistance_flag
			add_character_flag = last_event_56
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_INTRIGUE_SCHEME_RESISTANCE
		trigger = { scope:char_editor = { has_character_flag = intrigue_modifier_pg_4 } }
		scope:char_editor = {
			#remove_intrigue_modifier_pgs = yes
			add_character_flag = intrigue_scheme_resistance_flag
			add_character_flag = last_event_56
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_STEWARDSHIP_SCHEME_RESISTANCE
		trigger = { scope:char_editor = { has_character_flag = intrigue_modifier_pg_4 } }
		scope:char_editor = {
			#remove_intrigue_modifier_pgs = yes
			add_character_flag = stewardship_scheme_resistance_flag
			add_character_flag = last_event_56
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MARTIAL_SCHEME_RESISTANCE
		trigger = { scope:char_editor = { has_character_flag = intrigue_modifier_pg_4 } }
		scope:char_editor = {
			#remove_intrigue_modifier_pgs = yes
			add_character_flag = martial_scheme_resistance_flag
			add_character_flag = last_event_56
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_LEARNING_SCHEME_RESISTANCE
		trigger = { scope:char_editor = { has_character_flag = intrigue_modifier_pg_4 } }
		scope:char_editor = {
			#remove_intrigue_modifier_pgs = yes
			add_character_flag = learning_scheme_resistance_flag
			add_character_flag = last_event_56
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_PROWESS_SCHEME_RESISTANCE
		trigger = { scope:char_editor = { has_character_flag = intrigue_modifier_pg_4 } }
		scope:char_editor = {
			#remove_intrigue_modifier_pgs = yes
			add_character_flag = prowess_scheme_resistance_flag
			add_character_flag = last_event_56
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = dp_char_editor_forward
		scope:char_editor = {
			intrigue_modifier_forward = yes
		}
		trigger_event = dp_char_editor.56
	}
	option = {
		name = dp_char_editor_backward
		scope:char_editor = {
			intrigue_modifier_backward = yes
		}
		trigger_event = dp_char_editor.56
	}
	option = {
		name = dp_char_editor_back
		scope:char_editor = {
			#remove_intrigue_modifier_pgs = yes
			#This effect is now being called in the effect below, should be redundant here.
			remove_all_modifier_go_back_flags = yes
		}
		trigger_event = dp_char_editor.50
	}
}

dp_char_editor.57 = {
	type = character_event
	title = dp_char_editor.modifiers.provincial.t
	desc = dp_char_editor.modifiers.provincial.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = market_west }
	
	option = {
		name = MOD_CONSTRUCTION_SPEED
		trigger = { scope:char_editor = { has_character_flag = provincial_modifier_pg_1 } }
		scope:char_editor = {
			#remove_provincial_modifier_pgs = yes
			add_character_flag = build_speed_flag
			add_character_flag = last_event_57
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = build_gold_cost
		trigger = { scope:char_editor = { has_character_flag = provincial_modifier_pg_1 } }
		scope:char_editor = {
			#remove_provincial_modifier_pgs = yes
			add_character_flag = build_gold_cost_flag
			add_character_flag = last_event_57
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = build_piety_cost
		trigger = { scope:char_editor = { has_character_flag = provincial_modifier_pg_1 } }
		scope:char_editor = {
			#remove_provincial_modifier_pgs = yes
			add_character_flag = build_piety_cost_flag
			add_character_flag = last_event_57
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = build_prestige_cost
		trigger = { scope:char_editor = { has_character_flag = provincial_modifier_pg_1 } }
		scope:char_editor = {
			#remove_provincial_modifier_pgs = yes
			add_character_flag = build_prestige_cost_flag
			add_character_flag = last_event_57
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_HOLDING_CONSTRUCTION_SPEED
		trigger = { scope:char_editor = { has_character_flag = provincial_modifier_pg_1 } }
		scope:char_editor = {
			#remove_provincial_modifier_pgs = yes
			add_character_flag = holding_build_speed_flag
			add_character_flag = last_event_57
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = holding_build_gold_cost
		trigger = { scope:char_editor = { has_character_flag = provincial_modifier_pg_1 } }
		scope:char_editor = {
			#remove_provincial_modifier_pgs = yes
			add_character_flag = holding_build_gold_cost_flag
			add_character_flag = last_event_57
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = holding_build_piety_cost
		trigger = { scope:char_editor = { has_character_flag = provincial_modifier_pg_1 } }
		scope:char_editor = {
			#remove_provincial_modifier_pgs = yes
			add_character_flag = holding_build_piety_cost_flag
			add_character_flag = last_event_57
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = holding_build_prestige_cost
		trigger = { scope:char_editor = { has_character_flag = provincial_modifier_pg_1 } }
		scope:char_editor = {
			#remove_provincial_modifier_pgs = yes
			add_character_flag = holding_build_prestige_cost_flag
			add_character_flag = last_event_57
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MONTHLY_DEVELOPMENT_GROWTH_FACTOR
		trigger = { scope:char_editor = { has_character_flag = provincial_modifier_pg_2 } }
		scope:char_editor = {
			#remove_provincial_modifier_pgs = yes
			add_character_flag = development_growth_factor_flag
			add_character_flag = last_event_57
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MONTHLY_DEVELOPMENT_GROWTH
		trigger = { scope:char_editor = { has_character_flag = provincial_modifier_pg_2 } }
		scope:char_editor = {
			#remove_provincial_modifier_pgs = yes
			add_character_flag = development_growth_flag
			add_character_flag = last_event_57
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_CHARACTER_CAPITAL_MONTHLY_DEVELOPMENT_GROWTH_ADD
		trigger = { scope:char_editor = { has_character_flag = provincial_modifier_pg_2 } }
		scope:char_editor = {
			#remove_provincial_modifier_pgs = yes
			add_character_flag = character_capital_county_monthly_development_growth_flag
			add_character_flag = last_event_57
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MONTHLY_COUNTY_CONTROL_GROWTH
		trigger = { scope:char_editor = { has_character_flag = provincial_modifier_pg_2 } }
		scope:char_editor = {
			#remove_provincial_modifier_pgs = yes
			add_character_flag = monthly_county_control_change_flag
			add_character_flag = last_event_57
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = monthly_county_control_change_factor
		trigger = { scope:char_editor = { has_character_flag = provincial_modifier_pg_2 } }
		scope:char_editor = {
			#remove_provincial_modifier_pgs = yes
			add_character_flag = monthly_county_control_change_factor_flag
			add_character_flag = last_event_57
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = monthly_county_control_change_even_if_baron
		trigger = { scope:char_editor = { has_character_flag = provincial_modifier_pg_2 } }
		scope:char_editor = {
			#remove_provincial_modifier_pgs = yes
			add_character_flag = monthly_county_control_change_add_even_if_baron_flag
			add_character_flag = last_event_57
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = monthly_county_control_change_factor_even_if_baron
		trigger = { scope:char_editor = { has_character_flag = provincial_modifier_pg_2 } }
		scope:char_editor = {
			#remove_provincial_modifier_pgs = yes
			add_character_flag = monthly_county_control_change_factor_even_if_baron_flag
			add_character_flag = last_event_57
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = castle_holding_build_speed
		trigger = { scope:char_editor = { has_character_flag = provincial_modifier_pg_2 } }
		scope:char_editor = {
			#remove_provincial_modifier_pgs = yes
			add_character_flag = castle_holding_build_speed_flag
			add_character_flag = last_event_57
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = castle_holding_build_gold_cost
		trigger = { scope:char_editor = { has_character_flag = provincial_modifier_pg_3 } }
		scope:char_editor = {
			#remove_provincial_modifier_pgs = yes
			add_character_flag = castle_holding_build_gold_cost_flag
			add_character_flag = last_event_57
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = castle_holding_holding_build_speed
		trigger = { scope:char_editor = { has_character_flag = provincial_modifier_pg_3 } }
		scope:char_editor = {
			#remove_provincial_modifier_pgs = yes
			add_character_flag = castle_holding_holding_build_speed_flag
			add_character_flag = last_event_57
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = castle_holding_holding_build_gold_cost
		trigger = { scope:char_editor = { has_character_flag = provincial_modifier_pg_3 } }
		scope:char_editor = {
			#remove_provincial_modifier_pgs = yes
			add_character_flag = castle_holding_holding_build_gold_cost_flag
			add_character_flag = last_event_57
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = tribal_holding_build_speed
		trigger = { scope:char_editor = { has_character_flag = provincial_modifier_pg_3 } }
		scope:char_editor = {
			#remove_provincial_modifier_pgs = yes
			add_character_flag = tribal_holding_build_speed_flag
			add_character_flag = last_event_57
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = tribal_holding_build_gold_cost
		trigger = { scope:char_editor = { has_character_flag = provincial_modifier_pg_3 } }
		scope:char_editor = {
			#remove_provincial_modifier_pgs = yes
			add_character_flag = tribal_holding_build_gold_cost_flag
			add_character_flag = last_event_57
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = tribal_holding_holding_build_speed
		trigger = { scope:char_editor = { has_character_flag = provincial_modifier_pg_3 } }
		scope:char_editor = {
			#remove_provincial_modifier_pgs = yes
			add_character_flag = tribal_holding_holding_build_speed_flag
			add_character_flag = last_event_57
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = tribal_holding_holding_build_gold_cost
		trigger = { scope:char_editor = { has_character_flag = provincial_modifier_pg_3 } }
		scope:char_editor = {
			#remove_provincial_modifier_pgs = yes
			add_character_flag = tribal_holding_holding_build_gold_cost_flag
			add_character_flag = last_event_57
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = city_holding_build_speed
		trigger = { scope:char_editor = { has_character_flag = provincial_modifier_pg_3 } }
		scope:char_editor = {
			#remove_provincial_modifier_pgs = yes
			add_character_flag = city_holding_build_speed_flag
			add_character_flag = last_event_57
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = city_holding_build_gold_cost
		trigger = { scope:char_editor = { has_character_flag = provincial_modifier_pg_4 } }
		scope:char_editor = {
			#remove_provincial_modifier_pgs = yes
			add_character_flag = city_holding_build_gold_cost_flag
			add_character_flag = last_event_57
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = city_holding_holding_build_speed
		trigger = { scope:char_editor = { has_character_flag = provincial_modifier_pg_4 } }
		scope:char_editor = {
			#remove_provincial_modifier_pgs = yes
			add_character_flag = city_holding_holding_build_speed_flag
			add_character_flag = last_event_57
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = city_holding_holding_build_gold_cost
		trigger = { scope:char_editor = { has_character_flag = provincial_modifier_pg_4 } }
		scope:char_editor = {
			#remove_provincial_modifier_pgs = yes
			add_character_flag = city_holding_holding_build_gold_cost_flag
			add_character_flag = last_event_57
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = church_holding_build_speed
		trigger = { scope:char_editor = { has_character_flag = provincial_modifier_pg_4 } }
		scope:char_editor = {
			#remove_provincial_modifier_pgs = yes
			add_character_flag = church_holding_build_speed_flag
			add_character_flag = last_event_57
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = church_holding_build_gold_cost
		trigger = { scope:char_editor = { has_character_flag = provincial_modifier_pg_4 } }
		scope:char_editor = {
			#remove_provincial_modifier_pgs = yes
			add_character_flag = church_holding_build_gold_cost_flag
			add_character_flag = last_event_57
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = church_holding_holding_build_speed
		trigger = { scope:char_editor = { has_character_flag = provincial_modifier_pg_4 } }
		scope:char_editor = {
			#remove_provincial_modifier_pgs = yes
			add_character_flag = church_holding_holding_build_speed_flag
			add_character_flag = last_event_57
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = church_holding_holding_build_gold_cost
		trigger = { scope:char_editor = { has_character_flag = provincial_modifier_pg_4 } }
		scope:char_editor = {
			#remove_provincial_modifier_pgs = yes
			add_character_flag = church_holding_holding_build_gold_cost_flag
			add_character_flag = last_event_57
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = dp_char_editor_forward
		scope:char_editor = {
			provincial_modifier_forward = yes
		}
		trigger_event = dp_char_editor.57
	}
	option = {
		name = dp_char_editor_backward
		scope:char_editor = {
			provincial_modifier_backward = yes
		}
		trigger_event = dp_char_editor.57
	}
	option = {
		name = dp_char_editor_back
		scope:char_editor = {
			#remove_provincial_modifier_pgs = yes
			#This effect is now being called in the effect below, should be redundant here.
			remove_all_modifier_go_back_flags = yes
		}
		trigger_event = dp_char_editor.50
	}
}

dp_char_editor.58 = {
	type = character_event
	title = dp_char_editor.modifiers.authority.t
	desc = dp_char_editor.modifiers.authority.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = market_west }
	option = {
		name = MOD_MONTHLY_DREAD
		trigger = { scope:char_editor = { has_character_flag = authority_modifier_pg_1 } }
		scope:char_editor = {
			#remove_authority_modifier_pgs = yes
			add_character_flag = monthly_dread_flag
			add_character_flag = last_event_58
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_DREAD_GAIN_MULT
		trigger = { scope:char_editor = { has_character_flag = authority_modifier_pg_1 } }
		scope:char_editor = {
			#remove_authority_modifier_pgs = yes
			add_character_flag = dread_gain_mult_flag
			add_character_flag = last_event_58
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_DREAD_LOSS_MULT
		trigger = { scope:char_editor = { has_character_flag = authority_modifier_pg_1 } }
		scope:char_editor = {
			#remove_authority_modifier_pgs = yes
			add_character_flag = dread_loss_mult_flag
			add_character_flag = last_event_58
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_TYRANNY_GAIN_MULT
		trigger = { scope:char_editor = { has_character_flag = authority_modifier_pg_1 } }
		scope:char_editor = {
			#remove_authority_modifier_pgs = yes
			add_character_flag = tyranny_gain_mult_flag
			add_character_flag = last_event_58
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_TYRANNY_LOSS_MULT
		trigger = { scope:char_editor = { has_character_flag = authority_modifier_pg_1 } }
		scope:char_editor = {
			#remove_authority_modifier_pgs = yes
			add_character_flag = tyranny_loss_mult_flag
			add_character_flag = last_event_58
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MONTHLY_TYRANNY
		trigger = { scope:char_editor = { has_character_flag = authority_modifier_pg_1 } }
		scope:char_editor = {
			#remove_authority_modifier_pgs = yes
			add_character_flag = monthly_tyranny_flag
			add_character_flag = last_event_58
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_DREAD_BASELINE_ADD
		trigger = { scope:char_editor = { has_character_flag = authority_modifier_pg_1 } }
		scope:char_editor = {
			#remove_authority_modifier_pgs = yes
			add_character_flag = dread_baseline_flag
			add_character_flag = last_event_58
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_DREAD_DECAY_ADD
		trigger = { scope:char_editor = { has_character_flag = authority_modifier_pg_1 } }
		scope:char_editor = {
			#remove_authority_modifier_pgs = yes
			add_character_flag = dread_decay_flag
			add_character_flag = last_event_58
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = dread_decay_mult
		trigger = { scope:char_editor = { has_character_flag = authority_modifier_pg_2 } }
		scope:char_editor = {
			#remove_authority_modifier_pgs = yes
			add_character_flag = dread_decay_mult_flag
			add_character_flag = last_event_58
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_DREAD_PER_TYRANNY_ADD
		trigger = { scope:char_editor = { has_character_flag = authority_modifier_pg_2 } }
		scope:char_editor = {
			#remove_authority_modifier_pgs = yes
			add_character_flag = dread_per_tyranny_flag
			add_character_flag = last_event_58
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = dread_per_tyranny_mult
		trigger = { scope:char_editor = { has_character_flag = authority_modifier_pg_2 } }
		scope:char_editor = {
			#remove_authority_modifier_pgs = yes
			add_character_flag = dread_per_tyranny_mult_flag
			add_character_flag = last_event_58
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = dp_char_editor_forward
		scope:char_editor = {
			authority_modifier_forward = yes
		}
		trigger_event = dp_char_editor.58
	}
	option = {
		name = dp_char_editor_backward
		scope:char_editor = {
			authority_modifier_backward = yes
		}
		trigger_event = dp_char_editor.58
	}
	option = {
		name = dp_char_editor_back
		scope:char_editor = {
			#remove_authority_modifier_pgs = yes
			#This effect is now being called in the effect below, should be redundant here.
			remove_all_modifier_go_back_flags = yes
		}
		trigger_event = dp_char_editor.50
	}
}

dp_char_editor.59 = {
	type = character_event
	title = dp_char_editor.modifiers.governing.t
	desc = dp_char_editor.modifiers.governing.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = market_west }
	
	option = {
		name = MOD_DOMAIN_LIMIT
		trigger = { scope:char_editor = { has_character_flag = governing_modifier_pg_1 } }
		scope:char_editor = {
			#remove_governing_modifier_pgs = yes
			add_character_flag = domain_limit_flag
			add_character_flag = last_event_59
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_VASSAL_LIMIT
		trigger = { scope:char_editor = { has_character_flag = governing_modifier_pg_1 } }
		scope:char_editor = {
			#remove_governing_modifier_pgs = yes
			add_character_flag = vassal_limit_flag
			add_character_flag = last_event_59
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_SHORT_REIGN_DURATION_MULT
		trigger = { scope:char_editor = { has_character_flag = governing_modifier_pg_1 } }
		scope:char_editor = {
			#remove_governing_modifier_pgs = yes
			add_character_flag = short_reign_duration_mult_flag
			add_character_flag = last_event_59
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_LONG_REIGN_BONUS_MULT
		trigger = { scope:char_editor = { has_character_flag = governing_modifier_pg_1 } }
		scope:char_editor = {
			#remove_governing_modifier_pgs = yes
			add_character_flag = long_reign_bonus_mult_flag
			add_character_flag = last_event_59
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_DIPLOMATIC_RANGE_MULT
		trigger = { scope:char_editor = { has_character_flag = governing_modifier_pg_1 } }
		scope:char_editor = {
			#remove_governing_modifier_pgs = yes
			add_character_flag = diplomatic_range_mult_flag
			add_character_flag = last_event_59
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_TITLE_CREATION_COST
		trigger = { scope:char_editor = { has_character_flag = governing_modifier_pg_1 } }
		scope:char_editor = {
			#remove_governing_modifier_pgs = yes
			add_character_flag = title_creation_cost_flag
			add_character_flag = last_event_59
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = title_creation_cost_mult
		trigger = { scope:char_editor = { has_character_flag = governing_modifier_pg_1 } }
		scope:char_editor = {
			#remove_governing_modifier_pgs = yes
			add_character_flag = title_creation_cost_mult_flag
			add_character_flag = last_event_59
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_VASSAL_TAX_CONTRIBUTION_ADD
		trigger = { scope:char_editor = { has_character_flag = governing_modifier_pg_1 } }
		scope:char_editor = {
			#remove_governing_modifier_pgs = yes
			add_character_flag = vassal_tax_contribution_flag
			add_character_flag = last_event_59
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_VASSAL_TAX_CONTRIBUTION_MULT
		trigger = { scope:char_editor = { has_character_flag = governing_modifier_pg_2 } }
		scope:char_editor = {
			#remove_governing_modifier_pgs = yes
			add_character_flag = vassal_tax_contribution_mult_flag
			add_character_flag = last_event_59
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_INTIMIDATED_VASSAL_TAX_CONTRIBUTION_ADD
		trigger = { scope:char_editor = { has_character_flag = governing_modifier_pg_2 } }
		scope:char_editor = {
			#remove_governing_modifier_pgs = yes
			add_character_flag = intimidated_vassal_tax_contribution_flag
			add_character_flag = last_event_59
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_INTIMIDATED_VASSAL_TAX_CONTRIBUTION_MULT
		trigger = { scope:char_editor = { has_character_flag = governing_modifier_pg_2 } }
		scope:char_editor = {
			#remove_governing_modifier_pgs = yes
			add_character_flag = intimidated_vassal_tax_contribution_mult_flag
			add_character_flag = last_event_59
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_COWED_VASSAL_TAX_CONTRIBUTION_ADD
		trigger = { scope:char_editor = { has_character_flag = governing_modifier_pg_2 } }
		scope:char_editor = {
			#remove_governing_modifier_pgs = yes
			add_character_flag = cowed_vassal_tax_contribution_flag
			add_character_flag = last_event_59
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_COWED_VASSAL_TAX_CONTRIBUTION_MULT
		trigger = { scope:char_editor = { has_character_flag = governing_modifier_pg_2 } }
		scope:char_editor = {
			#remove_governing_modifier_pgs = yes
			add_character_flag = cowed_vassal_tax_contribution_mult_flag
			add_character_flag = last_event_59
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_VASSAL_LEVY_CONTRIBUTION_ADD
		trigger = { scope:char_editor = { has_character_flag = governing_modifier_pg_2 } }
		scope:char_editor = {
			#remove_governing_modifier_pgs = yes
			add_character_flag = vassal_levy_contribution_flag
			add_character_flag = last_event_59
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_VASSAL_LEVY_CONTRIBUTION_MULT
		trigger = { scope:char_editor = { has_character_flag = governing_modifier_pg_2 } }
		scope:char_editor = {
			#remove_governing_modifier_pgs = yes
			add_character_flag = vassal_levy_contribution_mult_flag
			add_character_flag = last_event_59
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_INTIMIDATED_VASSAL_LEVY_CONTRIBUTION_ADD
		trigger = { scope:char_editor = { has_character_flag = governing_modifier_pg_2 } }
		scope:char_editor = {
			#remove_governing_modifier_pgs = yes
			add_character_flag = intimidated_vassal_levy_contribution_flag
			add_character_flag = last_event_59
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_INTIMIDATED_VASSAL_LEVY_CONTRIBUTION_MULT
		trigger = { scope:char_editor = { has_character_flag = governing_modifier_pg_3 } }
		scope:char_editor = {
			#remove_governing_modifier_pgs = yes
			add_character_flag = intimidated_vassal_levy_contribution_mult_flag
			add_character_flag = last_event_59
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_COWED_VASSAL_LEVY_CONTRIBUTION_ADD
		trigger = { scope:char_editor = { has_character_flag = governing_modifier_pg_3 } }
		scope:char_editor = {
			#remove_governing_modifier_pgs = yes
			add_character_flag = cowed_vassal_levy_contribution_flag
			add_character_flag = last_event_59
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_COWED_VASSAL_LEVY_CONTRIBUTION_MULT
		trigger = { scope:char_editor = { has_character_flag = governing_modifier_pg_3 } }
		scope:char_editor = {
			#remove_governing_modifier_pgs = yes
			add_character_flag = cowed_vassal_levy_contribution_mult_flag
			add_character_flag = last_event_59
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_HAPPY_POWERFUL_VASSAL_TAX_CONTRIBUTION_ADD
		trigger = { scope:char_editor = { has_character_flag = governing_modifier_pg_3 } }
		scope:char_editor = {
			#remove_governing_modifier_pgs = yes
			add_character_flag = happy_powerful_vassal_tax_contribution_flag
			add_character_flag = last_event_59
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_HAPPY_POWERFUL_VASSAL_TAX_CONTRIBUTION_MULT
		trigger = { scope:char_editor = { has_character_flag = governing_modifier_pg_3 } }
		scope:char_editor = {
			#remove_governing_modifier_pgs = yes
			add_character_flag = happy_powerful_vassal_tax_contribution_mult_flag
			add_character_flag = last_event_59
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_HAPPY_POWERFUL_VASSAL_LEVY_CONTRIBUTION_ADD
		trigger = { scope:char_editor = { has_character_flag = governing_modifier_pg_3 } }
		scope:char_editor = {
			#remove_governing_modifier_pgs = yes
			add_character_flag = happy_powerful_vassal_levy_contribution_flag
			add_character_flag = last_event_59
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_HAPPY_POWERFUL_VASSAL_LEVY_CONTRIBUTION_MULT
		trigger = { scope:char_editor = { has_character_flag = governing_modifier_pg_3 } }
		scope:char_editor = {
			#remove_governing_modifier_pgs = yes
			add_character_flag = happy_powerful_vassal_levy_contribution_mult_flag
			add_character_flag = last_event_59
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = dp_char_editor_forward
		scope:char_editor = {
			governing_modifier_forward = yes
		}
		trigger_event = dp_char_editor.59
	}
	option = {
		name = dp_char_editor_backward
		scope:char_editor = {
			governing_modifier_backward = yes
		}
		trigger_event = dp_char_editor.59
	}
	option = {
		name = dp_char_editor_back
		scope:char_editor = {
			#remove_governing_modifier_pgs = yes
			#This effect is now being called in the effect below, should be redundant here.
			remove_all_modifier_go_back_flags = yes
		}
		trigger_event = dp_char_editor.50
	}
}

dp_char_editor.60 = {
	type = character_event
	title = dp_char_editor.modifiers.military.t
	desc = dp_char_editor.modifiers.military.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = market_west }
	
	option = {
		name = MOD_LEVY_SIZE
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_1 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = levy_size_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_GARRISON_SIZE
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_1 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = garrison_size_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MEN_AT_ARMS_MAINTENANCE
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_1 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = men_at_arms_maintenance_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MEN_AT_ARMS_MAINTENANCE_PER_DREAD_MULT
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_1 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = men_at_arms_maintenance_per_dread_mult_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_ARMY_MAINTENANCE_MULT
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_1 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = army_maintenance_mult_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_KNIGHT_LIMIT
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_1 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = knight_limit_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_KNIGHT_EFFECTIVENESS_MULT
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_1 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = knight_effectiveness_mult_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_COMBAT_PURSUE_EFFICIENCY
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_1 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = pursue_efficiency_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_COMBAT_COUNTER_EFFICIENCY
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_2 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = counter_efficiency_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MIN_COMBAT_ROLL
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_2 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = min_combat_roll_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MAX_COMBAT_ROLL
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_2 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = max_combat_roll_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MEN_AT_ARMS_LIMIT
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_2 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = men_at_arms_limit_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MEN_AT_ARMS_CAP
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_2 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = men_at_arms_cap_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_ADVANTAGE
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_2 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = advantage_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_ATTACKER_ADVANTAGE
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_2 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = attacker_advantage_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_DEFENDER_ADVANTAGE
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_2 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = defender_advantage_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_ENEMY_TERRAIN_ADVANTAGE
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_3 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = enemy_terrain_advantage_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_FAITH_HOSTILITY_ADVANTAGE_MOD
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_3 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = tolerance_advantage_mod_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_CORELIGIONIST_ADVANTAGE_MOD
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_3 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = advantage_against_coreligionists_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_CONTROLLED_PROVINCE_ADVANTAGE
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_3 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = controlled_province_advantage_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MOVEMENT_SPEED
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_3 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = movement_speed_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_RETREAT_LOSSES
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_3 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = retreat_losses_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_HARD_CASUALTY_MODIFIER
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_3 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = hard_casualty_modifier_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_ENEMY_HARD_CASUALTY_MODIFIER
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_3 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = enemy_hard_casualty_modifier_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_SIEGE_PHASE_TIME
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_4 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = siege_phase_time_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_SIEGE_MORALE_LOSS
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_4 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = siege_morale_loss_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_REVOLTING_SIEGE_MORALE_LOSS_ADD
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_4 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = revolting_siege_morale_loss_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = revolting_siege_morale_loss_mult
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_4 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = revolting_siege_morale_loss_mult_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_RAID_SPEED
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_4 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = raid_speed_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_HOSTILE_RAID_TIME
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_4 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = hostile_raid_time_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_HOSTILE_COUNTY_ATTRITION
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_4 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = hostile_county_attrition_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_SUPPLY_DURATION
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_4 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = supply_duration_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_SUPPLY_LIMIT
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_5 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = supply_limit_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = supply_limit_mult
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_5 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = supply_limit_mult_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_SUPPLY_CAPACITY_ADD
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_5 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = supply_capacity_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = supply_capacity_mult
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_5 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = supply_capacity_mult_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_HOLDING_FORT_LEVEL
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_5 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = fort_level_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_LEVY_REINFORCEMENT_RATE
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_5 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = levy_reinforcement_rate_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_LEVY_REINFORCEMENT_RATE_SAME_FAITH
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_5 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = levy_reinforcement_rate_same_faith_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_LEVY_REINFORCEMENT_RATE_DIFFERENT_FAITH
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_5 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = levy_reinforcement_rate_different_faith_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = levy_reinforcement_rate_even_if_baron
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_6 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = levy_reinforcement_rate_even_if_baron_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = levy_reinforcement_rate_same_faith_even_if_baron
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_6 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = levy_reinforcement_rate_same_faith_even_if_baron_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = levy_reinforcement_rate_different_faith_even_if_baron
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_6 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = levy_reinforcement_rate_different_faith_even_if_baron_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_LEVY_REINFORCEMENT_RATE_FRIENDLY_TERRITORY
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_6 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = levy_reinforcement_rate_friendly_territory_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	### Was flipping out errors, don't think it works as intended regardless ###
	# option = {
	# 	name = MOD_CULTURE_MERCENARY_MULT
	# 	trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_6 } }
	# 	scope:char_editor = {
	# 		#remove_military_modifier_pgs = yes
	# 		add_character_flag = mercenary_count_mult_flag
	# 		add_character_flag = last_event_60
	# 	}
	# 	trigger_event = dp_char_editor.999
	# }
	option = {
		name = MOD_MERCENARY_HIRE_COST_ADD
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_6 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = mercenary_hire_cost_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = mercenary_hire_cost_mult
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_6 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = mercenary_hire_cost_mult_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_SAME_CULTURE_MERCENARY_HIRE_COST_ADD
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_6 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = same_culture_mercenary_hire_cost_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = same_culture_mercenary_hire_cost_mult
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_7 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = same_culture_mercenary_hire_cost_mult_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_HOLY_ORDER_HIRE_COST_ADD
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_7 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = holy_order_hire_cost_mult_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = holy_order_hire_cost_mult
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_7 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = holy_order_hire_cost_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_SAME_CULTURE_HOLY_ORDER_HIRE_COST_ADD
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_7 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = same_culture_holy_order_hire_cost_mult_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = same_culture_holy_order_hire_cost_mult
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_7 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = same_culture_holy_order_hire_cost_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_EMBARKATION_COST_MULT
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_7 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = embarkation_cost_mult_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_NAVAL_MOVEMENT_SPEED_MULT
		trigger = { scope:char_editor = { has_character_flag = military_modifier_pg_7 } }
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			add_character_flag = naval_movement_speed_mult_flag
			add_character_flag = last_event_60
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = dp_char_editor_forward
		scope:char_editor = {
			military_modifier_forward = yes
		}
		trigger_event = dp_char_editor.60
	}
	option = {
		name = dp_char_editor_backward
		scope:char_editor = {
			military_modifier_backward = yes
		}
		trigger_event = dp_char_editor.60
	}
	option = {
		name = dp_char_editor_back
		scope:char_editor = {
			#remove_military_modifier_pgs = yes
			#This effect is now being called in the effect below, should be redundant here.
			remove_all_modifier_go_back_flags = yes
		}
		trigger_event = dp_char_editor.50
	}
}

dp_char_editor.61 = {
	type = character_event
	title = dp_char_editor.modifiers.learning.t
	desc = dp_char_editor.modifiers.learning.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = market_west }
	
	option = {
		name = MOD_CULTURAL_FASCINATION_INNOVATION_ADD
		scope:char_editor = {
			add_character_flag = cultural_head_fascination_flag
			add_character_flag = last_event_61
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = cultural_head_fascination_mult
		scope:char_editor = {
			add_character_flag = cultural_head_fascination_mult_flag
			add_character_flag = last_event_61
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = MOD_MONTHLY_LIFESTYLE_XP_GAIN_MULT
		scope:char_editor = {
			add_character_flag = monthly_lifestyle_xp_gain_mult_flag
			add_character_flag = last_event_61
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = monthly_diplomacy_xp
		scope:char_editor = {
			add_character_flag = monthly_diplomacy_lifestyle_xp_gain_mult_flag
			add_character_flag = last_event_61
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = monthly_martial_xp
		scope:char_editor = {
			add_character_flag = monthly_martial_lifestyle_xp_gain_mult_flag
			add_character_flag = last_event_61
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = monthly_stewardship_xp
		scope:char_editor = {
			add_character_flag = monthly_stewardship_lifestyle_xp_gain_mult_flag
			add_character_flag = last_event_61
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = monthly_intrigue_xp
		scope:char_editor = {
			add_character_flag = monthly_intrigue_lifestyle_xp_gain_mult_flag
			add_character_flag = last_event_61
		}
		trigger_event = dp_char_editor.999
	}
	option = {
		name = monthly_learning_xp
		scope:char_editor = {
			add_character_flag = monthly_learning_lifestyle_xp_gain_mult_flag
			add_character_flag = last_event_61
		}
		trigger_event = dp_char_editor.999
	}
	# option = {
	# 	name = MOD_RANDOM_SKILLS_PER_CHILD
	# 	scope:char_editor = { add_character_flag = random_skills_per_child_flag }
	# 	trigger_event = dp_char_editor.999
	# }
	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.50
		scope:char_editor = {
			remove_all_modifier_go_back_flags = yes
		}
	}
}

### LIFESTYLE PERK TRAITS DIPLOMACY ###

dp_char_editor.62 = {
	type = character_event
	title = dp_char_editor.traits.lifestyle_perk_diplomacy.t
	desc = dp_char_editor_menu.traits.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = council_chamber }
	
	option = {
		name = trait_diplomat
		scope:char_editor = {
			LIT_trait_check = { TRAIT = diplomat }
		}
		trigger_event = dp_char_editor.62
	}
	
	option = {
		name = trait_august
		scope:char_editor = {
			LIT_trait_check = { TRAIT = august }
		}
		trigger_event = dp_char_editor.62
	}
	
	option = {
		name = trait_family_first
		scope:char_editor = {
			LIT_trait_check = { TRAIT = family_first }
		}
		trigger_event = dp_char_editor.62
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.15
	}
}

### MARTIAL TRAITS ###

dp_char_editor.63 = {
	type = character_event
	title = dp_char_editor.traits.lifestyle_perk_martial.t
	desc = dp_char_editor_menu.traits.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = battlefield }

	option = {
		name = trait_overseer
		scope:char_editor = {
			LIT_trait_check = { TRAIT = overseer }
		}
		trigger_event = dp_char_editor.63
	}
	
	option = {
		name = trait_gallant
		scope:char_editor = {
			LIT_trait_check = { TRAIT = gallant }
		}
		trigger_event = dp_char_editor.63
	}
	
	option = {
		name = trait_strategist
		scope:char_editor = {
			LIT_trait_check = { TRAIT = strategist }
		}
		trigger_event = dp_char_editor.63
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.15
	}
}

### STEWARDSHIP TRAITS ###

dp_char_editor.64 = {
	type = character_event
	title = dp_char_editor.traits.lifestyle_perk_stewardship.t
	desc = dp_char_editor_menu.traits.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = market }

	option = {
		name = trait_avaricious
		scope:char_editor = {
			LIT_trait_check = { TRAIT = avaricious }
		}
		trigger_event = dp_char_editor.64
	}
	
	option = {
		name = trait_architect
		scope:char_editor = {
			LIT_trait_check = { TRAIT = architect }
		}
		trigger_event = dp_char_editor.64
	}
	
	option = {
		name = trait_administrator
		scope:char_editor = {
			LIT_trait_check = { TRAIT = administrator }
		}
		trigger_event = dp_char_editor.64
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.15
	}
}

### INTRIGUE TRAITS ###

dp_char_editor.65 = {
	type = character_event
	title = dp_char_editor.traits.lifestyle_perk_intrigue.t
	desc = dp_char_editor_menu.traits.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = alley_night }

	option = {
		name = trait_schemer
		scope:char_editor = {
			LIT_trait_check = { TRAIT = schemer }
		}
		trigger_event = dp_char_editor.65
	}
	
	option = {
		name = trait_seducer
		scope:char_editor = {
			LIT_trait_check = { TRAIT = seducer }
		}
		trigger_event = dp_char_editor.65
	}
	
	option = {
		name = trait_torturer
		scope:char_editor = {
			LIT_trait_check = { TRAIT = torturer }
		}
		trigger_event = dp_char_editor.65
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.15
	}
}

### LEARNING TRAITS ###

dp_char_editor.66 = {
	type = character_event
	title = dp_char_editor.traits.lifestyle_perk_learning.t
	desc = dp_char_editor_menu.traits.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = temple }

	option = {
		name = trait_whole_of_body
		scope:char_editor = {
			LIT_trait_check = { TRAIT = whole_of_body }
		}
		trigger_event = dp_char_editor.66
	}
	
	option = {
		name = trait_scholar
		scope:char_editor = {
			LIT_trait_check = { TRAIT = scholar }
		}
		trigger_event = dp_char_editor.66
	}
	
	option = {
		name = trait_theologian
		scope:char_editor = {
			LIT_trait_check = { TRAIT = theologian }
		}
		trigger_event = dp_char_editor.66
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.15
	}
}

### Innovation Regional ###

dp_char_editor.67 = {
	type = character_event
	title = dp_char_editor_presents_innovation_regional.t
	desc = dp_char_editor.presents.innovation_regional.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = temple }

	option = {
		name = tribal_regional_innovation_decision
		scope:char_editor = {
			innovation_tribal_regional_effect = yes
		}
		trigger_event = dp_char_editor.67
	}
	
	option = {
		name = early_regional_innovation_decision
		scope:char_editor = {
			innovation_early_medival_regional_effect = yes
		}
		trigger_event = dp_char_editor.67
	}
	
	option = {
		name = high_regional_innovation_decision
		scope:char_editor = {
			innovation_high_medival_regional_effect = yes
		}
		trigger_event = dp_char_editor.67
	}

	option = {
		name = late_regional_innovation_decision
		scope:char_editor = {
			innovation_late_medival_regional_effect = yes
		}
		trigger_event = dp_char_editor.67
	}

	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.49
	}
}

### TRAIT MENU LEARNED TRAITS ADD XP ###

dp_char_editor.77 = {
	type = character_event
	title = dp_char_editor.traits.learned.t
	desc = dp_char_editor.traits.learned.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = temple }

	option = {
		name = trait_pilgrim
		trigger = {
			scope:char_editor = {
				has_character_flag = trait_menu_learned_pg_1
			}
		}
		LIT_learned_trait_check = { TRAIT = pilgrim VALUE = 50 }
		trigger_event = dp_char_editor.77
	}

	option = {
		name = trait_lifestyle_mystic
		trigger = {
			scope:char_editor = {
				has_character_flag = trait_menu_learned_pg_1
			}
		}
		LIT_learned_trait_check = { TRAIT = lifestyle_mystic VALUE = 50 }
		trigger_event = dp_char_editor.77
	}

	option = {
		name = trait_track_hunter
		trigger = {
			scope:char_editor = {
				has_character_flag = trait_menu_learned_pg_1
			}
		}
		LIT_learned_trait_check_track = { TRAIT = lifestyle_hunter TRACK = hunter VALUE = 50 }
		trigger_event = dp_char_editor.77
	}

	option = {
		name = trait_track_falconer
		trigger = {
			scope:char_editor = {
				has_character_flag = trait_menu_learned_pg_1
			}
		}
		LIT_learned_trait_check_track = { TRAIT = lifestyle_hunter TRACK = falconer VALUE = 50 }
		trigger_event = dp_char_editor.77
	}

	option = {
		name = trait_track_travel
		trigger = {
			scope:char_editor = {
				has_character_flag = trait_menu_learned_pg_1
			}
		}
		LIT_learned_trait_check_track = { TRAIT = lifestyle_traveler TRACK = travel VALUE = 50 }
		trigger_event = dp_char_editor.77
	}

	option = {
		name = trait_track_danger
		trigger = {
			scope:char_editor = {
				has_character_flag = trait_menu_learned_pg_1
			}
		}
		LIT_learned_trait_check_track = { TRAIT = lifestyle_traveler TRACK = danger VALUE = 50 }
		trigger_event = dp_char_editor.77
	}

	option = {
		name = trait_lifestyle_blademaster
		trigger = {
			scope:char_editor = {
				has_character_flag = trait_menu_learned_pg_1
			}
		}
		LIT_learned_trait_check = { TRAIT = lifestyle_blademaster VALUE = 50 }
		trigger_event = dp_char_editor.77
	}

	### PAGE 2 ###

	option = {
		name = trait_track_foot
		trigger = {
			scope:char_editor = {
				has_character_flag = trait_menu_learned_pg_2
			}
		}
		LIT_learned_trait_check_track = { TRAIT = tourney_participant TRACK = foot VALUE = 50 }
		trigger_event = dp_char_editor.77
	}

	option = {
		name = trait_track_bow
		trigger = {
			scope:char_editor = {
				has_character_flag = trait_menu_learned_pg_2
			}
		}
		LIT_learned_trait_check_track = { TRAIT = tourney_participant TRACK = bow VALUE = 50 }
		trigger_event = dp_char_editor.77
	}

	option = {
		name = trait_track_horse
		trigger = {
			scope:char_editor = {
				has_character_flag = trait_menu_learned_pg_2
			}
		}
		LIT_learned_trait_check_track = { TRAIT = tourney_participant TRACK = horse VALUE = 50 }
		trigger_event = dp_char_editor.77
	}

	option = {
		name = trait_track_wit
		trigger = {
			scope:char_editor = {
				has_character_flag = trait_menu_learned_pg_2
			}
		}
		LIT_learned_trait_check_track = { TRAIT = tourney_participant TRACK = wit VALUE = 50 }
		trigger_event = dp_char_editor.77
	}

	option = {
		name = trait_lifestyle_reveler
		trigger = {
			scope:char_editor = {
				has_character_flag = trait_menu_learned_pg_2
			}
		}
		LIT_learned_trait_check = { TRAIT = lifestyle_reveler VALUE = 50 }
		trigger_event = dp_char_editor.77
	}

	option = {
		name = trait_lifestyle_physician
		trigger = {
			scope:char_editor = {
				has_character_flag = trait_menu_learned_pg_2
			}
		}
		LIT_learned_trait_check = { TRAIT = lifestyle_physician VALUE = 50 }
		trigger_event = dp_char_editor.77
	}
	### PAGE 3 ###
	# 强盗
	option = {
		name = trait_track_bandit
		trigger = {
			scope:char_editor = {
				has_character_flag = trait_menu_learned_pg_3
			}
		}
		LIT_learned_trait_check_track = { TRAIT = gallowsbait TRACK = bandit VALUE = 50 }
		trigger_event = dp_char_editor.77
	}
	# 骗子
	option = {
		name = trait_track_trickster
		trigger = {
			scope:char_editor = {
				has_character_flag = trait_menu_learned_pg_3
			}
		}
		LIT_learned_trait_check_track = { TRAIT = gallowsbait TRACK = trickster VALUE = 50 }
		trigger_event = dp_char_editor.77
	}
	# 盗贼
	option = {
		name = trait_track_thief
		trigger = {
			scope:char_editor = {
				has_character_flag = trait_menu_learned_pg_3
			}
		}
		LIT_learned_trait_check_track = { TRAIT = gallowsbait TRACK = thief VALUE = 50 }
		trigger_event = dp_char_editor.77
	}
	# 偷猎者
	option = {
		name = trait_track_poacher
		trigger = {
			scope:char_editor = {
				has_character_flag = trait_menu_learned_pg_3
			}
		}
		LIT_learned_trait_check_track = { TRAIT = gallowsbait TRACK = poacher VALUE = 50 }
		trigger_event = dp_char_editor.77
	}
	# 掠夺者
	option = {
		name = trait_track_marauder
		trigger = {
			scope:char_editor = {
				has_character_flag = trait_menu_learned_pg_3
			}
		}
		LIT_learned_trait_check_track = { TRAIT = gallowsbait TRACK = marauder VALUE = 50 }
		trigger_event = dp_char_editor.77
	}
	option = {
		name = dp_char_editor_forward
		scope:char_editor = {
			trait_menu_learned_forward = yes
		}
		trigger_event = dp_char_editor.77
	}
	option = {
		name = dp_char_editor_backward
		scope:char_editor = {
			trait_menu_learned_backward = yes
		}
		trigger_event = dp_char_editor.77
	}

	option = {
		name = dp_char_editor_back
		scope:char_editor = {
			remove_trait_menu_learned_pgs = yes
		}
		trigger_event = dp_char_editor.10
	}
}

### Customization Menu ###

dp_char_editor.999 = {
	type = character_event
	title = dp_char_editor.main_menu.t
	desc = dp_char_editor.main_menu.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = courtyard }
	
	immediate = {
	}
	
	option = {
		name = dp_char_editor.25.t
		trigger_event = dp_char_editor.999
		custom_tooltip = plus25x_TT
		scope:char_editor = {
			modifier_plus_25 = yes
		}
	}
	
	option = {
		name = dp_char_editor.5.t
		trigger_event = dp_char_editor.999
		custom_tooltip = plus5x_TT
		scope:char_editor = {
			modifier_plus_5 = yes
		}
	}

	option = {
		name = dp_char_editor.1.t
		trigger_event = dp_char_editor.999
		custom_tooltip = plus1x_TT
		scope:char_editor = {
			modifier_plus_1 = yes
		}
	}
	
	option = {
		name = dp_char_editor.default.t
		trigger_event = dp_char_editor.999
		scope:char_editor = {
			remove_all_modifier_instances = yes
		}
	}

	option = {
		name = dp_char_editor.-1.t
		trigger_event = dp_char_editor.999
		custom_tooltip = minus1x_TT
		scope:char_editor = {
			modifier_minus_1 = yes
		}
	}

	option = {
		name = dp_char_editor.-5.t
		trigger_event = dp_char_editor.999
		custom_tooltip = minus5x_TT
		scope:char_editor = {
			modifier_minus_5 = yes
		}
	}

	option = {
		name = dp_char_editor.-25.t
		trigger_event = dp_char_editor.999
		custom_tooltip = minus25x_TT
		scope:char_editor = {
			modifier_minus_25 = yes
		}
	}

	option = {
		name = dp_char_editor_add_more.t
		#Added custom tooltip localisation for clarity
		custom_tooltip = dp_char_editor_add_more_TT
		scope:char_editor = {
			dp_char_editor_go_back_modifier = yes
		}
	}

	option = {
		name = dp_char_editor.back.t
		#Added custom tooltip localisation for clarity
		custom_tooltip = dp_char_editor.back_TT
		scope:char_editor = {
			remove_all_modifier_flags = yes
			dp_char_editor_go_back_modifier = yes
		}
	}
	
	option = {
		name = dp_char_editor.finish.t
		#Added custom tooltip localisation for clarity
		custom_tooltip = dp_char_editor.finish_TT
		scope:char_editor = {
			remove_all_modifier_flags = yes
			remove_all_modifier_go_back_flags = yes
		}
		trigger_event = dp_char_editor.50
	}
}

### MAIN MENU ###

dp_char_editor.1000 = {
	type = character_event
	title = dp_char_editor.main_menu.t
	desc = dp_char_editor.main_menu.d
	theme = default
	left_portrait = {
		character = scope:char_editor
		animation = personality_bold
	}
	override_background = { reference = corridor_day }
	
	immediate = {
		scope:char_editor = {
			remove_modifier_pgs = yes
			remove_all_modifier_go_back_flags = yes
			remove_all_culture_pgs = yes
			remove_all_religion_pgs = yes
		}
	}
	
	option = {
		name = dp_char_editor.presents.t
		trigger_event = dp_char_editor.44
	}
	
	option = {
		name = dp_char_editor.naming.t
		trigger_event = dp_char_editor.43
	}

	option = {
		name = dp_char_editor.skill.t
		trigger_event = dp_char_editor.1
	}
	
	option = {
		name = dp_char_editor.modifiers.t
		scope:char_editor = { add_character_flag = modifier_pg_1 }
		trigger_event = dp_char_editor.50
	}

	option = {
		name = dp_char_editor.traits.t
		scope:char_editor = { add_character_flag = trait_menu_pg_1}
		trigger_event = dp_char_editor.10
	}

	option = {
		name = dp_char_editor.sexuality.t
		trigger_event = dp_char_editor.32
	}

	option = {
		name = dp_char_editor.culture.group.t
		scope:char_editor = { add_character_flag = culture_pg_1 }
		trigger_event = dp_char_editor.40
	}

	option = {
		name = dp_char_editor.religion.group.t
		scope:char_editor = { add_character_flag = religion_pg_1 }
		trigger_event = dp_char_editor.41
	}

	option = {
		name = dp_char_editor_end
	}
}

### DRAGON BIRTH ###

dp_char_editor.514 = {
	type = character_event
	title = dp_char_editor.traits.birth.t
	desc = dp_char_editor_menu.traits.d
	theme = default

	option = {
		name = trait_dragon_physique_good_3
        scope:char_editor = {
            if = {
                limit = {
                    has_trait = dragon_physique_good_3
                }
                remove_trait = dragon_physique_good_3
            }
            else = {
                add_trait = dragon_physique_good_3
            }
        }
		trigger_event = dp_char_editor.514
	}

	option = {
		name = trait_dragon_physique_good_2
        scope:char_editor = {
            if = {
                limit = {
                    has_trait = dragon_physique_good_2
                }
                remove_trait = dragon_physique_good_2
            }
            else = {
                add_trait = dragon_physique_good_2
            }
        }
		trigger_event = dp_char_editor.514
	}

	option = {
		name = trait_dragon_physique_good_1
        scope:char_editor = {
            if = {
                limit = {
                    has_trait = dragon_physique_good_1
                }
                remove_trait = dragon_physique_good_1
            }
            else = {
                add_trait = dragon_physique_good_1
            }
        }
		trigger_event = dp_char_editor.514
	}

	option = {
		name = trait_dragon_physique_bad_1
        scope:char_editor = {
            if = {
                limit = {
                    has_trait = dragon_physique_bad_1
                }
                remove_trait = dragon_physique_bad_1
            }
            else = {
                add_trait = dragon_physique_bad_1
            }
        }
		trigger_event = dp_char_editor.514
	}

	option = {
		name = trait_dragon_physique_bad_2
        scope:char_editor = {
            if = {
                limit = {
                    has_trait = dragon_physique_bad_2
                }
                remove_trait = dragon_physique_bad_2
            }
            else = {
                add_trait = dragon_physique_bad_2
            }
        }
		trigger_event = dp_char_editor.514
	}

	option = {
		name = trait_dragon_physique_bad_3
        scope:char_editor = {
            if = {
                limit = {
                    has_trait = dragon_physique_bad_3
                }
                remove_trait = dragon_physique_bad_3
            }
            else = {
                add_trait = dragon_physique_bad_3
            }
        }
		trigger_event = dp_char_editor.514
	}

	option = {
		name = trait_dragon_destined
        scope:char_editor = {
            if = {
                limit = {
                    has_trait = dragon_destined
                }
                remove_trait = dragon_destined
            }
            else = {
                add_trait = dragon_destined
            }
        }
		trigger_event = dp_char_editor.514
	}

	option = {
		name = dp_char_editor_next
		trigger_event = dp_char_editor.515
	}
	
	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.510
	}	
	
}

dp_char_editor.515 = {
	type = character_event
	title = dp_char_editor.traits.birth.t
	desc = dp_char_editor_menu.traits.d
	theme = default
		
	option = {
		name = trait_dragon_slow
        scope:char_editor = {
            if = {
                limit = {
                    has_trait = dragon_slow
                }
                remove_trait = dragon_slow
            }
            else = {
                add_trait = dragon_slow
            }
        }
		trigger_event = dp_char_editor.515
	}

	option = {
		name = trait_dragon_spindly
        scope:char_editor = {
            if = {
                limit = {
                    has_trait = dragon_spindly
                }
                remove_trait = dragon_spindly
            }
            else = {
                add_trait = dragon_spindly
            }
        }
		trigger_event = dp_char_editor.515
	}

	option = {
		name = trait_dragon_majestic
        scope:char_editor = {
            if = {
                limit = {
                    has_trait = dragon_majestic
                }
                remove_trait = dragon_majestic
            }
            else = {
                add_trait = dragon_majestic
            }
        }
		trigger_event = dp_char_editor.515
	}

	option = {
		name = trait_dragon_ugly
        scope:char_editor = {
            if = {
                limit = {
                    has_trait = dragon_ugly
                }
                remove_trait = dragon_ugly
            }
            else = {
                add_trait = dragon_ugly
            }
        }
		trigger_event = dp_char_editor.515
	}
	
	option = {
		name = trait_dragon_fertile
        scope:char_editor = {
            if = {
                limit = {
                    has_trait = dragon_fertile
                }
                remove_trait = dragon_fertile
            }
            else = {
                add_trait = dragon_fertile
            }
        }
		trigger_event = dp_char_editor.515
	}
	
	option = {
		name = dp_char_editor_next
		trigger_event = dp_char_editor.514
	}	
	
	option = {
		name = dp_char_editor_back
		trigger_event = dp_char_editor.510
	}
	
}