﻿# Written by HansNery

add_namespace = md4
add_namespace = generic

# ROOT Receives Offer to Sign Free Trade Agreement
country_event = {
	id = md4.1
	title = md4.1.t
	desc = md4.1.d
	picture = GFX_report_event_generic_read_write

	immediate = {
		hidden_effect = {
			save_event_target_as = fta_applicant
			FROM = {
				save_event_target_as = fta_inviter
			}
		}
	}

	is_triggered_only = yes
	
	option = { #Agree
		name = md4.1.a
		log = "[GetDateText]: [This.GetName]: md4.1.a executed"
		ai_chance = {
			base = 100
		}
		FROM = { 
			add_opinion_modifier = {
				target = ROOT
				modifier = free_trade_agreement
			}
			country_event = { id = md4.2 hours = 6 } 
		}
		add_opinion_modifier = {
			target = FROM
			modifier = free_trade_agreement
		}
		hidden_effect = {
			set_country_flag = fta_applicant@ROOT
			FROM = { set_country_flag = fta_inviter@ROOT }
			news_event = { id = news.1 hours = 12 }
		}
	}
	
	option = { #Refuse
		name = md4.1.b
		log = "[GetDateText]: [This.GetName]: md4.1.b executed"
		ai_chance = { factor = 0 }
		FROM = { 
			country_event = { id = md4.3 hours = 6 }
			add_opinion_modifier = {
				target = ROOT
				modifier = insult
			}
		}
	}
}

# ROOT signed Free Trade Agreement
country_event = {
	id = md4.2
	title = md4.2.t
	desc = md4.2.d

	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes
	
	option = {
		name = md4.2.a
		log = "[GetDateText]: [This.GetName]: md4.2.a executed"
	}
}

# ROOT refused to sign Free Trade Agreement
country_event = {
	id = md4.3
	title = md4.3.t
	desc = md4.3.d
	
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes
	
	option = {
		name = md4.3.a
		log = "[GetDateText]: [This.GetName]: md4.3.a executed"
	}
}

# ROOT Receives Offer to Sign Military Cooperation Treaty
country_event = {
	id = md4.4
	title = md4.4.t
	desc = md4.4.d
	picture = GFX_report_event_generic_read_write

	immediate = {
		hidden_effect = {
			save_event_target_as = mct_applicant
			FROM = {
				save_event_target_as = mct_inviter
			}
		}
	}

	is_triggered_only = yes
	
	option = { #Agree
		name = md4.4.a
		log = "[GetDateText]: [This.GetName]: md4.4.a executed"
		ai_chance = {
			base = 100
		}
		FROM = { 
			add_relation_modifier = {
				target = ROOT
				modifier = military_cooperation
			}
			country_event = { id = md4.5 hours = 6 } 
		}
		hidden_effect = {
			set_country_flag = mct_applicant@ROOT
			FROM = { set_country_flag = mct_inviter@ROOT }
			news_event = { id = news.2 hours = 12 }
		}
	}
	
	option = { #Refuse
		name = md4.4.b
		log = "[GetDateText]: [This.GetName]: md4.4.b executed"
		ai_chance = { factor = 0 }
		FROM = { 
			country_event = { id = md4.6 hours = 6 }
			add_opinion_modifier = {
				target = ROOT
				modifier = insult
			}
		}
	}
}

# ROOT signed Military Cooperation Treaty
country_event = {
	id = md4.5
	title = md4.5.t
	desc = md4.5.d

	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes
	
	option = {
		name = md4.5.a
		log = "[GetDateText]: [This.GetName]: md4.5.a executed"
	}
}

# ROOT refused to sign Military Cooperation Treaty
country_event = {
	id = md4.6
	title = md4.6.t
	desc = md4.6.d
	
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes
	
	option = {
		name = md4.6.a
		log = "[GetDateText]: [This.GetName]: md4.6.a executed"
	}
}

## Useful Vanilla Events ######################################

# Is Influencing Our Country
country_event = {
	id = generic.1
	title = generic.1.t
	desc = { 
		text = generic.1.d_neutral_good
		trigger = {
			has_government = FROM
		}
	}
	desc = {
		text = generic.1.d_bad
		trigger = {
			NOT = { has_government = FROM }
		}
	}
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = {
		name = generic.1.a
		log = "[GetDateText]: [This.GetName]: generic.1.a executed"
		trigger = {
			has_government = FROM
		}
	}
	option = {
		name = generic.1.b
		log = "[GetDateText]: [This.GetName]: generic.1.b executed"
		trigger = {
			NOT = { has_government = FROM }
		}
	}
}

# Generic request to join major Alliance
country_event = {
	id = generic.2
	title = generic.2.t
	desc = { # FROM and ROOT are Democratic
		text = generic.2.d.a
		trigger = {
			AND = {
				FROM = {
					has_government = democratic
				}
				has_government = democratic
			}
		}
	}
	desc = { # FROM and ROOT are Fascist
		text = generic.2.d.b
		trigger = {
			AND = {
				FROM = {
					has_government = fascism
				}
				has_government = fascism
			}
		}
	}
	desc = { # FROM and ROOT are Communist
		text = generic.2.d.c
		trigger = {
			AND = {
				FROM = {
					has_government = communism
				}
				has_government = communism
			}
		}
	}
	desc = { # FROM and ROOT are different ideologies
		text = generic.2.d.e
		trigger = {
			NOT = {
				AND = {
					FROM = {
						has_government = democratic
					}
					has_government = democratic
				}
				AND = {
					FROM = {
						has_government = fascism
					}
					has_government = fascism
				}
				AND = {
					FROM = {
						has_government = communism
					}
					has_government = communism
				}
			}
		}
	}
	picture = GFX_report_event_generic_read_write

	immediate = {
		hidden_effect = {
			save_event_target_as = alliance_inviter
			FROM = {
				save_event_target_as = alliance_applicant
			}
		}
	}

	is_triggered_only = yes
	
	option = { #Agree / Both Democratic
		name = generic.2.a
		log = "[GetDateText]: [This.GetName]: generic.2.a executed"
		trigger = {
			AND = {
				FROM = {
					has_government = democratic
				}
				has_government = democratic
			}
		}
		ai_chance = {
			base = 100
		}
		add_to_faction = FROM
		FROM = { country_event = { id = generic.3 hours = 6 } }
		hidden_effect = {
			set_country_flag = alliance_inviter@ROOT
			FROM = { set_country_flag = alliance_applicant@ROOT }
			news_event = { id = news.289 hours = 12 }
		}
	}
	option = { #Agree / Both Fascist
		name = generic.2.b
		log = "[GetDateText]: [This.GetName]: generic.2.b executed"
		trigger = {
			AND = {
				FROM = {
					has_government = fascism
				}
				has_government = fascism
			}
		}
		ai_chance = {
			base = 100
		}
		add_to_faction = FROM
		FROM = { country_event = { id = generic.3 hours = 6 } }
		hidden_effect = {
			set_country_flag = alliance_inviter@ROOT
			FROM = { set_country_flag = alliance_applicant@ROOT }
			news_event = { id = news.289 hours = 12 }
		}
	}
	option = { #Agree / Both Communist
		name = generic.2.c
		log = "[GetDateText]: [This.GetName]: generic.2.c executed"
		trigger = {
			AND = {
				FROM = {
					has_government = communism
				}
				has_government = communism
			}
		}
		ai_chance = {
			base = 100
		}
		add_to_faction = FROM
		FROM = { country_event = { id = generic.3 hours = 6 } }
		hidden_effect = {
			set_country_flag = alliance_inviter@ROOT
			FROM = { set_country_flag = alliance_applicant@ROOT }
			news_event = { id = news.289 hours = 12 }
		}
	}
	option = { #Agree / Both different
		name = generic.2.e
		log = "[GetDateText]: [This.GetName]: generic.2.e executed"
		trigger = {
			NOT = {
				AND = {
					FROM = {
						has_government = democratic
					}
					has_government = democratic
				}
				AND = {
					FROM = {
						has_government = fascism
					}
					has_government = fascism
				}
				AND = {
					FROM = {
						has_government = communism
					}
					has_government = communism
				}
			}
		}
		ai_chance = {
			base = 100
		}
		add_to_faction = FROM
		FROM = { country_event = { id = generic.3 hours = 6 } }
		hidden_effect = {
			set_country_flag = alliance_inviter@ROOT
			FROM = { set_country_flag = alliance_applicant@ROOT }
			news_event = { id = news.289 hours = 12 }
		}
	}
	
	option = { #Reject
		name = generic.2.f
		log = "[GetDateText]: [This.GetName]: generic.2.f executed"
		ai_chance = { factor = 0 }
		FROM = { 
			country_event = { id = generic.4 hours = 6 }
		}
	}
}

# Generic accepted request to join major Alliance
country_event = {
	id = generic.3
	title = generic.3.t
	desc = generic.3.d

	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes
	
	option = {
		name = generic.3.a
		log = "[GetDateText]: [This.GetName]: generic.3.a executed"
		trigger = {
			AND = {
				FROM = {
					has_government = democratic
				}
				has_government = democratic
			}
		}
	}
	option = {
		name = generic.3.b
		log = "[GetDateText]: [This.GetName]: generic.3.b executed"
		trigger = {
			AND = {
				FROM = {
					has_government = fascism
				}
				has_government = fascism
			}
		}


	}
	option = {
		name = generic.3.c
		log = "[GetDateText]: [This.GetName]: generic.3.c executed"
		trigger = {
			AND = {
				FROM = {
					has_government = communism
				}
				has_government = communism
			}
		}
	}
	option = {
		name = generic.3.e
		log = "[GetDateText]: [This.GetName]: generic.3.e executed"
		trigger = {
			NOT = {
				AND = {
					FROM = {
						has_government = democratic
					}
					has_government = democratic
				}
				AND = {
					FROM = {
						has_government = fascism
					}
					has_government = fascism
				}
				AND = {
					FROM = {
						has_government = communism
					}
					has_government = communism
				}
			}
		}
	}
}

# Generic rejected request to join major Alliance
country_event = {
	id = generic.4
	title = generic.4.t
	desc = generic.4.d
	
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes
	
	option = {
		name = generic.4.a
		log = "[GetDateText]: [This.GetName]: generic.4.a executed"
		trigger = {
			AND = {
				FROM = {
					has_government = democratic
				}
				has_government = democratic
			}
		}
	}
	option = {
		name = generic.4.b
		log = "[GetDateText]: [This.GetName]: generic.4.b executed"
		trigger = {
			AND = {
				FROM = {
					has_government = fascism
				}
				has_government = fascism
			}
		}
	}
	option = {
		name = generic.4.c
		log = "[GetDateText]: [This.GetName]: generic.4.c executed"
		trigger = {
			AND = {
				FROM = {
					has_government = communism
				}
				has_government = communism
			}
		}
	}
	option = {
		name = generic.4.e
		log = "[GetDateText]: [This.GetName]: generic.4.e executed"
		trigger = {
			NOT = {
				AND = {
					FROM = {
						has_government = democratic
					}
					has_government = democratic
				}
				AND = {
					FROM = {
						has_government = fascism
					}
					has_government = fascism
				}
				AND = {
					FROM = {
						has_government = communism
					}
					has_government = communism
				}
			}
		}
	}
}

#####################################################################
#####################################################################

# Generic invitaton to join major Alliance
country_event = {
	id = generic.5
	title = generic.5.t
	desc = { # FROM and ROOT are Democratic
		text = generic.5.d.a
		trigger = {
			AND = {
				FROM = {
					has_government = democratic
				}
				has_government = democratic
			}
		}
	}
	desc = { # FROM and ROOT are Fascist
		text = generic.5.d.b
		trigger = {
			AND = {
				FROM = {
					has_government = fascism
				}
				has_government = fascism
			}
		}
	}
	desc = { # FROM and ROOT are Communist
		text = generic.5.d.c
		trigger = {
			AND = {
				FROM = {
					has_government = communism
				}
				has_government = communism
			}
		}
	}
	desc = { # FROM and ROOT are different ideologies
		text = generic.5.d.e
		trigger = {
			NOT = {
				AND = {
					FROM = {
						has_government = democratic
					}
					has_government = democratic
				}
				AND = {
					FROM = {
						has_government = fascism
					}
					has_government = fascism
				}
				AND = {
					FROM = {
						has_government = communism
					}
					has_government = communism
				}
			}
		}
	}
	picture = GFX_report_event_generic_read_write

	immediate = {
		hidden_effect = {
			save_event_target_as = alliance_applicant
			FROM = {
				save_event_target_as = alliance_inviter
			}
		}
	}

	is_triggered_only = yes
	
	option = { #Agree / Both Democratic
		name = generic.5.a
		log = "[GetDateText]: [This.GetName]: generic.5.a executed"
		trigger = {
			AND = {
				FROM = {
					has_government = democratic
				}
				has_government = democratic
			}
		}
		ai_chance = {
			base = 100
		}
		FROM = { 
			add_to_faction = ROOT
			country_event = { id = generic.6 hours = 6 } 
		}
		hidden_effect = {
			set_country_flag = alliance_applicant@ROOT
			FROM = { set_country_flag = alliance_inviter@ROOT }
			news_event = { id = news.289 hours = 12 }
		}
	}
	option = { #Agree / Both Fascist
		name = generic.5.b
		log = "[GetDateText]: [This.GetName]: generic.5.b executed"
		trigger = {
			AND = {
				FROM = {
					has_government = fascism
				}
				has_government = fascism
			}
		}
		ai_chance = {
			base = 100
		}
		FROM = { 
			add_to_faction = ROOT
			country_event = { id = generic.6 hours = 6 } 
		}
		hidden_effect = {
			set_country_flag = alliance_applicant@ROOT
			FROM = { set_country_flag = alliance_inviter@ROOT }
			news_event = { id = news.289 hours = 12 }
		}
	}
	option = { #Agree / Both Communist
		name = generic.5.c
		log = "[GetDateText]: [This.GetName]: generic.5.c executed"
		trigger = {
			AND = {
				FROM = {
					has_government = communism
				}
				has_government = communism
			}
		}
		ai_chance = {
			base = 100
		}
		FROM = { 
			add_to_faction = ROOT
			country_event = { id = generic.6 hours = 6 }
		}
		hidden_effect = {
			set_country_flag = alliance_applicant@ROOT
			FROM = { set_country_flag = alliance_inviter@ROOT }
			news_event = { id = news.289 hours = 12 }
		}
	}
	option = { #Agree / Both different
		name = generic.5.e
		log = "[GetDateText]: [This.GetName]: generic.5.e executed"
		trigger = {
			NOT = {
				AND = {
					FROM = {
						has_government = democratic
					}
					has_government = democratic
				}
				AND = {
					FROM = {
						has_government = fascism
					}
					has_government = fascism
				}
				AND = {
					FROM = {
						has_government = communism
					}
					has_government = communism
				}
			}
		}
		ai_chance = {
			base = 100
		}
		FROM = { 
			add_to_faction = ROOT
			country_event = { id = generic.6 hours = 6 }
		}
		hidden_effect = {
			set_country_flag = alliance_applicant@ROOT
			FROM = { set_country_flag = alliance_inviter@ROOT }
			news_event = { id = news.289 hours = 12 }
		}
	}
	
	option = { #Reject
		name = generic.2.f
		log = "[GetDateText]: [This.GetName]: generic.2.f executed"
		ai_chance = { factor = 0 }
		FROM = { 
			country_event = { id = generic.7 hours = 6 }
		}
	}
}

# Generic accepted invitation to join major Alliance
country_event = {
	id = generic.6
	title = generic.6.t
	desc = generic.6.d

	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes
	
	option = {
		name = generic.3.a
		log = "[GetDateText]: [This.GetName]: generic.3.a executed"
		trigger = {
			AND = {
				FROM = {
					has_government = democratic
				}
				has_government = democratic
			}
		}
	}
	option = {
		name = generic.3.b
		log = "[GetDateText]: [This.GetName]: generic.3.b executed"
		trigger = {
			AND = {
				FROM = {
					has_government = fascism
				}
				has_government = fascism
			}
		}


	}
	option = {
		name = generic.3.c
		log = "[GetDateText]: [This.GetName]: generic.3.c executed"
		trigger = {
			AND = {
				FROM = {
					has_government = communism
				}
				has_government = communism
			}
		}
	}
	option = {
		name = generic.3.e
		log = "[GetDateText]: [This.GetName]: generic.3.e executed"
		trigger = {
			NOT = {
				AND = {
					FROM = {
						has_government = democratic
					}
					has_government = democratic
				}
				AND = {
					FROM = {
						has_government = fascism
					}
					has_government = fascism
				}
				AND = {
					FROM = {
						has_government = communism
					}
					has_government = communism
				}
			}
		}
	}
}

# Generic rejected invitation to join major Alliance
country_event = {
	id = generic.7
	title = generic.7.t
	desc = generic.7.d
	
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes
	
	option = {
		name = generic.7.a
		log = "[GetDateText]: [This.GetName]: generic.7.a executed"
		trigger = {
			AND = {
				FROM = {
					has_government = democratic
				}
				has_government = democratic
			}
		}
	}
	option = {
		name = generic.4.b
		log = "[GetDateText]: [This.GetName]: generic.4.b executed"
		trigger = {
			AND = {
				FROM = {
					has_government = fascism
				}
				has_government = fascism
			}
		}
	}
	option = {
		name = generic.4.c
		log = "[GetDateText]: [This.GetName]: generic.4.c executed"
		trigger = {
			AND = {
				FROM = {
					has_government = communism
				}
				has_government = communism
			}
		}
	}
	option = {
		name = generic.4.e
		log = "[GetDateText]: [This.GetName]: generic.4.e executed"
		trigger = {
			NOT = {
				AND = {
					FROM = {
						has_government = democratic
					}
					has_government = democratic
				}
				AND = {
					FROM = {
						has_government = fascism
					}
					has_government = fascism
				}
				AND = {
					FROM = {
						has_government = communism
					}
					has_government = communism
				}
			}
		}
	}
}
#####################################################################
#####################################################################

#Election flavor
country_event = {
	id = md4.7
	title = md4.7.t
	desc = md4.7.d
	picture = GFX_election_rally
	
	is_triggered_only = yes
		
	option = { #Deny
		name = md4.7.a
		log = "[GetDateText]: [This.GetName]: md4.7.a executed"
			ai_chance = {
			base = 75
			}
		}
	option = { #Accept 
		name = md4.7.b
		log = "[GetDateText]: [This.GetName]: md4.7.b executed"
		ai_chance = {
			base = 50
		}
	}
}

country_event = { 
	id = md4.8 
	title = md4.8.t 
	desc = md4.8.d 
	picture = GFX_election_rally 
	
	is_triggered_only = yes 
	
	option = { 
		name = md4.8.a
		log = "[GetDateText]: [This.GetName]: md4.8.a executed"
			ai_chance = { 
			base = 50 
			}
		}
		
		
		
	option = { 
		name = md4.8.b
		log = "[GetDateText]: [This.GetName]: md4.8.b executed" 
			ai_chance = { 
			base = 50 
			}
		}
	}

country_event = { 
	id = md4.9 
	title = md4.9.t 
	desc = md4.9.d 
	picture = GFX_election_rally 
	
	is_triggered_only = yes 
	
	option = { #Yes, raise for poor
	name = md4.9.a
	log = "[GetDateText]: [This.GetName]: md4.9.a executed"
	random_list = {
		50 = { 
			if = {
				limit = {
					has_government = democratic
						}
							add_popularity = { ideology = democratic popularity = 0.1 }
				}				
			if = {
				limit = {
					has_government = nationalist
						}
							add_popularity = { ideology = nationalist popularity = 0.1 }
				}
			if = {
				limit = {
					has_government = communism
						}
							add_popularity = { ideology = communism popularity = 0.1 }
				}
			if = {
				limit = {
					has_government = fascism
						}
				add_popularity = { ideology = fascism popularity = 0.1 }
				}
			} 		
	50 = { } 	
		}
		hidden_effect = {
			random_list = {
				50 = {
					country_event = { id = md4.10 hours = 6 }
				}
				50 = { }
			}
			}
		ai_chance = { 
			base = 50 
		}
		}	
		
	option = { #Lower for poor
		name = md4.9.b
		log = "[GetDateText]: [This.GetName]: md4.9.b executed" 
		random_list = {
		30 = { 
			if = {
				limit = {
					has_government = democratic
						}
							add_popularity = { ideology = democratic popularity = 0.2 }
				}				
			if = {
				limit = {
					has_government = nationalist
						}
							add_popularity = { ideology = nationalist popularity = 0.2 }
				}
			if = {
				limit = {
					has_government = communism
						}
							add_popularity = { ideology = communism popularity = 0.3 }
				}
			if = {
				limit = {
					has_government = fascism
						}
				add_popularity = { ideology = fascism popularity = 0.3 }
				}
			}
			
	70 = { } 
			}
		hidden_effect = {
		random_list = {
				70 = {
					country_event = { id = md4.11 hours = 6 }
				}
				30 = { }
			}
		}
			ai_chance = { 
			base = 50 
			}
		}
			
	option = { #Raise taxes for rich
		name = md4.9.c
		log = "[GetDateText]: [This.GetName]: md4.9.c executed" 
		random_list = {
		50 = { 
			if = {
				limit = {
					has_government = democratic
						}
							add_popularity = { ideology = democratic popularity = 0.05 }
				}				
			if = {
				limit = {
					has_government = nationalist
						}
							add_popularity = { ideology = nationalist popularity = 0.05 }
				}
			if = {
				limit = {
					has_government = communism
						}
							add_popularity = { ideology = communism popularity = 0.05 }
				}
			if = {
				limit = {
					has_government = fascism
						}
				add_popularity = { ideology = fascism popularity = 0.05 }
				}
			}
			50 = { } 
		}
		hidden_effect = {
		random_list = {
				20 = {
					country_event = { id = md4.12 hours = 6 }
				}
				80 = { }
			}
		}
			ai_chance = { 
			base = 50 
			}	
		}
			
	option = { 
		name = md4.9.e
		log = "[GetDateText]: [This.GetName]: md4.9.e executed"
		random_list = {
		50 = { 
			if = {
				limit = {
					has_government = democratic
						}
							add_popularity = { ideology = democratic popularity = 0.05 }
				}				
			if = {
				limit = {
					has_government = nationalist
						}
							add_popularity = { ideology = nationalist popularity = 0.05 }
				}
			if = {
				limit = {
					has_government = communism
						}
							add_popularity = { ideology = communism popularity = 0.05 }
				}
			if = {
				limit = {
					has_government = fascism
						}
				add_popularity = { ideology = fascism popularity = 0.05 }
				}
			}
			50 = { } 
		}
		hidden_effect = {
		random_list = {
				20 = {
					country_event = { id = md4.13 hours = 6 }
				}
				80 = { }
			}
		}
			ai_chance = { 
			base = 50 
			}		
		}
	}	
	
country_event = { #Response event 1 for 4.9.a
	id = md4.10 
	title = md4.10.t 
	desc = md4.10.d 
	picture = GFX_election_rally 
	
	is_triggered_only = yes
	
	option = { 
		name = md4.10.a
		log = "[GetDateText]: [This.GetName]: md4.10.a executed"
			if = {
				limit = {
					has_government = democratic
						}
							add_popularity = { ideology = democratic popularity = -0.1 }
				}				
			if = {
				limit = {
					has_government = nationalist
						}
							add_popularity = { ideology = nationalist popularity = -0.1 }
				}
			if = {
				limit = {
					has_government = communism
						}
							add_popularity = { ideology = communism popularity = -0.1 }
				}
			if = {
				limit = {
					has_government = fascism
						}
				add_popularity = { ideology = fascism popularity = -0.1 }
				}
		}
}

country_event = { #Response event 1 for 4.9.b
	id = md4.11
	title = md4.11.t 
	desc = md4.11.d 
	picture = GFX_election_rally 
	
	is_triggered_only = yes
	
	option = { 
		name = md4.11.a
		log = "[GetDateText]: [This.GetName]: md4.11.a executed"
			if = {
				limit = {
					has_government = democratic
						}
							add_popularity = { ideology = democratic popularity = -0.2 }
				}				
			if = {
				limit = {
					has_government = nationalist
						}
							add_popularity = { ideology = nationalist popularity = -0.3 }
				}
			if = {
				limit = {
					has_government = communism
						}
							add_popularity = { ideology = communism popularity = -0.3 }
				}
			if = {
				limit = {
					has_government = fascism
						}
				add_popularity = { ideology = fascism popularity = -0.3 }
				}
		}
}

country_event = { #Response event 1 for 4.9.c
	id = md4.12
	title = md4.12.t 
	desc = md4.12.d 
	picture = GFX_election_rally 
	
	is_triggered_only = yes
	
	option = { 
		name = md4.12.a
		log = "[GetDateText]: [This.GetName]: md4.12.a executed"
			if = {
				limit = {
					has_government = democratic
						}
							add_popularity = { ideology = democratic popularity = -0.05 }
				}				
			if = {
				limit = {
					has_government = nationalist
						}
							add_popularity = { ideology = nationalist popularity = -0.05 }
				}
			if = {
				limit = {
					has_government = communism
						}
							add_popularity = { ideology = communism popularity = -0.05 }
				}
			if = {
				limit = {
					has_government = fascism
						}
				add_popularity = { ideology = fascism popularity = -0.05 }
				}
		}
}	

country_event = { #Response event 1 for 4.9.e
	id = md4.13
	title = md4.13.t 
	desc = md4.13.d 
	picture = GFX_election_rally 
	
	is_triggered_only = yes
	
	option = { 
		name = md4.13.a
		log = "[GetDateText]: [This.GetName]: md4.13.a executed"
			if = {
				limit = {
					has_government = democratic
						}
							add_popularity = { ideology = democratic popularity = -0.05 }
				}				
			if = {
				limit = {
					has_government = nationalist
						}
							add_popularity = { ideology = nationalist popularity = -0.05 }
				}
			if = {
				limit = {
					has_government = communism
						}
							add_popularity = { ideology = communism popularity = -0.05 }
				}
			if = {
				limit = {
					has_government = fascism
						}
				add_popularity = { ideology = fascism popularity = -0.05 }
				}
		}
}
				
			