namespace = nostrian_casual

narrative_event = {
	id = nostrian_casual.1
	title = EVTNAMEnostrian_casual.1
	desc = EVTDESCnostrian_casual.1
	is_triggered_only = yes
	picture = GFX_evt_rome_restored_byzantine
	
	option = {
		name = EVTAnostrian_casual.1
		e_western_roman_empire = {
			show_scope_change = no
			grant_title = ROOT
			hidden_tooltip = { make_primary_title = yes }
			copy_title_laws = d_nostria
		    name = WRE_NOSTRIA
		}
	}
	
	option = {
		name = EVTBnostrian_casual.1
		e_hre = {
			show_scope_change = no
			grant_title = ROOT
			hidden_tooltip = { make_primary_title = yes }
			copy_title_laws = d_nostria
			name= HRE_NOSTRIA
		}
	}
}

character_event = {
	id = nostrian_casual.2
	desc = EVTDESCnostrian_casual.2
	picture = GFX_evt_rome_restored_byzantine
	hide_from = yes
	
	trigger = {
			OR = {
			    has_landed_title = d_nostria
				any_liege = { has_landed_title = d_nostria }	
            }
			NOT = {
			   trait=popular
			   trait=optimate
			}
			age=16
			culture=franco_roman
			NOT = {
			   k_nostria = {
			      holder_scope = {
				     has_landed_title = k_england
				  }
			   }
			}
	}
	
	option = {
		name = EVTAnostrian_casual.2
		ai_chance = {
			factor = 50
			modifier = {
				factor = 8
				trait = wroth
			}
			modifier = {
				factor = 6
				trait = ambitious
			}
			modifier = {
				factor = -6
				trait = content
			}
			modifier = { #Ammoreus
				factor = 20
				dynasty = 840000007
			}
			modifier = { #Sygarlis
				factor = 20
				dynasty = 840000008
			}
			modifier = { #Pergelis
				factor = 10
				dynasty = 840000036
			}
			modifier = { #Julianus
				factor = -20
				dynasty = 840000001
			}
		    modifier = { #Pertinax
				factor = -20
				dynasty = 840000002
			}
		    modifier = { #Larion
				factor = -20
				dynasty = 840000004
			}
			modifier = { #Gerlinius
				factor = -20
				dynasty = 840000006
			}
			modifier = { #Vinicius
				factor = -10
				dynasty = 840000020
			}
			modifier = {
				factor = 10
				trait = strategist
			}
			modifier = {
				factor = -10
				trait = administrator
			}
		}
		add_trait="popular"
	}
	
	option = {
		name = EVTBnostrian_casual.2
		ai_chance = {
			factor = 50
			modifier = {
				factor = -8
				trait = wroth
			}
			modifier = {
				factor = -6
				trait = ambitious
			}
			modifier = {
				factor = 6
				trait = content
			}
			modifier = {
				factor = -10
				trait = strategist
			}
			modifier = {
				factor = 10
				trait = administrator
			}
			modifier = { #Ammoreus
				factor = -20
				dynasty = 840000007
			}
			modifier = { #Sygarlis
				factor = -20
				dynasty = 840000008
			}
			modifier = { #Pergelis
				factor = -10
				dynasty = 840000036
			}
			modifier = { #Julianus
				factor = 20
				dynasty = 840000001
			}
		    modifier = { #Pertinax
				factor = 20
				dynasty = 840000002
			}
		    modifier = { #Larion
				factor = 20
				dynasty = 840000004
			}
			modifier = { #Gerlinius
				factor = 20
				dynasty = 840000006
			}
			modifier = { #Vinicius
				factor = 10
				dynasty = 840000020
			}
		}
		add_trait="optimate"
	}
}

character_event = {
	id = nostrian_casual.3
	desc = EVTDESCnostrian_casual.3
	is_triggered_only = yes
	picture = GFX_evt_rome_restored_byzantine
	
	option = {
		name = EVTAnostrian_casual.3
			if = {
				limit = {
					trait = optimate
				}
                remove_trait = optimate
                add_trait = popular		
                prestige=-300				
			}
			if = {
				limit = {
					trait = popular
				}
                remove_trait = popular
                add_trait = optimate
                prestige=-300				
			}
	}
}

character_event = {
	id = nostrian_casual.4
	desc = EVTDESCnostrian_casual.4
	picture = GFX_evt_rome_restored_byzantine
	
	is_triggered_only = yes	
	
	option = {
		name = "EVTOPTAnostrian_casual.4" #Populares
		custom_tooltip = { text = TOOLTIPPOPULARES }
		any_character = {
			limit = { 
				trait = popular
				is_alive = yes
			}
			tooltip = { show_portrait = yes }
			custom_tooltip = { text = TOOLTIPGETNAMENOST }
		}
		clr_character_flag = show_me_populares_and_optimates
	}
	option = {
		name = "EVTOPTBnostrian_casual.4" #Optimates
		custom_tooltip = { text = TOOLTIPOPTIMATES }
		any_character = {
			limit = { 
				trait = optimate
				is_alive = yes
			}
			tooltip = { show_portrait = yes }
			custom_tooltip = { text = TOOLTIPGETNAMENOST }
		}
		clr_character_flag = show_me_populares_and_optimates
	}
}

character_event = {
	id = nostrian_casual.5
	desc = EVTDESCnostrian_casual.5
	picture = GFX_evt_holy_emperor
	
	is_triggered_only = yes	
	
	option = {
		name = "EVTOPTAnostrian_casual.5" #Normal Inauguration
		narrative_event = { id = nostrian_casual.6 days=1 }
	}
}

narrative_event = {
	id = nostrian_casual.6
	title = EVTTITLEnostrian_casual.6
	desc = {
	    trigger = { culture = franco_roman }
	    text = EVTDESCAnostrian_casual.6
		picture = GFX_evt_nostria_tribune_inauguration
    }
	desc = {
	    trigger = { NOT = { culture = franco_roman } }
	    text = EVTDESCBnostrian_casual.6
		picture = GFX_evt_nostria_tribune_inauguration
    }
	
	is_triggered_only = yes	
	
	immediate = {
	   sound_effect = coronation_extravagant
	}
	option = {
		name = "EVTOPTAnostrian_casual.6" 
		prestige = 300
		add_trait="tribune_accepted_by_senate"
	}
}

character_event = {
	id = nostrian_casual.7
	desc = EVTDESCnostrian_casual.7
	picture = GFX_evt_bad_news
	
	trigger = { 
	   trait="tribune_accepted_by_senate"
	   NOT = { has_landed_title = k_nostria }
	}
	
	option = {
		name = "EVTOPTAnostrian_casual.6" 
		prestige = -500
		add_trait="deposed_tribune"
	}
}