###########################
# Natal Events
###########################

add_namespace = natal

### Introduction events

country_event = { #Introduction/Spawn Troops
	id = natal.1
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.1" }
	title = natal.1.t
	desc = natal.1.d
	picture = GFX_report_event_SAF_cape_town

	is_triggered_only = yes

	option = { #Together we shall prevail!
		name = natal.1.a
		custom_effect_tooltip = SFR_tt_nmf_spawn
		hidden_effect = {
			load_oob = SFR
		}
		add_war_support = 0.1
		add_manpower = 25000
		SAF_add_federation_generals = yes
		hidden_effect = {
			country_event = { id = natal.10 days = 1 }
		}
	}
}

country_event = { #Rebels in Cape Town, Port Elizabeth and Johannesburg
	id = natal.2
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.2" }
	title = natal.2.t
	desc = natal.2.d
	picture = GFX_report_event_SAF_cape_town

	is_triggered_only = yes
	
	immediate = {
		hidden_effect = {
			SFR = {
				set_province_controller = 1833
				set_province_controller = 4696
				set_province_controller = 7576
				set_province_controller = 13764
				set_province_controller = 13765
				transfer_state = 946
				transfer_state = 1176
				transfer_state = 681
				hidden_effect = {
					load_oob = SFR_reinforcements
				}
				country_event = natal.3
				country_event = { id = natal.8 days = 2 }
			}
			681 = {
				create_unit = {
					division = "name = \"Cape Town Militia\" division_template = \"Loyalist Militia\" start_experience_factor = 0.1"
					allow_spawning_on_enemy_provs = yes
					prioritize_location = 1358
					owner = SFR
				}
			}
			946 = {
				create_unit = {
					division = "name = \"Port Elizabeth Militia\" division_template = \"Loyalist Militia\" start_experience_factor = 0.1"
					allow_spawning_on_enemy_provs = yes
					prioritize_location = 13763
					owner = SFR
				}
			}
			275 = {
				create_unit = {
					division = "name = \"Johannesburg Militia\" division_template = \"Loyalist Militia\" start_experience_factor = 0.1"
					allow_spawning_on_enemy_provs = yes
					prioritize_location = 13799
					owner = SFR
				}
			}
		}
	}

	option = { #Together we shall prevail!
		name = natal.2.a
		effect_tooltip = {
			SFR = {
				set_province_controller = 1833
				set_province_controller = 4696
				set_province_controller = 7576
				set_province_controller = 13764
				set_province_controller = 13765
				custom_effect_tooltip = SFR_tt_forces_spawn
				hidden_effect = {
					load_oob = SFR_reinforcements
					country_event = { id = natal.3 }
				}
			}
		}
	}
}

country_event = { #Rebels in Cape Town, Port Elizabeth and Johannesburg (Natal perspective)
	id = natal.3
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.3" }
	title = natal.3.t
	desc = natal.3.d
	picture = GFX_report_event_SAF_cape_town

	is_triggered_only = yes
	

	option = { #Together we shall prevail!
		name = natal.3.a
		effect_tooltip = {
			SFR = {
				set_province_controller = 1833
				set_province_controller = 4696
				set_province_controller = 7576
				set_province_controller = 13764	
				set_province_controller = 13765
				custom_effect_tooltip = natal_tt_forces_spawn
			}
		}
	}
}

country_event = { #Joining the entente
	id = natal.4
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.4" }
	title = natal.4.t
	desc = natal.4.d
	picture = GFX_report_event_SAF_cape_town

	is_triggered_only = yes
	
	trigger = {
		ENT = {
			exists = yes
			is_faction_leader = yes
			OR = {
				tag = CAN
				tag = GBR
			}
		}
	}
	
	option = { #Together we shall prevail!
		name = natal.4.a
		ENT = {
			country_event = { id = natal.5 days = 2 }
		}
	}
}

country_event = { #The reverse boer states want to join the entente
	id = natal.5
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.5" }
	title = natal.5.t
	desc = natal.5.d
	picture = GFX_report_event_SAF_cape_town

	is_triggered_only = yes
	

	option = { #Together we shall prevail!
		name = natal.5.a
		ai_chance = {
			factor = 80
			modifier = {
				factor = 0
				has_war = yes
				surrender_progress > 0
			}
			modifier = {
				factor = 0.75
				NOT = { is_in_faction_with = AST }
			}
			modifier = {
				factor = 0.5
				has_war_with = INT
			}
			modifier = {
				factor = 0.75
				country_exists = CSA
			}
		}
		custom_effect_tooltip = SFR_tt_rhodie_and_natal_join_entente
		custom_effect_tooltip = SFR_cannot_call_portugal_tooltip
		every_country = {
			limit = {
				OR = {
					tag = SFR
				}
			}
			country_event = { id = natal.6 days = 2 }
			add_timed_idea = {
				idea = SFR_idea_peace_cooldown
				days = 180
			}
		}
	}
	
	option = { #Good luck, but we won't be helping
		name = natal.5.b
		ai_chance = { factor = 20 }
		every_country = {
			limit = {
				OR = {
					tag = SFR
					tag = ZIM
				}
			}
			country_event = { id = natal.7 days = 2 }
		}
		set_country_flag = sfr_canada_not_interested
	}
}

country_event = { #Joined the entente
	id = natal.6
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.6" }
	title = natal.6.t
	desc = natal.6.d
	picture = GFX_report_event_SAF_cape_town

	is_triggered_only = yes
	

	option = { #Together we shall prevail!
		name = natal.6.a
		ENT = {
			add_to_faction = ROOT
		}
	}
}

country_event = { #No help from the entente
	id = natal.7
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.7" }
	title = natal.7.t
	desc = natal.7.d
	picture = GFX_report_event_SAF_cape_town

	is_triggered_only = yes
	

	option = { #Oh no!
		name = natal.6.a
		add_war_support = -0.05
	}
}

country_event = { #Port Elizabeth Declaration
	id = natal.8
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.8" }
	title = natal.8.t
	desc = natal.8.d
	picture = GFX_report_event_SAF_cape_town

	is_triggered_only = yes
	trigger = {
		has_war_with = SAF
	}

	option = { #We are the true South Africa
		name = natal.8.a
		custom_effect_tooltip = SFR_will_become_federation_after_war
		SAF = {
			every_owned_state = {
				limit = {
					NOT = {
						state = 946
					}
				}
				add_claim_by = SFR
			}
			every_owned_state = {
				limit = {
					state = 946
				}
				add_core_of = SFR
			}
			hidden_effect = {
				country_event = { id = natal.9 }
			}
		}
	}
}

country_event = { #Port Elizabeth Declaration (South African perspective)
	id = natal.9
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.9" }
	title = natal.9.t
	desc = natal.9.d
	picture = GFX_report_event_SAF_cape_town

	is_triggered_only = yes

	option = { #We are the true South Africa
		name = natal.9.a
		effect_tooltip = {
			every_owned_state = {
				limit = {
					NOT = {
						state = 946
					}
				}
				add_claim_by = SFR
			}
			every_owned_state = {
				limit = {
					state = 946
				}
				add_core_of = SFR
			}
		}
		custom_effect_tooltip = SAF_tt_boer_volunteers_rise
		hidden_effect = {
			load_oob = "SAF_Boer_Volunteers"
		}
	}
}

country_event = { #The navy defects to SFR
	id = natal.10
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.10" }
	title = natal.10.t
	desc = natal.10.d
	picture = GFX_report_event_SAF_cape_town

	is_triggered_only = yes
	

	option = { #Hurrah!
		name = natal.10.a
		custom_effect_tooltip = sfr_tt_hallifax_becomes_natalian
		hidden_effect = {
			SAF = {
				random_unit_leader = {
					limit = { has_id = 9802 }			
					remove_unit_leader = yes
				}
			}
			create_navy_leader = {
				name = "Guy Hallifax"
				portrait_path = "gfx/leaders/SAF/Portrait_SAF_Guy_Hallifax.png"
				traits = {
					blockade_runner
				}
				skill = 2
				attack_skill = 1
				defense_skill = 1
				maneuvering_skill = 3
				coordination_skill = 2
			}
		}
		SAF = {
			transfer_navy = {
				target = SFR
			}
			hidden_effect = {
				country_event = { id = natal.11 }
			}
		}
	}
}

country_event = { #The navy defects to SFR (SAF)
	id = natal.11
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.11" }
	title = natal.11.t
	desc = natal.11.d
	picture = GFX_report_event_SAF_cape_town

	is_triggered_only = yes
	

	option = { #Boo!
		name = natal.10.a
		custom_effect_tooltip = sfr_tt_hallifax_becomes_natalian
		effect_tooltip = {
			transfer_navy = {
				target = SFR
			}
		}
	}
}

country_event = { #Option for white peace for either Natal or Southern Rhodesia
	id = natal.12
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.12" }
	title = natal.12.t
	desc = natal.12.d
	picture = GFX_report_event_SAF_cape_town

	is_triggered_only = yes
	

	option = { #Let us sign a peace
		name = natal.12.a
		ai_chance = {
			factor = 100
			modifier = {
				factor = 0.5
				SAF = {
					surrender_progress > 0.2
				}
			}
			modifier = {
				factor = 0.5
				SAF = {
					surrender_progress > 0.5
				}
			}
			modifier = {
				factor = 0
				SAF = {
					surrender_progress > 0.8
				}
			}
		}
		hidden_effect = {
			SAF = {	country_event = { id = natal.13 } } #Newcastle Convention
		}
		country_event = { id = natal.14 }
	}
	
	option = { #We will not rest until the republic is destroyed!
		name = natal.12.b
		ai_chance = {
			factor = 100
			modifier = {
				factor = 0
				SAF = {
					surrender_progress < 0.2
				}
			}
			modifier = {
				factor = 0.5
				SAF = {
					surrender_progress < 0.5
				}
			}
			modifier = {
				factor = 0.5
				SAF = {
					surrender_progress < 0.8
				}
			}
		}
		custom_effect_tooltip = sfr_tt_no_more_peace
	}
}

country_event = { #Newcastle Convention (South African perspective)
	id = natal.13
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.13" }
	title = natal.13.t
	desc = natal.13.d
	picture = GFX_report_event_SAF_cape_town

	is_triggered_only = yes
	
	immediate = {
		hidden_effect = {
			if = { #If you defeated Rhodesia, they're dead
				limit = {
					ZIM = {
						has_capitulated = yes
					}
				}
				hidden_effect = {
					ZIM = {
						every_owned_state = {
							limit = {
								is_core_of = ZIM
							}
							remove_core_of = ZIM
							add_core_of = SAF
						}
					}
				}
				annex_country = {
					target = ZIM
					transfer_troops = no
				}
			}
			else = { #If not, give up your claims
				ZIM = {
					every_owned_state = {
						limit = {
							is_claimed_by = SAF
						}
						remove_claim_by = SAF
					}
				}
			}
			if = { #If you defeated Natal, they're dead too
				limit = {
					SFR = {
						has_capitulated = yes
					}
				}
				hidden_effect = {
					SFR = {
						every_owned_state = {
							limit = {
								is_core_of = SFR
							}
							remove_core_of = SFR
							add_core_of = SAF
						}
					}
				}
				annex_country = {
					target = SFR
					transfer_troops = no
				}
			}
			else = { #If not, give up your claims
				SFR = {
					every_owned_state = {
						limit = {
							is_claimed_by = SAF
						}
						remove_claim_by = SAF
					}
				}
			}
			if = { #If Natal has control over Lesotho, they keep it
				limit = {
					SFR = {
						controls_state = 85
					}
				}
				SFR = {
					transfer_state = 85
				}
				if = {
					limit = {
						85 = {
							is_claimed_by = SAF
						}
					}
					85 = {
						add_claim_by = SFR
						remove_claim_by = SAF
					}
				}
				else_if = {
					limit = {
						85 = {
							is_core_of = SAF
						}
					}
					85 = {
						add_core_of = SFR
						remove_core_of = SAF
					}
				}
				else = {
					85 = {
						add_claim_by = SFR
					}
				}
			}
			if = { #If Natal has control over Swaziland, they keep it
				limit = {
					SFR = {
						controls_state = 738
					}
				}
				SFR = {
					transfer_state = 738
				}
				if = {
					limit = {
						738 = {
							is_claimed_by = SAF
						}
					}
					738 = {
						add_claim_by = SFR
						remove_claim_by = SAF
					}
				}
				else_if = {
					limit = {
						738 = {
							is_core_of = SAF
						}
					}
					738 = {
						add_core_of = SFR
						remove_core_of = SAF
					}
				}
				else = {
					738 = {
						add_claim_by = SFR
					}
				}
			}
			SAF = { #Everything that is left will no longer be claimed by Natal. If they wanted the fed they needed to capitulate SAF
				every_owned_state = {
					limit = {
						is_claimed_by = SFR
					}
					remove_claim_by = SFR
				}
				every_owned_state = {
					limit = {
						is_core_of = SFR
					}
					remove_core_of = SFR
				}
			}
			every_country = { #And, white peace!
				limit = {
					has_war_with = SAF
					OR = {
						is_in_faction_with = ENT
						is_subject_of = ENT
						tag = ENT
					}
				}
				SAF = {
					white_peace = PREV
				}
			}
			ENT = {	country_event = { id = natal.14 } } #Briton's Newcastle Convention
			clr_global_flag = saf_boer_war
			SFR = {
				set_country_flag = sfr_boer_war_over
			}
		}
	}

	option = { #Signed
		name = natal.13.a
		effect_tooltip = {
			if = { #If you defeated Rhodesia, they're dead
				limit = {
					ZIM = {
						has_capitulated = yes
					}
				}
				hidden_effect = {
					ZIM = {
						every_owned_state = {
							limit = {
								is_core_of = ZIM
							}
							remove_core_of = ZIM
							add_core_of = SAF
						}
					}
				}
				annex_country = {
					target = ZIM
					transfer_troops = no
				}
			}
			else_if = { #If not, give up your claims
				limit = {
					country_exists = SFR
				}
				ZIM = {
					every_owned_state = {
						limit = {
							is_claimed_by = SAF
						}
						remove_claim_by = SAF
					}
				}
			}
			if = { #If you defeated Natal, they're dead too
				limit = {
					SFR = {
						has_capitulated = yes
					}
				}
				hidden_effect = {
					SFR = {
						every_owned_state = {
							limit = {
								is_core_of = SFR
							}
							remove_core_of = SFR
							add_core_of = SAF
						}
					}
				}
				annex_country = {
					target = SFR
					transfer_troops = no
				}
			}
			else_if = { #If not, give up your claims
				limit = {
					country_exists = SFR
				}
				SFR = {
					every_owned_state = {
						limit = {
							is_claimed_by = SAF
						}
						remove_claim_by = SAF
					}
				}
			}
			if = { #If Natal has control over Lesotho, they keep it
				limit = {
					SFR = {
						controls_state = 85
					}
				}
				SFR = {
					transfer_state = 85
				}
				if = {
					limit = {
						85 = {
							is_claimed_by = SAF
						}
					}
					85 = {
						add_claim_by = SFR
						remove_claim_by = SAF
					}
				}
				else_if = {
					limit = {
						85 = {
							is_core_of = SAF
						}
					}
					85 = {
						add_core_of = SFR
						remove_core_of = SAF
					}
				}
				else = {
					85 = {
						add_claim_by = SFR
					}
				}
			}
			if = { #If Natal has control over Swaziland, they keep it
				limit = {
					SFR = {
						controls_state = 738
					}
				}
				SFR = {
					transfer_state = 738
				}
				if = {
					limit = {
						738 = {
							is_claimed_by = SAF
						}
					}
					738 = {
						add_claim_by = SFR
						remove_claim_by = SAF
					}
				}
				else_if = {
					limit = {
						738 = {
							is_core_of = SAF
						}
					}
					738 = {
						add_core_of = SFR
						remove_core_of = SAF
					}
				}
				else = {
					738 = {
						add_claim_by = SFR
					}
				}
			}
			SAF = { #Everything that is left will no longer be claimed by Natal. If they wanted the fed they needed to capitulate SAF
				every_owned_state = {
					limit = {
						is_claimed_by = SFR
					}
					remove_claim_by = SFR
				}
				every_owned_state = {
					limit = {
						is_core_of = SFR
					}
					remove_core_of = SFR
				}
			}
			every_country = { #And, white peace!
				limit = {
					has_war_with = SAF
					OR = {
						is_in_faction_with = ENT
						is_subject_of = ENT
						tag = ENT
					}
				}
				SAF = {
					white_peace = PREV
				}
			}
		}
		custom_effect_tooltip = SAF_tt_boer_volunteers_stand_down
		hidden_effect = {
			delete_unit_template_and_units = {
				division_template = "Reserve Unit"
			}
			delete_unit_template_and_units = {
				division_template = "Commando Division"
			}
			delete_unit_template_and_units = {
				division_template = "Afrikaner Scouts"
			}
		}
	}
}

country_event = { #Newcastle Convention (British perspective)
	id = natal.14
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.14" }
	title = natal.14.t
	desc = natal.14.d
	picture = GFX_report_event_SAF_cape_town

	is_triggered_only = yes	

	option = { #Signed
		name = natal.14.a
		effect_tooltip = {
			if = { #If you defeated Rhodesia, they're dead
				limit = {
					ZIM = {
						has_capitulated = yes
						is_ai = yes
					}
				}
				hidden_effect = {
					ZIM = {
						every_owned_state = {
							limit = {
								is_core_of = ZIM
							}
							remove_core_of = ZIM
							add_core_of = SAF
						}
					}
				}
				annex_country = {
					target = ZIM
					transfer_troops = no
				}
			}
			else_if = { #If not, give up your claims
				limit = {
					country_exists = ZIM
					is_ai = yes
				}
				ZIM = {
					every_owned_state = {
						limit = {
							is_claimed_by = SAF
						}
						remove_claim_by = SAF
					}
				}
			}
			if = { #If you defeated Natal, they're dead too
				limit = {
					SFR = {
						has_capitulated = yes
					}
				}
				hidden_effect = {
					SFR = {
						every_owned_state = {
							limit = {
								is_core_of = SFR
							}
							remove_core_of = SFR
							add_core_of = SAF
						}
					}
				}
				annex_country = {
					target = SFR
					transfer_troops = no
				}
			}
			else_if = { #If not, give up your claims
				limit = {
					country_exists = SFR
				}
				SFR = {
					every_owned_state = {
						limit = {
							is_claimed_by = SAF
						}
						remove_claim_by = SAF
					}
				}
			}
			if = { #If Natal has control over Lesotho, they keep it
				limit = {
					SFR = {
						controls_state = 85
					}
				}
				SFR = {
					transfer_state = 85
				}
				if = {
					limit = {
						85 = {
							is_claimed_by = SAF
						}
					}
					85 = {
						add_claim_by = SFR
						remove_claim_by = SAF
					}
				}
				else_if = {
					limit = {
						85 = {
							is_core_of = SAF
						}
					}
					85 = {
						add_core_of = SFR
						remove_core_of = SAF
					}
				}
				else = {
					85 = {
						add_claim_by = SFR
					}
				}
			}
			if = { #If Natal has control over Swaziland, they keep it
				limit = {
					SFR = {
						controls_state = 738
					}
				}
				SFR = {
					transfer_state = 738
				}
				if = {
					limit = {
						738 = {
							is_claimed_by = SAF
						}
					}
					738 = {
						add_claim_by = SFR
						remove_claim_by = SAF
					}
				}
				else_if = {
					limit = {
						738 = {
							is_core_of = SAF
						}
					}
					738 = {
						add_core_of = SFR
						remove_core_of = SAF
					}
				}
				else = {
					738 = {
						add_claim_by = SFR
					}
				}
			}
			SAF = { #Everything that is left will no longer be claimed by Natal. If they wanted the fed they needed to capitulate SAF
				every_owned_state = {
					limit = {
						is_claimed_by = SFR
					}
					remove_claim_by = SFR
				}
				every_owned_state = {
					limit = {
						is_core_of = SFR
					}
					remove_core_of = SFR
				}
			}
			every_country = { #And, white peace!
				limit = {
					has_war_with = SAF
					OR = {
						is_in_faction_with = ENT
						is_subject_of = ENT
						tag = ENT
					}
				}
				SAF = {
					white_peace = PREV
				}
			}
		}
	}
}

country_event = { #2nd Pretoria Convention (British perspective)
	id = natal.15
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.15" }
	title = natal.15.t
	desc = natal.15.d
	picture = GFX_report_event_SAF_cape_town

	is_triggered_only = yes
	
	immediate = {
		hidden_effect = {
			#General cleanup
			every_state = {
				limit = {
					is_core_of = SFR
				}
				remove_core_of = SFR
				add_core_of = SAF
			}
			every_state = {
				limit = {
					is_claimed_by = SFR
				}
				remove_claim_by = SFR
			}
			if = {
				limit = { ZIM = { is_ai = yes } }
				every_state = {
					limit = {
						is_core_of = ZIM
					}
					remove_core_of = ZIM
					add_core_of = SAF
				}
				every_state = {
					limit = {
						is_claimed_by = ZIM
					}
					remove_claim_by = ZIM
				}
			}
			SAF = { #Annex Natal and Rhodesia
				annex_country = {
					target = SFR
					transfer_troops = no
				}
				if = {
				limit = { ZIM = { is_ai = yes } }
				annex_country = {
					target = ZIM
					transfer_troops = no
				}
			    }
			}
			every_country = { #And, white peace!
				limit = {
					has_war_with = SAF
					OR = {
						is_in_faction_with = ENT
						is_subject_of = ENT
						tag = ENT
					}
				}
				SAF = {
					white_peace = PREV
				}
			}
			SAF = {	country_event = { id = natal.15 } } #SAF's Pretoria Convention
			clr_global_flag = saf_boer_war
		}
	}

	option = { #Signed
		name = natal.14.a
		effect_tooltip = {
			SAF = { #Annex Natal and Rhodesia
				annex_country = {
					target = SFR
					transfer_troops = no
				}
				if = {
				limit = { ZIM = { is_ai = yes } }
				annex_country = {
					target = ZIM
					transfer_troops = no
				}
			    }
			}
			every_country = { #And, white peace!
				limit = {
					has_war_with = SAF
					OR = {
						is_in_faction_with = ENT
						is_subject_of = ENT
						tag = ENT
					}
				}
				SAF = {
					white_peace = PREV
				}
			}
		}
	}
}

country_event = { #2nd Pretoria Convention (South African perspective)
	id = natal.16
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.16" }
	title = natal.16.t
	desc = natal.16.d
	picture = GFX_report_event_SAF_cape_town

	is_triggered_only = yes

	option = { #Signed
		name = natal.16.a
		effect_tooltip = {
			SAF = { #Annex Natal and Rhodesia
				annex_country = {
					target = SFR
					transfer_troops = no
				}
				if = {
				limit = { ZIM = { is_ai = yes } }
				annex_country = {
					target = ZIM
					transfer_troops = no
				}
			    }
			}
			every_country = { #And, white peace!
				limit = {
					has_war_with = SAF
					OR = {
						is_in_faction_with = ENT
						is_subject_of = ENT
						tag = ENT
					}
				}
				SAF = {
					white_peace = PREV
				}
			}
		}
		custom_effect_tooltip = SAF_tt_boer_volunteers_stand_down
		hidden_effect = {
			delete_unit_template_and_units = {
				division_template = "Reserve Unit"
			}
			delete_unit_template_and_units = {
				division_template = "Commando Division"
			}
			delete_unit_template_and_units = {
				division_template = "Afrikaner Scouts"
			}
		}
	}
}

country_event = { #Cleanup event for if SAF is capitulated by the Entente or the entente never joined, meaning you rely on a peace conference
	id = natal.17
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.17" }
	hidden = yes

	fire_only_once = yes

	trigger = {
		OR = {
			tag = SAF
			tag = SFR
		}
		has_global_flag = saf_boer_war
		NOT = {
			has_war = yes
		}
	}
	
	mean_time_to_happen = {
		days = 7
	}

	option = {
		clr_global_flag = saf_boer_war
		every_state = {
			limit = {
				is_core_of = SFR
			}
			remove_core_of = SFR
			add_core_of = SAF
		}
		every_state = {
			limit = {
				is_claimed_by = SFR
			}
			remove_claim_by = SFR
		}
		if = {
			limit = { ZIM = { is_ai = yes } }
			every_state = {
				limit = {
					is_core_of = ZIM
				}
				remove_core_of = ZIM
				add_core_of = SAF
			}
			every_state = {
				limit = {
					is_claimed_by = ZIM
					ZIM = { is_ai = yes }
				}
				remove_claim_by = ZIM
			}
		}
	}
}

country_event = { #Native approach
	id = natal.18
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.18" }
	title = natal.18.t
	desc = natal.18.d

	is_triggered_only = yes

	option = { #Be nice
		name = natal.18.a
		ai_chance = {
			factor = 60
			modifier = {
				factor = 0.2
				has_government = paternal_autocrat
			}
		}
		add_stability = 0.02
		add_political_power = -50
		custom_effect_tooltip = sfr_tt_a_conciliatory_approach
		set_country_flag = sfr_nice_to_zulu
	}
	
	option = { #Repress
		name = natal.18.b
		ai_chance = {
			factor = 40
			modifier = {
				factor = 0.2
				has_government = social_democrat
			}
		}
		add_stability = -0.02
		add_political_power = 50
		custom_effect_tooltip = sfr_tt_a_hostile_approach
		set_country_flag = sfr_not_nice_to_zulu
	}
}

country_event = { #Working with Trade Unions
	id = natal.19
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.19" }
	title = natal.19.t
	desc = natal.19.d

	is_triggered_only = yes

	option = { #Work with the ICU
		name = natal.19.a
		ai_chance = {
			factor = 60
		}
		add_stability = 0.05
		add_popularity = { ideology = syndicalist popularity = 0.02 }
	}
	
	option = { #New unions are better
		name = natal.19.b
		ai_chance = {
			factor = 40
			modifier = {
				factor = 0.2
				has_government = social_democrat
			}
		}
		add_popularity = { ideology = social_democrat popularity = 0.02 }
	}
}

country_event = { #We want a zulu paramount chief, but the heir to Shaka is disputed
	id = natal.20
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.20" }
	title = natal.20.t
	desc = natal.20.d

	is_triggered_only = yes

	option = { #Pikokwaziwayo
		name = natal.20.a
		ai_chance = {
			factor = 35
		}
		add_stability = 0.05
	}
	
	option = { #Thandayiphi
		name = natal.20.b
		ai_chance = {
			factor = 35
		}
		add_political_power = 25
	}
	
	option = { #Cyprian
		name = natal.20.b
		ai_chance = {
			factor = 30
		}
		add_political_power = -25
	}
}

country_event = { #Work with John Dube
	id = natal.21
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.21" }
	title = natal.21.t
	desc = natal.21.d

	is_triggered_only = yes

	option = { #Excellent
		name = natal.21.a
		add_political_power = 50
	}
}

country_event = { #Native approach
	id = natal.22
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.22" }
	title = natal.22.t
	desc = natal.22.d

	is_triggered_only = yes

	option = { #Be nice
		name = natal.22.a
		ai_chance = {
			factor = 60
			modifier = {
				factor = 0.2
				has_government = paternal_autocrat
			}
		}
		add_stability = 0.02
		add_political_power = -50
		custom_effect_tooltip = sfr_tt_a_conciliatory_approach
		set_country_flag = sfr_nice_to_indians
	}
	
	option = { #Repress
		name = natal.22.b
		ai_chance = {
			factor = 40
			modifier = {
				factor = 0.2
				has_government = social_democrat
			}
		}
		add_stability = -0.02
		add_political_power = 50
		custom_effect_tooltip = sfr_tt_a_hostile_approach
		set_country_flag = sfr_not_nice_to_indians
	}
}

country_event = { #Zulu vs Indian riot
	id = natal.23
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.23" }
	title = natal.23.t
	desc = natal.23.d

	is_triggered_only = yes

	option = { #Blockade the Central Indian district, protract the violence
		name = natal.23.a
		trigger = {
			has_completed_focus = SFR_carry_big_stick
			has_completed_focus = SFR_restrict_indian_land_ownership
		}
		719 = {
			add_manpower = -142
		}
		custom_effect_tooltip = sfr_tt_indians_and_zulu_fight
		add_political_power = 50
		add_stability = 0.1
	}
	
	option = { #Immediate intervention is necessary, crack down on the Zulu's
		name = natal.23.b
		trigger = {
			NOT = {
				has_completed_focus = SFR_restrict_indian_land_ownership
			}
		}
		custom_effect_tooltip = sfr_tt_zulu_crackdown_justified
		719 = {
			add_manpower = -27
		}
		add_political_power = 50
		add_stability = 0.1
	}
	
	option = { #Let the Zulu enjoy the Indian cuisine
		name = natal.23.c
		trigger = {
			NOT = {
				has_completed_focus = SFR_carry_big_stick
			}
		}
		custom_effect_tooltip = sfr_tt_indians_forced_on_the_run
		719 = {
			add_manpower = -284
		}
		add_political_power = 50
		add_stability = 0.1
	}
}

country_event = { #Asiatic Representation Council
	id = natal.24
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.24" }
	title = natal.24.t
	desc = natal.24.d

	is_triggered_only = yes

	option = { #Excellent
		name = natal.24.a
		increase_ruling_party_popularity_by_5 = yes
		swap_ideas = { add_idea = SFR_idea_represented_indian_diaspora remove_idea = SFR_idea_indian_diaspora_no_pass_laws }
	}
}

# Elections
country_event = {
	id = natal.25
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.25" }
	title = natal.25.t
	desc = natal.25.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes
	immediate = {
		set_country_flag = saf_flag_elections_held
	}

	option = { #Heaton Nicholls and the UFP win
		name = natal.25.a
		ai_chance = {
			factor = 70
		}
		add_popularity = {
			ideology = market_liberal
			popularity = 0.1
		}
		meta_effect = {
			text = {
				set_politics = {
					ruling_party = market_liberal
					last_election = "[CURRENT_DATE]"
					election_frequency = 60
					elections_allowed = yes
				}
			}
			CURRENT_DATE = "[?global.date.GetDateStringNoHour]"
		}
		set_country_leader_ideology = marlib_toryism_subtype
		remove_all_ministers = yes
		add_ideas = {
			SFR_Heaton_Nicholls_hog_mli
			SFR_Heaton_Nicholls_naaf_mli
			SFR_Joseph_Sullivan_eco_mli
			SFR_Arthur_R_Selby_sec_mli
		}
	}
	
	option = { #Charles Stallard and the Dominion Party
		name = natal.25.b
		ai_chance = {
			factor = 20
		}
		add_popularity = {
			ideology = paternal_autocrat
			popularity = 0.15
		}
		SAF_move_governor_general_pataut = yes
		meta_effect = {
			text = {
				set_politics = {
					ruling_party = paternal_autocrat
					last_election = "[CURRENT_DATE]"
					election_frequency = 60
					elections_allowed = yes
				}
			}
			CURRENT_DATE = "[?global.date.GetDateStringNoHour]"
		}
		set_country_leader_ideology = pataut_toryism_subtype
		remove_all_ministers = yes
		add_ideas = {
			SFR_Charles_Stallard_hog_pau
			SFR_Vernon_Shearer_for_pau
			SFR_J_R_More_eco_pau
			SFR_Deneys_Reitz_sec_sco
		}
	}
	
	option = { #Thomas Boydell and the Labour Party with SAP support
		name = natal.25.c
		ai_chance = {
			factor = 10
		}
		add_popularity = {
			ideology = social_democrat
			popularity = 0.25
		}
		SAF_move_governor_general_socdem = yes
		meta_effect = {
			text = {
				set_politics = {
					ruling_party = social_democrat
					last_election = "[CURRENT_DATE]"
					election_frequency = 60
					elections_allowed = yes
				}
			}
			CURRENT_DATE = "[?global.date.GetDateStringNoHour]"
		}
		set_country_leader_ideology = socdem_apartheid_socialism_subtype
		remove_all_ministers = yes
		add_ideas = {
			SFR_Thomas_Boydell_hog_sde
			SFR_Douglas_Mitchell_for_sco
			SFR_R_G_L_Mathias_eco_sde
			SFR_C_F_Miles_Cadman_sec_sde
		}
		add_soccon_to_coalition = yes
	}
}

country_event = { #Victory in the third Boer war
	id = natal.26
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.26" }
	title = natal.26.t
	desc = natal.26.d
	picture = GFX_report_event_SAF_cape_town

	is_triggered_only = yes
	trigger = {
		tag = SFR
	}

	option = { #We are the true South Africa
		name = natal.26.a
		set_cosmetic_tag = SAF_federation
		load_focus_tree = SFR_federation_focus
		set_capital = { state = 1176 }
		hidden_effect = {
			ENT = { set_country_flag = sfr_mission_completed }
			ZIM = { set_country_flag = sfr_mission_completed }
			create_country_leader = {
				name = "James La Guma"
				picture = "gfx/leaders/SAF/Portrait_SAF_James_La_Guma.png"
				desc = "POLITICS_JIMMY_LA_GUMA_DESC"
				expire = "1.1.1"
				ideology = tot_left_panafricanism_subtype
			}
			create_country_leader = {
				name = "Clements Kadalie"
				picture = "gfx/leaders/SAF/Portrait_SAF_Clement_Kadalie.png"
				desc = "POLITICS_CLEM_KADALIE_DESC"
				expire = "1.1.1"
				ideology = democratic_syndicalism_subtype
			}
			create_country_leader = {
				name = "Johannes van Rensburg"
				desc = "POLITICS_JOHANNES_VAN_RENSBURG_DESC"
				picture = "gfx/leaders/SAF/Portrait_SAF_Johannes_van_Rensburg.png"
				expire = "1.1.1"
				ideology = natpop_boer_nationalism_subtype
			}
			719 = {
				set_province_name = {
					id = 1468
					name = "Durban"
				}
			}
			remove_ideas = SFR_idea_indian_diaspora
			remove_ideas = SFR_idea_syndicalism_zulu
			add_ideas = SAF_idea_slavery
			add_ideas = SFR_idea_bittereinder_resistance
			set_popularities = {
				totalist = 2
				radical_socialist = 3
				syndicalist = 1
				social_democrat = 4
				social_liberal = 32
				market_liberal = 44
				social_conservative = 0
				authoritarian_democrat = 0
				paternal_autocrat = 4
				national_populist = 10
			}
			clr_global_flag = saf_boer_war
			SAF_synchronize_trees = yes
		}
	}
}

# Elections
country_event = {
	id = natal.27
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.27" }
	title = natal.27.t
	desc = natal.27.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes
	immediate = {
		set_country_flag = sfr_flag_fed_elections_held
	}

	option = { #Heaton Nicholls and the UFP win
		name = natal.27.a
		ai_chance = {
			factor = 70
		}
		add_popularity = {
			ideology = market_liberal
			popularity = 0.1
		}
		meta_effect = {
			text = {
				set_politics = {
					ruling_party = market_liberal
					last_election = "[CURRENT_DATE]"
					election_frequency = 60
					elections_allowed = yes
				}
			}
			CURRENT_DATE = "[?global.date.GetDateStringNoHour]"
		}
		set_country_leader_ideology = marlib_toryism_subtype
		remove_all_ministers = yes
		add_ideas = {
			SFR_Heaton_Nicholls_hog_mli
			SFR_Heaton_Nicholls_naaf_mli
			SFR_Joseph_Sullivan_eco_mli
			SFR_Arthur_R_Selby_sec_mli
		}
	}
	
	option = { #Brookes and the Liberal Party
		name = natal.27.b
		ai_chance = {
			factor = 20
		}
		add_popularity = {
			ideology = social_liberal
			popularity = 0.1
		}
		SAF_move_governor_general_soclib = yes
		meta_effect = {
			text = {
				set_politics = {
					ruling_party = social_liberal
					last_election = "[CURRENT_DATE]"
					election_frequency = 60
					elections_allowed = yes
				}
			}
			CURRENT_DATE = "[?global.date.GetDateStringNoHour]"
		}
		set_country_leader_ideology = soclib_progressive_democracy_subtype
		remove_all_ministers = yes
		add_ideas = {
			SFR_Edgar_Harry_Brookes_hog_sli
			SFR_Alan_Paton_naaf_sli
			SFR_J_G_N_Strauss_eco_sco
			SFR_Deneys_Reitz_sec_sco
		}
		hidden_effect = { 
			country_event = { id = natal.53 days = 365 random = 100 }
			country_event = { id = natal.28 days = 30 }
		}
	}
}

# Dominionist Coup Attempt
country_event = {
	id = natal.28
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.28" }
	title = natal.28.t
	desc = natal.28.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes
	immediate = {
		set_country_flag = sfr_flag_fed_elections_held
	}

	option = { #Gov-General supports Coup
		name = natal.28.a
		ai_chance = {
			factor = 60
		}
		add_popularity = {
			ideology = paternal_autocrat
			popularity = 0.1
		}
		set_politics = {
			ruling_party = paternal_autocrat
			elections_allowed = no
		}
		SAF_move_governor_general_pataut = yes
		set_country_leader_ideology = pataut_toryism_subtype
		remove_all_ministers = yes
		add_ideas = {
			SFR_Charles_Stallard_hog_pau
			SFR_Vernon_Shearer_for_pau
			SFR_J_R_More_eco_pau
			SFR_Deneys_Reitz_sec_sco
		}
	}
	
	option = { #Gove-General does not support the coup
		name = natal.28.b
		ai_chance = {
			factor = 40
		}
		add_stability = -0.1
		hidden_effect = {
			country_event = { id = natal.29 days = 2 }
		}
	}
}

# Dominionist Coup Attempt fails
country_event = {
	id = natal.29
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.29" }
	title = natal.29.t
	desc = natal.29.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes
	immediate = {
		set_country_flag = sfr_flag_fed_elections_held
	}

	option = { #Gov-General supports Coup
		name = natal.27.a
		add_popularity = {
			ideology = social_liberal
			popularity = 0.1
		}
	}
}
country_event = { #Natal - British India Request
	id = natal.40
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.40" }
	title = natal.40.t
	desc = natal.40.d
	picture = GFX_report_event_PRF_war

	is_triggered_only = yes
	
	option = { # 
		name = natal.40.a
		hidden_effect = {
			DEH = { country_event = { id = natal.41 days = 7 }
			}	
		}
	}
}	

country_event = { #Natal Request Support 
	id = natal.41
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.40" }
	title = natal.41.t
	desc = natal.41.d
	picture = GFX_report_event_PRF_war

	is_triggered_only = yes
	
	option = { # They can fight thier own wars 
		name = natal.41.a
		ai_chance = {
			factor = 0
			#Modifiers to be added later 
		}		
		hidden_effect = {
			SFR = { country_event = { id = natal.42 days = 7 } }
		}
	}
	option = { # Of course good fellow
		name = natal.41.b
		ai_chance = {
			factor = 100
			#Modifiers to be added later 
		}		
		hidden_effect = {
			SFR = { country_event = { id = natal.43 days = 7 }
			}	
		}
	}	
}

country_event = { # British India Reply - DENIED!
	id = natal.42
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.42" }
	title = natal.42.t
	desc = natal.42.d
	picture = GFX_report_event_PRF_war

	is_triggered_only = yes
	
	option = { # Uncouth Indian Swine
		name = natal.42.a
		add_stability = -0.1
		hidden_effect = { country_event = { id = natal.44 days = 14 }	}
	}
}
country_event = { # British India Reply - Yes!!
	id = natal.43
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.43" }
	title = natal.43.t
	desc = natal.43.d
	picture = GFX_report_event_PRF_war

	is_triggered_only = yes
	
	option = { # One less problem 
		name = natal.43.a
		add_stability = 0.05
		load_oob = SFR_British_India
		add_manpower = 5000	
	hidden_effect = {
		country_event = { id = natal.45 days = 14 }
		}	
	}
}
country_event = { # Natal Indian Council - British India Aid Declined
	id = natal.44
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.44" }
	title = natal.44.t
	desc = natal.44.d
	picture = GFX_report_event_PRF_war

	is_triggered_only = yes
	
	option = { # I think not
		name = natal.44.a
		add_timed_idea = {
			idea = SFR_Natal_Indians_Prop_Denied
			days = 180
		}
	}
}
country_event = { # Natal Indian Council - British India Aid Granted
	id = natal.45
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.45" }
	title = natal.45.t
	desc = natal.45.d
	picture = GFX_report_event_PRF_war

	is_triggered_only = yes
	
	option = { # 
		name = natal.45.a	
		add_timed_idea = {
			idea = SFR_Natal_Indians_Prop_Accepted
			days = 180
		}	
	}
}
country_event = { # Natal Stands Truimph
	id = natal.46
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.46" }
	title = natal.46.t
	desc = natal.46.d
	picture = GFX_report_event_PRF_war

	is_triggered_only = yes
	
	option = { # 
		name = natal.46.a	
		add_political_power = 100
		add_stability = 0.05
		custom_effect_tooltip = SFR_deescalation
		hidden_effect = {
			add_offsite_building = {
					type = arms_factory
					level = -1
			}
			swap_ideas = {
				remove_idea = war_economy
				add_idea = partial_economic_mobilisation
			}
			if = { #Removing counter insurgency ideas
				limit = {
					has_idea = SFR_idea_counterinsurgency_idea
				}
				remove_ideas = SFR_idea_counterinsurgency_idea
			}
			else = {
				remove_ideas = SFR_idea_counterinsurgency_idea_1
			}
		}
	}
}
country_event = { # The Zulu Question
	id = natal.47
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.47" }
	title = natal.47.t
	desc = natal.47.d
	picture = GFX_report_event_SAF_apartheid_2

	is_triggered_only = yes
	
	option = { # 
		name = natal.47.a	
		add_ideas = SFR_Natal_African_Rifles
		}	
	}
country_event = { # Expanding Native Labour
	id = natal.48
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.48" }
	title = natal.48.t
	desc = { 
		text = natal.48.d
		trigger = { 
			has_completed_focus = SFR_carry_big_stick 
		}
	}
	desc = { 
		text = natal.48.e
		trigger = { 
			has_completed_focus = SFR_speak_softly
		}
	}	
	picture = GFX_report_event_SAF_apartheid_2

	is_triggered_only = yes
	
	option = { # Labour Battalion
		trigger = { 
			has_completed_focus = SFR_carry_big_stick
		}
		name = natal.48.a	
			add_stability = -0.05
			swap_ideas = { 
			remove_idea = SFR_Natal_African_Rifles 
			add_idea = SFR_Natal_Labour_Batt 
			}
		}
	option = { # Labour Battalion
		trigger = { 
			has_completed_focus = SFR_speak_softly
		}
		name = natal.48.b	
			add_stability = 0.05
			swap_ideas = { 
			remove_idea = SFR_Natal_African_Rifles 
			add_idea = SFR_Natal_African_Rifles_expanded 
			}
		}			
	}	
country_event = { #First Shipment 
	id = natal.50
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.50" }
	title = natal.50.t
	desc = natal.50.d
	picture = GFX_report_event_SAF_cape_town

	is_triggered_only = yes
	
	option = { #
		name = natal.50.a
		add_political_power = 50
		add_equipment_to_stockpile = {
			type = infantry_equipment_1
			amount = 500
			producer = CAN
		}
		add_equipment_to_stockpile = { 
			type = artillery_equipment_1
			amount = 100
			producer = CAN
		}
		add_equipment_to_stockpile = { 
			type = small_plane_airframe_0
			amount = 20
			producer = CAN
		}	
		add_equipment_to_stockpile = { 
			type = support_equipment
			amount = 50
			producer = NFA
		}		
	}
}

# Election loop as South African Fed
country_event = {
	id = natal.51
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.51" }
	title = natal.51.t
	desc = natal.51.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes
	trigger = {
		has_country_flag = sfr_flag_fed_elections_held
		has_cosmetic_tag = SAF_federation
	}

	option = { #Heaton Nicholls and the UFP win
		name = natal.51.a
		ai_chance = {
			factor = 70
		}
		if = {
			limit = {
				market_liberal < 0.5
			}
			add_popularity = {
				ideology = market_liberal
				popularity = 0.05
			}
		}
		SAF_move_governor_general_marklib = yes
		set_politics = {
			ruling_party = market_liberal
			elections_allowed = yes
		}
		set_country_leader_ideology = marlib_toryism_subtype
		remove_all_ministers = yes
		add_ideas = {
			SFR_Heaton_Nicholls_hog_mli
			SFR_Heaton_Nicholls_naaf_mli
			SFR_Joseph_Sullivan_eco_mli
			SFR_Arthur_R_Selby_sec_mli
		}
	}
	
	option = { #Brookes and the Liberal Party
		name = natal.51.b
		ai_chance = {
			factor = 20
		}
		if = {
			limit = {
				social_liberal < 0.5
			}
			add_popularity = {
				ideology = social_liberal
				popularity = 0.05
			}
		}
		SAF_move_governor_general_soclib = yes
		set_politics = {
			ruling_party = social_liberal
			elections_allowed = yes
		}
		set_country_leader_ideology = soclib_progressive_democracy_subtype
		remove_all_ministers = yes
		add_ideas = {
			SFR_Edgar_Harry_Brookes_hog_sli
			SFR_Alan_Paton_naaf_sli
			SFR_J_G_N_Strauss_eco_sco
			SFR_Deneys_Reitz_sec_sco
		}
	}
}

# Elections loop Natal
country_event = {
	id = natal.52
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.52" }
	title = natal.52.t
	desc = natal.52.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes
	trigger = {
		has_country_flag = saf_flag_elections_held
		NOT = {
			has_cosmetic_tag = SAF_federation
		}
	}

	option = { #Heaton Nicholls and the UFP win
		name = natal.52.a
		ai_chance = {
			factor = 70
		}
		if = {
			limit = {
				market_liberal < 0.5
			}
			add_popularity = {
				ideology = market_liberal
				popularity = 0.05
			}
		}
		SAF_move_governor_general_marklib = yes
		set_politics = {
			ruling_party = market_liberal
			elections_allowed = yes
		}
		set_country_leader_ideology = marlib_toryism_subtype
		remove_all_ministers = yes
		add_ideas = {
			SFR_Heaton_Nicholls_hog_mli
			SFR_Heaton_Nicholls_naaf_mli
			SFR_Joseph_Sullivan_eco_mli
			SFR_Arthur_R_Selby_sec_mli
		}
	}
	
	option = { #Charles Stallard and the Dominion Party
		name = natal.52.b
		ai_chance = {
			factor = 20
		}
		add_popularity = {
			ideology = paternal_autocrat
			popularity = 0.15
		}
		SAF_move_governor_general_pataut = yes
		set_politics = {
			ruling_party = paternal_autocrat
			elections_allowed = no
		}
		set_country_leader_ideology = pataut_toryism_subtype
		remove_all_ministers = yes
		add_ideas = {
			SFR_Charles_Stallard_hog_pau
			SFR_Vernon_Shearer_for_pau
			SFR_J_R_More_eco_pau
			SFR_Deneys_Reitz_sec_sco
		}
	}
	
	option = { #Thomas Boydell and the Labour Party with SAP support
		name = natal.52.c
		ai_chance = {
			factor = 10
		}
		if = {
			limit = {
				social_democrat < 0.5
			}
			add_popularity = {
				ideology = social_democrat
				popularity = 0.05
			}
		}
		SAF_move_governor_general_socdem = yes
		set_politics = {
			ruling_party = social_democrat
			elections_allowed = yes
		}
		set_country_leader_ideology = socdem_apartheid_socialism_subtype
		remove_all_ministers = yes
		add_ideas = {
			SFR_Thomas_Boydell_hog_sde
			SFR_Douglas_Mitchell_for_sco
			SFR_R_G_L_Mathias_eco_sde
			SFR_C_F_Miles_Cadman_sec_sde
		}
	}
}

country_event = { #Coloured Enfranchisement Act for the Federation
	id = natal.53
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.53" }
	title = natal.53.t
	desc = natal.53.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes
	
	option = { # Hurrah!
		name = natal.53.a
		add_stability = 0.1
		hidden_effect = {
			SFR = { country_event = { id = saf.172 days = 365 random = 100 } }
		}
	}
}

country_event = { #Language battle in Stellenbosch
	id = natal.54
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.54" }
	title = natal.54.t
	desc = natal.54.d
	picture = GFX_report_event_generic_scandal

	is_triggered_only = yes
	
	option = { # Close them if necessary
		name = natal.54.a
		ai_chance = {
			factor = 50
		}
		add_stability = -0.1
		add_political_power = -25
	}
	
	option = { # Just revoke all their funding
		name = natal.54.b
		ai_chance = {
			factor = 50
		}
		add_political_power = -20
	}
}

country_event = { #Canada wants to quit the Boer War and focus on the Homecoming
	id = natal.55
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.55" }
	title = natal.55.t
	desc = natal.55.d
	picture = GFX_report_event_generic_scandal

	fire_only_once = yes
	mean_time_to_happen = { 
		days = 60
	}
	trigger = {
		tag = ENT
		has_war_with = ENG
		has_war_with = SAF
		has_global_flag = saf_boer_war
		NOT = {
			has_idea = SFR_idea_peace_cooldown
		}
	}
	
	option = { # Offer SAF peace
		name = natal.55.a
		ai_chance = {
			factor = 80
			modifier = {
				factor = 0.5
				SAF = {
					surrender_progress > 0.2
				}
			}
			modifier = {
				factor = 0.5
				SAF = {
					surrender_progress > 0.5
				}
			}
			modifier = {
				factor = 0
				SAF = {
					surrender_progress > 0.8
				}
			}
		}
		SAF = {
			country_event = { id = natal.56 days = 2 }
		}
	}
	
	option = { # We're about to defeat them
		name = natal.55.b
		ai_chance = {
			factor = 20
		}
		add_political_power = -10
	}
}

country_event = { #Peace with the Canadians?
	id = natal.56
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.56" }
	title = natal.56.t
	desc = natal.56.d
	picture = GFX_report_event_generic_scandal

	is_triggered_only = yes
	
	option = { # Yes
		name = natal.56.a
		ai_chance = {
			factor = 80
			modifier = {
				factor = 0.5
				SFR = {
					has_capitulated = yes
				}
			}
			modifier = {
				factor = 0.5
				ZIM = {
					has_capitulated = yes
				}
			}
			modifier = {
				factor = 0.5
				SAF = {
					surrender_progress < 0.1
				}
			}
		}
		if = {
			limit = {
				NOT = {
					country_exists = SFR
				}
			}
			release = SFR
		}
		if = {
			limit = {
				NOT = {
					country_exists = ZIM
				}
			}
			release = ZIM
		}
		ZIM = {
			every_owned_state = {
				limit = {
					is_claimed_by = SAF
				}
				remove_claim_by = SAF
			}
		}
		SFR = {
			every_owned_state = {
				limit = {
					is_claimed_by = SAF
				}
				remove_claim_by = SAF
			}
		}
		SAF = { #Everything that is left will no longer be claimed by Natal.
			every_owned_state = {
				limit = {
					is_claimed_by = SFR
				}
				remove_claim_by = SFR
			}
			every_owned_state = {
				limit = {
					is_core_of = SFR
				}
				remove_core_of = SFR
			}
		}
		every_country = { #And, white peace!
			limit = {
				has_war_with = SAF
				OR = {
					is_in_faction_with = ENT
					is_subject_of = ENT
					tag = ENT
				}
			}
			SAF = {
				white_peace = PREV
			}
		}
		clr_global_flag = saf_boer_war
		custom_effect_tooltip = SAF_tt_boer_volunteers_stand_down
		hidden_effect = {
			delete_unit_template_and_units = {
				division_template = "Reserve Unit"
			}
			delete_unit_template_and_units = {
				division_template = "Commando Division"
			}
			delete_unit_template_and_units = {
				division_template = "Afrikaner Scouts"
			}
		}
		ENT = {
			country_event = { id = natal.57 }
		}
	}
	
	option = { # We're about to defeat them
		name = natal.56.b
		ai_chance = {
			factor = 20
			modifier = {
				factor = 0.5
				SAF = {
					surrender_progress > 0.2
				}
			}
			modifier = {
				factor = 0.5
				SAF = {
					surrender_progress > 0.5
				}
			}
			modifier = {
				factor = 0
				SAF = {
					surrender_progress > 0.8
				}
			}
		}
		add_war_support = -0.1
	}
}

country_event = { #SAF says yes
	id = natal.57
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.57" }
	title = natal.57.t
	desc = natal.57.d
	picture = GFX_report_event_generic_scandal

	is_triggered_only = yes
	
	option = { # Yes
		name = natal.57.a
		effect_tooltip = {
			ZIM = {
				every_owned_state = {
					limit = {
						is_claimed_by = SAF
					}
					remove_claim_by = SAF
				}
			}
			SFR = {
				every_owned_state = {
					limit = {
						is_claimed_by = SAF
					}
					remove_claim_by = SAF
				}
			}
			SAF = { #Everything that is left will no longer be claimed by Natal.
				every_owned_state = {
					limit = {
						is_claimed_by = SFR
					}
					remove_claim_by = SFR
				}
				every_owned_state = {
					limit = {
						is_core_of = SFR
					}
					remove_core_of = SFR
				}
			}
			every_country = { #And, white peace!
				limit = {
					has_war_with = SAF
					OR = {
						is_in_faction_with = ENT
						is_subject_of = ENT
						tag = ENT
					}
				}
				SAF = {
					white_peace = PREV
				}
			}
			hidden_effect = {
				SFR = {
					country_event = { id = natal.59 }
				}
				ZIM = {
					country_event = { id = natal.59 }
				}
			}
		}
	}
}

country_event = { #SAF says no
	id = natal.58
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.58" }
	title = natal.58.t
	desc = natal.58.d
	picture = GFX_report_event_generic_scandal

	is_triggered_only = yes
	
	option = { # No
		name = natal.58.a
	}
}

country_event = { #Informing Natal and Rhodesia about the peace
	id = natal.59
	immediate = { log = "[GetDateText]: [Root.GetName]: event natal.59" }
	title = natal.58.t
	desc = natal.58.d
	picture = GFX_report_event_generic_scandal

	is_triggered_only = yes
	
	option = { # hmm
		name = natal.59.a
	}
}