flavorETH.txt

(21 KB) Pobierz
########################################
# Events for Ethiopia
#
# written by Johan Andersson
########################################

namespace = flavor_eth
normal_or_historical_nations = yes

	
# Pero da Covilha
country_event = {
	id = flavor_eth.1
	title = flavor_eth.1.t
	desc = flavor_eth.1.d
	picture = SHIP_SAILING_eventPicture
	fire_only_once = yes

	trigger = {
		tag = ETH
		NOT = { is_year = 1550 }
		religion_group = christian
		
		any_owned_province = {
			has_discovered = POR
		}
		NOT = { war_with = POR }

	}

	mean_time_to_happen = {
		months = 30
	}
	
	
	option = { 
		name = flavor_eth.1.a
		ai_chance = { factor = 90 }
		add_prestige = 5
		custom_tooltip = flavor_eth.1.a.desc
		set_country_flag = portuguese_embassy
		hidden_effect = {
			capital_scope = {
				POR = {
					discover_province = PREV
				}
			}
		}
	}
	option = {
		name = flavor_eth.1.b	
		ai_chance = { factor = 5 }
		add_legitimacy = 5
		hidden_effect = {
			capital_scope = {
				POR = {
					discover_province = PREV
				}
			}
		}
	}
	option = {
		name = flavor_eth.1.c
		ai_chance = { factor = 5 }
		reverse_add_casus_belli = {
			target = POR
			type = cb_insult
			months = 60
		}
		hidden_effect = {
			capital_scope = {
				POR = {
					discover_province = PREV
				}
			}
		}
	}	
	
	
}

#An Embassy Is Here!
country_event = {
	id = flavor_eth.2
	title = flavor_eth.2.t
	desc = flavor_eth.2.d
	picture = DIPLOMACY_eventPicture
	fire_only_once = yes

	trigger = {
		tag = ETH
		has_country_flag = portuguese_embassy
		NOT = { war_with = POR }
	}

	mean_time_to_happen = {
		months = 90
	}
	
	
	option = { 
		name = flavor_eth.2.a
		trigger = {
			is_neighbor_of = MAM
		}
		POR = {
			country_event = {
				id = flavor_eth.3
				days = 180
				tooltip = flavor_eth.2.3
			}
		}
		add_mil_power = 25
	}
	option = {
		name = flavor_eth.2.b	
		add_adm_power = 50
		add_dip_power = 50
		add_mil_power = 50
	}
	option = {
		name = flavor_eth.2.c
		add_years_of_income = 1.0
	}	

}


#Prester John?
country_event = {
	id = flavor_eth.3
	title = flavor_eth.3.t
	desc = flavor_eth.3.d
	picture = DIPLOMACY_eventPicture
	is_triggered_only = yes
	
	
	option = { 
		name = flavor_eth.3.a
		ai_chance = { factor = 90 }
		hidden_effect = {
			ETH = {
				country_event = {
					id = flavor_eth.4
					days = 180
				}
			}
		}
		add_mil_power = -50
		add_papal_influence = 10
		reverse_add_opinion = { who = ETH modifier = opinion_military_aid }
			
	}
	option = {
		name = flavor_eth.3.b
		add_prestige = -5
		hidden_effect = {
			ETH = {
				country_event = {
					id = flavor_eth.5
					days = 1825
				}
			}
		}
		reverse_add_opinion = { who = ETH modifier = opinion_refused_military_aid }
	}

}

# aid given
country_event = {
	id = flavor_eth.4
	title = flavor_eth.4.t
	desc = flavor_eth.4.d
	picture = DIPLOMACY_eventPicture
	is_triggered_only = yes
	
	option = { 
		name = flavor_eth.4.a
		reverse_add_opinion = { who = POR modifier = opinion_military_aid }
		add_country_modifier = {
			name = eth_mil_aid_from_portugal
			duration = 3650
		}
	}
}

# aid refused
country_event = {
	id = flavor_eth.5
	title = flavor_eth.5.t
	desc = flavor_eth.5.d
	picture = DIPLOMACY_eventPicture
	is_triggered_only = yes
	
	option = { 
		name = flavor_eth.5.a
		add_legitimacy = -10
	}
}

########################################
# Additional Events for Ethiopia
#
# written by Henrik Lohmander
########################################

# Centralization reforms of Zara Yakob
country_event = {
	id = flavor_eth.6
	title = flavor_eth.6.t
	desc = flavor_eth.6.d
	picture = COURT_eventPicture
	
	fire_only_once = yes

	trigger = {
		tag = ETH
		NOT = { is_year = 1460 }
		has_ruler = "Zara Yakob"
	}

	mean_time_to_happen = {
		months = 48
	}
	
	
	option = { 
		name = flavor_eth.6.a
		ai_chance = { factor = 90 }
		add_ruler_modifier = { name = eth_zara_yakob_centralisation }
	}
	option = {
		name = flavor_eth.6.b	
		ai_chance = { factor = 10 }
		add_stability_or_adm_power = yes
	}
	
}

# The itinerant capital
country_event = {
	id = flavor_eth.7
	title = flavor_eth.7.t
	desc = flavor_eth.7.d
	picture = GOOD_WITH_MONARCH_eventPicture
	
	fire_only_once = yes

	trigger = {
		tag = ETH
		NOT = { is_year = 1460 }
	}

	mean_time_to_happen = {
		months = 48
	}
	
	
	option = { #This is how it always has been
		name = flavor_eth.7.a 
		ai_chance = { factor = 50 }
		add_stability_or_adm_power = yes
		set_country_flag = eth_itinerant_capital_flag
	}
	
	option = { 
		name = flavor_eth.7.b #Actively encourage cultural conversion of the countryside
		set_country_flag = eth_itinerant_capital_flag
		ai_chance = { factor = 50 }
		add_country_modifier = {
			name = eth_itinerant_capital
			duration = 3650
		}
	}
}

# Debre Berhan - The Mountain of Light
country_event = {
	id = flavor_eth.8
	title = flavor_eth.8.t
	desc = flavor_eth.8.d
	picture = CITY_VIEW_eventPicture
	
	fire_only_once = yes

	trigger = {
		tag = ETH
		is_year = 1455
		NOT = { is_year = 1520 }
		owns_core_province = 1213 #Shewa
		has_country_flag = eth_itinerant_capital_flag
	}

	mean_time_to_happen = {
		months = 195
	}
	
	
	option = {
		name = flavor_eth.8.a #The time has come for a permanent capital
		ai_chance = { factor = 90 }
		clr_country_flag = eth_itinerant_capital_flag
		set_country_flag = eth_debre_berhan_capital_flag
		add_adm_power = -25
		set_capital = 1213
		1213 = {
			rename_capital = "Debre Berhan"
		}
		every_owned_province = {
			limit = {
				OR = {
					province_id = 1213 #Shewa
					any_neighbor_province = {
						province_id = 1213
					}
				}
	 		}
			add_local_autonomy = -25
		}
	}
	
	option = {
		name = flavor_eth.8.b #Let us not break with tried traditions
		ai_chance = { factor = 10 }
		add_stability_or_adm_power = yes
	}
}

# Debre Berhan Plundered
province_event = {
	id = flavor_eth.9
	title = flavor_eth.9.t
	desc = flavor_eth.9.d
	picture = COUNTRY_COLLAPSE_eventPicture
	
	fire_only_once = yes

	trigger = {
		owned_by = ETH
		owner = {
			has_country_flag = eth_debre_berhan_capital_flag
		}
		is_capital = yes
		is_looted = yes
	}
	
	mean_time_to_happen = {
		months = 1
	}
	
	option = {
		name = flavor_eth.9.a #To the provinces!
		owner = {
			set_country_flag = eth_itinerant_capital_flag
			clr_country_flag = eth_debre_berhan_capital_flag
			add_stability = -1
		}
	}
}

# Gondar - A new Capital
country_event = {
	id = flavor_eth.10
	title = flavor_eth.10.t
	desc = flavor_eth.10.d
	picture = CITY_VIEW_eventPicture
	
	fire_only_once = yes

	trigger = {
		tag = ETH
		is_year = 1630
		owns_core_province = 1224 #Begmeder
	}

	mean_time_to_happen = {
		months = 195
		modifier = {
			factor = 0.75
			has_country_flag = eth_itinerant_capital_flag
		}
	}
	
	
	option = {
		name = flavor_eth.10.a #The time has come for a permanent capital
		clr_country_flag = eth_itinerant_capital_flag
		ai_chance = { factor = 90 }
		add_adm_power = -25
		set_capital = 1224
		every_owned_province = {
			limit = {
				OR = {
					province_id = 1224
					any_neighbor_province = {
						province_id = 1224
					}
				}
	 		}
			add_local_autonomy = -25
		}
	}
	
	option = {
		name = flavor_eth.10.b #Let us not break with tried traditions
		ai_chance = { factor = 10 }
		add_stability_or_adm_power = yes
	}
}

# Ethiopian-Mamluk Relations

#The fate of the Egyptian Copts
country_event = {
	id = flavor_eth.11
	title = flavor_eth.11.t
	desc = flavor_eth.11.d
	picture = ORTHODOX_eventPicture
	
	fire_only_once = yes

	trigger = {
		tag = ETH
		is_year = 1450
		NOT = { is_year = 1480 }
		exists = MAM
		NOT = {
			vassal_of = MAM
			overlord_of = MAM
			alliance_with = MAM
			war_with = MAM
		}
		MAM = {
			religion_group = muslim
			owns = 358
		}
	}

	mean_time_to_happen = {
		months = 90
	}
	
	
	option = {
		name = flavor_eth.11.a #Send a strongly worded letter
		ai_chance = { factor = 1 }
		every_country = {
			limit = {
				religion = coptic
			}
			add_opinion = { who = ETH modifier = opinion_good_relations }
		}
		MAM = {
			country_event = { id = flavor_eth.12 days = 14 }
		}
	}
	
	option = {
		name = flavor_eth.11.b #Avoid angering MAM
		ai_chance = { factor = 0 }
		add_prestige = -15
	}
	
	option = {
		name = flavor_eth.11.c #This is cause for war!
		ai_chance = { factor = 0 }
		add_casus_belli = {
			target = MAM
			type = cb_insult
			months = 1825
		}
		MAM = {
			country_event = { id = flavor_eth.13 days = 14 }
		}
	}
}

# A letter arrives from Ethiopia
country_event = {
	id = flavor_eth.12
	title = flavor_eth.12.t
	desc = flavor_eth.12.d
	picture = ACCUSATION_eventPicture
	
	is_triggered_only = yes
	
	
	option = {
		name = flavor_eth.12.a #Send a sarcastic reply.
		ai_chance = { factor = 90 }
		add_prestige = 5
		ETH = {
			country_event = { id = flavor_eth.14 days = 14 }
		}
	}
	
	option = {
		name = flavor_eth.12.b #Attempt to apologize and repair relations.
		ai_chance = { factor = 10 }
		add_prestige = -10
		ETH = {
			add_opinion = { who = MAM modifier = opinion_improved_relations }
		}
		ETH = {
			country_event = { id = flavor_eth.15 days = 1 }
		}
	}
}

# A letter arrives from Ethiopia
country_event = {
	id = flavor_eth.13
	title = flavor_eth.13.t
	desc = flavor_eth.13.d
	picture = ACCUSATION_eventPicture
	
	is_triggered_only = yes
	
	option = {
		name = flavor_eth.13.a #They wouldn't dare
		tooltip = {
			ETH = {
				add_casus_belli = {
					target = MAM
					type = cb_i...
Zgłoś jeśli naruszono regulamin