namespace = nhs_mission_events

###################################################
### INWARD PATH MONUMENTS
###################################################

#Nea Hagia Sophia start, choice where?
country_event = {
	id = nhs_mission_events.1
	title = nhs_mission_events.1.t
	desc = nhs_mission_events.1.d
	picture = nhs_Hagia_Sophia
	
	is_triggered_only = yes

	option = { #In the middle of the city, lowers one tax dev
		name = "nhs_mission_events.1.a"
		hidden_effect = {
			953 = {
				add_base_tax = -1
				set_province_flag = nhs_enable_nhs_hagia_theotoke_v1
				add_great_project = {
					type = nhs_hagia_theotoke_v1
					instant = yes
				}				
			}
		}
		to_monuments_later = { PROVINCE_ID = 953 }
		custom_tooltip = nhs_enable_nhs_hagia_theotoke_v1_tt
	}
	
	option = { #Outside of the city, accessible to pilgrims
		name = "nhs_mission_events.1.b"
		hidden_effect = {
			953 = {
				set_province_flag = nhs_enable_nhs_hagia_theotoke_v2
				add_great_project = {
					type = nhs_hagia_theotoke_v2
					instant = yes
				}				
			}
		}
		to_monuments_later = { PROVINCE_ID = 953 }
		custom_tooltip = nhs_enable_nhs_hagia_theotoke_v2_tt
	}
	
	option = { #In the bay, for everyone to see
		name = "nhs_mission_events.1.c"
		hidden_effect = {
			950 = {
				set_province_flag = nhs_enable_nhs_hagia_theotoke_v3
				add_great_project = {
					type = nhs_hagia_theotoke_v3
					instant = yes
				}				
			}
		}
		to_monuments_later = { PROVINCE_ID = 950 }
		custom_tooltip = nhs_enable_nhs_hagia_theotoke_v3_tt
	}

	option = { #Not right now
		name = "nhs_mission_events.1.e"
		custom_tooltip = nhs_enable_hagia_theotoke_decision_tt
		set_country_flag = nhs_enable_hagia_theotoke_decision
	}
}

#Nea Hagia Sophia event finished
country_event = {
	id = nhs_mission_events.101
	title = nhs_mission_events.101.t
	desc = nhs_mission_events.101.d
	picture = nhs_Hagia_Sophia
	
	is_triggered_only = yes

	option = { 
		name = "nhs_mission_events.101.a"
		add_prestige = 20
		add_splendor = 100
	}
}

#Parthenon, choice where?
country_event = {
	id = nhs_mission_events.2
	title = nhs_mission_events.2.t
	desc = nhs_mission_events.2.d
	picture = nhs_Akropolis

	is_triggered_only = yes

	option = { #In the middle of the city, by the Emperor's Palace
		name = "nhs_mission_events.2.a"
		hidden_effect = {
			953 = {
				add_base_tax = -1
				set_province_flag = nhs_enable_temple_of_marble_emperors_v1
				add_great_project = {
					type = nhs_temple_of_marble_emperors_v1
					instant = yes
				}				
			}
		}
		to_monuments_later = { PROVINCE_ID = 953 }
		custom_tooltip = nhs_temple_of_marble_emperors_v1_tt
	}
	
	option = { #Outside of the city, accessible to pilgrims,
		name = "nhs_mission_events.2.b"
		hidden_effect = {
			953 = {
				set_province_flag = nhs_enable_temple_of_marble_emperors_v2
				add_great_project = {
					type = nhs_temple_of_marble_emperors_v2
					instant = yes
				}
			}
		}
		to_monuments_later = { PROVINCE_ID = 953 }
		custom_tooltip = nhs_temple_of_marble_emperors_v2_tt
	}
	
	option = { #In the bay, for everyone to see
		name = "nhs_mission_events.2.c"
		hidden_effect = {
			950 = {
				set_province_flag = nhs_enable_temple_of_marble_emperors_v3
				add_great_project = {
					type = nhs_temple_of_marble_emperors_v3
					instant = yes
				}
			}
		}
		to_monuments_later = { PROVINCE_ID = 950 }
		custom_tooltip = nhs_temple_of_marble_emperors_v3_tt
	}

	option = { #Not right now
		name = "nhs_mission_events.2.e"
		custom_tooltip = nhs_enable_temple_of_marble_emperors_decision_tt
		set_country_flag = nhs_enable_temple_of_marble_emperors_decision
	}
}

#Parthenon event finished
country_event = {
	id = nhs_mission_events.201
	title = nhs_mission_events.201.t
	desc = nhs_mission_events.201.d
	picture = nhs_Akropolis
	
	is_triggered_only = yes

	option = { 
		name = nhs_mission_events.201.a
		add_prestige = 20
		add_splendor = 100
	}
}

###################################################
### TRADE GOOD SPAWN CHANCE MODIFICATION
###################################################

# Trade Good Spawn Chance Modification, Main Event
# Code generated by spawn_chance_mod.py
country_event = {
	id = nhs_mission_events.3
	title = nhs_mission_events.3.t
	desc = nhs_mission_events.3.d
	picture = TRADE_GOODS_PLANTATION_GOODS_IN_WAREHOUSE_eventPicture
	
	is_triggered_only = yes
	
	option = {
		name = nhs_mission_events.3.a
		custom_tooltip = to_switch_to_aliments_view_tt
		hidden_effect = {
		    country_event = { id = nhs_mission_events.4 }
		}
	}
	option = {
		name = nhs_mission_events.3.b
		custom_tooltip = to_switch_to_cash_crops_view_tt
		hidden_effect = {
		    country_event = { id = nhs_mission_events.5 }
		}
	}
	option = {
		name = nhs_mission_events.3.c
		custom_tooltip = to_switch_to_natural_resources_view_tt
		hidden_effect = {
		    country_event = { id = nhs_mission_events.6 }
		}
	}
	option = {
		name = nhs_mission_events.3.e
		custom_tooltip = to_switch_to_luxuries_view_tt
		hidden_effect = {
		    country_event = { id = nhs_mission_events.7 }
		}
	}
	option = {
		name = nhs_mission_events.3.f
		custom_tooltip = to_switch_to_textiles_view_tt
		hidden_effect = {
		    country_event = { id = nhs_mission_events.8 }
		}
	}
	option = {
		name = nhs_mission_events.3.g
		clr_country_flag = to_trade_good_manager_open
	}
}

# Trade Good Spawn Chance Modification, Aliments Event 1/2
# Code generated by spawn_chance_mod.py
country_event = {
	id = nhs_mission_events.4
	title = nhs_mission_events.3.t
	desc = nhs_mission_events.3.d
	picture = TRADE_GOODS_PLANTATION_GOODS_IN_WAREHOUSE_eventPicture
	
	is_triggered_only = yes
	
	option = {
		name = nhs_mission_events.4.a
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_grain
		    }
		    custom_tooltip = to_restore_spawn_chance_of_grain_tt
		    clr_country_flag = to_increased_spawn_chance_grain
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_grain_tt
		    set_country_flag = to_increased_spawn_chance_grain
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.401 }
		}
	}
	option = {
		name = nhs_mission_events.4.b
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_livestock
		    }
		    custom_tooltip = to_restore_spawn_chance_of_livestock_tt
		    clr_country_flag = to_increased_spawn_chance_livestock
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_livestock_tt
		    set_country_flag = to_increased_spawn_chance_livestock
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.401 }
		}
	}
	option = {
		name = nhs_mission_events.4.c
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_fish
		    }
		    custom_tooltip = to_restore_spawn_chance_of_fish_tt
		    clr_country_flag = to_increased_spawn_chance_fish
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_fish_tt
		    set_country_flag = to_increased_spawn_chance_fish
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.401 }
		}
	}
	option = {
		name = nhs_mission_events.4.d
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_wine
		    }
		    custom_tooltip = to_restore_spawn_chance_of_wine_tt
		    clr_country_flag = to_increased_spawn_chance_wine
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_wine_tt
		    set_country_flag = to_increased_spawn_chance_wine
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.401 }
		}
	}
	option = {
		name = nhs_mission_events.4.e
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_salt
		    }
		    custom_tooltip = to_restore_spawn_chance_of_salt_tt
		    clr_country_flag = to_increased_spawn_chance_salt
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_salt_tt
		    set_country_flag = to_increased_spawn_chance_salt
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.401 }
		}
	}
	option = {
		name = nhs_mission_events.3.g
		hidden_effect = {
		    country_event = { id = nhs_mission_events.3 }
		}
	}
}
# Trade Good Spawn Chance Modification, Aliments Event 2/2
# Code generated by spawn_chance_mod.py
country_event = {
	id = nhs_mission_events.401
	title = nhs_mission_events.3.t
	desc = nhs_mission_events.3.d
	picture = TRADE_GOODS_PLANTATION_GOODS_IN_WAREHOUSE_eventPicture
	
	is_triggered_only = yes
	
	option = {
		name = nhs_mission_events.4.a
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_grain
		    }
		    custom_tooltip = to_restore_spawn_chance_of_grain_tt
		    clr_country_flag = to_increased_spawn_chance_grain
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_grain_tt
		    set_country_flag = to_increased_spawn_chance_grain
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.4 }
		}
	}
	option = {
		name = nhs_mission_events.4.b
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_livestock
		    }
		    custom_tooltip = to_restore_spawn_chance_of_livestock_tt
		    clr_country_flag = to_increased_spawn_chance_livestock
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_livestock_tt
		    set_country_flag = to_increased_spawn_chance_livestock
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.4 }
		}
	}
	option = {
		name = nhs_mission_events.4.c
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_fish
		    }
		    custom_tooltip = to_restore_spawn_chance_of_fish_tt
		    clr_country_flag = to_increased_spawn_chance_fish
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_fish_tt
		    set_country_flag = to_increased_spawn_chance_fish
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.4 }
		}
	}
	option = {
		name = nhs_mission_events.4.d
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_wine
		    }
		    custom_tooltip = to_restore_spawn_chance_of_wine_tt
		    clr_country_flag = to_increased_spawn_chance_wine
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_wine_tt
		    set_country_flag = to_increased_spawn_chance_wine
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.4 }
		}
	}
	option = {
		name = nhs_mission_events.4.e
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_salt
		    }
		    custom_tooltip = to_restore_spawn_chance_of_salt_tt
		    clr_country_flag = to_increased_spawn_chance_salt
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_salt_tt
		    set_country_flag = to_increased_spawn_chance_salt
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.4 }
		}
	}
	option = {
		name = nhs_mission_events.3.g
		hidden_effect = {
		    country_event = { id = nhs_mission_events.3 }
		}
	}
}

# Trade Good Spawn Chance Modification, Cash Crops Event 1/2
# Code generated by spawn_chance_mod.py
country_event = {
	id = nhs_mission_events.5
	title = nhs_mission_events.3.t
	desc = nhs_mission_events.3.d
	picture = TRADE_GOODS_PLANTATION_GOODS_IN_WAREHOUSE_eventPicture
	
	is_triggered_only = yes
	
	option = {
		name = nhs_mission_events.5.a
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_sugar
		    }
		    custom_tooltip = to_restore_spawn_chance_of_sugar_tt
		    clr_country_flag = to_increased_spawn_chance_sugar
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_sugar_tt
		    set_country_flag = to_increased_spawn_chance_sugar
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.501 }
		}
	}
	option = {
		name = nhs_mission_events.5.b
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_tobacco
		    }
		    custom_tooltip = to_restore_spawn_chance_of_tobacco_tt
		    clr_country_flag = to_increased_spawn_chance_tobacco
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_tobacco_tt
		    set_country_flag = to_increased_spawn_chance_tobacco
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.501 }
		}
	}
	option = {
		name = nhs_mission_events.5.c
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_tea
		    }
		    custom_tooltip = to_restore_spawn_chance_of_tea_tt
		    clr_country_flag = to_increased_spawn_chance_tea
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_tea_tt
		    set_country_flag = to_increased_spawn_chance_tea
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.501 }
		}
	}
	option = {
		name = nhs_mission_events.5.d
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_coffee
		    }
		    custom_tooltip = to_restore_spawn_chance_of_coffee_tt
		    clr_country_flag = to_increased_spawn_chance_coffee
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_coffee_tt
		    set_country_flag = to_increased_spawn_chance_coffee
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.501 }
		}
	}
	option = {
		name = nhs_mission_events.5.e
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_cocoa
		    }
		    custom_tooltip = to_restore_spawn_chance_of_cocoa_tt
		    clr_country_flag = to_increased_spawn_chance_cocoa
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_cocoa_tt
		    set_country_flag = to_increased_spawn_chance_cocoa
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.501 }
		}
	}
	option = {
		name = nhs_mission_events.3.g
		hidden_effect = {
		    country_event = { id = nhs_mission_events.3 }
		}
	}
}
# Trade Good Spawn Chance Modification, Cash Crops Event 2/2
# Code generated by spawn_chance_mod.py
country_event = {
	id = nhs_mission_events.501
	title = nhs_mission_events.3.t
	desc = nhs_mission_events.3.d
	picture = TRADE_GOODS_PLANTATION_GOODS_IN_WAREHOUSE_eventPicture
	
	is_triggered_only = yes
	
	option = {
		name = nhs_mission_events.5.a
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_sugar
		    }
		    custom_tooltip = to_restore_spawn_chance_of_sugar_tt
		    clr_country_flag = to_increased_spawn_chance_sugar
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_sugar_tt
		    set_country_flag = to_increased_spawn_chance_sugar
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.5 }
		}
	}
	option = {
		name = nhs_mission_events.5.b
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_tobacco
		    }
		    custom_tooltip = to_restore_spawn_chance_of_tobacco_tt
		    clr_country_flag = to_increased_spawn_chance_tobacco
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_tobacco_tt
		    set_country_flag = to_increased_spawn_chance_tobacco
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.5 }
		}
	}
	option = {
		name = nhs_mission_events.5.c
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_tea
		    }
		    custom_tooltip = to_restore_spawn_chance_of_tea_tt
		    clr_country_flag = to_increased_spawn_chance_tea
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_tea_tt
		    set_country_flag = to_increased_spawn_chance_tea
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.5 }
		}
	}
	option = {
		name = nhs_mission_events.5.d
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_coffee
		    }
		    custom_tooltip = to_restore_spawn_chance_of_coffee_tt
		    clr_country_flag = to_increased_spawn_chance_coffee
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_coffee_tt
		    set_country_flag = to_increased_spawn_chance_coffee
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.5 }
		}
	}
	option = {
		name = nhs_mission_events.5.e
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_cocoa
		    }
		    custom_tooltip = to_restore_spawn_chance_of_cocoa_tt
		    clr_country_flag = to_increased_spawn_chance_cocoa
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_cocoa_tt
		    set_country_flag = to_increased_spawn_chance_cocoa
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.5 }
		}
	}
	option = {
		name = nhs_mission_events.3.g
		hidden_effect = {
		    country_event = { id = nhs_mission_events.3 }
		}
	}
}

# Trade Good Spawn Chance Modification, Natural Resources Event 1/2
# Code generated by spawn_chance_mod.py
country_event = {
	id = nhs_mission_events.6
	title = nhs_mission_events.3.t
	desc = nhs_mission_events.3.d
	picture = TRADE_GOODS_PLANTATION_GOODS_IN_WAREHOUSE_eventPicture
	
	is_triggered_only = yes
	
	option = {
		name = nhs_mission_events.6.a
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_iron
		    }
		    custom_tooltip = to_restore_spawn_chance_of_iron_tt
		    clr_country_flag = to_increased_spawn_chance_iron
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_iron_tt
		    set_country_flag = to_increased_spawn_chance_iron
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.601 }
		}
	}
	option = {
		name = nhs_mission_events.6.b
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_copper
		    }
		    custom_tooltip = to_restore_spawn_chance_of_copper_tt
		    clr_country_flag = to_increased_spawn_chance_copper
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_copper_tt
		    set_country_flag = to_increased_spawn_chance_copper
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.601 }
		}
	}
	option = {
		name = nhs_mission_events.6.c
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_gold
		    }
		    custom_tooltip = to_restore_spawn_chance_of_gold_tt
		    clr_country_flag = to_increased_spawn_chance_gold
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_gold_tt
		    set_country_flag = to_increased_spawn_chance_gold
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.601 }
		}
	}
	option = {
		name = nhs_mission_events.6.d
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_gems
		    }
		    custom_tooltip = to_restore_spawn_chance_of_gems_tt
		    clr_country_flag = to_increased_spawn_chance_gems
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_gems_tt
		    set_country_flag = to_increased_spawn_chance_gems
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.601 }
		}
	}
	option = {
		name = nhs_mission_events.6.e
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_naval_supplies
		    }
		    custom_tooltip = to_restore_spawn_chance_of_naval_supplies_tt
		    clr_country_flag = to_increased_spawn_chance_naval_supplies
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_naval_supplies_tt
		    set_country_flag = to_increased_spawn_chance_naval_supplies
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.601 }
		}
	}
	option = {
		name = nhs_mission_events.3.g
		hidden_effect = {
		    country_event = { id = nhs_mission_events.3 }
		}
	}
}
# Trade Good Spawn Chance Modification, Natural Resources Event 2/2
# Code generated by spawn_chance_mod.py
country_event = {
	id = nhs_mission_events.601
	title = nhs_mission_events.3.t
	desc = nhs_mission_events.3.d
	picture = TRADE_GOODS_PLANTATION_GOODS_IN_WAREHOUSE_eventPicture
	
	is_triggered_only = yes
	
	option = {
		name = nhs_mission_events.6.a
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_iron
		    }
		    custom_tooltip = to_restore_spawn_chance_of_iron_tt
		    clr_country_flag = to_increased_spawn_chance_iron
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_iron_tt
		    set_country_flag = to_increased_spawn_chance_iron
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.6 }
		}
	}
	option = {
		name = nhs_mission_events.6.b
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_copper
		    }
		    custom_tooltip = to_restore_spawn_chance_of_copper_tt
		    clr_country_flag = to_increased_spawn_chance_copper
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_copper_tt
		    set_country_flag = to_increased_spawn_chance_copper
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.6 }
		}
	}
	option = {
		name = nhs_mission_events.6.c
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_gold
		    }
		    custom_tooltip = to_restore_spawn_chance_of_gold_tt
		    clr_country_flag = to_increased_spawn_chance_gold
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_gold_tt
		    set_country_flag = to_increased_spawn_chance_gold
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.6 }
		}
	}
	option = {
		name = nhs_mission_events.6.d
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_gems
		    }
		    custom_tooltip = to_restore_spawn_chance_of_gems_tt
		    clr_country_flag = to_increased_spawn_chance_gems
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_gems_tt
		    set_country_flag = to_increased_spawn_chance_gems
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.6 }
		}
	}
	option = {
		name = nhs_mission_events.6.e
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_naval_supplies
		    }
		    custom_tooltip = to_restore_spawn_chance_of_naval_supplies_tt
		    clr_country_flag = to_increased_spawn_chance_naval_supplies
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_naval_supplies_tt
		    set_country_flag = to_increased_spawn_chance_naval_supplies
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.6 }
		}
	}
	option = {
		name = nhs_mission_events.3.g
		hidden_effect = {
		    country_event = { id = nhs_mission_events.3 }
		}
	}
}

# Trade Good Spawn Chance Modification, Luxuries Event 1/2
# Code generated by spawn_chance_mod.py
country_event = {
	id = nhs_mission_events.7
	title = nhs_mission_events.3.t
	desc = nhs_mission_events.3.d
	picture = TRADE_GOODS_PLANTATION_GOODS_IN_WAREHOUSE_eventPicture
	
	is_triggered_only = yes
	
	option = {
		name = nhs_mission_events.7.a
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_spices
		    }
		    custom_tooltip = to_restore_spawn_chance_of_spices_tt
		    clr_country_flag = to_increased_spawn_chance_spices
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_spices_tt
		    set_country_flag = to_increased_spawn_chance_spices
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.701 }
		}
	}
	option = {
		name = nhs_mission_events.7.b
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_chinaware
		    }
		    custom_tooltip = to_restore_spawn_chance_of_chinaware_tt
		    clr_country_flag = to_increased_spawn_chance_chinaware
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_chinaware_tt
		    set_country_flag = to_increased_spawn_chance_chinaware
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.701 }
		}
	}
	option = {
		name = nhs_mission_events.7.c
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_incense
		    }
		    custom_tooltip = to_restore_spawn_chance_of_incense_tt
		    clr_country_flag = to_increased_spawn_chance_incense
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_incense_tt
		    set_country_flag = to_increased_spawn_chance_incense
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.701 }
		}
	}
	option = {
		name = nhs_mission_events.7.d
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_ivory
		    }
		    custom_tooltip = to_restore_spawn_chance_of_ivory_tt
		    clr_country_flag = to_increased_spawn_chance_ivory
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_ivory_tt
		    set_country_flag = to_increased_spawn_chance_ivory
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.701 }
		}
	}
	option = {
		name = nhs_mission_events.7.e
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_tropical_wood
		    }
		    custom_tooltip = to_restore_spawn_chance_of_tropical_wood_tt
		    clr_country_flag = to_increased_spawn_chance_tropical_wood
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_tropical_wood_tt
		    set_country_flag = to_increased_spawn_chance_tropical_wood
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.701 }
		}
	}
	option = {
		name = nhs_mission_events.3.g
		hidden_effect = {
		    country_event = { id = nhs_mission_events.3 }
		}
	}
}
# Trade Good Spawn Chance Modification, Luxuries Event 2/2
# Code generated by spawn_chance_mod.py
country_event = {
	id = nhs_mission_events.701
	title = nhs_mission_events.3.t
	desc = nhs_mission_events.3.d
	picture = TRADE_GOODS_PLANTATION_GOODS_IN_WAREHOUSE_eventPicture
	
	is_triggered_only = yes
	
	option = {
		name = nhs_mission_events.7.a
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_spices
		    }
		    custom_tooltip = to_restore_spawn_chance_of_spices_tt
		    clr_country_flag = to_increased_spawn_chance_spices
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_spices_tt
		    set_country_flag = to_increased_spawn_chance_spices
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.7 }
		}
	}
	option = {
		name = nhs_mission_events.7.b
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_chinaware
		    }
		    custom_tooltip = to_restore_spawn_chance_of_chinaware_tt
		    clr_country_flag = to_increased_spawn_chance_chinaware
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_chinaware_tt
		    set_country_flag = to_increased_spawn_chance_chinaware
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.7 }
		}
	}
	option = {
		name = nhs_mission_events.7.c
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_incense
		    }
		    custom_tooltip = to_restore_spawn_chance_of_incense_tt
		    clr_country_flag = to_increased_spawn_chance_incense
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_incense_tt
		    set_country_flag = to_increased_spawn_chance_incense
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.7 }
		}
	}
	option = {
		name = nhs_mission_events.7.d
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_ivory
		    }
		    custom_tooltip = to_restore_spawn_chance_of_ivory_tt
		    clr_country_flag = to_increased_spawn_chance_ivory
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_ivory_tt
		    set_country_flag = to_increased_spawn_chance_ivory
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.7 }
		}
	}
	option = {
		name = nhs_mission_events.7.e
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_tropical_wood
		    }
		    custom_tooltip = to_restore_spawn_chance_of_tropical_wood_tt
		    clr_country_flag = to_increased_spawn_chance_tropical_wood
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_tropical_wood_tt
		    set_country_flag = to_increased_spawn_chance_tropical_wood
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.7 }
		}
	}
	option = {
		name = nhs_mission_events.3.g
		hidden_effect = {
		    country_event = { id = nhs_mission_events.3 }
		}
	}
}

# Trade Good Spawn Chance Modification, Textiles Event 1/2
# Code generated by spawn_chance_mod.py
country_event = {
	id = nhs_mission_events.8
	title = nhs_mission_events.3.t
	desc = nhs_mission_events.3.d
	picture = TRADE_GOODS_PLANTATION_GOODS_IN_WAREHOUSE_eventPicture
	
	is_triggered_only = yes
	
	option = {
		name = nhs_mission_events.8.a
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_cotton
		    }
		    custom_tooltip = to_restore_spawn_chance_of_cotton_tt
		    clr_country_flag = to_increased_spawn_chance_cotton
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_cotton_tt
		    set_country_flag = to_increased_spawn_chance_cotton
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.801 }
		}
	}
	option = {
		name = nhs_mission_events.8.b
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_wool
		    }
		    custom_tooltip = to_restore_spawn_chance_of_wool_tt
		    clr_country_flag = to_increased_spawn_chance_wool
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_wool_tt
		    set_country_flag = to_increased_spawn_chance_wool
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.801 }
		}
	}
	option = {
		name = nhs_mission_events.8.c
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_fur
		    }
		    custom_tooltip = to_restore_spawn_chance_of_fur_tt
		    clr_country_flag = to_increased_spawn_chance_fur
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_fur_tt
		    set_country_flag = to_increased_spawn_chance_fur
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.801 }
		}
	}
	option = {
		name = nhs_mission_events.8.d
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_dyes
		    }
		    custom_tooltip = to_restore_spawn_chance_of_dyes_tt
		    clr_country_flag = to_increased_spawn_chance_dyes
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_dyes_tt
		    set_country_flag = to_increased_spawn_chance_dyes
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.801 }
		}
	}
	option = {
		name = nhs_mission_events.3.g
		hidden_effect = {
		    country_event = { id = nhs_mission_events.3 }
		}
	}
}
# Trade Good Spawn Chance Modification, Textiles Event 2/2
# Code generated by spawn_chance_mod.py
country_event = {
	id = nhs_mission_events.801
	title = nhs_mission_events.3.t
	desc = nhs_mission_events.3.d
	picture = TRADE_GOODS_PLANTATION_GOODS_IN_WAREHOUSE_eventPicture
	
	is_triggered_only = yes
	
	option = {
		name = nhs_mission_events.8.a
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_cotton
		    }
		    custom_tooltip = to_restore_spawn_chance_of_cotton_tt
		    clr_country_flag = to_increased_spawn_chance_cotton
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_cotton_tt
		    set_country_flag = to_increased_spawn_chance_cotton
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.8 }
		}
	}
	option = {
		name = nhs_mission_events.8.b
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_wool
		    }
		    custom_tooltip = to_restore_spawn_chance_of_wool_tt
		    clr_country_flag = to_increased_spawn_chance_wool
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_wool_tt
		    set_country_flag = to_increased_spawn_chance_wool
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.8 }
		}
	}
	option = {
		name = nhs_mission_events.8.c
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_fur
		    }
		    custom_tooltip = to_restore_spawn_chance_of_fur_tt
		    clr_country_flag = to_increased_spawn_chance_fur
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_fur_tt
		    set_country_flag = to_increased_spawn_chance_fur
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.8 }
		}
	}
	option = {
		name = nhs_mission_events.8.d
		if = {
		    limit = {
		        has_country_flag = to_increased_spawn_chance_dyes
		    }
		    custom_tooltip = to_restore_spawn_chance_of_dyes_tt
		    clr_country_flag = to_increased_spawn_chance_dyes
		}
		else = {
		    custom_tooltip = to_increase_spawn_chance_of_dyes_tt
		    set_country_flag = to_increased_spawn_chance_dyes
		}
		hidden_effect = {
		    country_event = { id = nhs_mission_events.8 }
		}
	}
	option = {
		name = nhs_mission_events.3.g
		hidden_effect = {
		    country_event = { id = nhs_mission_events.3 }
		}
	}
}

###################################################
### EXPANDING SOUTH
###################################################

#Spartan events
country_event = {
	id = nhs_mission_events.10
	title = nhs_mission_events.10.t
	desc = nhs_mission_events.10.d
	picture = Tenochtitlan_Expanded_eventPicture
	
	is_triggered_only = yes
	
	# trigger = {
	# 	nhs_check_all_elysian_tags = { CONDITION = tag }
	# 	government = monarchy
	# 	mission_completed = to_taming_the_northmen_mission
	# 	NOT = { has_country_flag = to_unlock_spartan_associate_cbs }
	# 	OR = {
	# 		AND = {
	# 			exists = MSN
	# 			MSN = {
	# 				NOT = { is_subject_of = ROOT }
	# 				OR = {
	# 					dynasty = "Spartakon"
	# 					dynasty = ROOT
	# 				}
	# 			}
	# 		}
	# 		AND = {
	# 			exists = MS1
	# 			MS1 = {
	# 				NOT = { is_subject_of = ROOT }
	# 				OR = {
	# 					dynasty = "Spartakon"
	# 					dynasty = ROOT
	# 				}
	# 			}
	# 		}
	# 	}
	# }

	option = {
		name = nhs_mission_events.10.a
		custom_tooltip = nhs_gain_enforce_hegemony_over_sparta_cb_tt
		set_country_flag = to_unlock_spartan_associate_cbs
	}
}

#Spartan events
country_event = {
	id = nhs_mission_events.11
	title = nhs_mission_events.11.t
	desc = nhs_mission_events.11.d
	picture = Tenochtitlan_Expanded_eventPicture

	is_triggered_only = yes
	
	# trigger = {
	# 	nhs_check_all_elysian_tags = { CONDITION = tag }
	# 	government = monarchy
	# 	mission_completed = to_taming_the_northmen_mission
	# 	NOT = { has_country_flag = to_unlock_spartan_associate_cbs }
	# 	OR = {
	# 		AND = {
	# 			exists = MSN
	# 			MSN = {
	# 				NOT = { is_subject_of = ROOT }
	# 				NOT = { dynasty = "Spartakon" }
	# 				NOT = { dynasty = ROOT }
	# 			}
	# 		}
	# 		AND = {
	# 			exists = MS1
	# 			MS1 = {
	# 				NOT = { is_subject_of = ROOT }
	# 				NOT = { dynasty = "Spartakon" }
	# 				NOT = { dynasty = ROOT }
	# 			}
	# 		}
	# 	}
	# }

	option = {
		name = "nhs_mission_events.11.a"
		custom_tooltip = nhs_gain_restore_family_cb_over_sparta_tt
		set_country_flag = to_unlock_spartan_associate_cbs
	}
}

#Spartan events
country_event = {
	id = nhs_mission_events.12
	title = nhs_mission_events.12.t
	desc = nhs_mission_events.12.d
	picture = Tenochtitlan_Expanded_eventPicture

	is_triggered_only = yes
	
	# trigger = {
	# 	nhs_check_all_elysian_tags = { CONDITION = tag }
	# 	mission_completed = to_taming_the_northmen_mission
	# 	NOT = { has_country_flag = nhs_gain_spartan_cores }
	# 	OR = {
	# 		MSN = {
	# 			is_subject_of = ROOT
	# 		}
	# 		MS1 = {
	# 			is_subject_of = ROOT
	# 		}
	# 	}
	# }
	
	immediate = {
		set_country_flag = nhs_gain_spartan_cores
	}

	option = {
		name = "nhs_mission_events.12.a"
		if = {
			limit = {
				MSN = {
					is_subject_of = ROOT
				}
			}
			mesoamerica_pgroup = {
				limit = {
					NOT = { is_core = MSN }
					NOT = { country_or_non_sovereign_subject_holds = ROOT }
				}
				add_core = MSN
			}
		}
		else_if = {
			limit = {
				MS1 = {
					is_subject_of = ROOT
				}
			}
			mesoamerica_pgroup = {
				limit = {
					NOT = { is_core = MS1 }
					NOT = { country_or_non_sovereign_subject_holds = ROOT }
				}
				add_core = MS1
			}
		}
	}
}

#Spartan events
country_event = {
	id = nhs_mission_events.13
	title = nhs_mission_events.13.t
	desc = nhs_mission_events.13.d
	picture = Tenochtitlan_Expanded_eventPicture

	is_triggered_only = yes
	
	# trigger = {
	# 	nhs_check_all_elysian_tags = { CONDITION = tag }
	# 	mission_completed = to_taming_the_northmen_mission
	# 	NOT = { has_country_flag = nhs_gain_spartan_claims }
	# 	NOT = { nhs_check_all_spartan = { CONDITION = exists } }
	# 	any_province = {
	# 		NOT = { is_core = ROOT }
	# 		NOT = { owned_by = ROOT }
	# 		NOT = { is_permanent_claim = ROOT }
	# 		nhs_check_all_spartan = { CONDITION = is_core }
	# 	}
	# }
	
	immediate = {
		set_country_flag = nhs_gain_spartan_claims
	}

	option = { #The largest mosaics should show emperors/empressesm, +yearly_absolutism, legitimacy
		name = "nhs_mission_events.13.a"
		every_province = {
			limit = {
				nhs_check_all_spartan = { CONDITION = is_core }
				NOT = { is_core = ROOT }
				NOT = { owned_by = ROOT }
				NOT = { is_permanent_claim = ROOT }
			}
			add_permanent_claim = ROOT
		}
	}
}

###################################################
### DEFENDER OF FAITH
###################################################

# Sets defender of faith mission flags
country_event = {
	id = nhs_mission_events.14
	title = nhs2_hidden.t
	desc = nhs2_hidden.d
	picture = Tenochtitlan_Expanded_eventPicture

	hidden = yes
	
	trigger = {
		nhs_check_all_elysian_tags = { CONDITION = tag }
		religion_group = christian
		is_at_war = yes
		any_war_enemy_country = {
			religion_group = christian
			NOT = { religion = elysian_orthodoxy }
			OR = {
				total_development = 50
				tag = PAP
			}
			NOT = { has_country_flag = to_gives_defender_of_faith_credit }
			capital_scope = {
				continent = europe
			}
		}
	}
	
	immediate = {
		every_war_enemy_country = {
			limit = {
				religion_group = christian
				NOT = { religion = ROOT }
				OR = {
					total_development = 50
					tag = PAP
				}
				NOT = { has_country_flag = to_gives_defender_of_faith_credit }
				capital_scope = {
					continent = europe
				}
			}
			set_country_flag = to_gives_defender_of_faith_credit
			if = {
				limit = {
					total_development = 50
				}
				set_country_flag = to_gives_defender_of_faith_minor_credit
			}
			if = {
				limit = {
					OR = {
						is_great_power = yes
						AND = {
							NOT = { has_dlc = "Rights of Man" }
							NOT = { has_dlc = "Emperor" }
							total_development = 500
						}
					}
				}
				set_country_flag = to_gives_defender_of_faith_great_power_credit
			}
		}
		if = {
			limit = {
				is_defender_of_faith = yes
				any_country = {
					religion = ROOT
					is_in_war = {
						defenders = ROOT
						defender_leader = THIS
					}
					NOT = { has_country_flag = to_gives_defender_of_faith_dof_credit }
				}
			}
			every_country = {
				limit = {
					religion = ROOT
					is_in_war = {
						defenders = ROOT
						defender_leader = THIS
					}
					NOT = { has_country_flag = to_gives_defender_of_faith_dof_credit }
				}
				set_country_flag = to_gives_defender_of_faith_dof_credit
			}
		}
	}

	option = {
		name = nhs2_hidden.a
	}
}

#Europeans converting
country_event = {
	id = nhs_mission_events.17
	title = nhs_mission_events.17.t
	desc = nhs_mission_events.17.d
	picture = ORTHODOX_eventPicture
	
	is_triggered_only = yes

	option = {
		name = "nhs_mission_events.17.a"
		ai_chance = {
			factor = 80
			modifier = {
				factor = 0.25
				total_development = 350
			}
			modifier = {
				factor = 0.5
				total_development = 250
				NOT = { total_development = 350 }
			}
			modifier = {
				factor = 0.65
				total_development = 150
				NOT = { total_development = 250 }
			}
			modifier = {
				factor = 0.75
				total_development = 100
				NOT = { total_development = 150 }
			}
			modifier = {
				factor = 0.9
				total_development = 50
				NOT = { total_development = 100 }
			}
			modifier = {
				factor = 2
				nhs_check_all_elysian_tags_has_opinion_X = { VALUE = 200 }
			}
			modifier = {
				factor = 2
				nhs_check_all_elysian_tags_has_opinion_X = { VALUE = 150 }
			}
			modifier = {
				factor = 2
				nhs_check_all_elysian_tags_has_opinion_X = { VALUE = 100 }
			}
			modifier = {
				factor = 1.5
				nhs_check_all_elysian_tags_has_opinion_X = { VALUE = 50 }
			}
		}
		change_religion = elysian_orthodoxy
		capital_scope = {
			change_religion = ROOT
		}
		if = {
			limit = {
				any_subject_country = {
					religion_group = christian
					NOT = { religion = elysian_orthodoxy }
					NOT = { total_development = 500 }
					NOT = { tag = PAP }
				}
			}
			custom_tooltip = nhs_new_line_tt
			every_country = {
				limit = {
					religion_group = christian
					is_subject_of = ROOT
					NOT = { religion = elysian_orthodoxy }
					NOT = { total_development = 500 }
					NOT = { tag = PAP }
				}
				country_event = { id = nhs_mission_events.17 }
			}
		}
		custom_tooltip = nhs_new_line_tt
		custom_tooltip = to_many_provinces_become_elysian_orthodox_tt
		hidden_effect = {
			every_owned_province = {
				limit = {
					religion_group = christian
					NOT = { development = 10 }
					NOT = { religion = elysian_orthodoxy }
				}
				random = {
					chance = 80
					change_religion = elysian_orthodoxy
				}
			}
			every_owned_province = {
				limit = {
					religion_group = christian
					development = 10
					NOT = { development = 20 }
					NOT = { religion = elysian_orthodoxy }
				}
				random = {
					chance = 60
					change_religion = elysian_orthodoxy
				}
			}
			every_owned_province = {
				limit = {
					religion_group = christian
					development = 20
					NOT = { development = 30 }
					NOT = { religion = elysian_orthodoxy }
				}
				random = {
					chance = 40
					change_religion = elysian_orthodoxy
				}
			}
			every_owned_province = {
				limit = {
					religion_group = christian
					development = 30
					NOT = { development = 40 }
					NOT = { religion = elysian_orthodoxy }
				}
				random = {
					chance = 20
					change_religion = elysian_orthodoxy
				}
			}
		}
	}
	option = {
		name = "nhs_mission_events.17.b"
		ai_chance = {
			factor = 20
			modifier = {
				factor = 4
				total_development = 350
			}
			modifier = {
				factor = 3
				total_development = 250
				NOT = { total_development = 350 }
			}
			modifier = {
				factor = 2.4
				total_development = 150
				NOT = { total_development = 250 }
			}
			modifier = {
				factor = 2
				total_development = 100
				NOT = { total_development = 150 }
			}
			modifier = {
				factor = 1.4
				total_development = 50
				NOT = { total_development = 100 }
			}
			modifier = {
				factor = 1.5
				nhs_check_all_elysian_tags = { CONDITION = exists }
				NOT = { nhs_check_all_elysian_tags_has_opinion_X = { VALUE = 0 } }
			}
			modifier = {
				factor = 2
				nhs_check_all_elysian_tags = { CONDITION = exists }
				NOT = { nhs_check_all_elysian_tags_has_opinion_X = { VALUE = 50 } }
			}
			modifier = {
				factor = 2
				nhs_check_all_elysian_tags = { CONDITION = exists }
				NOT = { nhs_check_all_elysian_tags_has_opinion_X = { VALUE = 100 } }
			}
			modifier = {
				factor = 2
				nhs_check_all_elysian_tags = { CONDITION = exists }
				NOT = { nhs_check_all_elysian_tags_has_opinion_X = { VALUE = 150 } }
			}
			modifier = {
				factor = 2
				nhs_check_all_elysian_tags = { CONDITION = exists }
				NOT = { nhs_check_all_elysian_tags_has_opinion_X = { VALUE = 190 } }
			}
		}
		add_prestige = 10
		add_estate_loyalty = {
			estate = estate_church
			loyalty = 10
		}
		custom_tooltip = nhs_new_line_tt
		custom_tooltip = to_some_provinces_become_elysian_orthodox_tt
		hidden_effect = {
			every_owned_province = {
				limit = {
					religion_group = christian
					NOT = { development = 10 }
					NOT = { religion = elysian_orthodoxy }
				}
				random = {
					chance = 50
					change_religion = elysian_orthodoxy
				}
			}
			every_owned_province = {
				limit = {
					religion_group = christian
					development = 10
					NOT = { development = 20 }
					NOT = { religion = elysian_orthodoxy }
				}
				random = {
					chance = 25
					change_religion = elysian_orthodoxy
				}
			}
			every_owned_province = {
				limit = {
					religion_group = christian
					development = 20
					NOT = { development = 30 }
					NOT = { religion = elysian_orthodoxy }
				}
				random = {
					chance = 10
					change_religion = elysian_orthodoxy
				}
			}
		}
	}
}

###################################################
### TAMING THE LAND
###################################################

#Sets nobility land
country_event = {
	id = nhs_mission_events.15
	title = nhs2_hidden.t
	desc = nhs2_hidden.d
	picture = Tenochtitlan_Expanded_eventPicture
	
	is_triggered_only = yes
	hidden = yes
	
	immediate = {
		FROM = {
			if = {
				limit = {
					has_country_flag = nhs_setting_nhs_noble_land
					has_estate = estate_nhs_nobles
				}
				clr_country_flag = nhs_setting_nhs_noble_land
				change_estate_land_share = {
					estate = estate_nhs_nobles
					share = -100
				}
				change_estate_land_share = {
					estate = estate_nhs_nobles
					share = 20
				}
				if = {
					limit = {
						check_variable = {
							which = to_reduce_starting_loyalty_estate_nhs_nobles
							value = 1
						}
					}
					for_variable_amount = {
						variable = to_reduce_starting_loyalty_estate_nhs_nobles
						effect = "
						add_estate_loyalty = {
							estate = estate_nhs_nobles
							loyalty = -10
						}"
					}
				}
			}
		}
	}

	option = {
		name = nhs2_hidden.a
		FROM = {
			if = {
				limit = {
					has_country_flag = nhs_setting_nhs_noble_land
					has_estate = estate_nhs_nobles
				}
				clr_country_flag = nhs_setting_nhs_noble_land
				change_estate_land_share = {
					estate = estate_nhs_nobles
					share = -100
				}
				change_estate_land_share = {
					estate = estate_nhs_nobles
					share = 20
				}
				if = {
					limit = {
						check_variable = {
							which = to_reduce_starting_loyalty_estate_nhs_nobles
							value = 1
						}
					}
					for_variable_amount = {
						variable = to_reduce_starting_loyalty_estate_nhs_nobles
						effect = "
						add_estate_loyalty = {
							estate = estate_nhs_nobles
							loyalty = -10
						}"
					}
				}
			}
		}
	}
}

###################################################
### CONTROL ANDRONIKA
###################################################

# Sets trade power bonus from Control Andronika if Cahokia owner is your ally
country_event = {
	id = nhs_mission_events.16
	title = nhs2_hidden.t
	desc = nhs2_hidden.d
	picture = Tenochtitlan_Expanded_eventPicture
	
	hidden = yes

	trigger = {
		mission_completed = to_control_andronika_mission
		917 = {
			NOT = {
				has_trade_modifier = {
					who = ROOT
					key = to_cahokian_alliance_trm
				}
			}
			owner = {
				NOT = { tag = ROOT }
				OR = {
					alliance_with = ROOT
					AND = {
						is_subject = yes
						overlord = {
							alliance_with = ROOT
						}
					}
				}
			}
		}
	}
	
	immediate = {
		917 = {
			add_trade_modifier = {
				who = ROOT
				duration = -1
				power = 50
				key = to_cahokian_alliance_trm
			}
		}
	}

	option = {
		name = nhs2_hidden.a
	}
}

# Removes trade power bonus from Control Andronika if Cahokia owner is not your ally
country_event = {
	id = nhs_mission_events.18
	title = nhs2_hidden.t
	desc = nhs2_hidden.d
	picture = Tenochtitlan_Expanded_eventPicture
	
	hidden = yes

	trigger = {
		mission_completed = to_control_andronika_mission
		917 = {
			has_trade_modifier = {
				who = ROOT
				key = to_cahokian_alliance_trm
			}
			OR = {
				owned_by = ROOT
				owner = {
					NOT = {
						OR = {
							alliance_with = ROOT
							AND = {
								is_subject = yes
								overlord = {
									alliance_with = ROOT
								}
							}
						}
					}
				}
			}
		}
	}
	
	immediate = {
		917 = {
			remove_trade_modifier = {
				who = ROOT
				key = to_cahokian_alliance_trm
			}
		}
	}

	option = {
		name = nhs2_hidden.a
	}
}

###################################################
### ETERNAL EMPIRE
###################################################

# Extends your Golden Era
country_event = {
	id = nhs_mission_events.19
	title = nhs2_hidden.t
	desc = nhs2_hidden.d
	picture = Tenochtitlan_Expanded_eventPicture
	
	hidden = yes

	trigger = {
		has_dlc = "Mandate of Heaven"
		OR = {
			mission_completed = to_eternal_empire_mission
			mission_completed = to_eternal_empire_mission_ely
		}
		in_golden_age = yes
		NOT = { has_country_flag = to_extended_golden_era }
	}
	
	immediate = {
		hidden_effect = {
			extend_golden_age = 182500
			set_country_flag = to_extended_golden_era
		}
	}

	option = {
		name = nhs2_hidden.a
	}
}

###################################################
### MOVING CAPITAL TO THE OLD WORLD
###################################################

# Moving your capital back to Constantinople
country_event = {
	id = nhs_mission_events.22
	title = nhs_mission_events.22.t
	desc = {
		desc = nhs_mission_events.22.da
		trigger = {
			NOT = { has_global_flag = nhs_romaic_to_elysian }
		}
	}
	desc = {
		desc = nhs_mission_events.22.db
		trigger = {
			has_global_flag = nhs_romaic_to_elysian
		}
	}
	picture = ELYSIAN_HARBOUR_eventPicture
	
	is_triggered_only = yes

	option = {
		name = nhs_mission_events.22.a
		trigger = {
			owns_or_subject_of = 151
			is_at_war = no
		}
		if = {
			limit = {
				owns_or_subject_of = 151
				is_at_war = no
			}
			set_country_flag = to_moved_capital_to_constantinople
			if = {
				limit = {
					NOT = { owns = 151 }
				}
				151 = {
					cede_province = ROOT
				}
			}
			if = {
				limit = {
					NOT = { capital = 151 }
				}
				hidden_effect = {
					if = {
						limit = {
							is_part_of_hre = yes
						}
						151 = {
							set_in_empire = yes
						}
					}
				}
				set_capital = 151
				hidden_effect = {
					every_owned_province = {
						limit = {
							is_capital = no
							NOT = { continent = europe }
							is_part_of_hre = yes
						}
						set_in_empire = no
					}
				}
			}
			if = {
				limit = {
					exists = ELG
					ELG = {
						is_subject_of = ROOT
					}
				}
				inherit = ELG
			}
			# if = {
			# 	limit = {
			# 		NOT = { exists = ED0 }
			# 		NOT = { exists = ED1 }
			# 		NOT = { has_country_flag = to_enable_establish_elysian_despotate_decision }
			# 	}
			# 	custom_tooltip = nhs_new_line_tt
			# 	if = {
			# 		limit = {
			# 			north_america = {
			# 				owned_by = ROOT
			# 			}
			# 		}
			# 		country_event = { id = nhs_mission_events.23 tooltip = to_despotate_of_elysia_event_tt }
			# 	}
			# 	else = {
			# 		custom_tooltip = to_enable_establish_elysian_despotate_decision_tt
			# 		set_country_flag = to_enable_establish_elysian_despotate_decision
			# 	}
			# }
			custom_tooltip = nhs_new_line_tt
			custom_tooltip = to_free_annexation_of_exarchs_tt
			if = {
				limit = {
					NOT = { mission_completed = to_capital_of_innovation_mission }
				}
				custom_tooltip = nhs_new_line_tt
				custom_tooltip = to_capital_of_innovation_now_targets_constantinople_tt
			}
		}
		else = {
			custom_tooltip = to_enable_move_your_capital_to_constantinople_decision_tt
		}
	}

	option = {
		name = nhs_mission_events.22.b
		custom_tooltip = to_enable_move_your_capital_to_constantinople_decision_tt
	}

	after = {
		set_country_flag = to_enable_move_your_capital_to_constantinople_decision
	}
}

# Establish the Despotate of Makria Elysia?
country_event = {
	id = nhs_mission_events.23
	title = nhs_mission_events.23.t
	desc = nhs_mission_events.23.d
	picture = BYZANTINE_EMPEROR_eventPicture
	
	is_triggered_only = yes

	option = {
		name = nhs_mission_events.23.a
		if = {
			limit = {
				NOT = {
					capital_scope = {
						continent = north_america
					}
				}
				is_at_war = no
			}
			if = {
				limit = {
					has_global_flag = nhs_romaic_to_elysian
				}
				to_initialize_elysian_governor = { GOVERNOR_TAG = ED1 }
			}
			else = {
				to_initialize_elysian_governor = { GOVERNOR_TAG = ED0 }
			}
		}
		else = {
			custom_tooltip = to_enable_establish_elysian_despotate_decision_tt
		}
	}

	option = {
		name = nhs_mission_events.23.b
		custom_tooltip = to_enable_establish_elysian_despotate_decision_tt
	}

	after = {
		set_country_flag = to_enable_establish_elysian_despotate_decision
	}
}

###################################################
### PARA BELLUM
###################################################

# The following 2 events handle Para Bellum modifier, since you apparently can't directly add or remove it in on_build/on_destroyed effects. Fun.
province_event = {
	id = nhs_mission_events.24
	title = nhs2_hidden.t
	desc = nhs2_hidden.d
	picture = BYZANTINE_EMPEROR_eventPicture
	
	hidden = yes
	is_triggered_only = yes

	immediate = {
		add_province_triggered_modifier = to_para_bellum_modifier_tm
	}

	option = {
		name = nhs2_hidden.a
	}
}

# See above
province_event = {
	id = nhs_mission_events.25
	title = nhs2_hidden.t
	desc = nhs2_hidden.d
	picture = BYZANTINE_EMPEROR_eventPicture
	
	hidden = yes
	is_triggered_only = yes

	immediate = {
		remove_province_triggered_modifier = to_para_bellum_modifier_tm
		if = {
			limit = {
				elysian_fortification_pgroup = {
					owner = {
						mission_completed = to_para_bellum_mission
					}
					has_influencing_fort = yes
					NOT = { has_province_modifier = to_para_bellum_modifier_tm }
					NOT = {
						any_neighbor_province = {
							has_province_modifier = to_para_bellum_modifier_tm
						}
					}
				}
			}
			random_province = {
				limit = {
					province_group = elysian_fortification_pgroup
					owner = {
						mission_completed = to_para_bellum_mission
					}
					has_influencing_fort = yes
					NOT = { has_province_modifier = to_para_bellum_modifier_tm }
					NOT = {
						any_neighbor_province = {
							has_province_modifier = to_para_bellum_modifier_tm
						}
					}
				}
				add_province_triggered_modifier = to_para_bellum_modifier_tm
			}
		}
		else_if = {
			limit = {
				elysian_fortification_pgroup = {
					owner = {
						mission_completed = to_para_bellum_mission
					}
					has_influencing_fort = yes
					NOT = { has_province_modifier = to_para_bellum_modifier_tm }
				}
			}
			random_province = {
				limit = {
					province_group = elysian_fortification_pgroup
					owner = {
						mission_completed = to_para_bellum_mission
					}
					has_influencing_fort = yes
					NOT = { has_province_modifier = to_para_bellum_modifier_tm }
				}
				add_province_triggered_modifier = to_para_bellum_modifier_tm
			}
		}
	}

	option = {
		name = nhs2_hidden.a
	}
}

###################################################
### BEYOND THE APALEISIANS
###################################################

# Choice between where to build the initial Elysian Highway segment if you own all provinces of both
country_event = {
	id = nhs_mission_events.26
	title = nhs_mission_events.26.t
	desc = nhs_mission_events.26.d
	picture = nhs_KINGS_CHOICE_eventPicture
	
	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_saved_name = {
				key = architect1
				type = advisor
				scope = ROOT
			}
			set_saved_name = {
				key = architect2
				type = advisor
				scope = ROOT
			}
		}
	}

	after = {
		clear_saved_name = architect1
		clear_saved_name = architect2
	}

	option = {
		name = nhs_mission_events.26.a
		custom_tooltip = to_elysian_highway_north_apaleisian_add_modifiers_tt
		hidden_effect = {
			every_province = {
				limit = {
					to_elysian_highway_north_apaleisian_province_trigger = { TRIGGER = province_id }
				}
				add_permanent_province_modifier = {
					name = nhs_elysian_highways
					duration = -1
				}
			}
			set_global_flag = to_elysian_highways_north_apaleisian_enabled
		}
	}

	option = {
		name = nhs_mission_events.26.b
		custom_tooltip = to_elysian_highway_south_apaleisian_add_modifiers_tt
		hidden_effect = {
			every_province = {
				limit = {
					to_elysian_highway_south_apaleisian_province_trigger = { TRIGGER = province_id }
				}
				add_permanent_province_modifier = {
					name = nhs_elysian_highways
					duration = -1
				}
			}
			set_global_flag = to_elysian_highways_south_apaleisian_enabled
		}
	}
}

###################################################
### IN ALEXIOS' FOOTSTEPS
###################################################

country_event = {
	id = nhs_mission_events.50
	title = nhs_mission_events.50.t
	desc = {
		desc = nhs_mission_events.50.da
		trigger = {
			OR = {
				NOT = { has_country_flag = nhs_new_flight_taken_turks }
				NOT = { has_country_flag = nhs_new_flight_taken_orhan }
			}
		}
	}
	desc = {
		desc = nhs_mission_events.50.db
		trigger = {
			OR = {
				has_country_flag = nhs_new_flight_taken_turks
				has_country_flag = nhs_new_flight_taken_orhan
			}
		}
	}
	picture = AWESOMECITY_eventPicture
	
	is_triggered_only = yes
	
	immediate = {
		hidden_effect = {
			set_country_flag = to_of_romans_and_rumites_event_active
			to_turkish_emigration_predict_lost_dev = {
				VARIABLE = to_total_lost_dev_10p
				FRACTION = 0.1
			}
			to_turkish_emigration_predict_lost_dev = {
				VARIABLE = to_total_lost_dev_20p
				FRACTION = 0.2
			}
			# to_compute_avg_culture_shock_progress = { VARIABLE = to_avg_culture_shock_progress }
			# to_round_down_variable_one_decimal = { VARIABLE = to_avg_culture_shock_progress }
		}
	}

	after = {
		hidden_effect = {
			clr_country_flag = to_of_romans_and_rumites_event_active
			set_variable = {
				which = to_total_lost_dev_10p
				value = 0
			}
			set_variable = {
				which = to_total_lost_dev_20p
				value = 0
			}
			# set_variable = {
			# 	which = to_avg_culture_shock_progress
			# 	value = 0
			# }
		}
	}

	option = {
		name = nhs_mission_events.50.a
		ai_chance = {
			factor = 8
			modifier = {
				factor = 4
				OR = {
					ruler_has_personality = zealot_personality
					ruler_has_personality = malevolent_personality
				}
			}
		}
		custom_tooltip = to_anatolia_goes_to_konstantinia_tt
		custom_tooltip = nhs_new_line_tt

		clr_country_flag = to_favored_turks_in_anatolia_partial
		set_country_flag = to_favored_greeks_in_anatolia
		clr_global_flag = to_een_got_anatolia
		set_global_flag = to_elg_got_anatolia
		if = {
			limit = {
				calc_true_if = {
					amount = 10
					all_province = {
						culture = greek
						religion = ROOT
						OR = {
							continent = europe
							continent = asia
							continent = africa
						}
					}
				}
			}
			set_country_flag = to_turkish_provinces_change_to_own_religion
			custom_tooltip = to_turkish_emigration_effect_own_religion_tt
			if = {
				limit = {
					to_has_cultureshock_country = yes
				}
				custom_tooltip = to_turkish_dev_lost_20p_tt
				custom_tooltip = to_set_greek_integration_progress_50_tt
			}
			else = {
				custom_tooltip = to_turkish_dev_lost_10p_tt
			}
			custom_tooltip = nhs_new_line_tt
		}
		else = {
			custom_tooltip = to_turkish_emigration_effect_tt
			if = {
				limit = {
					to_has_cultureshock_country = yes
				}
				custom_tooltip = to_turkish_dev_lost_20p_tt
				custom_tooltip = to_set_greek_integration_progress_50_tt
			}
			else = {
				custom_tooltip = to_turkish_dev_lost_10p_tt
			}
			custom_tooltip = nhs_new_line_tt
			custom_tooltip = to_turkish_emigration_religion_tooltip
			custom_tooltip = nhs_dotted_line_tt
		}
		custom_tooltip = to_turkish_easier_conversion_effect_tt
		hidden_effect = {
			# to_compute_avg_culture_shock_progress = { VARIABLE = to_avg_culture_shock_progress }
			# set_variable = {
			# 	which = to_assimilation_progress
			# 	which = to_avg_culture_shock_progress
			# }
			every_province = {
				limit = {
					country_or_subject_holds = ROOT
					culture = turkish
					OR = {
						area = hudavendigar_area
						area = aydin_area
						area = cukurova_area
						area = kastamonu_area
						region = balkan_region
					}
				}
				change_culture = greek
				if = {
					limit = {
						ROOT = {
							has_country_flag = to_turkish_provinces_change_to_own_religion
						}
					}
					change_religion = ROOT
				}
				else = {
					change_religion = orthodox
				}
				add_devastation = 10
				add_nationalism = -100
				if = {
					limit = {
						ROOT = {
							to_has_cultureshock_country = yes
						}
					}
					to_turkish_emigration_remove_dev = { FRACTION = 0.2 }
					set_variable = {
						which = to_assimilation_progress
						value = 50
					}
					set_variable = {
						which = to_assimilation_progress_display
						value = 50
					}
					set_province_flag = to_assimilation_active
				}
				else = {
					to_turkish_emigration_remove_dev = { FRACTION = 0.1 }
				}
				# if = {
				# 	limit = {
				# 		ROOT = {
				# 			check_variable = {
				# 				which = to_assimilation_progress
				# 				value = 0.001
				# 			}
				# 		}
				# 	}
				# 	change_variable = {
				# 		which = to_assimilation_progress
				# 		which = PREV
				# 	}
				# 	set_variable = {
				# 		which = to_assimilation_progress_display
				# 		which = to_assimilation_progress
				# 	}
				# 	to_round_down_variable_one_decimal = { VARIABLE = to_assimilation_progress_display }
				# }
			}
			# set_variable = {
			# 	which = to_assimilation_progress
			# 	which = 0
			# }
			every_province = {
				limit = {
					country_or_subject_holds = ROOT
					culture = turkish
					region = anatolia_region
				}
				add_province_modifier = {
					name = to_greek_immigration
					duration = -1
				}
				to_remove_culture_adaptation_variables = yes
				change_original_culture = greek
			}
			clr_country_flag = to_turkish_provinces_change_to_own_religion
		}
		custom_tooltip = nhs_new_line_tt
		custom_tooltip = to_expelled_turks_opinion_tt
		hidden_effect = {
			every_country = {
				limit = {
					OR = {
						religion = sunni
						primary_culture = turkish
					}
				}
				if = {
					limit = {
						primary_culture = turkish
					}
					add_historical_rival = ROOT
					ROOT = { add_historical_rival = PREV }
					add_aggressive_expansion = {
						who = ROOT
						value = 40
						apply_calc = no
					}
					add_opinion = {
						who = ROOT
						modifier = to_expelled_turks_severe
					}
				}
				else = {
					add_aggressive_expansion = {
						who = ROOT
						value = 10
						apply_calc = no
					}
					add_opinion = {
						who = ROOT
						modifier = to_expelled_turks
					}
				}
			}
		}
		if = {
			limit = {
				to_has_cultureshock_country = yes
			}
			custom_tooltip = nhs_dotted_line_tt
			to_cultureshock_decrease = yes
		}
	}

	option = {
		name = nhs_mission_events.50.b
		ai_chance = {
			factor = 2
			modifier = {
				factor = 0
				OR = {
					has_country_flag = nhs_new_flight_taken_turks
					has_country_flag = nhs_new_flight_taken_orhan
				}
			}
			modifier = {
				factor = 12
				OR = {
					ruler_has_personality = kind_hearted_personality
					ruler_has_personality = tolerant_personality
				}
			}
		}
		set_country_flag = to_favored_turks_in_anatolia_partial
		clr_global_flag = to_elg_got_anatolia
		set_global_flag = to_een_got_anatolia

		custom_tooltip = to_enable_anatolia_exarch_tt
		custom_tooltip = nhs_new_line_tt
		add_country_modifier = {
			name = to_reduced_separatism
			duration = 27375
		}
		hidden_effect = {
			ELG = {
				if = {
					limit = {
						is_subject_of = ROOT
						is_subject_of_type = elysian_subject
					}
					every_province = {
						limit = {
							owned_by = ELG
							nhs_EEN_province = yes
						}
						to_cede_province_to_exarch_overlord = {
							CURRENT_OWNER = ELG
							NEW_OWNER = ROOT
						}
						clr_province_flag = nhs_exarch_province_exemption
					}
				}
				set_country_flag = to_block_exarch_second_merchant
			}
			to_check_exarch_nationalism_all_subjects = {}
		}
	}

	option = {
		name = nhs_mission_events.50.c
		highlight = yes
		trigger = {
			custom_trigger_tooltip = {
				tooltip = nhs_has_taken_turks_return_tt
				OR = {
					has_country_flag = nhs_new_flight_taken_turks
					has_country_flag = nhs_new_flight_taken_orhan
				}
			}
		}
		ai_chance = {
			factor = 16
			modifier = {
				factor = 4
				OR = {
					ruler_has_personality = kind_hearted_personality
					ruler_has_personality = tolerant_personality
				}
			}
		}
		clr_country_flag = to_favored_turks_in_anatolia_partial
		set_country_flag = to_favored_turks_in_anatolia
		clr_global_flag = to_elg_got_anatolia
		set_global_flag = to_een_got_anatolia
		set_global_flag = to_orhans_descendant_rules_anatolia

		if = {
			limit = {
				any_province = {
					nhs_EEN_province_no_flag_check = yes
					OR = {
						owned_by = ELG
						AND = {
							owned_by = ROOT
							to_exarch_can_get_province_active = yes
						}
					}
				}
			}
			custom_tooltip = to_enable_anatolia_exarch_orhan_immediate_tt
		}
		else = {
			custom_tooltip = to_enable_anatolia_exarch_orhan_tt
		}
		custom_tooltip = to_can_no_longer_offer_exarchs_to_subjects_in_the_region_tt
		
		custom_tooltip = nhs_new_line_tt
		
		add_country_modifier = {
			name = to_reduced_separatism
			duration = 27375
		}
		hidden_effect = {
			to_check_exarch_nationalism_all_subjects = {}
		}
		add_accepted_culture_or_dip_power = {
			culture = turkish
			dip_reward = yes
			free = yes
		}
		custom_tooltip = nhs_new_line_tt
		custom_tooltip = to_turkish_province_boost_tt
		hidden_effect = {
			ELG = {
				if = {
					limit = {
						is_subject_of = ROOT
						is_subject_of_type = elysian_subject
					}
					every_province = {
						limit = {
							owned_by = ELG
							nhs_EEN_province = yes
						}
						to_cede_province_to_exarch_overlord = {
							CURRENT_OWNER = ELG
							NEW_OWNER = ROOT
						}
						clr_province_flag = nhs_exarch_province_exemption
					}
				}
				set_country_flag = to_block_exarch_second_merchant
			}
			if = {
				limit = {
					317 = {
						owned_by = ROOT
						culture = turkish
						to_exarch_can_get_province_active = yes
					}
				}
				317 = {
					to_release_exarch_from_province = {
						EXARCH_SCOPE = EEN
						CURRENT_OWNER = ROOT
					}
				}
				to_setup_exarch_government_and_transfer_provinces = {
					EXARCH_SCOPE = EEN
					EXARCH_TAG = EEN
					OVERLORD = ROOT
					ON_CREATED_EFFECT = "to_setup_anatolia_exarch = yes"
					ON_CREATED_TOOLTIP = "to_setup_anatolia_exarch_tooltip = yes"
				}
				EEN = {
					set_country_flag = to_50_year_cooldown_on_exarch_annex
				}
			}
			else_if = {
				limit = {
					any_owned_province = {
						nhs_EEN_province = yes
						culture = turkish
						to_exarch_can_get_province_active = yes
					}
				}
				random_owned_province = {
					limit = {
						nhs_EEN_province = yes
						culture = turkish
						to_exarch_can_get_province_active = yes
					}
					to_release_exarch_from_province = {
						EXARCH_SCOPE = EEN
						CURRENT_OWNER = ROOT
					}
				}
				to_setup_exarch_government_and_transfer_provinces = {
					EXARCH_SCOPE = EEN
					EXARCH_TAG = EEN
					OVERLORD = ROOT
					ON_CREATED_EFFECT = "to_setup_anatolia_exarch = yes"
					ON_CREATED_TOOLTIP = "to_setup_anatolia_exarch_tooltip = yes"
				}
				EEN = {
					set_country_flag = to_50_year_cooldown_on_exarch_annex
				}
			}
			else_if = {
				limit = {
					any_owned_province = {
						nhs_EEN_province = yes
						to_exarch_can_get_province_active = yes
					}
				}
				random_owned_province = {
					limit = {
						nhs_EEN_province = yes
						to_exarch_can_get_province_active = yes
					}
					change_culture = turkish
					to_release_exarch_from_province = {
						EXARCH_SCOPE = EEN
						CURRENT_OWNER = ROOT
					}
				}
				to_setup_exarch_government_and_transfer_provinces = {
					EXARCH_SCOPE = EEN
					EXARCH_TAG = EEN
					OVERLORD = ROOT
					ON_CREATED_EFFECT = "to_setup_anatolia_exarch = yes"
					ON_CREATED_TOOLTIP = "to_setup_anatolia_exarch_tooltip = yes"
				}
				EEN = {
					set_country_flag = to_50_year_cooldown_on_exarch_annex
				}
			}
			every_province = {
				limit = {
					country_or_subject_holds = ROOT
					culture = turkish
					region = anatolia_region
				}
				add_province_modifier = {
					name = to_turkish_province_boost
					duration = -1
				}
			}
		}
	}

	# QOL - postpone the decision
	option = {
		name = nhs_mission_events.50.e
		custom_tooltip = to_enable_fate_of_turks_in_anatolia_decision_tt
		set_country_flag = to_enable_fate_of_turks_in_anatolia_decision
		clr_country_flag = to_favored_turks_in_anatolia_partial
		clr_global_flag = to_een_got_anatolia
	}
}

###################################################
### Rome Restores / Elysia Ascendant
###################################################

# The Final Triumph (Rome)
country_event = {
	id = nhs_mission_events.51
	title = nhs_mission_events.51.t
	desc = nhs_mission_events.51.d
	picture = TO_FINAL_TRIUMPH_eventPicture
	
	is_triggered_only = yes

	option = {
		name = nhs_mission_events.51.a
		to_the_final_triumph_effect = {
			EVENT_ID = nhs_mission_events.51
		}
	}
}

# The Final Triumph (Elysia)
country_event = {
	id = nhs_mission_events.52
	title = nhs_mission_events.52.t
	desc = {
		trigger = {
			NOT = { is_mod_active = "Third Odyssey: Purple Elysia" }
		}
		desc = nhs_mission_events.52.da
	}
	desc = {
		# Without the mention of green flag.
		desc = nhs_mission_events.52.db
	}
	picture = TO_FINAL_TRIUMPH_eventPicture
	
	is_triggered_only = yes

	option = {
		name = nhs_mission_events.52.a
		to_the_final_triumph_effect = {
			EVENT_ID = nhs_mission_events.52
		}
	}
}

###################################################
### TRIUMPHS
###################################################

# Triumph for Illyrikon
# Code generated by triumphs/triumphs.py
country_event = {
	id = nhs_mission_events.27
	title = nhs_mission_events.27.t
	desc = nhs_mission_events.27.d
	picture = BYZANTINE_EAGLE_eventPicture
	
	trigger = {
	    nhs_check_all_elysian_tags = { CONDITION = tag }
		to_has_completed_triumph = {
		    REGION = balkan_region
		    CHECK_CITIES = yes
		}
        NOT = { has_country_flag = to_triumph_for_balkan_region }
        OR = {
			NOT = { has_country_flag = to_recent_triumph }
			had_country_flag = { flag = to_recent_triumph days = 10 }
		}
	}
	
	immediate = {
		hidden_effect = {
		    set_country_flag = to_triumph_for_balkan_region
		    clr_country_flag = to_recent_triumph
			set_country_flag = to_recent_triumph
		}
	}

	option = {
		name = to_triumph_event.a
		if = {
		    limit = {
		        has_regency = yes    
		    }
		    custom_tooltip = to_only_option_due_to_regency_tt
		    custom_tooltip = nhs_new_line_tt
		}
		add_prestige = 10
		add_army_tradition = 10
		custom_tooltip = nhs_dotted_line_tt
		if = {
		    limit = { to_enabled_european_culture_integration = yes }
		    custom_tooltip = to_increase_culture_integration_balkan_region_tt
		}
		custom_tooltip = to_balkan_region_warscore_cost_red_tt
		hidden_effect = {
			every_province = {
				limit = {
					region = balkan_region
				}
				add_permanent_province_modifier = {
					name = to_triumph_warscore_cost_red
					duration = -1
				}
			}
		}
	}

	option = {
		name = to_triumph_event.b
		trigger = {
		    has_regency = no
		}
		add_prestige = 15
		add_legitimacy = 15
		add_heir_claim = 10
		add_splendor = 25
		custom_tooltip = nhs_dotted_line_tt
		if = {
		    limit = { to_enabled_european_culture_integration = yes }
		    custom_tooltip = to_increase_culture_integration_balkan_region_tt
		}
		custom_tooltip = to_balkan_region_warscore_cost_red_tt
		hidden_effect = {
			every_province = {
				limit = {
					region = balkan_region
				}
				add_permanent_province_modifier = {
					name = to_triumph_warscore_cost_red
					duration = -1
				}
			}
		}
	}
}

# Triumph for Anatolia
# Code generated by triumphs/triumphs.py
country_event = {
	id = nhs_mission_events.28
	title = nhs_mission_events.28.t
	desc = nhs_mission_events.28.d
	picture = BYZANTINE_EAGLE_eventPicture
	
	trigger = {
	    nhs_check_all_elysian_tags = { CONDITION = tag }
		to_has_completed_triumph = {
		    REGION = anatolia_region
		    CHECK_CITIES = yes
		}
        NOT = { has_country_flag = to_triumph_for_anatolia_region }
        OR = {
			NOT = { has_country_flag = to_recent_triumph }
			had_country_flag = { flag = to_recent_triumph days = 10 }
		}
	}
	
	immediate = {
		hidden_effect = {
		    set_country_flag = to_triumph_for_anatolia_region
		    clr_country_flag = to_recent_triumph
			set_country_flag = to_recent_triumph
		}
	}

	option = {
		name = to_triumph_event.a
		if = {
		    limit = {
		        has_regency = yes    
		    }
		    custom_tooltip = to_only_option_due_to_regency_tt
		    custom_tooltip = nhs_new_line_tt
		}
		add_prestige = 10
		add_army_tradition = 10
		custom_tooltip = nhs_dotted_line_tt
		if = {
		    limit = { to_enabled_european_culture_integration = yes }
		    custom_tooltip = to_increase_culture_integration_anatolia_region_tt
		}
		custom_tooltip = to_anatolia_region_warscore_cost_red_tt
		hidden_effect = {
			every_province = {
				limit = {
					region = anatolia_region
				}
				add_permanent_province_modifier = {
					name = to_triumph_warscore_cost_red
					duration = -1
				}
			}
		}
	}

	option = {
		name = to_triumph_event.b
		trigger = {
		    has_regency = no
		}
		add_prestige = 15
		add_legitimacy = 15
		add_heir_claim = 10
		add_splendor = 25
		custom_tooltip = nhs_dotted_line_tt
		if = {
		    limit = { to_enabled_european_culture_integration = yes }
		    custom_tooltip = to_increase_culture_integration_anatolia_region_tt
		}
		custom_tooltip = to_anatolia_region_warscore_cost_red_tt
		hidden_effect = {
			every_province = {
				limit = {
					region = anatolia_region
				}
				add_permanent_province_modifier = {
					name = to_triumph_warscore_cost_red
					duration = -1
				}
			}
		}
	}
}

# Triumph for Syria
# Code generated by triumphs/triumphs.py
country_event = {
	id = nhs_mission_events.29
	title = nhs_mission_events.29.t
	desc = nhs_mission_events.29.d
	picture = BYZANTINE_EAGLE_eventPicture
	
	trigger = {
	    nhs_check_all_elysian_tags = { CONDITION = tag }
		to_has_completed_triumph = {
		    REGION = mashriq_region
		    CHECK_CITIES = yes
		}
        NOT = { has_country_flag = to_triumph_for_mashriq_region }
        OR = {
			NOT = { has_country_flag = to_recent_triumph }
			had_country_flag = { flag = to_recent_triumph days = 10 }
		}
	}
	
	immediate = {
		hidden_effect = {
		    set_country_flag = to_triumph_for_mashriq_region
		    clr_country_flag = to_recent_triumph
			set_country_flag = to_recent_triumph
		}
	}

	option = {
		name = to_triumph_event.a
		if = {
		    limit = {
		        has_regency = yes    
		    }
		    custom_tooltip = to_only_option_due_to_regency_tt
		    custom_tooltip = nhs_new_line_tt
		}
		add_prestige = 10
		add_army_tradition = 10
		custom_tooltip = nhs_dotted_line_tt
		if = {
		    limit = { to_enabled_european_culture_integration = yes }
		    custom_tooltip = to_increase_culture_integration_mashriq_region_tt
		}
		custom_tooltip = to_mashriq_region_warscore_cost_red_tt
		hidden_effect = {
			every_province = {
				limit = {
					region = mashriq_region
				}
				add_permanent_province_modifier = {
					name = to_triumph_warscore_cost_red
					duration = -1
				}
			}
		}
	}

	option = {
		name = to_triumph_event.b
		trigger = {
		    has_regency = no
		}
		add_prestige = 15
		add_legitimacy = 15
		add_heir_claim = 10
		add_splendor = 25
		custom_tooltip = nhs_dotted_line_tt
		if = {
		    limit = { to_enabled_european_culture_integration = yes }
		    custom_tooltip = to_increase_culture_integration_mashriq_region_tt
		}
		custom_tooltip = to_mashriq_region_warscore_cost_red_tt
		hidden_effect = {
			every_province = {
				limit = {
					region = mashriq_region
				}
				add_permanent_province_modifier = {
					name = to_triumph_warscore_cost_red
					duration = -1
				}
			}
		}
	}
}

# Triumph for Aigyptos
# Code generated by triumphs/triumphs.py
country_event = {
	id = nhs_mission_events.30
	title = nhs_mission_events.30.t
	desc = nhs_mission_events.30.d
	picture = BYZANTINE_EAGLE_eventPicture
	
	trigger = {
	    nhs_check_all_elysian_tags = { CONDITION = tag }
		to_has_completed_triumph = {
		    REGION = egypt_region
		    CHECK_CITIES = yes
		}
        NOT = { has_country_flag = to_triumph_for_egypt_region }
        OR = {
			NOT = { has_country_flag = to_recent_triumph }
			had_country_flag = { flag = to_recent_triumph days = 10 }
		}
	}
	
	immediate = {
		hidden_effect = {
		    set_country_flag = to_triumph_for_egypt_region
		    clr_country_flag = to_recent_triumph
			set_country_flag = to_recent_triumph
		}
	}

	option = {
		name = to_triumph_event.a
		if = {
		    limit = {
		        has_regency = yes    
		    }
		    custom_tooltip = to_only_option_due_to_regency_tt
		    custom_tooltip = nhs_new_line_tt
		}
		add_prestige = 10
		add_army_tradition = 10
		custom_tooltip = nhs_dotted_line_tt
		if = {
		    limit = { to_enabled_european_culture_integration = yes }
		    custom_tooltip = to_increase_culture_integration_egypt_region_tt
		}
		custom_tooltip = to_egypt_region_warscore_cost_red_tt
		hidden_effect = {
			every_province = {
				limit = {
					region = egypt_region
				}
				add_permanent_province_modifier = {
					name = to_triumph_warscore_cost_red
					duration = -1
				}
			}
		}
	}

	option = {
		name = to_triumph_event.b
		trigger = {
		    has_regency = no
		}
		add_prestige = 15
		add_legitimacy = 15
		add_heir_claim = 10
		add_splendor = 25
		custom_tooltip = nhs_dotted_line_tt
		if = {
		    limit = { to_enabled_european_culture_integration = yes }
		    custom_tooltip = to_increase_culture_integration_egypt_region_tt
		}
		custom_tooltip = to_egypt_region_warscore_cost_red_tt
		hidden_effect = {
			every_province = {
				limit = {
					region = egypt_region
				}
				add_permanent_province_modifier = {
					name = to_triumph_warscore_cost_red
					duration = -1
				}
			}
		}
	}
}

# Triumph for Afrika
# Code generated by triumphs/triumphs.py
country_event = {
	id = nhs_mission_events.31
	title = nhs_mission_events.31.t
	desc = nhs_mission_events.31.d
	picture = BYZANTINE_EAGLE_eventPicture
	
	trigger = {
	    nhs_check_all_elysian_tags = { CONDITION = tag }
		to_has_completed_triumph = {
		    REGION = maghreb_region
		    CHECK_CITIES = yes
		}
        NOT = { has_country_flag = to_triumph_for_maghreb_region }
        OR = {
			NOT = { has_country_flag = to_recent_triumph }
			had_country_flag = { flag = to_recent_triumph days = 10 }
		}
	}
	
	immediate = {
		hidden_effect = {
		    set_country_flag = to_triumph_for_maghreb_region
		    clr_country_flag = to_recent_triumph
			set_country_flag = to_recent_triumph
		}
	}

	option = {
		name = to_triumph_event.a
		if = {
		    limit = {
		        has_regency = yes    
		    }
		    custom_tooltip = to_only_option_due_to_regency_tt
		    custom_tooltip = nhs_new_line_tt
		}
		add_prestige = 10
		add_army_tradition = 10
		custom_tooltip = nhs_dotted_line_tt
		if = {
		    limit = { to_enabled_european_culture_integration = yes }
		    custom_tooltip = to_increase_culture_integration_maghreb_region_tt
		}
		custom_tooltip = to_maghreb_region_warscore_cost_red_tt
		hidden_effect = {
			every_province = {
				limit = {
					region = maghreb_region
				}
				add_permanent_province_modifier = {
					name = to_triumph_warscore_cost_red
					duration = -1
				}
			}
		}
	}

	option = {
		name = to_triumph_event.b
		trigger = {
		    has_regency = no
		}
		add_prestige = 15
		add_legitimacy = 15
		add_heir_claim = 10
		add_splendor = 25
		custom_tooltip = nhs_dotted_line_tt
		if = {
		    limit = { to_enabled_european_culture_integration = yes }
		    custom_tooltip = to_increase_culture_integration_maghreb_region_tt
		}
		custom_tooltip = to_maghreb_region_warscore_cost_red_tt
		hidden_effect = {
			every_province = {
				limit = {
					region = maghreb_region
				}
				add_permanent_province_modifier = {
					name = to_triumph_warscore_cost_red
					duration = -1
				}
			}
		}
	}
}

# Triumph for Spania
# Code generated by triumphs/triumphs.py
country_event = {
	id = nhs_mission_events.32
	title = nhs_mission_events.32.t
	desc = nhs_mission_events.32.d
	picture = BYZANTINE_EAGLE_eventPicture
	
	trigger = {
	    nhs_check_all_elysian_tags = { CONDITION = tag }
		to_has_completed_triumph = {
		    REGION = iberia_region
		    CHECK_CITIES = yes
		}
        NOT = { has_country_flag = to_triumph_for_iberia_region }
        OR = {
			NOT = { has_country_flag = to_recent_triumph }
			had_country_flag = { flag = to_recent_triumph days = 10 }
		}
	}
	
	immediate = {
		hidden_effect = {
		    set_country_flag = to_triumph_for_iberia_region
		    clr_country_flag = to_recent_triumph
			set_country_flag = to_recent_triumph
		}
	}

	option = {
		name = to_triumph_event.a
		if = {
		    limit = {
		        has_regency = yes    
		    }
		    custom_tooltip = to_only_option_due_to_regency_tt
		    custom_tooltip = nhs_new_line_tt
		}
		add_prestige = 10
		add_army_tradition = 10
		custom_tooltip = nhs_dotted_line_tt
		if = {
		    limit = { to_enabled_european_culture_integration = yes }
		    custom_tooltip = to_increase_culture_integration_iberia_region_tt
		}
		custom_tooltip = to_iberia_region_warscore_cost_red_tt
		hidden_effect = {
			every_province = {
				limit = {
					region = iberia_region
				}
				add_permanent_province_modifier = {
					name = to_triumph_warscore_cost_red
					duration = -1
				}
			}
		}
	}

	option = {
		name = to_triumph_event.b
		trigger = {
		    has_regency = no
		}
		add_prestige = 15
		add_legitimacy = 15
		add_heir_claim = 10
		add_splendor = 25
		custom_tooltip = nhs_dotted_line_tt
		if = {
		    limit = { to_enabled_european_culture_integration = yes }
		    custom_tooltip = to_increase_culture_integration_iberia_region_tt
		}
		custom_tooltip = to_iberia_region_warscore_cost_red_tt
		hidden_effect = {
			every_province = {
				limit = {
					region = iberia_region
				}
				add_permanent_province_modifier = {
					name = to_triumph_warscore_cost_red
					duration = -1
				}
			}
		}
	}
}

# Triumph for Italia
# Code generated by triumphs/triumphs.py
country_event = {
	id = nhs_mission_events.33
	title = nhs_mission_events.33.t
	desc = nhs_mission_events.33.d
	picture = TO_TRIUMPH_IN_MILAN_eventPicture
	
	trigger = {
	    nhs_check_all_elysian_tags = { CONDITION = tag }
		to_has_completed_triumph = {
		    REGION = italy_region
		    CHECK_CITIES = yes
		}
        NOT = { has_country_flag = to_triumph_for_italy_region }
        OR = {
			NOT = { has_country_flag = to_recent_triumph }
			had_country_flag = { flag = to_recent_triumph days = 10 }
		}
	}
	
	immediate = {
		hidden_effect = {
		    set_country_flag = to_triumph_for_italy_region
		    clr_country_flag = to_recent_triumph
			set_country_flag = to_recent_triumph
		}
	}

	option = {
		name = to_triumph_event.a
		if = {
		    limit = {
		        has_regency = yes    
		    }
		    custom_tooltip = to_only_option_due_to_regency_tt
		    custom_tooltip = nhs_new_line_tt
		}
		add_prestige = 10
		add_army_tradition = 10
		custom_tooltip = nhs_dotted_line_tt
		if = {
		    limit = { to_enabled_european_culture_integration = yes }
		    custom_tooltip = to_increase_culture_integration_italy_region_tt
		}
		custom_tooltip = to_italy_region_warscore_cost_red_tt
		hidden_effect = {
			every_province = {
				limit = {
					region = italy_region
				}
				add_permanent_province_modifier = {
					name = to_triumph_warscore_cost_red
					duration = -1
				}
			}
		}
	}

	option = {
		name = to_triumph_event.b
		trigger = {
		    has_regency = no
		}
		add_prestige = 15
		add_legitimacy = 15
		add_heir_claim = 10
		add_splendor = 25
		custom_tooltip = nhs_dotted_line_tt
		if = {
		    limit = { to_enabled_european_culture_integration = yes }
		    custom_tooltip = to_increase_culture_integration_italy_region_tt
		}
		custom_tooltip = to_italy_region_warscore_cost_red_tt
		hidden_effect = {
			every_province = {
				limit = {
					region = italy_region
				}
				add_permanent_province_modifier = {
					name = to_triumph_warscore_cost_red
					duration = -1
				}
			}
		}
	}
}

# Triumph for Frankia
# Code generated by triumphs/triumphs.py
country_event = {
	id = nhs_mission_events.34
	title = nhs_mission_events.34.t
	desc = nhs_mission_events.34.d
	picture = TO_TRIUMPH_IN_PARIS_eventPicture
	
	trigger = {
	    nhs_check_all_elysian_tags = { CONDITION = tag }
		to_has_completed_triumph = {
		    REGION = france_region
		    CHECK_CITIES = yes
		}
        NOT = { has_country_flag = to_triumph_for_france_region }
        OR = {
			NOT = { has_country_flag = to_recent_triumph }
			had_country_flag = { flag = to_recent_triumph days = 10 }
		}
	}
	
	immediate = {
		hidden_effect = {
		    set_country_flag = to_triumph_for_france_region
		    clr_country_flag = to_recent_triumph
			set_country_flag = to_recent_triumph
		}
	}

	option = {
		name = to_triumph_event.a
		if = {
		    limit = {
		        has_regency = yes    
		    }
		    custom_tooltip = to_only_option_due_to_regency_tt
		    custom_tooltip = nhs_new_line_tt
		}
		add_prestige = 10
		add_army_tradition = 10
		custom_tooltip = nhs_dotted_line_tt
		if = {
		    limit = { to_enabled_european_culture_integration = yes }
		    custom_tooltip = to_increase_culture_integration_france_region_tt
		}
		custom_tooltip = to_france_region_warscore_cost_red_tt
		hidden_effect = {
			every_province = {
				limit = {
					region = france_region
				}
				add_permanent_province_modifier = {
					name = to_triumph_warscore_cost_red
					duration = -1
				}
			}
		}
	}

	option = {
		name = to_triumph_event.b
		trigger = {
		    has_regency = no
		}
		add_prestige = 15
		add_legitimacy = 15
		add_heir_claim = 10
		add_splendor = 25
		custom_tooltip = nhs_dotted_line_tt
		if = {
		    limit = { to_enabled_european_culture_integration = yes }
		    custom_tooltip = to_increase_culture_integration_france_region_tt
		}
		custom_tooltip = to_france_region_warscore_cost_red_tt
		hidden_effect = {
			every_province = {
				limit = {
					region = france_region
				}
				add_permanent_province_modifier = {
					name = to_triumph_warscore_cost_red
					duration = -1
				}
			}
		}
	}
}

# Triumph for Ano Germania
# Code generated by triumphs/triumphs.py
country_event = {
	id = nhs_mission_events.35
	title = nhs_mission_events.35.t
	desc = nhs_mission_events.35.d
	picture = BYZANTINE_EAGLE_eventPicture
	
	trigger = {
	    nhs_check_all_elysian_tags = { CONDITION = tag }
		to_has_completed_triumph = {
		    REGION = south_german_region
		    CHECK_CITIES = yes
		}
        NOT = { has_country_flag = to_triumph_for_south_german_region }
        OR = {
			NOT = { has_country_flag = to_recent_triumph }
			had_country_flag = { flag = to_recent_triumph days = 10 }
		}
	}
	
	immediate = {
		hidden_effect = {
		    set_country_flag = to_triumph_for_south_german_region
		    clr_country_flag = to_recent_triumph
			set_country_flag = to_recent_triumph
		}
	}

	option = {
		name = to_triumph_event.a
		if = {
		    limit = {
		        has_regency = yes    
		    }
		    custom_tooltip = to_only_option_due_to_regency_tt
		    custom_tooltip = nhs_new_line_tt
		}
		add_prestige = 10
		add_army_tradition = 10
		custom_tooltip = nhs_dotted_line_tt
		if = {
		    limit = { to_enabled_european_culture_integration = yes }
		    custom_tooltip = to_increase_culture_integration_south_german_region_tt
		}
		custom_tooltip = to_south_german_region_warscore_cost_red_tt
		hidden_effect = {
			every_province = {
				limit = {
					region = south_german_region
				}
				add_permanent_province_modifier = {
					name = to_triumph_warscore_cost_red
					duration = -1
				}
			}
		}
	}

	option = {
		name = to_triumph_event.b
		trigger = {
		    has_regency = no
		}
		add_prestige = 15
		add_legitimacy = 15
		add_heir_claim = 10
		add_splendor = 25
		custom_tooltip = nhs_dotted_line_tt
		if = {
		    limit = { to_enabled_european_culture_integration = yes }
		    custom_tooltip = to_increase_culture_integration_south_german_region_tt
		}
		custom_tooltip = to_south_german_region_warscore_cost_red_tt
		hidden_effect = {
			every_province = {
				limit = {
					region = south_german_region
				}
				add_permanent_province_modifier = {
					name = to_triumph_warscore_cost_red
					duration = -1
				}
			}
		}
	}
}

# Triumph for Anglia
# Code generated by triumphs/triumphs.py
country_event = {
	id = nhs_mission_events.36
	title = nhs_mission_events.36.t
	desc = nhs_mission_events.36.d
	picture = TO_TRIUMPH_IN_LONDON_eventPicture
	
	trigger = {
	    nhs_check_all_elysian_tags = { CONDITION = tag }
		to_has_completed_triumph = {
		    REGION = british_isles_region
		    CHECK_CITIES = yes
		}
        NOT = { has_country_flag = to_triumph_for_british_isles_region }
        OR = {
			NOT = { has_country_flag = to_recent_triumph }
			had_country_flag = { flag = to_recent_triumph days = 10 }
		}
	}
	
	immediate = {
		hidden_effect = {
		    set_country_flag = to_triumph_for_british_isles_region
		    clr_country_flag = to_recent_triumph
			set_country_flag = to_recent_triumph
		}
	}

	option = {
		name = to_triumph_event.a
		if = {
		    limit = {
		        has_regency = yes    
		    }
		    custom_tooltip = to_only_option_due_to_regency_tt
		    custom_tooltip = nhs_new_line_tt
		}
		add_prestige = 10
		add_army_tradition = 10
		custom_tooltip = nhs_dotted_line_tt
		if = {
		    limit = { to_enabled_european_culture_integration = yes }
		    custom_tooltip = to_increase_culture_integration_british_isles_region_tt
		}
		custom_tooltip = to_british_isles_region_warscore_cost_red_tt
		hidden_effect = {
			every_province = {
				limit = {
					region = british_isles_region
				}
				add_permanent_province_modifier = {
					name = to_triumph_warscore_cost_red
					duration = -1
				}
			}
		}
	}

	option = {
		name = to_triumph_event.b
		trigger = {
		    has_regency = no
		}
		add_prestige = 15
		add_legitimacy = 15
		add_heir_claim = 10
		add_splendor = 25
		custom_tooltip = nhs_dotted_line_tt
		if = {
		    limit = { to_enabled_european_culture_integration = yes }
		    custom_tooltip = to_increase_culture_integration_british_isles_region_tt
		}
		custom_tooltip = to_british_isles_region_warscore_cost_red_tt
		hidden_effect = {
			every_province = {
				limit = {
					region = british_isles_region
				}
				add_permanent_province_modifier = {
					name = to_triumph_warscore_cost_red
					duration = -1
				}
			}
		}
	}
}

# Triumph for Pannonia
# Code generated by triumphs/triumphs.py
country_event = {
	id = nhs_mission_events.37
	title = nhs_mission_events.37.t
	desc = nhs_mission_events.37.d
	picture = BYZANTINE_EAGLE_eventPicture
	
	trigger = {
	    nhs_check_all_elysian_tags = { CONDITION = tag }
		to_has_completed_triumph = {
		    REGION = carpathia_region
		    CHECK_CITIES = yes
		}
        NOT = { has_country_flag = to_triumph_for_carpathia_region }
        OR = {
			NOT = { has_country_flag = to_recent_triumph }
			had_country_flag = { flag = to_recent_triumph days = 10 }
		}
	}
	
	immediate = {
		hidden_effect = {
		    set_country_flag = to_triumph_for_carpathia_region
		    clr_country_flag = to_recent_triumph
			set_country_flag = to_recent_triumph
		}
	}

	option = {
		name = to_triumph_event.a
		if = {
		    limit = {
		        has_regency = yes    
		    }
		    custom_tooltip = to_only_option_due_to_regency_tt
		    custom_tooltip = nhs_new_line_tt
		}
		add_prestige = 10
		add_army_tradition = 10
		custom_tooltip = nhs_dotted_line_tt
		if = {
		    limit = { to_enabled_european_culture_integration = yes }
		    custom_tooltip = to_increase_culture_integration_carpathia_region_tt
		}
		custom_tooltip = to_carpathia_region_warscore_cost_red_tt
		hidden_effect = {
			every_province = {
				limit = {
					region = carpathia_region
				}
				add_permanent_province_modifier = {
					name = to_triumph_warscore_cost_red
					duration = -1
				}
			}
		}
	}

	option = {
		name = to_triumph_event.b
		trigger = {
		    has_regency = no
		}
		add_prestige = 15
		add_legitimacy = 15
		add_heir_claim = 10
		add_splendor = 25
		custom_tooltip = nhs_dotted_line_tt
		if = {
		    limit = { to_enabled_european_culture_integration = yes }
		    custom_tooltip = to_increase_culture_integration_carpathia_region_tt
		}
		custom_tooltip = to_carpathia_region_warscore_cost_red_tt
		hidden_effect = {
			every_province = {
				limit = {
					region = carpathia_region
				}
				add_permanent_province_modifier = {
					name = to_triumph_warscore_cost_red
					duration = -1
				}
			}
		}
	}
}

# Triumph for Kato Germania
# Code generated by triumphs/triumphs.py
country_event = {
	id = nhs_mission_events.38
	title = nhs_mission_events.38.t
	desc = nhs_mission_events.38.d
	picture = BYZANTINE_EAGLE_eventPicture
	
	trigger = {
	    nhs_check_all_elysian_tags = { CONDITION = tag }
		to_has_completed_triumph = {
		    REGION = low_countries_region
		    CHECK_CITIES = yes
		}
        NOT = { has_country_flag = to_triumph_for_low_countries_region }
        OR = {
			NOT = { has_country_flag = to_recent_triumph }
			had_country_flag = { flag = to_recent_triumph days = 10 }
		}
	}
	
	immediate = {
		hidden_effect = {
		    set_country_flag = to_triumph_for_low_countries_region
		    clr_country_flag = to_recent_triumph
			set_country_flag = to_recent_triumph
		}
	}

	option = {
		name = to_triumph_event.a
		if = {
		    limit = {
		        has_regency = yes    
		    }
		    custom_tooltip = to_only_option_due_to_regency_tt
		    custom_tooltip = nhs_new_line_tt
		}
		add_prestige = 10
		add_army_tradition = 10
		custom_tooltip = nhs_dotted_line_tt
		if = {
		    limit = { to_enabled_european_culture_integration = yes }
		    custom_tooltip = to_increase_culture_integration_low_countries_region_tt
		}
		custom_tooltip = to_low_countries_region_warscore_cost_red_tt
		hidden_effect = {
			every_province = {
				limit = {
					region = low_countries_region
				}
				add_permanent_province_modifier = {
					name = to_triumph_warscore_cost_red
					duration = -1
				}
			}
		}
	}

	option = {
		name = to_triumph_event.b
		trigger = {
		    has_regency = no
		}
		add_prestige = 15
		add_legitimacy = 15
		add_heir_claim = 10
		add_splendor = 25
		custom_tooltip = nhs_dotted_line_tt
		if = {
		    limit = { to_enabled_european_culture_integration = yes }
		    custom_tooltip = to_increase_culture_integration_low_countries_region_tt
		}
		custom_tooltip = to_low_countries_region_warscore_cost_red_tt
		hidden_effect = {
			every_province = {
				limit = {
					region = low_countries_region
				}
				add_permanent_province_modifier = {
					name = to_triumph_warscore_cost_red
					duration = -1
				}
			}
		}
	}
}