namespace = nostrian_flavour

narrative_event = {
	id = nostrian_flavour.1
	title = EVTNAMEnostrian_flavour.1
	desc = EVTDESCnostrian_flavour.1
	is_triggered_only = yes
	picture = GFX_evt_emissary_byzantine
	
	trigger = {
	    year = 769
	}
	
	option = { #Support Iustinianus III
		name = EVTAnostrian_flavour.1
		prestige=400
	    c_90000423 = { 
		    move_character = ROOT
			set_character_flag = iustinianus_iii
	    }
        c_90000424 = { move_character = ROOT }
		set_character_flag = iustinianus_iii_promotor
		narrative_event = { id = nostrian_flavour.2 days=365 } #Preparations to invasion
	}
	
	option = { #Nothing Special
		name = EVTBnostrian_flavour.1
		prestige=100
        c_90000423 = { move_character = ROOT }
        c_90000424 = { move_character = ROOT }
	}
}

narrative_event = { 
	id = nostrian_flavour.2
	title = EVTNAMEnostrian_flavour.2
	desc = EVTDESCnostrian_flavour.2
	is_triggered_only = yes
	picture = GFX_evt_victory_arch_byzantine
	
	option = { 
		name = EVTAnostrian_flavour.2
		e_byzantium = {
			reverse_unsafe_war = {
				target = ROOT
				casus_belli = ioustinianos_iii_cb
			}
		}
		2015 = {
			ROOT = {
				spawn_unit = {
					province = PREV
					home = PREV
					owner = ROOT
					troops = {
						light_infantry = { 1000 1000 }
					}
					attrition = 0.5
					earmark = dummy #needs or else it will CTD for some reason
			    }
				spawn_unit = {
					province = PREV
					home = PREV
					owner = ROOT
					troops = {
						light_infantry = { 1000 1000 }
					}
					attrition = 0.5
					earmark = dummy #needs or else it will CTD for some reason
			    }
				spawn_unit = {
					province = PREV
					home = PREV
					owner = ROOT
					troops = {
						light_infantry = { 1000 1000 }
					}
					attrition = 0.5
					earmark = dummy #needs or else it will CTD for some reason
			    }
				spawn_unit = {
					province = PREV
					home = PREV
					owner = ROOT
					troops = {
						heavy_infantry = { 1000 1000 }
					}
					attrition = 0.5
					earmark = dummy #needs or else it will CTD for some reason
			    }
				spawn_unit = {
					province = PREV
					home = PREV
					owner = ROOT
					troops = {
						heavy_infantry = { 1500 1500 }
					}
					attrition = 0.5
					earmark = dummy #needs or else it will CTD for some reason
			    }
				spawn_unit = {
					province = PREV
					home = PREV
					owner = ROOT
					troops = {
						archers = { 1500 1500 }
					}
					attrition = 0.5
					earmark = dummy #needs or else it will CTD for some reason
			    }
				spawn_unit = {
					province = PREV
					home = PREV
					owner = ROOT
					troops = {
						horse_archers = { 1500 1500 }
					}
					attrition = 0.5
					earmark = dummy #needs or else it will CTD for some reason
			    }
	        }
	    }
	}
}

narrative_event = { 
	id = nostrian_flavour.3
	title = EVTNAMEnostrian_flavour.3
	desc = EVTDESCnostrian_flavour.3
	is_triggered_only = yes
	picture = GFX_evt_victory_arch_byzantine
	
	option = { 
		name = EVTAnostrian_flavour.3
		c_90000092 = { narrative_event = { id = nostrian_flavour.4 } }
	}
}

narrative_event = { 
	id = nostrian_flavour.4
	title = EVTNAMEnostrian_flavour.4
	desc = EVTDESCnostrian_flavour.4
	is_triggered_only = yes
	picture = GFX_evt_victory_arch_byzantine
	
	option = { 
		name = EVTAnostrian_flavour.4
		prestige = 1000
		cash = 800
		c_1700 = { 
		   death = { death_reason = death_execution killer = c_90000423 }
		}
	}
}

narrative_event = { 
	id = nostrian_flavour.5
	title = EVTNAMEnostrian_flavour.5
	desc = EVTDESCnostrian_flavour.5
	is_triggered_only = yes
	picture = GFX_evt_victory_arch_byzantine
	
	option = { #Kill him
		name = EVTAnostrian_flavour.5
		ai_chance = {
		   factor=100
		}
		prestige=100
		c_90000423 = { death = { death_reason = death_execution killer=ROOT } }
		c_90000092 = { narrative_event = { id = nostrian_flavour.6 } } #News about Iustinian III death
	}
	
	option = { #Send him to Monastery
		name = EVTBnostrian_flavour.5
		ai_chance = {
		   factor=0
		}
		piety=100
		c_90000423 = {
		    add_trait=monk
			move_character = k_orthodox
		}
		c_90000092 = { narrative_event = { id = nostrian_flavour.7 } } #News about Iustinian III vows
	}
}

narrative_event = { 
	id = nostrian_flavour.6
	title = EVTNAMEnostrian_flavour.6
	desc = EVTDESCnostrian_flavour.6
	is_triggered_only = yes
	picture = GFX_evt_victory_arch_byzantine
	
	option = { 
		name = EVTAnostrian_flavour.6
		prestige = -500
	}
}

narrative_event = { 
	id = nostrian_flavour.7
	title = EVTNAMEnostrian_flavour.7
	desc = EVTDESCnostrian_flavour.7
	is_triggered_only = yes
	picture = GFX_evt_victory_arch_byzantine
	
	option = { 
		name = EVTAnostrian_flavour.7
		prestige = -250
	}
}

narrative_event = {
	id = nostrian_flavour.8
	title = EVTNAMEnostrian_flavour.8
	desc = EVTDESCnostrian_flavour.8
	is_triggered_only = yes
	picture = GFX_evt_mounted_combat_day_hf
	
	option = {
		name = EVTAnostrian_flavour.8
		add_rival=146 #William II
		28 = {
			ROOT = {
				spawn_unit = {
					province = PREV
					home = PREV
					owner = ROOT
					troops = {
						light_infantry = { 500 500 }
					}
					attrition = 0.5
					earmark = dummy #needs or else it will CTD for some reason
			    }
				spawn_unit = {
					province = PREV
					home = PREV
					owner = ROOT
					troops = {
						light_cavalry = { 500 500 }
					}
					attrition = 0.5
					earmark = dummy #needs or else it will CTD for some reason
			    }
				spawn_unit = {
					province = PREV
					home = PREV
					owner = ROOT
					troops = {
						light_cavalry = { 500 500 }
					}
					attrition = 0.5
					earmark = dummy #needs or else it will CTD for some reason
			    }
				spawn_unit = {
					province = PREV
					home = PREV
					owner = ROOT
					troops = {
						archers = { 500 500 }
					}
					attrition = 0.5
					earmark = dummy #needs or else it will CTD for some reason
			    }
				spawn_unit = {
					province = PREV
					home = PREV
					owner = ROOT
					troops = {
						light_infantry = { 500 500 }
					}
					attrition = 0.5
					earmark = dummy #needs or else it will CTD for some reason
			    }
				spawn_unit = {
					province = PREV
					home = PREV
					owner = ROOT
					troops = {
						light_infantry = { 500 500 }
					}
					attrition = 0.5
					earmark = dummy #needs or else it will CTD for some reason
			    }
				spawn_unit = {
					province = PREV
					home = PREV
					owner = ROOT
					troops = {
						archers = { 500 500 }
					}
					attrition = 0.5
					earmark = dummy #needs or else it will CTD for some reason
			    }
				spawn_unit = {
					province = PREV
					home = PREV
					owner = ROOT
					troops = {
						light_infantry = { 500 500 }
					}
					attrition = 0.5
					earmark = dummy #needs or else it will CTD for some reason
			    }
				spawn_unit = {
					province = PREV
					home = PREV
					owner = ROOT
					troops = {
						archers = { 550 550 }
					}
					attrition = 0.5
					earmark = dummy #needs or else it will CTD for some reason
			    }
			}
		}
	}
}

character_event = { #Fate of William II family
	id = nostrian_flavour.9
	desc = EVTDESCnostrian_flavour.9
	is_triggered_only = yes
	picture = GFX_evt_castle_garden_wol
	
	option = { #Banish them
		name = EVTDnostrian_flavour.9
		prestige=50
		ROOT={
		  set_defacto_liege=k_england:holder_scope
		}
		k_france = {
		    holder_scope = {
	    c_142 = { move_character = ROOT }
		c_31156 = { move_character = ROOT }
		c_31157 = { move_character = ROOT }
		c_147 = { move_character = ROOT }
		c_202992 = { move_character = ROOT }
		c_183123 = { move_character = ROOT }
		c_203036 = { move_character = ROOT }
		c_31399 = { move_character = ROOT }
		c_183127 = { move_character = ROOT }
		c_161256 = { move_character = ROOT }
		c_183128 = { move_character = ROOT }
		c_183124 = { move_character = ROOT }
		c_203561 = { move_character = ROOT }
		c_183134 = { move_character = ROOT }
			}
		}
						if = {
				  limit = {
				     c_41002 = { is_alive = yes } #Harold
				  }
				   c_90000665 = {
				     set_defacto_liege = c_41002
				  }
			    }
				if = {
				limit = {
					c_41002 = { is_alive = no } #Harold
                    c_41003 = { is_alive = yes } #Ulf
				}
				c_90000665 = {
				     set_defacto_liege = c_41003
				}
			    }
		d_normandy = { 
		    holder_scope = {
				set_defacto_liege = k_france
			}
		}
	}
	option = { #Sent all of them to monastery
		name = EVTCnostrian_flavour.9
		piety = 50
		ROOT={
		  set_defacto_liege=k_england:holder_scope
		}
		c_142 = { 
		    add_trait="monk" 
			any_landed_title = {
                holder = c_142
                give_title_to = c_eu
            }
		}
		c_eu = { #De Normandie ruler of Normandy
		    holder_scope = {
			    gain_title = c_arques
				gain_title = b_beaumont
				gain_title = d_normandy
				set_defacto_liege = k_france
			}
		}
		c_183123 = { add_trait="nun" }
		c_203036 = { add_trait="monk" }
		c_31399 = { add_trait="nun" }
		c_183127 = { add_trait="monk" }
		c_161256 = { add_trait="nun" }
		c_183128 = { add_trait="nun" }
		c_183124 = { add_trait="monk" }
		c_203561 = { add_trait="nun" }
		c_183134 = { add_trait="monk" }
		c_31156 = { add_trait="monk" }
		c_31157 = { add_trait="monk" }
		c_147 = { add_trait="nun" }
		c_202992 = { add_trait="monk" }
		hidden_tooltip = {
		b_rochester = {
		   holder_scope = {
		       		c_183123 = { move_character = ROOT }
		            c_203036 = { move_character = ROOT }
		            c_31399 = { move_character = ROOT }
					c_31157 = { move_character = ROOT }
		    }
		}
		b_st_pauls = {
		   holder_scope = {
		            c_183127 = { move_character = ROOT }
		            c_161256 = { move_character = ROOT }
		            c_183128 = { move_character = ROOT }
					c_147 = { move_character = ROOT }
		    }
		}
		b_wells = {
		    holder_scope = {
				c_183124 = { move_character = ROOT }
		        c_203561 = { move_character = ROOT }
		        c_183134 = { move_character = ROOT }
			}
		}
		b_cartmel = {
		    holder_scope = {
				c_142 = { move_character = ROOT }
				c_31156 = { move_character = ROOT }
				c_202992 = { move_character = ROOT }
			}
		}
						if = {
				  limit = {
				     c_41002 = { is_alive = yes } #Harold
				  }
				   c_90000665 = {
				     set_defacto_liege = c_41002
				  }
			    }
				if = {
				limit = {
					c_41002 = { is_alive = no } #Harold
                    c_41003 = { is_alive = yes } #Ulf
				}
				c_90000665 = {
				     set_defacto_liege = c_41003
				}
			    }
	    }
	}
}
