﻿namespace = nine_divines

nine_divines.0001 = {
	title = nine_divines.0001.t
	desc = nine_divines.0001.desc
	theme = dragon_soul
	override_background = { reference = cyrodiil_white_gold }
	
	left_portrait = {
		character = root
		animation = personality_bold
	}
	
	option = {
		name = nine_divines.0001.a
		hidden_effect = {
			add_character_flag = {
				flag = flag_talos
			}
		}
		custom_tooltip = {
			text = nine_divines.0001.a.t
		}
	}
	option = {
		name = nine_divines.0001.b
		custom_tooltip = {
			text = nine_divines.0001.b.t
		}
	}
}
nine_divines.0002 = {
	title = nine_divines.0002.t
	desc = nine_divines.0002.desc
	theme = dragon_soul
	override_background = { reference = temple }
	
	left_portrait = {
		character = root
		animation = personality_bold
	}
	right_portrait = {
		character = scope:new_deity
		animation = personality_zealous
	}

	option = {
		name = nine_divines.0002.a
		
		custom_tooltip = {
			text = nine_divines.0002.a.t
		}
		hidden_effect = {
			set_global_variable = { name = db_talos_delay value = yes years = { 2 6 } }
			trigger_event = nine_divines.0008
		}
	}
}
nine_divines.0003 = {
	title = nine_divines.0003.t
	desc = nine_divines.0003.desc
	theme = faith
	override_background = { reference = dragon_fire }
	
	immediate = {
		hidden_effect = {
			destroy_title = title:k_council_of_the_eight
			faith = { remove_doctrine = doctrine_no_head }
			faith = { add_doctrine = doctrine_spiritual_head }
			faith = { set_religious_head_title = title:k_council_of_the_nine }
		}
	}
	
	right_portrait = {
		character = root
		animation = personality_zealous
	}
	
	right_portrait = {
		character = faith.religious_head
		animation = personality_bold
	}

	option = {
		name = nine_divines.0003.a
		trigger_event = faith_creation.0012
		custom_tooltip = {
			text = nine_divines.0003.a.t
		}
	}
}
nine_divines.0004 = {
	title = nine_divines.0004.t
	desc = nine_divines.0004.desc
	theme = faith
	override_background = { reference = dragon_fire }
	
	left_portrait = {
		character = root
		animation = personality_zealous
	}
	right_portrait = {
		character = faith.religious_head
		animation = personality_bold
	}

	option = {
		name = nine_divines.0004.a
		dynasty = { add_dynasty_prestige = 400 }
		hidden_effect = {
			destroy_title = title:k_council_of_the_eight
			faith:nord_cult = { remove_doctrine = doctrine_no_head }
			faith:nord_cult = { add_doctrine = doctrine_spiritual_head }
			faith:nord_cult = { set_religious_head_title = title:k_council_of_the_nine }
			faith:nord_cult = { remove_doctrine = doctrine_sp_none }
			faith:nord_cult = { add_doctrine = doctrine_sp_dv_talos  }
			faith:nord_cult = { add_doctrine = doctrine_sp_talos  }
			faith:nord_cult = { add_doctrine = special_doctrine_talos_cult }
		}
	}
}
nine_divines.0005 = {
	title = nine_divines.0005.t
	desc = nine_divines.0005.desc
	theme = faith
	override_background = { reference = dragon_fire }
	
	left_portrait = {
		character = root
		animation = personality_zealous
	}
	right_portrait = {
		character = faith.religious_head
		animation = personality_bold
	}

	option = {
		name = nine_divines.0005.a
		dynasty = { add_dynasty_prestige = 400 }
		hidden_effect = {
			destroy_title = title:k_council_of_the_eight
			faith:redguard_cult = { remove_doctrine = doctrine_no_head }
			faith:redguard_cult = { add_doctrine = doctrine_spiritual_head }
			faith:redguard_cult = { set_religious_head_title = title:k_council_of_the_nine }
			faith:redguard_cult = { remove_doctrine = doctrine_sp_none }
			faith:redguard_cult = { add_doctrine = doctrine_sp_dv_talos  }
			faith:redguard_cult = { add_doctrine = doctrine_sp_talos  }
			faith:redguard_cult = { add_doctrine = special_doctrine_talos_cult }
		}
	}
}
nine_divines.0006 = {
	title = nine_divines.0006.t
	desc = nine_divines.0006.desc
	theme = faith
	override_background = { reference = dragon_fire }
	
	left_portrait = {
		character = root
		animation = personality_zealous
	}
	right_portrait = {
		character = faith.religious_head
		animation = personality_bold
	}

	option = {
		name = nine_divines.0006.a
		dynasty = { add_dynasty_prestige = 400 }
		hidden_effect = {
			destroy_title = title:k_council_of_the_eight
			faith:breton_cult = { remove_doctrine = doctrine_no_head }
			faith:breton_cult = { add_doctrine = doctrine_spiritual_head }
			faith:breton_cult = { set_religious_head_title = title:k_council_of_the_nine }
			faith:breton_cult = { remove_doctrine = special_doctrine_bretic_traditions }
			faith:breton_cult = { remove_doctrine = doctrine_sp_none }
			faith:breton_cult = { add_doctrine = doctrine_sp_dv_talos  }
			faith:breton_cult = { add_doctrine = doctrine_sp_talos  }
			faith:breton_cult = { add_doctrine = special_doctrine_talos_cult }
		}
	}
}
nine_divines.0007 = {
	title = nine_divines.0007.t
	desc = nine_divines.0007.desc
	theme = faith
	override_background = { reference = dragon_fire }
	
	left_portrait = {
		character = root
		animation = personality_zealous
	}
	right_portrait = {
		character = faith.religious_head
		animation = personality_bold
	}

	option = {
		name = nine_divines.0007.a
		dynasty = { add_dynasty_prestige = 400 }
		hidden_effect = {
			destroy_title = title:k_council_of_the_eight
			faith:eight_divines = { remove_doctrine = doctrine_no_head }
			faith:eight_divines = { add_doctrine = doctrine_spiritual_head }
			faith:eight_divines = { set_religious_head_title = title:k_council_of_the_nine }
			faith:eight_divines = { remove_doctrine = doctrine_sp_none }
			faith:eight_divines = { remove_doctrine = special_doctrine_cyrodiilic_cult }
			faith:eight_divines = { add_doctrine = doctrine_sp_dv_talos  }
			faith:eight_divines = { add_doctrine = doctrine_sp_talos  }
			faith:eight_divines = { add_doctrine = special_doctrine_talos_cult }
		}
	}
}
nine_divines.0008 = {
	title = nine_divines.0008.t
	desc = nine_divines.0008.desc
	theme = faith
	override_background = { reference = dragon_fire }
	
	immediate = {
		hidden_effect = {
			global_var:db_new_deity_talos = {
				save_scope_as = new_deity
			}
		}
	}
	
	left_portrait = {
		character = root
		animation = personality_zealous
	}
	right_portrait = {
		character = scope:new_deity
		animation = personality_bold
	}

	option = {
		name = nine_divines.0008.a
		hidden_effect = {
			
		}
	}
}
nine_divines.0009 = {
	title = nine_divines.0009.t
	desc = nine_divines.0009.desc
	theme = faith
	override_background = { reference = dragon_fire }
	
	trigger = {
		OR = {
			faith = faith:eight_divines
			faith = faith:breton_cult
			faith = faith:redguard_cult
			faith = faith:nord_cult
		}
	}
	
	immediate = {
		hidden_effect = {
			global_var:db_new_deity_talos = {
				save_scope_as = new_deity
			}
			if = {
				limit = {
					OR = {
						faith = faith:eight_divines
						faith = faith:breton_cult
						faith = faith:redguard_cult
						faith = faith:nord_cult
					}
				}
				faith = {
					remove_doctrine = doctrine_sp_none
					remove_doctrine = special_doctrine_cyrodiilic_cult
					remove_doctrine = special_doctrine_bretic_traditions
					add_doctrine = doctrine_sp_dv_talos 
					add_doctrine = doctrine_sp_talos
					add_doctrine = special_doctrine_talos_cult
				}
			}
		}
	}
	
	left_portrait = {
		character = root
		animation = personality_zealous
	}
	right_portrait = {
		character = scope:new_deity
		animation = personality_zealous
	}

	option = {
		name = nine_divines.0009.a
		dynasty = { add_dynasty_prestige = 400 }
		hidden_effect = {
		}
	}
}