#Howard Events

add_namespace = corroboree_event

country_event = {
	id = corroboree_event.1
	title = corroboree_event.1.t
	desc = corroboree_event.1.d
	picture = GFX_corroboree_event
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		is_ai = no
		tag = AST
	}

	option = {
		log = "[GetDateText]: [This.GetName]: corroboree_event.1.a executed"
		name = corroboree_event.1.a
		add_political_power = -20
	}
}

add_namespace = mining_giants_talk

country_event = {
	id = mining_giants_talk.1
	title = mining_giants_talk.1.t
	desc = mining_giants_talk.1.d
	picture = GFX_mining
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		is_ai = no
		tag = AST
	}

	# Option 1
	option = {
			log = "[GetDateText]: [This.GetName]: mining_giants_talk.1.a executed"
		name = mining_giants_talk.1.a
		set_temp_variable = { corp_change = -2 }
		modify_corporate_tax_rate_effect = yes
		set_temp_variable = { temp_opinion = 20 }
		change_fossil_fuel_industry_opinion = yes
	}

	# Option 2
	option = {
			log = "[GetDateText]: [This.GetName]: mining_giants_talk.1.b executed"
		name = mining_giants_talk.1.b
		set_temp_variable = { temp_opinion = -5 }
		change_fossil_fuel_industry_opinion = yes
	}

	# Option 3
	option = {
			log = "[GetDateText]: [This.GetName]: mining_giants_talk.1.c executed"
		name = mining_giants_talk.1.c
		set_temp_variable = { corp_change = 4 }
		modify_corporate_tax_rate_effect = yes
		set_temp_variable = { temp_opinion = -20 }
		change_fossil_fuel_industry_opinion = yes
	}
}

add_namespace = civil_partnership_act

news_event = {
	id = civil_partnership_act.1
	title = civil_partnership_act.1.t
	desc = civil_partnership_act.1.d
	picture = GFX_gaycrowd
	is_triggered_only = yes

	option = {
			log = "[GetDateText]: [This.GetName]: civil_partnership_act.1.a executed"
		name = civil_partnership_act.1.a
		add_stability = 0.03
		set_country_flag = gay_law_1_done
	}
}

add_namespace = the_national_apology

news_event = {
	id = the_national_apology.1
	title = the_national_apology.1.t
	desc = the_national_apology.1.d
	picture = GFX_national_apology_image
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: the_national_apology.1.a executed"
		name = the_national_apology.1.a
		add_stability = 0.03
	}
}

add_namespace = pacific_solution

# Event for Papua New Guinea
country_event = {
	id = pacific_solution.1
	title = pacific_solution.1.t
	desc = pacific_solution.1.d
	picture = GFX_treaty
	is_triggered_only = yes

	# Option: Accept
	option = {
			log = "[GetDateText]: [This.GetName]: pacific_solution.1.a executed"
		name = pacific_solution.1.a
		ai_chance = {
			base = 90
		}
		# Effects for PAP
		set_temp_variable = { treasury_change = 2 }
		modify_treasury_effect = yes
		733 = {
			add_building_construction = {
				type = infrastructure
				level = 1
				instant_build = yes
			}
			add_building_construction = {
				type = naval_base
				level = 1
				instant_build = yes
				province = 7339
			}
		}
		hidden_effect = {
			set_temp_variable = { percent_change = 3 }
			set_temp_variable = { tag_index = AST.id }
			set_temp_variable = { influence_target = THIS.id }
			change_influence_percentage = yes
		}
		AST = {
			add_opinion_modifier = { target = ROOT modifier = accepted_pacific_solution }
			country_event = { id = pacific_solution.3 days = 1 }
		}
	}

	# Option: Deny
	option = {
			log = "[GetDateText]: [This.GetName]: pacific_solution.1.b executed"
		name = pacific_solution.1.b
		ai_chance = { base = 10 }
		AST = {
			add_opinion_modifier = { target = ROOT modifier = denied_pacific_solution }
			country_event = { id = pacific_solution.4 days = 1 }
		}
	}
}

# Event for Nauru
country_event = {
	id = pacific_solution.2
	title = pacific_solution.1.t
	desc = pacific_solution.1.d
	picture = GFX_treaty
	is_triggered_only = yes

	# Option: Accept
	option = {
			log = "[GetDateText]: [This.GetName]: pacific_solution.1.a executed"
		name = pacific_solution.1.a
		ai_chance = {
			base = 90
		}
		# Effects for NAU
		set_temp_variable = { treasury_change = 2 }
		modify_treasury_effect = yes
		1117 = {
			add_building_construction = {
				type = infrastructure
				level = 1
				instant_build = yes
			}
			add_building_construction = {
				type = naval_base
				level = 1
				instant_build = yes
				province = 13038
			}
		}
		hidden_effect = {
			set_temp_variable = { percent_change = 5 }
			set_temp_variable = { tag_index = AST.id }
			set_temp_variable = { influence_target = THIS.id }
			change_influence_percentage = yes
		}
		AST = {
			give_guarantee = NAU
			add_opinion_modifier = { target = ROOT modifier = accepted_pacific_solution }
			country_event = { id = pacific_solution.5 days = 3 }
		}
	}

	# Option: Deny
	option = {
			log = "[GetDateText]: [This.GetName]: pacific_solution.1.b executed"
		name = pacific_solution.1.b
		ai_chance = { base = 10 }
		AST = { add_opinion_modifier = { target = ROOT modifier = denied_pacific_solution } }
		country_event = { id = pacific_solution.6 days = 3 }
	}
}

# Australia Receives Papau Response: Proposal Accepted
country_event = {
	id = pacific_solution.3
	title = pacific_solution.3.t
	desc = pacific_solution.3.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: pacific_solution.3.a executed"
		name = pacific_solution.3.a # "Excellent news."
		set_temp_variable = { treasury_change = -4 }
		modify_treasury_effect = yes
		if = {
			limit = { has_focus_tree = ruddgov_focus }
			add_power_balance_value = {
				id = rudd_bop
				value = 0.1
				tooltip_side = gillard_power_side
			}
		}
	}
}

# Australia Receives Papau Response: Proposal Denied
country_event = {
	id = pacific_solution.4
	title = pacific_solution.4.t
	desc = pacific_solution.4.d
	picture = GFX_treaty_rejected
	is_triggered_only = yes

	option = {
		name = pacific_solution.4.a # "Disappointing."
	}
}

# Australia Receives Nauru Response: Proposal Accepted
country_event = {
	id = pacific_solution.5
	title = pacific_solution.5.t
	desc = pacific_solution.5.d
	picture = GFX_treaty
	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			country_event = { id = detention_centres_full.1 days = 1620 }
		}
	}

	option = {
			log = "[GetDateText]: [This.GetName]: pacific_solution.5.a executed"
		name = pacific_solution.5.a # "Excellent news."
		set_temp_variable = { treasury_change = -4 }
		modify_treasury_effect = yes
		if = {
			limit = { has_idea = boat_arrivals_ast }
			swap_ideas = {
				remove_idea = boat_arrivals_ast
				add_idea = boat_arrivals_ast_2
			}
		}
		else_if = {
			limit = { has_idea = boat_arrivals_ast_2 }
			swap_ideas = {
				remove_idea = boat_arrivals_ast_2
				add_idea = boat_arrivals_ast_3
			}
		}
		else_if = {
			limit = { has_idea = boat_arrivals_ast_4 }
			swap_ideas = {
				remove_idea = boat_arrivals_ast_4
				add_idea = boat_arrivals_ast
			}
		}
		if = {
			limit = { has_focus_tree = ruddgov_focus }
			add_power_balance_value = {
				id = rudd_bop
				value = 0.1
				tooltip_side = gillard_power_side
			}
		}
	}
}

# Australia Receives Nauru Response: Proposal Denied
country_event = {
	id = pacific_solution.6
	title = pacific_solution.6.t
	desc = pacific_solution.6.d
	picture = GFX_treaty_rejected
	is_triggered_only = yes

	option = {
		name = pacific_solution.6.a # "Disappointing."
	}
}

add_namespace = stomp_out_the_roots

# Event sent to Indonesia
country_event = {
	id = stomp_out_the_roots.1
	title = stomp_out_the_roots.1.t
	desc = stomp_out_the_roots.1.d
	picture = GFX_military_exercise
	is_triggered_only = yes

	# Option: Accept the Cooperation
	option = {
			log = "[GetDateText]: [This.GetName]: stomp_out_the_roots.1.a executed"
			name = stomp_out_the_roots.1.a
			set_temp_variable = { defense_var = 1 }
			add_to_variable = { ct_home_defense_var = defense_var }
			set_temp_variable = { intel_gain_var = 1 }
			add_to_variable = { ct_global_base_detect_var = intel_gain_var }
			custom_effect_tooltip = is_ct_dom_suv_tt
		add_timed_idea = {
			idea = IND_extremist_suppression_bonus
			days = 720
		}
		set_temp_variable = { percent_change = 6 }
			set_temp_variable = { tag_index = AST.id }
			set_temp_variable = { influence_target = THIS.id }
			change_influence_percentage = yes
		AST = {
			# Send Success Response to Australia
			country_event = { id = stomp_out_the_roots.2 days = 1 }
		}
		ai_chance = {
			base = 10
			modifier = {
				has_opinion = {
					target = AST
					value > 0
				}
				add = 80
			}
		}
	}

	# Option: Deny
	option = {
			log = "[GetDateText]: [This.GetName]: stomp_out_the_roots.1.b executed"
		name = stomp_out_the_roots.1.b
		ai_chance = {
			base = 10
			modifier = {
				has_opinion = {
					target = AST
					value < 0
				}
				add = 80
			}
		}
		AST = { country_event = { id = stomp_out_the_roots.3 days = 1 } }
	}
}

# Australia Receives: Success
country_event = {
	id = stomp_out_the_roots.2
	title = stomp_out_the_roots.2.t
	desc = stomp_out_the_roots.2.d
	picture = GFX_military_exercise
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: stomp_out_the_roots.2.a executed"
		name = stomp_out_the_roots.2.a
		IND = { give_military_access = AST }
		add_doctrine_cost_reduction = {
			name = stomp_out_the_roots.2.t
			cost_reduction = 0.4
			uses = 2
			category = land_doctrine
		}
	}
}

# Australia Receives: Failure
country_event = {
	id = stomp_out_the_roots.3
	title = stomp_out_the_roots.3.t
	desc = stomp_out_the_roots.3.d
	picture = GFX_military_exercise
	is_triggered_only = yes

	option = { name = stomp_out_the_roots.3.a }
}

add_namespace = ast_off_to_delhi

country_event = {
	id = ast_off_to_delhi.1
	title = ast_off_to_delhi.1.t
	desc = ast_off_to_delhi.1.d
	picture = GFX_howardindia
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		log = "[GetDateText]: [This.GetName]: ast_off_to_delhi.1.a executed"
		name = ast_off_to_delhi.1.a
		RAJ = {
			add_opinion_modifier = {
				target = ROOT
				modifier = state_visit
			}
			add_opinion_modifier = {
				target = ROOT
				modifier = ast_trade_deal
			}
		}
	}
}

add_namespace = marks_trade

country_event = {
	id = marks_trade.1
	title = marks_trade.1.t
	desc = marks_trade.1.d
	picture = GFX_aus_flag
	is_triggered_only = yes

	# Option 1: Accept the Agreement
	option = {
			log = "[GetDateText]: [This.GetName]: marks_trade.1.a executed"
		name = marks_trade.1.a
		ai_chance = { base = 90 }
		add_opinion_modifier = {
			target = AST
			modifier = ast_trade_deal
		}
		add_opinion_modifier = {
			target = AST
			modifier = ast_trade_agreement
		}
		AST = {
			add_opinion_modifier = {
				target = ROOT
				modifier = ast_trade_deal
			}
			add_opinion_modifier = {
				target = ROOT
				modifier = ast_trade_agreement
			}
		}
	}

	# Option 2: Decline
	option = {
			log = "[GetDateText]: [This.GetName]: marks_trade.1.b executed"
		name = marks_trade.1.b
		ai_chance = {
			base = 10
		}
		# Optional: Add a small negative modifier if you want a diplomatic sting
		AST = {
			add_opinion_modifier = {
				target = ROOT
				modifier = refused_trade_deal
			}
		}
	}
}

add_namespace = ast_our_capacity_for_peace

country_event = {
	id = ast_our_capacity_for_peace.1
	title = ast_our_capacity_for_peace.1.t
	desc = ast_our_capacity_for_peace.1.d
	picture = GFX_aus_flag
	is_triggered_only = yes

	# Option A: Cooperate
	option = {
			log = "[GetDateText]: [This.GetName]: ast_our_capacity_for_peace.1.a executed"
		name = ast_our_capacity_for_peace.1.a
		ai_chance = { base = 1 }
		diplomatic_relation = {
			country = AST
			relation = non_aggression_pact
			active = yes
		}
		add_ideas = sino_aus_peacekeeping
		add_opinion_modifier = {
			target = AST
			modifier = ast_peacekeeping
		}
		# You (Australia) guarantee them back
		AST = {
			add_ideas = sino_aus_peacekeeping
			# Tells Aus they said yes
			country_event = { id = ast_our_capacity_for_peace.2 days = 1 }
			add_opinion_modifier = {
				target = ROOT
				modifier = ast_peacekeeping
			}
		}
	}

	# Option B: Decline
	option = {
			log = "[GetDateText]: [This.GetName]: ast_our_capacity_for_peace.1.b executed"
		name = ast_our_capacity_for_peace.1.b
		ai_chance = { base = 0 }
		# Tells Aus they said no
		country_event = { id = ast_our_capacity_for_peace.3 days = 1 }
	}
}

# Success Notification
country_event = {
	id = ast_our_capacity_for_peace.2
	title = ast_our_capacity_for_peace.2.t
	desc = ast_our_capacity_for_peace.2.d
	picture = GFX_CHI_china_unite
	is_triggered_only = yes

	option = {
			log = "[GetDateText]: [This.GetName]: ast_our_capacity_for_peace.2.a executed"
		name = ast_our_capacity_for_peace.2.a
			hidden_effect = {
				set_temp_variable = { percent_change = 4 }
				set_temp_variable = { tag_index = CHI.id }
				set_temp_variable = { influence_target = THIS.id }
				change_influence_percentage = yes
		}
	}
}

# Failure Notification
country_event = {
	id = ast_our_capacity_for_peace.3
	title = ast_our_capacity_for_peace.3.t
	desc = ast_our_capacity_for_peace.3.d
	picture = GFX_CHI_china_unite
	is_triggered_only = yes

	option = { name = ast_our_capacity_for_peace.3.a }
}

add_namespace = fossil_fuels

# Event 1: Standard Coal Exports
country_event = {
	id = fossil_fuels.1
	title = fossil_fuels.1.t
	desc = fossil_fuels.1.d
	picture = GFX_aus_flag
	is_triggered_only = yes

	# Option: Accept
	option = {
			log = "[GetDateText]: [This.GetName]: fossil_fuels.1.a executed"
		name = fossil_fuels.1.a
		ai_chance = { base = 1 }
		AST = {
			add_opinion_modifier = { target = ROOT modifier = ast_trade_deal }
			country_event = { id = fossil_fuels.3 days = 1 } # Success Notification
		}
	}

	# Option: Decline
	option = {
			log = "[GetDateText]: [This.GetName]: fossil_fuels.1.b executed"
		name = fossil_fuels.1.b
		ai_chance = { base = 0 }
		AST = { country_event = { id = fossil_fuels.4 days = 1 } } # Failure Notification
	}
}

# Event 2: The Chinese-AST Trade Pact (Peace Version)
country_event = {
	id = fossil_fuels.2
	title = fossil_fuels.2.t
	desc = fossil_fuels.2.d
	picture = GFX_aus_flag
	is_triggered_only = yes

	# Option: Accept
	option = {
			log = "[GetDateText]: [This.GetName]: fossil_fuels.2.a executed"
		name = fossil_fuels.2.a
		ai_chance = { base = 1 }
		add_opinion_modifier = { target = AST modifier = sino_aus_trade }
		AST = {
			country_event = { id = fossil_fuels.5 days = 1 } # Special Success Notification
		}
	}

	# Option: Decline
	option = {
			log = "[GetDateText]: [This.GetName]: fossil_fuels.2.b executed"
		name = fossil_fuels.2.b
		ai_chance = { base = 0 }
		AST = { country_event = { id = fossil_fuels.4 days = 1 } } # Generic Failure
	}
}

# Success - Standard
country_event = {
	id = fossil_fuels.3
	title = fossil_fuels.3.t
	desc = fossil_fuels.3.d
	picture = GFX_china_ccecc
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: fossil_fuels.3.a executed"
		name = fossil_fuels.3.a
		CHI = {
			add_opinion_modifier = { target = AST modifier = ast_trade_deal }
		}
	}
}

# Standard Failure
country_event = {
	id = fossil_fuels.4
	title = fossil_fuels.4.t
	desc = fossil_fuels.4.d
	picture = GFX_china_ccecc
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: fossil_fuels.4.a executed"
		name = fossil_fuels.4.a add_political_power = -20
	}
}

# Success - Special Pact
country_event = {
	id = fossil_fuels.5
	title = fossil_fuels.5.t
	desc = fossil_fuels.5.d
	picture = GFX_china_ccecc
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: fossil_fuels.5.a executed"
		name = fossil_fuels.5.a
		add_opinion_modifier = { target = CHI modifier = sino_aus_trade }
		add_ideas = chinese_export_bonus_ast
		hidden_effect = {
			set_temp_variable = { percent_change = 9 }
			set_temp_variable = { tag_index = CHI.id }
			set_temp_variable = { influence_target = THIS.id }
			change_influence_percentage = yes
		}
	}
}


add_namespace = ast_jap_trade

# Event sent to Japan
country_event = {
	id = ast_jap_trade.1
	title = ast_jap_trade.1.t
	desc = ast_jap_trade.1.d
	picture = GFX_aus_flag
	is_triggered_only = yes

	# Option 1: Accept Outright
	option = {
			log = "[GetDateText]: [This.GetName]: ast_jap_trade.1.a executed"
		name = ast_jap_trade.1.a
		ai_chance = { base = 30 }
		AST = { country_event = { id = ast_jap_trade.2 days = 1 } }
	}

	# Option 2: Demand Mineral Rights (The Counter-Offer)
	option = {
			log = "[GetDateText]: [This.GetName]: ast_jap_trade.1.b executed"
		name = ast_jap_trade.1.b
		ai_chance = {
			base = 60
		}
		AST = { country_event = { id = ast_jap_trade.3 days = 1 } } # Notification: Negotiation
	}

	# Option 3: Decline
	option = {
			log = "[GetDateText]: [This.GetName]: ast_jap_trade.1.c executed"
		name = ast_jap_trade.1.c
		ai_chance = {
			base = 10 # Base 10 if relations are good
		}
		AST = { country_event = { id = ast_jap_trade.4 days = 1 } } # Notification: Failure
	}
}

# Success Notification (Japan Accepted)
country_event = {
	id = ast_jap_trade.2
	title = ast_jap_trade.2.t
	desc = ast_jap_trade.2.d
	picture = GFX_jap_flag
	is_triggered_only = yes

	option = {
			log = "[GetDateText]: [This.GetName]: ast_jap_trade.2.a executed"
		name = ast_jap_trade.2.a
		add_opinion_modifier = { target = JAP modifier = ast_trade_deal }
		JAP = {
			add_opinion_modifier = { target = ROOT modifier = ast_trade_deal }
		}
		add_ideas = japanese_export_deal_ast
	}
}

# Counter-Offer Notification (Japan wants Minerals)
country_event = {
	id = ast_jap_trade.3
	title = ast_jap_trade.3.t
	desc = ast_jap_trade.3.d
	picture = GFX_steel_mill
	is_triggered_only = yes

	# Accept their terms
	option = {
			log = "[GetDateText]: [This.GetName]: ast_jap_trade.3.a executed"
		name = ast_jap_trade.3.a
		add_opinion_modifier = { target = JAP modifier = ast_trade_deal }
		JAP = {
			add_opinion_modifier = { target = ROOT modifier = ast_trade_deal }
		}
		add_ideas = japanese_export_deal_ast_1
		ai_chance = { base = 1 }
	}

	# Hold stance / Demand original deal
	option = {
			log = "[GetDateText]: [This.GetName]: ast_jap_trade.3.b executed"
		name = ast_jap_trade.3.b
		JAP = { country_event = { id = ast_jap_trade.5 days = 1 } } # Send back to Japan
		ai_chance = {
				base = 0
			}
	}
}

# Failure Notification
country_event = {
	id = ast_jap_trade.4
	title = ast_jap_trade.4.t
	desc = ast_jap_trade.4.d
	picture = GFX_jap_flag
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: ast_jap_trade.4.a executed"
		name = ast_jap_trade.4.a
		add_political_power = -5
	}
}

# Japan decides on the original deal
country_event = {
	id = ast_jap_trade.5
	title = ast_jap_trade.5.t
	desc = ast_jap_trade.5.d
	picture = GFX_aus_flag
	is_triggered_only = yes

	# Japan folds and accepts original deal
	option = {
			log = "[GetDateText]: [This.GetName]: ast_jap_trade.5.a executed"
		name = ast_jap_trade.5.a
		ai_chance = { base = 70 }
		AST = { country_event = { id = ast_jap_trade.2 days = 2 } } # Triggers the Success event for you
	}

	# Japan walks away
	option = {
			log = "[GetDateText]: [This.GetName]: ast_jap_trade.5.b executed"
		name = ast_jap_trade.5.b
		ai_chance = { base = 30 }
		AST = { country_event = { id = ast_jap_trade.4 days = 2 } } # Triggers the Failure event for you
	}
}

add_namespace = base_state_visit

country_event = {
	id = base_state_visit.1
	title = base_state_visit.1.t
	desc = base_state_visit.1.d
	picture = GFX_us_flag
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		is_ai = no
		tag = AST
	}

	option = { name = base_state_visit.1.a }
}

country_event = {
	id = base_state_visit.2
	title = base_state_visit.2.t
	desc = base_state_visit.2.d
	picture = GFX_CHI_beijing
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		is_ai = no
		tag = AST
	}

	option = { name = base_state_visit.2.a }
}

country_event = {
	id = base_state_visit.3
	title = base_state_visit.3.t
	desc = base_state_visit.3.d
	picture = GFX_nko_russian_ratnik
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		is_ai = no
		tag = AST
	}

	option = { name = base_state_visit.3.a }
}

country_event = {
	id = base_state_visit.4
	title = base_state_visit.4.t
	desc = base_state_visit.4.d
	picture = GFX_kor_aus_flag
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		is_ai = no
		tag = AST
	}

	option = {
		log = "[GetDateText]: [This.GetName]: base_state_visit.4.a executed"
		name = base_state_visit.4.a
		add_opinion_modifier = { target = KOR modifier = free_trade_agreement }
		KOR = {
			add_opinion_modifier = { target = ROOT modifier = free_trade_agreement }
		}
	}
}

country_event = {
	id = base_state_visit.5
	title = base_state_visit.5.t
	desc = base_state_visit.5.d
	picture = GFX_TUR_major_defeat
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		is_ai = no
		tag = AST
	}

	option = { name = base_state_visit.5.a }
}

news_event = {
	id = base_state_visit.6
	title = base_state_visit.6.t
	desc = base_state_visit.6.d
	picture = GFX_elizabeth_II
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		is_ai = no
		tag = AST
	}

	option = { name = base_state_visit.6.a }
}

country_event = {
	id = base_state_visit.7
	title = base_state_visit.7.t
	desc = base_state_visit.7.d
	picture = GFX_internal_conflict
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		is_ai = no
		tag = AST
	}

	option = { name = base_state_visit.7.a }
}


add_namespace = rudd_state_visit

country_event = {
	id = rudd_state_visit.1
	title = rudd_state_visit.1.t
	desc = rudd_state_visit.1.d
	picture = GFX_russia_protests
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		is_ai = no
		tag = AST
	}

	option = { name = rudd_state_visit.1.a }
}

add_namespace = leaked_memo

country_event = {
	id = leaked_memo.1
	title = leaked_memo.1.t
	desc = leaked_memo.1.d
	picture = GFX_leaked_memo
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		is_ai = no
		tag = AST
	}

	option = {
		log = "[GetDateText]: [This.GetName]: leaked_memo.1.a executed"
		name = leaked_memo.1.a
		add_political_power = -50
	}
}

add_namespace = reconciliation_journey

country_event = {
	id = reconciliation_journey.1
	title = reconciliation_journey.1.t
	desc = reconciliation_journey.1.d
	picture = GFX_howard_recon
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		NOT = { has_completed_focus = AST_avoid_the_speech }
		tag = AST
		has_country_flag = reco_1_completed
		has_country_flag = reco_2_completed
		has_country_flag = reco_3_completed
		has_country_flag = reco_4_completed
		has_country_flag = reco_5_completed
	}

	option = {
			log = "[GetDateText]: [This.GetName]: reconciliation_journey.1.a executed"
		name = reconciliation_journey.1.a
		swap_ideas = {
			remove_idea = reconciliation_discontent
			add_idea = rekindled_hope_ast
		}
	}
}

add_namespace = ast_the_coalition_convention

country_event = {
	id = ast_the_coalition_convention.1
	title = ast_the_coalition_convention.1.t
	desc = ast_the_coalition_convention.1.d
	picture = GFX_howard_coalition
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		log = "[GetDateText]: [This.GetName]: ast_the_coalition_convention.1.a executed"
		name = ast_the_coalition_convention.1.a
		add_political_power = 150
		custom_effect_tooltip = focus_tree_has_changed_ast_tt
		ai_chance = {
			base = 1
		}
	}
}

add_namespace = the_white_paper

country_event = {
	id = the_white_paper.1
	title = the_white_paper.1.t
	desc = the_white_paper.1.d
	picture = GFX_military_exercise
	is_triggered_only = yes
	fire_only_once = yes

	option = {
			log = "[GetDateText]: [This.GetName]: the_white_paper.1.a executed"
		name = the_white_paper.1.a
		add_timed_idea = {
			idea = the_white_paper_1
			days = 1460
		}
		set_country_flag = {
			flag = ast_white_paper_ongoing
			days = 1460
			value = 1
		}
		ai_chance = {
			base = 1
		}
	}

	option = {
			log = "[GetDateText]: [This.GetName]: the_white_paper.1.b executed"
		name = the_white_paper.1.b
		add_timed_idea = {
			idea = the_white_paper_2
			days = 1460
		}
		set_country_flag = {
			flag = ast_white_paper_ongoing
			days = 1460
			value = 1
		}
		ai_chance = {
			base = 1
		}
	}

	option = {
			log = "[GetDateText]: [This.GetName]: the_white_paper.1.c executed"
		name = the_white_paper.1.c
		add_timed_idea = {
			idea = the_white_paper_3
			days = 1460
		}
		set_country_flag = {
			flag = ast_white_paper_ongoing
			days = 1460
			value = 1
		}
		ai_chance = {
			base = 0
		}
	}
}

country_event = {
	id = the_white_paper.2
	title = the_white_paper.2.t
	desc = the_white_paper.2.d
	picture = GFX_special_forces
	is_triggered_only = yes
	fire_only_once = yes

	option = {
			log = "[GetDateText]: [This.GetName]: the_white_paper.2.a executed"
		name = the_white_paper.2.a
		add_timed_idea = {
			idea = the_white_paper_4
			days = 1460
		}
		ai_chance = {
			base = 1
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: the_white_paper.2.b executed"
		name = the_white_paper.2.b
		add_timed_idea = {
			idea = the_white_paper_5
			days = 1460
		}
		ai_chance = {
			base = 1
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: the_white_paper.2.c executed"
		name = the_white_paper.2.c
		add_doctrine_cost_reduction = {
			name = the_white_paper.2.t
			cost_reduction = 0.5
			uses = 2
			category = land_doctrine
		}
		ai_chance = {
			base = 1
		}
	}
}

add_namespace = lithgow_arms

country_event = {
	id = lithgow_arms.1
	title = lithgow_arms.1.t
	desc = lithgow_arms.1.d
	picture = GFX_generic_factory
	is_triggered_only = yes
	fire_only_once = yes

	option = {
			log = "[GetDateText]: [This.GetName]: lithgow_arms.1.a executed"
		name = lithgow_arms.1.a
		set_temp_variable = { treasury_change = 2 }
		modify_treasury_effect = yes
		add_breakthrough_points = {
			specialization = specialization_land
			value = 1
		}
		ai_chance = {
			base = 1
			modifier = {
				is_historical_focus_on = yes
				add = 10
			}
		}
	}

	option = {
			log = "[GetDateText]: [This.GetName]: lithgow_arms.1.b executed"
		name = lithgow_arms.1.b
		set_temp_variable = { treasury_change = -4 }
		modify_treasury_effect = yes
		1221 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		ai_chance = {
			base = 1
		}
	}
}

add_namespace = governor_general_sacked

news_event = {
	id = governor_general_sacked.1
	title = governor_general_sacked.1.t
	desc = governor_general_sacked.1.d
	picture = GFX_news_crime_fighting
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: governor_general_sacked.1.a executed"
		name = governor_general_sacked.1.a
		add_political_power = 90
	}
}

add_namespace = rus_deal_ast

country_event = {
	id = rus_deal_ast.1
	title = rus_deal_ast.1.t
	desc = rus_deal_ast.1.d
	picture = GFX_aus_flag
	is_triggered_only = yes
	fire_only_once = yes

#approve
	option = {
			log = "[GetDateText]: [This.GetName]: rus_deal_ast.1.a executed"
		ai_chance = {
			base = 35
			modifier = {
				has_opinion = {
					target = AST
					value > 0
				}
				add = 30
			}
		}
		name = rus_deal_ast.1.a
		AST = {
			country_event = { id = rus_deal_ast.2 days = 1 }
			add_opinion_modifier = {
					target = SOV
					modifier = ast_trade_deal
				}
		}
	}

#deny
	option = {
			log = "[GetDateText]: [This.GetName]: rus_deal_ast.1.b executed"
		ai_chance = {
			base = 35
			modifier = {
				has_opinion = {
					target = AST
					value < 0
				}
				add = 30
			}
		}
		name = rus_deal_ast.1.b
		AST = {
			country_event = { id = rus_deal_ast.3 days = 1 }
		}
	}
}

country_event = {
	id = rus_deal_ast.2
	title = rus_deal_ast.2.t
	desc = rus_deal_ast.2.d
	picture = GFX_russia_protests
	is_triggered_only = yes
	fire_only_once = yes

	option = {
			log = "[GetDateText]: [This.GetName]: rus_deal_ast.2.a executed"
		name = rus_deal_ast.2.a
		SOV = {
			add_opinion_modifier = {
					target = ROOT
					modifier = ast_trade_deal
			}
		}
	}
}

country_event = {
	id = rus_deal_ast.3
	title = rus_deal_ast.3.t
	desc = rus_deal_ast.3.d
	picture = GFX_russia_protests
	is_triggered_only = yes
	fire_only_once = yes

	option = {
			log = "[GetDateText]: [This.GetName]: rus_deal_ast.3.a executed"
		name = rus_deal_ast.3.a
		add_opinion_modifier = {
					target = SOV
					modifier = refused_trade_deal
		}
	}
}

add_namespace = isr_ast_visit

country_event = {
	id = isr_ast_visit.1
	title = isr_ast_visit.1.t
	desc = isr_ast_visit.1.d
	picture = GFX_wailing_wall
	is_triggered_only = yes

	option = { name = isr_ast_visit.1.a }
}

add_namespace = adf_acq_astuirement

country_event = {
	id = adf_acq_astuirement.1
	title = adf_acq_astuirement.1.t
	desc = adf_acq_astuirement.1.d
	picture = GFX_afghanistan_war
	is_triggered_only = yes

	#usa
	option = {
			log = "[GetDateText]: [This.GetName]: adf_acq_astuirement.1.a executed"
		name = adf_acq_astuirement.1.a
		add_ideas = adf_acq_ast_1
	}

	#ger
	option = {
			log = "[GetDateText]: [This.GetName]: adf_acq_astuirement.1.b executed"
		name = adf_acq_astuirement.1.b
		add_ideas = adf_acq_ast_2
	}

	#bel
	option = {
			log = "[GetDateText]: [This.GetName]: adf_acq_astuirement.1.c executed"
		name = adf_acq_astuirement.1.c
		add_ideas = adf_acq_ast_3
	}
}

add_namespace = ast_high_speed_rail

country_event = {
	id = ast_high_speed_rail.1
	title = ast_high_speed_rail.1.t
	desc = ast_high_speed_rail.1.d
	picture = GFX_high_speed_ast
	is_triggered_only = yes

	option = {
			log = "[GetDateText]: [This.GetName]: ast_high_speed_rail.1.a executed"
		name = ast_high_speed_rail.1.a
		set_temp_variable = { treasury_change = -12 }
		modify_treasury_effect = yes
		hidden_effect = {
			country_event = { id = ast_high_speed_rail.2 days = 320 }
		}
		ai_chance = { base = 1 }
	}

	option = {
			log = "[GetDateText]: [This.GetName]: ast_high_speed_rail.1.b executed"
		name = ast_high_speed_rail.1.b
		set_country_flag = cancel_rail_ast
		add_timed_idea = {
			idea = reusing_rail_resources_ast
			days = 760
		}
		custom_effect_tooltip = ast_rail_tt
		ai_chance = { base = 0 }
	}
}

country_event = {
	id = ast_high_speed_rail.2
	title = ast_high_speed_rail.2.t
	desc = ast_high_speed_rail.2.d
	picture = GFX_high_speed_ast
	is_triggered_only = yes

	option = {
			log = "[GetDateText]: [This.GetName]: ast_high_speed_rail.2.a executed"
		name = ast_high_speed_rail.2.a
		set_temp_variable = { treasury_change = -26 }
		modify_treasury_effect = yes
		hidden_effect = {
			country_event = { id = ast_high_speed_rail.3 days = 614 }
		}
		ai_chance = { base = 1 }
	}

	option = {
			log = "[GetDateText]: [This.GetName]: ast_high_speed_rail.2.b executed"
		name = ast_high_speed_rail.2.b
		set_country_flag = cancel_rail_ast
		add_timed_idea = {
			idea = reusing_rail_resources_ast
			days = 760
		}
		custom_effect_tooltip = ast_rail_tt
		ai_chance = { base = 0 }
	}
}

country_event = {
	id = ast_high_speed_rail.3
	title = ast_high_speed_rail.3.t
	desc = ast_high_speed_rail.3.d
	picture = GFX_high_speed_ast
	is_triggered_only = yes

	option = {
			log = "[GetDateText]: [This.GetName]: ast_high_speed_rail.3.a executed"
		name = ast_high_speed_rail.3.a
		set_temp_variable = { treasury_change = -45 }
		modify_treasury_effect = yes
		hidden_effect = {
			country_event = { id = ast_high_speed_rail.4 days = 834 }
		}
		ai_chance = { base = 1 }
	}

	option = {
			log = "[GetDateText]: [This.GetName]: ast_high_speed_rail.3.b executed"
		name = ast_high_speed_rail.3.b
		set_country_flag = cancel_rail_ast
		add_timed_idea = {
			idea = reusing_rail_resources_ast
			days = 760
		}
		custom_effect_tooltip = ast_rail_tt
		ai_chance = { base = 0 }
	}
}

country_event = {
	id = ast_high_speed_rail.4
	title = ast_high_speed_rail.4.t
	desc = ast_high_speed_rail.4.d
	picture = GFX_high_speed_ast
	is_triggered_only = yes

	option = {
			log = "[GetDateText]: [This.GetName]: ast_high_speed_rail.4.a executed"
		name = ast_high_speed_rail.4.a
		set_temp_variable = { treasury_change = -80 }
		modify_treasury_effect = yes
		ai_chance = { base = 1 }
	}

	option = {
			log = "[GetDateText]: [This.GetName]: ast_high_speed_rail.4.b executed"
		name = ast_high_speed_rail.4.b
		set_country_flag = cancel_rail_ast
		add_timed_idea = {
			idea = reusing_rail_resources_ast
			days = 760
		}
		custom_effect_tooltip = ast_rail_tt
		ai_chance = { base = 0 }
	}
}

news_event = {
	id = ast_high_speed_rail.5
	title = ast_high_speed_rail.5.t
	desc = ast_high_speed_rail.5.d
	picture = GFX_high_speed_rail_event_ast
	is_triggered_only = yes

	option = { name = ast_high_speed_rail.5.a }
}

add_namespace = closing_the_gap_event

country_event = {
	id = closing_the_gap_event.1
	is_triggered_only = yes
	hidden = yes

	immediate = {
		random_list = {
					35 = {
						modifier = {
							factor = 2
							has_idea = edu_05
						}
						country_event = { id = closing_the_gap_event.3 days = 1040 }
					}
					65 = {
						country_event = { id = closing_the_gap_event.2 days = 1040 }
					}
				}
	}
}

country_event = {
	id = closing_the_gap_event.2
	title = closing_the_gap_event.2.t
	desc = closing_the_gap_event.2.d
	picture = GFX_generic_education_event_picture
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: closing_the_gap_event.2.a executed"
		name = closing_the_gap_event.2.a
		add_ideas = literacy_progress_the_gap_ast_1
	}

	option = {
		log = "[GetDateText]: [This.GetName]: closing_the_gap_event.2.b executed"
		name = closing_the_gap_event.2.b
		add_political_power = 80
	}
}

country_event = {
	id = closing_the_gap_event.3
	title = closing_the_gap_event.2.t
	desc = closing_the_gap_event.3.d
	picture = GFX_generic_education_event_picture
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: closing_the_gap_event.3.a executed"
		name = closing_the_gap_event.3.a
		add_stability = 0.03
		add_ideas = literacy_progress_the_gap_ast
	}
}

add_namespace = papua_affair

country_event = {
	id = papua_affair.1
	title = papua_affair.1.t
	desc = papua_affair.1.d
	picture = GFX_passenger_plane
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: papua_affair.1.a executed"
		name = papua_affair.1.a
		add_political_power = -150
		PAP = { country_event = papua_affair.2 }
		ai_chance = { base = 1 }
	}

	option = {
		log = "[GetDateText]: [This.GetName]: papua_affair.1.b executed"
		name = papua_affair.1.b
		add_political_power = 50
		PAP = {
			add_opinion_modifier = {
				target = AST
				modifier = insult
			}
		}
		ai_chance = { base = 0 }
	}
}

country_event = {
	id = papua_affair.2
	title = papua_affair.2.t
	desc = papua_affair.2.d
	picture = GFX_papua_aus
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: papua_affair.2.a executed"
		name = papua_affair.2.a
		add_ideas = australian_rubber_pact_ast
		set_temp_variable = { temp_opinion = 20 }
		change_landowners_opinion = yes
		newline = yes
		AST = {
			country_event = { id = papua_affair.3 days = 1 }
		}
		ai_chance = { base = 80 }
	}

	option = {
		log = "[GetDateText]: [This.GetName]: papua_affair.2.b executed"
		name = papua_affair.2.b
		set_temp_variable = { temp_opinion = -5 }
		change_landowners_opinion = yes
		set_temp_variable = { percent_change = 5 }
		change_domestic_influence_percentage = yes
		newline = yes
		AST = {
			add_opinion_modifier = {
				target = PAP
				modifier = refused_trade_deal
			}
			country_event = { id = papua_affair.4 days = 1 }
		}
		ai_chance = { base = 20 }
	}
}

#png accepts
country_event = {
	id = papua_affair.3
	title = papua_affair.3.t
	desc = papua_affair.3.d
	picture = GFX_papua_aus
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: papua_affair.3.a executed"
		name = papua_affair.3.a
		add_ideas = png_rubber_pact_ast
		newline = yes
		set_temp_variable = { percent_change = 8 }
		set_temp_variable = { tag_index = AST }
		set_temp_variable = { influence_target = PAP }
		change_influence_percentage = yes
		set_temp_variable = { treasury_change = -2.5 }
		modify_treasury_effect = yes
	}
}

#png refuses
country_event = {
	id = papua_affair.4
	title = papua_affair.4.t
	desc = papua_affair.4.d
	picture = GFX_passenger_plane
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: papua_affair.4.a executed"
		name = papua_affair.4.a
		add_timed_idea = {
			idea = synthetic_investment_ast
			days = 340
		}
		set_temp_variable = { treasury_change = -4.5 }
		modify_treasury_effect = yes
	}
}

add_namespace = ast_howard_of_arabia

country_event = {
	id = ast_howard_of_arabia.1
	title = ast_howard_of_arabia.1.t
	desc = ast_howard_of_arabia.1.d
	picture = GFX_israeli_government_event
	is_triggered_only = yes

	option = {
			log = "[GetDateText]: [This.GetName]: ast_howard_of_arabia.1.a executed"
		name = ast_howard_of_arabia.1.a
		give_guarantee = ISR
		ISR = { give_military_access = AST }
	}

	option = {
			log = "[GetDateText]: [This.GetName]: ast_howard_of_arabia.1.b executed"
		name = ast_howard_of_arabia.1.b
		ISR = {
			add_opinion_modifier = {
				target = ROOT
				modifier = isr_walked_back_on_negotiations
			}
		}
	}
}

add_namespace = indonesian_ultimatum

country_event = {
	id = indonesian_ultimatum.1
	title = indonesian_ultimatum.1.t
	desc = indonesian_ultimatum.1.d
	picture = GFX_aus_flag
	is_triggered_only = yes

	#yes
	option = {
			log = "[GetDateText]: [This.GetName]: indonesian_ultimatum.1.a executed"
		name = indonesian_ultimatum.1.a
		add_stability = -0.15
		AST = {
			country_event = { id = indonesian_ultimatum.2 days = 1 }
			add_threat = 6
		}
		622 = { transfer_state_to = AST }
		add_opinion_modifier = {
			target = AST
			modifier = peacekeepers_occupying_our_territory
		}
		ai_chance = {
			base = 10
			modifier = {
				has_opinion = {
					target = AST
					value > 80
				}
				add = 80
			}
		}
	}

	#no
	option = {
			log = "[GetDateText]: [This.GetName]: indonesian_ultimatum.1.b executed"
		name = indonesian_ultimatum.1.b
		AST = {
			country_event = { id = indonesian_ultimatum.3 days = 1 }
		}
		ai_chance = {
			base = 10
			modifier = {
				has_opinion = {
					target = AST
					value < 80
				}
				add = 80
			}
		}
	}
}

#Ind says yes
country_event = {
	id = indonesian_ultimatum.2
	title = indonesian_ultimatum.2.t
	desc = indonesian_ultimatum.2.d
	picture = GFX_internal_conflict
	is_triggered_only = yes

	option = { name = indonesian_ultimatum.2.a }
}

#Ind says no
country_event = {
	id = indonesian_ultimatum.3
	title = indonesian_ultimatum.3.t
	desc = indonesian_ultimatum.3.d
	picture = GFX_internal_conflict
	is_triggered_only = yes

	option = {
			log = "[GetDateText]: [This.GetName]: indonesian_ultimatum.3.a executed"
		name = indonesian_ultimatum.3.a
		add_opinion_modifier = {
			target = IND
			modifier = denied_us_ast
		}
		if = {
			limit = { has_dlc = "By Blood Alone" }
			send_embargo = IND
		}
		IND = { add_ideas = australian_sanctions }
		add_threat = 2
	}
}

#if aceh exists
country_event = {
	id = indonesian_ultimatum.4
	title = indonesian_ultimatum.4.t
	desc = indonesian_ultimatum.4.d
	picture = GFX_aus_flag
	is_triggered_only = yes

	#yes
	option = {
			log = "[GetDateText]: [This.GetName]: indonesian_ultimatum.4.a executed"
		add_stability = -0.15
		name = indonesian_ultimatum.4.a
		add_opinion_modifier = {
			target = AST
			modifier = peacekeepers_occupying_our_territory
		}
		AST = {
			country_event = { id = indonesian_ultimatum.2 days = 1 }
			annex_country = { target = ACE }
			add_threat = 6
		}
		ai_chance = {
			base = 10
			modifier = {
				has_opinion = {
					target = AST
					value > 80
				}
				add = 80
			}
		}
	}

	#no
	option = {
			log = "[GetDateText]: [This.GetName]: indonesian_ultimatum.4.b executed"
		name = indonesian_ultimatum.4.b
		AST = {
			country_event = { id = indonesian_ultimatum.3 days = 1 }
		}
		ai_chance = {
			base = 10
			modifier = {
				has_opinion = {
					target = AST
					value < 80
				}
				add = 80
			}
		}
	}
}

add_namespace = us_aus_trade_howrd

country_event = {
	id = us_aus_trade_howrd.1
	title = us_aus_trade_howrd.1.t
	desc = us_aus_trade_howrd.1.d
	picture = GFX_aus_flag
	is_triggered_only = yes

	#US says yes
	option = {
		log = "[GetDateText]: [This.GetName]: us_aus_trade_howrd.1.a executed"
		name = us_aus_trade_howrd.1.a
		add_timed_idea = {
			idea = ausfta_2
			days = 780
		}
		newline = yes
		AST = {
			country_event = { id = us_aus_trade_howrd.2 days = 1 }
			add_opinion_modifier = {
				target = USA
				modifier = ast_trade_deal
			}
		}
		ai_chance = { base = 20 }
	}

	option = {
		log = "[GetDateText]: [This.GetName]: us_aus_trade_howrd.1.b executed"
		name = us_aus_trade_howrd.1.b
		add_timed_idea = {
			idea = ausfta_3
			days = 780
		}
		newline = yes
		AST = {
			country_event = { id = us_aus_trade_howrd.4 days = 1 }
			add_opinion_modifier = {
				target = USA
				modifier = ast_trade_deal
			}
			add_opinion_modifier = {
				target = USA
				modifier = exclusionary_deal
			}
		}
		ai_chance = { base = 80 }
	}

	option = {
		log = "[GetDateText]: [This.GetName]: us_aus_trade_howrd.1.c executed"
		name = us_aus_trade_howrd.1.c
		AST = {
			country_event = { id = us_aus_trade_howrd.3 days = 1 }
			add_opinion_modifier = {
				target = USA
				modifier = refused_trade_deal
			}
		}
		ai_chance = { base = 0 }
	}
}

#US accepts
country_event = {
	id = us_aus_trade_howrd.2
	title = us_aus_trade_howrd.2.t
	desc = us_aus_trade_howrd.2.d
	picture = GFX_grain_silo_investments
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: us_aus_trade_howrd.2.a executed"
		name = us_aus_trade_howrd.2.a
		add_timed_idea = {
			idea = ausfta_1
			days = 780
		}
		newline = yes
		USA = {
			add_opinion_modifier = {
				target = AST
				modifier = ast_trade_deal
			}
		}
		newline = yes
		set_temp_variable = { temp_opinion = 10 }
		change_landowners_opinion = yes
	}
}

#US refuses
country_event = {
	id = us_aus_trade_howrd.3
	title = us_aus_trade_howrd.3.t
	desc = us_aus_trade_howrd.3.d
	picture = GFX_us_flag
	is_triggered_only = yes

	option = {
		name = us_aus_trade_howrd.3.a
	}
}

#Modified deal
country_event = {
	id = us_aus_trade_howrd.4
	title = us_aus_trade_howrd.4.t
	desc = us_aus_trade_howrd.4.d
	picture = GFX_us_flag
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: us_aus_trade_howrd.4.a executed"
		name = us_aus_trade_howrd.4.a
		add_timed_idea = {
			idea = ausfta
			days = 780
		}
		newline = yes
		USA = {
			add_opinion_modifier = {
				target = AST
				modifier = ast_trade_deal
			}
		}
		newline = yes
		set_temp_variable = { temp_opinion = -10 }
		change_landowners_opinion = yes
	}
}

add_namespace = trip_to_malaysia_ast

country_event = {
	id = trip_to_malaysia_ast.1
	title = trip_to_malaysia_ast.1.t
	desc = trip_to_malaysia_ast.1.d
	picture = GFX_aus_mal
	is_triggered_only = yes

	option = {
			log = "[GetDateText]: [This.GetName]: trip_to_malaysia_ast.1.a executed"
		name = trip_to_malaysia_ast.1.a
		add_ideas = malaysia_aus_trade_deal_ast
		MAY = {
			add_opinion_modifier = {
				target = AST
				modifier = ast_trade_deal
			}
		}
	}

	option = {
			log = "[GetDateText]: [This.GetName]: trip_to_malaysia_ast.1.b executed"
		name = trip_to_malaysia_ast.1.b
		MAY = {
			add_opinion_modifier = {
				target = AST
				modifier = refused_trade_deal
			}
		}
	}
}

add_namespace = internal_talk_liberal

country_event = {
	id = internal_talk_liberal.1
	title = internal_talk_liberal.1.t
	desc = internal_talk_liberal.1.d
	picture = GFX_howard_peter
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: internal_talk_liberal.1.a executed"
		name = internal_talk_liberal.1.a
		add_political_power = 50
	}
}

country_event = {
	id = internal_talk_liberal.2
	title = internal_talk_liberal.2.t
	desc = internal_talk_liberal.2.d
	picture = GFX_howard_tony
	is_triggered_only = yes

	option = {
			log = "[GetDateText]: [This.GetName]: internal_talk_liberal.2.a executed"
		name = internal_talk_liberal.2.a
		add_ideas = decreased_bulk_billing_coverage_ast
	}
}

country_event = {
	id = internal_talk_liberal.3
	title = internal_talk_liberal.3.t
	desc = internal_talk_liberal.3.d
	picture = GFX_aus_flag
	is_triggered_only = yes

	option = {
			log = "[GetDateText]: [This.GetName]: internal_talk_liberal.3.a executed"
		name = internal_talk_liberal.3.a
		set_country_flag = howard_successor_picked
		set_country_flag = peter_picked_ast
		custom_effect_tooltip = internal_talk_liberal.3.a_tt
		ai_chance = { base = 1.5 }
	}

	option = {
			log = "[GetDateText]: [This.GetName]: internal_talk_liberal.3.b executed"
		name = internal_talk_liberal.3.b
		set_country_flag = howard_successor_picked
		custom_effect_tooltip = internal_talk_liberal.3.b_tt
		ai_chance = { base = 0 }
	}

	option = {
			log = "[GetDateText]: [This.GetName]: internal_talk_liberal.3.c executed"
		name = internal_talk_liberal.3.c
		add_stability = -0.02
		custom_effect_tooltip = internal_talk_liberal.3.c_tt
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = internal_talk_liberal.4
	title = internal_talk_liberal.4.t
	desc = internal_talk_liberal.4.d
	picture = GFX_howard_out
	is_triggered_only = yes

	option = {
			log = "[GetDateText]: [This.GetName]: internal_talk_liberal.4.a executed"
		name = internal_talk_liberal.4.a
		retire_character = AST_leader_john_howard
		promote_character = AST_leader_peter_costello
		load_focus_tree = {
				tree = costellogov_focus
				keep_completed = yes
			}
	}
}

country_event = {
	id = internal_talk_liberal.5
	title = internal_talk_liberal.4.t
	desc = internal_talk_liberal.5.d
	picture = GFX_howard_out
	is_triggered_only = yes

	option = {
			log = "[GetDateText]: [This.GetName]: internal_talk_liberal.4.a executed"
		name = internal_talk_liberal.4.a
		retire_character = AST_leader_john_howard
		promote_character = AST_leader_tony_abbott
		load_focus_tree = {
				tree = australia_abbottgov_focus
				keep_completed = yes
			}
	}
}

add_namespace = detention_centres_full

country_event = {
	id = detention_centres_full.1
	title = detention_centres_full.1.t
	desc = detention_centres_full.1.d
	picture = GFX_detention_centre_ast
	is_triggered_only = yes

	option = {
			log = "[GetDateText]: [This.GetName]: detention_centres_full.1.a executed"
		name = detention_centres_full.1.a
		if = {
			limit = { has_idea = boat_arrivals_ast_3 }
			swap_ideas = {
				remove_idea = boat_arrivals_ast_3
				add_idea = boat_arrivals_ast_2
			}
		}
		else_if = {
			limit = { has_idea = boat_arrivals_ast_2 }
			swap_ideas = {
				remove_idea = boat_arrivals_ast_2
				add_idea = boat_arrivals_ast
			}
		}
		add_timed_idea = {
			idea = detention_centre_emergency_funding_ast
			days = 230
		}
	}
}

add_namespace = howard_rumblings_in_dark

country_event = {
	id = howard_rumblings_in_dark.1
	title = howard_rumblings_in_dark.1.t
	desc = howard_rumblings_in_dark.1.d
	picture = GFX_peter_howard_stare
	is_triggered_only = yes

	immediate = { set_country_flag = howard_rumblings_fired }

	option = {
			log = "[GetDateText]: [This.GetName]: howard_rumblings_in_dark.1.a executed"
		name = howard_rumblings_in_dark.1.a
		custom_effect_tooltip = howard_rumblings_in_dark_tt
	}
}

######################
#Abbott Events
##################

country_event = {
	id = howard_rumblings_in_dark.2
	title = howard_rumblings_in_dark.2.t
	desc = howard_rumblings_in_dark.2.d
	picture = GFX_howard_out
	is_triggered_only = yes

	option = {
			log = "[GetDateText]: [This.GetName]: howard_rumblings_in_dark.2.a executed"
		name = howard_rumblings_in_dark.2.a
		add_stability = -0.02
		retire_character = AST_leader_john_howard
		promote_character = AST_leader_peter_costello
		load_focus_tree = {
				tree = costellogov_focus
				keep_completed = yes
			}
	}
}

add_namespace = abbott_gov_event

#cabinet
news_event = {
	id = abbott_gov_event.1
	title = abbott_gov_event.1.t
	desc = abbott_gov_event.1.d
	picture = GFX_abbott_cabinet
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: abbott_gov_event.1.a executed"
		name = abbott_gov_event.1.a
		add_political_power = -20
	}
}

#consitutional amendment
news_event = {
	id = abbott_gov_event.2
	title = abbott_gov_event.2.t
	desc = abbott_gov_event.2.d
	picture = GFX_abbott_indigenous_folk
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: abbott_gov_event.2.a executed"
		name = abbott_gov_event.2.a
		if = {
				limit = { has_idea = reform_despair_ast }
				swap_ideas = {
					remove_idea = reform_despair_ast
					add_idea = reconciliation_discontent
				}
			}
		else = { add_stability = 0.05 }
	}
}

#onion incident
country_event = {
	id = abbott_gov_event.3
	title = abbott_gov_event.3.t
	desc = abbott_gov_event.3.d
	picture = GFX_abbott_onion
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: abbott_gov_event.3.a executed"
		name = abbott_gov_event.3.a
		set_temp_variable = { party_popularity_increase = -0.03 }
		change_relative_party_popularity = yes
	}
}

#bauxite mine
country_event = {
	id = abbott_gov_event.4
	title = abbott_gov_event.4.t
	desc = abbott_gov_event.4.d
	picture = GFX_arnhem_land
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: abbott_gov_event.4.a executed"
		name = abbott_gov_event.4.a
		add_resource = {
				type = aluminium
				amount = 5
				state = 747
			}
		set_temp_variable = { temp_opinion = 20 }
		change_fossil_fuel_industry_opinion = yes
		set_temp_variable = { temp_opinion = -20 }
		change_labour_unions_opinion = yes
	}

	option = {
		log = "[GetDateText]: [This.GetName]: abbott_gov_event.4.b executed"
		name = abbott_gov_event.4.b
		add_stability = 0.02
		set_temp_variable = { temp_opinion = 20 }
		change_labour_unions_opinion = yes
		set_temp_variable = { temp_opinion = -20 }
		change_fossil_fuel_industry_opinion = yes
	}
}

#suppository event
country_event = {
	id = abbott_gov_event.5
	title = abbott_gov_event.5.t
	desc = abbott_gov_event.5.d
	picture = GFX_abbott_suppository_of_wisdom
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: abbott_gov_event.5.a executed"
		name = abbott_gov_event.5.a
		add_timed_idea = {
			idea = national_curriculum_project_ast
			days = 780
		}
		set_temp_variable = { treasury_change = -9.5 }
		modify_treasury_effect = yes
		newline = yes
		set_temp_variable = { party_popularity_increase = -0.02 }
		change_relative_party_popularity = yes
	}
}

#national audit
country_event = {
	id = abbott_gov_event.6
	title = abbott_gov_event.6.t
	desc = abbott_gov_event.6.d
	picture = GFX_aus_currency
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: abbott_gov_event.6.a executed"
		name = abbott_gov_event.6.a
		add_stability = -0.02
		add_ideas = national_audit_commission_idea_ast
	}

	option = {
		log = "[GetDateText]: [This.GetName]: abbott_gov_event.6.b executed"
		name = abbott_gov_event.6.b
		add_stability = -0.05
		add_ideas = national_audit_commission_idea_ast_2
		newline = yes
		set_temp_variable = { party_popularity_increase = -0.03 }
		change_relative_party_popularity = yes
	}
}

add_namespace = malcolm_abbott_event

country_event = {
	id = malcolm_abbott_event.1
	title = malcolm_abbott_event.1.t
	desc = malcolm_abbott_event.1.d
	picture = GFX_abbott_turnbull_event_image
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		log = "[GetDateText]: [This.GetName]: malcolm_abbott_event.1.a executed"
		name = malcolm_abbott_event.1.a
		custom_effect_tooltip = malcolm_abbott_event_tt
		set_country_flag = malcolm_abbott_promise_made
	}

	option = {
		log = "[GetDateText]: [This.GetName]: malcolm_abbott_event.1.b executed"
		name = malcolm_abbott_event.1.b
		add_political_power = -30
	}
}

news_event = {
	id = malcolm_abbott_event.2
	title = malcolm_abbott_event.2.t
	desc = malcolm_abbott_event.2.d
	picture = GFX_abbott_puppet
	is_triggered_only = yes
	fire_only_once = yes

	immediate = {
		hidden_effect = {
			country_event = { id = malcolm_abbott_event.3 days = 65 }
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: malcolm_abbott_event.1.a executed"
		name = malcolm_abbott_event.2.a
		add_stability = -0.03
		set_temp_variable = { party_popularity_increase = -0.02 }
		change_relative_party_popularity = yes
		trigger = { NOT = { has_country_flag = malcolm_abbott_promise_made } }
	}

	option = {
		log = "[GetDateText]: [This.GetName]: malcolm_abbott_event.1.b executed"
		name = malcolm_abbott_event.2.a
		add_stability = -0.05
		set_temp_variable = { party_popularity_increase = -0.06 }
		change_relative_party_popularity = yes
		trigger = { has_country_flag = malcolm_abbott_promise_made }
	}
}

country_event = {
	id = malcolm_abbott_event.3
	title = malcolm_abbott_event.3.t
	desc = malcolm_abbott_event.3.d
	picture = GFX_emptychair_ast
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { has_focus_tree = australia_abbottgov_focus }

	immediate = {
		hidden_effect = {
			if = {
				limit = { has_country_flag = ast_keep_them_in_line_completed }
				add_political_power = 5
			}
			else = {
				country_event = { id = malcolm_abbott_event.4 days = 217 }
			}
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: malcolm_abbott_event.3.a executed"
		name = malcolm_abbott_event.3.a
		add_political_power = -80
	}
}

#overthrow
country_event = {
	id = malcolm_abbott_event.4
	title = malcolm_abbott_event.4.t
	desc = malcolm_abbott_event.4.d
	picture = GFX_abbott_dark
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		has_focus_tree = australia_abbottgov_focus
		NOT = { has_country_flag = abbott_war_declared_china }
	}

	option = {
		log = "[GetDateText]: [This.GetName]: malcolm_abbott_event.4.a executed"
		name = malcolm_abbott_event.4.a
		add_stability = -0.03
		news_event = { id = malcolm_abbott_event.5 days = 2 }
	}
}

news_event = {
	id = malcolm_abbott_event.5
	title = malcolm_abbott_event.5.t
	desc = malcolm_abbott_event.5.d
	picture = GFX_malcolm_sworn_in
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		log = "[GetDateText]: [This.GetName]: malcolm_abbott_event.5.a executed"
		name = malcolm_abbott_event.5.a
		hidden_effect = {
			kill_country_leader = yes
			create_country_leader = {
						name = "Malcolm Turnbull"
						picture = "malcolm_turnbull_1.dds"
						ideology = conservatism
						traits = {
							western_conservatism
						}
					}
			load_focus_tree = {
				tree = turnbullgov_focus
				keep_completed = yes
			}
		}
		custom_effect_tooltip = focus_tree_has_changed_ast_tt
	}
}


#foreign events
add_namespace = abbott_jakarta_event

country_event = {
	id = abbott_jakarta_event.1
	title = abbott_jakarta_event.1.t
	desc = abbott_jakarta_event.1.d
	picture = GFX_abbott_on_plane
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: abbott_jakarta_event.1.a executed"
		name = abbott_jakarta_event.1.a
		IND = {
			add_timed_idea = {
				idea = australian_developmental_aid_ast
				days = 760
			}
			add_opinion_modifier = {
				target = AST
				modifier = diplomatic_approachment_ast
			}
		}
	}
}

add_namespace = knights_and_dames_ast_event

news_event = {
	id = knights_and_dames_ast_event.1
	title = knights_and_dames_ast_event.1.t
	desc = knights_and_dames_ast_event.1.d
	picture = GFX_ast_knighthood_philip
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: knights_and_dames_ast_event.1.a executed"
		name = knights_and_dames_ast_event.1.a
		set_temp_variable = { party_popularity_increase = -0.03 }
		change_relative_party_popularity = yes
	}
}

add_namespace = o_canada_abbott

country_event = {
	id = o_canada_abbott.1
	title = o_canada_abbott.1.t
	desc = o_canada_abbott.1.d
	picture = GFX_aus_flag
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: o_canada_abbott.1.a executed"
		name = o_canada_abbott.1.a
		add_ideas = canadian_australian_mining_cooperation_ast_2
		AST = {
			country_event = { id = o_canada_abbott.2 days = 1 }
		}
		ai_chance = { base = 1 }
	}

	option = {
		name = o_canada_abbott.1.b
		ai_chance = { base = 0 }
	}
}

country_event = {
	id = o_canada_abbott.2
	title = o_canada_abbott.2.t
	desc = o_canada_abbott.2.d
	picture = GFX_abbott_canada
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: o_canada_abbott.2.a executed"
		name = o_canada_abbott.2.a
		add_ideas = canadian_australian_mining_cooperation_ast
		newline = yes
		CAN = {
			add_opinion_modifier = {
				target = AST
				modifier = minor_insult_ast
			}
		}
	}
}

add_namespace = abbott_navy_exercises_event

country_event = {
	id = abbott_navy_exercises_event.1
	title = abbott_navy_exercises_event.1.t
	desc = abbott_navy_exercises_event.1.d
	picture = GFX_australia_america_deal
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: abbott_navy_exercises_event.1.a executed"
		name = abbott_navy_exercises_event.1.a
		USA = {
				add_opinion_modifier = {
					target = AST
					modifier = hosted_military_exercise
				}
			}
		newline = yes
		add_tech_bonus = {
			name = abbott_navy_exercises_event.1.t
				bonus = 1
				uses = 2
				category = CAT_naval_modules
				} hidden_effect = { rq_eb_c604d99ae2 = yes }
		add_tech_bonus = {
			name = abbott_navy_exercises_event.1.t
				bonus = 0.7
				uses = 1
				category = CAT_aircraft
				} hidden_effect = { rq_eb_ea915a3113 = yes }
	}
}




add_namespace = abbott_china_trade

country_event = {
	id = abbott_china_trade.1
	title = abbott_china_trade.1.t
	desc = abbott_china_trade.1.d
	picture = GFX_aus_flag
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: abbott_china_trade.1.a executed"
		name = abbott_china_trade.1.a
		add_ideas = chinese_export_bonus_ast_5
		AST = {
			add_opinion_modifier = {
			target = CHI
			modifier = signed_trade_deal_ast
			}
			country_event = { id = abbott_china_trade.2 days = 1 }
		}
		ai_chance = { base = 1 }
	}

	option = {
		log = "[GetDateText]: [This.GetName]: abbott_china_trade.1.b executed"
		name = abbott_china_trade.1.b
		AST = {
			add_opinion_modifier = {
				target = CHI
				modifier = refused_trade_deal
			}
			country_event = { id = abbott_china_trade.3 days = 1 }
		}
		ai_chance = { base = 0 }
	}
}

country_event = {
	id = abbott_china_trade.2
	title = abbott_china_trade.2.t
	desc = abbott_china_trade.2.d
	picture = GFX_abbott_china
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: abbott_china_trade.2.a executed"
		name = abbott_china_trade.2.a
		add_ideas = chinese_export_bonus_ast_4
		add_war_support = -0.05
	}
}

country_event = {
	id = abbott_china_trade.3
	title = abbott_china_trade.3.t
	desc = abbott_china_trade.3.d
	picture = GFX_CHI_beijing
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: abbott_china_trade.3.a executed"
		name = abbott_china_trade.3.a
		add_political_power = -50
	}
}

add_namespace = abbott_japan_trade_deal

country_event = {
	id = abbott_japan_trade_deal.1
	title = abbott_japan_trade_deal.1.t
	desc = abbott_japan_trade_deal.1.d
	picture = GFX_aus_flag
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: abbott_japan_trade_deal.1.a executed"
		name = abbott_japan_trade_deal.1.a
		add_ideas = australian_agricultural_deal_jap
		AST = {
			country_event = { id = abbott_japan_trade_deal.2 days = 1 }
		}
		ai_chance = {
			base = 10
			modifier = {
				has_opinion = {
					target = AST
					value > 10
				}
				add = 80
			}
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: abbott_japan_trade_deal.1.b executed"
		name = abbott_japan_trade_deal.1.b
		AST = {
			country_event = { id = abbott_japan_trade_deal.3 days = 1 }
			add_opinion_modifier = {
				target = JAP
				modifier = refused_trade_deal
			}
		}
		ai_chance = {
			base = 10
			modifier = {
				has_opinion = {
					target = AST
					value < 10
				}
				add = 80
			}
		}
	}
}

#yes
country_event = {
	id = abbott_japan_trade_deal.2
	title = abbott_japan_trade_deal.2.t
	desc = abbott_japan_trade_deal.2.d
	picture = GFX_jap_flag
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: abbott_japan_trade_deal.2.a executed"
		name = abbott_japan_trade_deal.2.a
		if = {
			limit = { has_idea = japanese_export_deal_ast }
			swap_ideas = {
				remove_idea = japanese_export_deal_ast
				add_idea = japanese_export_deal_ast_2
			}
		}
		else_if = {
			limit = { has_idea = japanese_export_deal_ast_1 }
			swap_ideas = {
				remove_idea = japanese_export_deal_ast_1
				add_idea = japanese_export_deal_ast_2
			}
		}
		else = { add_ideas = japanese_export_deal_ast_2 }
	}
}

#no
country_event = {
	id = abbott_japan_trade_deal.3
	title = ast_jap_trade.4.t
	desc = ast_jap_trade.4.d
	picture = GFX_jap_flag
	is_triggered_only = yes

	option = { name = ast_jap_trade.4.a }
}

add_namespace = abbott_saf_event

country_event = {
	id = abbott_saf_event.1
	title = abbott_saf_event.1.t
	desc = {
		text = abbott_saf_event.1.d.a
		trigger = { date < 2013.12.05 }
	}
	desc = {
		text = abbott_saf_event.1.d.b
		trigger = { date > 2013.12.05 }
	}
	picture = GFX_saf_abott_pic
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: abbott_saf_event.1.a executed"
		name = abbott_saf_event.1.a
		SAF = {
			add_opinion_modifier = {
				target = AST
				modifier = supports_us_temp_ast
			}
		}
		set_temp_variable = { temp_opinion = -10 }
		change_landowners_opinion = yes
	}

	option = {
		log = "[GetDateText]: [This.GetName]: abbott_saf_event.1.b executed"
		name = abbott_saf_event.1.b
		SAF = {
			add_opinion_modifier = {
				target = AST
				modifier = did_not_support_us
			}
		}
		add_timed_idea = {
			idea = south_african_refugees_supported_ast
			days = 340
		}
	}
}

add_namespace = indonesian_intervention_abbott

country_event = {
	id = indonesian_intervention_abbott.1
	title = myanmar_intervention_gillard.1.t
	desc = myanmar_intervention_gillard.1.d
	picture = GFX_aus_adf
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: myanmar_intervention_gillard.1.a executed"
		name = myanmar_intervention_gillard.1.a
		AST = {
			country_event = { id = aus_war_on_terror_abbott.1 days = 1 }
			add_opinion_modifier = {
				target = IND
				modifier = denied_us_ast
			}
		}
		ai_chance = { base = 1 }
	}

	option = {
		log = "[GetDateText]: [This.GetName]: myanmar_intervention_gillard.1.b executed"
		name = myanmar_intervention_gillard.1.b
		AST = {
			country_event = { id = indonesian_intervention_abbott.3 days = 1 }
		}
		ai_chance = { base = 0 }
	}
}

country_event = {
	id = indonesian_intervention_abbott.3
	title = indonesian_intervention_abbott.3.t
	desc = indonesian_intervention_abbott.3.d
	picture = GFX_aus_adf
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: indonesian_intervention_abbott.3.a executed"
		name = indonesian_intervention_abbott.3.a
		puppet = IND
		IND = {
			add_opinion_modifier = {
				target = AST
				modifier = peacekeepers_occupying_our_territory
			}
		}
	}
}

add_namespace = oceanic_alliance_ast

country_event = {
	id = oceanic_alliance_ast.1
	title = oceanic_alliance_ast.1.t
	desc = oceanic_alliance_ast.1.d
	picture = GFX_aus_flag
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: oceanic_alliance_ast.1.a executed"
		name = oceanic_alliance_ast.1.a
		ai_chance = {
			base = 5
			modifier = {
				has_opinion = {
					target = AST
					value > 0
				}
				add = 90
			}
		}
		AST = { add_to_faction = ROOT }
	}

	option = {
		log = "[GetDateText]: [This.GetName]: oceanic_alliance_ast.1.b executed"
		name = oceanic_alliance_ast.1.b
		trigger = { tag = NZL }
		AST = {
			country_event = { id = oceanic_alliance_ast.2 days = 2 }
		}
		ai_chance = {
			base = 5
			modifier = {
				has_opinion = {
					target = AST
					value < 0
				}
				add = 90
			}
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: oceanic_alliance_ast.1.b executed"
		name = oceanic_alliance_ast.1.b
		trigger = { tag = IND }
		AST = {
			country_event = { id = oceanic_alliance_ast.3 days = 2 }
		}
		ai_chance = {
			base = 5
			modifier = {
				has_opinion = {
					target = AST
					value < 0
				}
				add = 90
			}
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: oceanic_alliance_ast.1.b executed"
		name = oceanic_alliance_ast.1.b
		trigger = { tag = PAP }
		AST = {
			country_event = { id = oceanic_alliance_ast.4 days = 2 }
		}
		ai_chance = {
			base = 5
			modifier = {
				has_opinion = {
					target = AST
					value < 0
				}
				add = 90
			}
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: oceanic_alliance_ast.1.b executed"
		name = oceanic_alliance_ast.1.b
		trigger = { tag = VAN }
		AST = {
			country_event = { id = oceanic_alliance_ast.5 days = 2 }
		}
		ai_chance = {
			base = 5
			modifier = {
				has_opinion = {
					target = AST
					value < 0
				}
				add = 90
			}
		}
	}
}

#nzl refuses
country_event = {
	id = oceanic_alliance_ast.2
	title = oceanic_alliance_ast.2.t
	desc = oceanic_alliance_ast.2.d
	picture = GFX_nz_scenery
	is_triggered_only = yes

	option = { name = oceanic_alliance_ast.2.a }
}

#ind refuses
country_event = {
	id = oceanic_alliance_ast.3
	title = oceanic_alliance_ast.3.t
	desc = oceanic_alliance_ast.3.d
	picture = GFX_EventCountry_Template
	is_triggered_only = yes

	option = { name = oceanic_alliance_ast.2.a }
}

#pap refuses
country_event = {
	id = oceanic_alliance_ast.4
	title = oceanic_alliance_ast.4.t
	desc = oceanic_alliance_ast.4.d
	picture = GFX_EventCountry_Template
	is_triggered_only = yes

	option = { name = oceanic_alliance_ast.2.a }
}

#van refuses
country_event = {
	id = oceanic_alliance_ast.5
	title = oceanic_alliance_ast.5.t
	desc = oceanic_alliance_ast.5.d
	picture = GFX_EventCountry_Template
	is_triggered_only = yes

	option = { name = oceanic_alliance_ast.2.a }
}

add_namespace = operation_sovereign_abbott

country_event = {
	id = operation_sovereign_abbott.1
	title = operation_sovereign_abbott.1.t
	desc = operation_sovereign_abbott.1.d
	picture = GFX_scott_abbott
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: operation_sovereign_abbott.1.a executed"
		name = operation_sovereign_abbott.1.a
		if = {
			limit = { has_idea = boat_arrivals_ast }
			swap_ideas = {
				remove_idea = boat_arrivals_ast
				add_idea = boat_arrivals_ast_2
			}
		}
		else_if = {
			limit = { has_idea = boat_arrivals_ast_2 }
			swap_ideas = {
				remove_idea = boat_arrivals_ast_2
				add_idea = boat_arrivals_ast_3
			}
			else_if = {
				limit = { has_idea = boat_arrivals_ast_4 }
				swap_ideas = {
					remove_idea = boat_arrivals_ast_4
					add_idea = boat_arrivals_ast
				}
			}
		}
		newline = yes
		set_temp_variable = { party_popularity_increase = 0.02 }
		change_relative_party_popularity = yes
	}
}

add_namespace = japan_subs_abbott

country_event = {
	id = japan_subs_abbott.1
	title = japan_subs_abbott.1.t
	desc = japan_subs_abbott.1.d
	picture = GFX_ast_submarine2
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: japan_subs_abbott.1.a executed"
		name = japan_subs_abbott.1.a
		JAP = { country_event = japan_subs_abbott.2 }
	}

	option = {
		log = "[GetDateText]: [This.GetName]: japan_subs_abbott.1.b executed"
		name = japan_subs_abbott.1.b
		JAP = { country_event = japan_subs_abbott.3 }
	}
}

#jap subs
country_event = {
	id = japan_subs_abbott.2
	title = japan_subs_abbott.2.t
	desc = japan_subs_abbott.2.d
	picture = GFX_ast_submarine2
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: japan_subs_abbott.2.a executed"
		name = japan_subs_abbott.2.a
		AST = {
			country_event = { id = japan_subs_abbott.5 days = 1 }
		}
		set_temp_variable = { treasury_change = 25 }
		modify_treasury_effect = yes
		hidden_effect = {
			JAP = {
				destroy_ships = {
					type = attack_submarine_hull_3
					count = 6
				}
			}
		}
		ai_chance = { base = 1 }
	}

	option = {
		log = "[GetDateText]: [This.GetName]: japan_subs_abbott.2.b executed"
		name = japan_subs_abbott.2.b
		AST = {
			add_opinion_modifier = {
				target = JAP
				modifier = denied_us_ast
			}
			country_event = { id = japan_subs_abbott.4 days = 1 }
		}
		ai_chance = { base = 0 }
	}
}

#jap destroyers
country_event = {
	id = japan_subs_abbott.3
	title = japan_subs_abbott.2.t
	desc = japan_subs_abbott.3.d
	picture = GFX_ship_sailing5
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: japan_subs_abbott.2.a executed"
		name = japan_subs_abbott.2.a
		AST = {
			country_event = { id = japan_subs_abbott.6 days = 1 }
		}
		set_temp_variable = { treasury_change = 46 }
		modify_treasury_effect = yes
		hidden_effect = {
			JAP = {
				destroy_ships = {
					type = destroyer_hull_2
					count = 3
				}
			}
		}
		ai_chance = { base = 1 }
	}

	option = {
		log = "[GetDateText]: [This.GetName]: japan_subs_abbott.2.b executed"
		name = japan_subs_abbott.2.b
		AST = {
			add_opinion_modifier = {
				target = JAP
				modifier = denied_us_ast
			}
			country_event = { id = japan_subs_abbott.4 days = 1 }
		}
		ai_chance = { base = 0 }
	}
}

#refusal
country_event = {
	id = japan_subs_abbott.4
	title = japan_subs_abbott.4.t
	desc = japan_subs_abbott.4.d
	picture = GFX_ast_submarine2
	is_triggered_only = yes

	option = { name = japan_subs_abbott.4.a }
}

#accept subs
country_event = {
	id = japan_subs_abbott.5
	title = japan_subs_abbott.5.t
	desc = japan_subs_abbott.5.d
	picture = GFX_ast_submarine2
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: japan_subs_abbott.5.a executed"
		name = japan_subs_abbott.5.a
		custom_effect_tooltip = japan_subs_abbott_tt
		set_temp_variable = { treasury_change = -25 }
		modify_treasury_effect = yes
		hidden_effect = {
			create_ship = {
					type = attack_submarine_hull_3
					equipment_variant = "Harushio Class"
					creator = JAP
					name = "Harushio Class"
			}
			create_ship = {
					type = attack_submarine_hull_3
					equipment_variant = "Harushio Class"
					creator = JAP
					name = "Harushio Class"
			}
			create_ship = {
					type = attack_submarine_hull_3
					equipment_variant = "Harushio Class"
					creator = JAP
					name = "Harushio Class"
			}
			create_ship = {
					type = attack_submarine_hull_3
					equipment_variant = "Harushio Class"
					creator = JAP
					name = "Harushio Class"
			}
			create_ship = {
					type = attack_submarine_hull_3
					equipment_variant = "Harushio Class"
					creator = JAP
					name = "Harushio Class"
			}
			create_ship = {
					type = attack_submarine_hull_3
					equipment_variant = "Harushio Class"
					creator = JAP
					name = "Harushio Class"
			}
		}
	}
}

#accepts destroyers
country_event = {
	id = japan_subs_abbott.6
	title = japan_subs_abbott.5.t
	desc = japan_subs_abbott.5.d
	picture = GFX_ship_sailing5
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: japan_subs_abbott.5.a executed"
		name = japan_subs_abbott.5.a
		custom_effect_tooltip = japan_subs_abbott_tt
		set_temp_variable = { treasury_change = -46 }
		modify_treasury_effect = yes
		hidden_effect = {
				create_ship = {
					type = destroyer_hull_2
					equipment_variant = "Murasame Class"
					creator = JAP
					name = "Murasame Class"
				}
				create_ship = {
					type = destroyer_hull_2
					equipment_variant = "Murasame Class"
					creator = JAP
					name = "Murasame Class"
				}
				create_ship = {
					type = destroyer_hull_2
					equipment_variant = "Murasame Class"
					creator = JAP
					name = "Murasame Class"
				}
		}
	}
}

add_namespace = abbott_condemns_china

news_event = {
	id = abbott_condemns_china.1
	title = abbott_condemns_china.1.t
	desc = abbott_condemns_china.1.d
	picture = GFX_abbott_flags
	is_triggered_only = yes
	major = yes

	option = {
		log = "[GetDateText]: [This.GetName]: abbott_condemns_china.1.a executed"
		name = abbott_condemns_china.1.a
		trigger = { tag = AST }
		CHI = {
			add_opinion_modifier = {
				target = AST
				modifier = condemned_us
			}
		}
		add_war_support = 0.025
		if = {
			limit = { has_idea = sino_aus_peacekeeping }
			remove_ideas = sino_aus_peacekeeping
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: abbott_condemns_china.1.a executed"
		name = abbott_condemns_china.1.a
		trigger = { NOT = { tag = AST } }
		CHI = {
			add_opinion_modifier = {
				target = AST
				modifier = random_diplo_start_angry
			}
		}
	}
}

add_namespace = kuala_lumpur_abbott

country_event = {
	id = kuala_lumpur_abbott.1
	title = kuala_lumpur_abbott.1.t
	desc = kuala_lumpur_abbott.1.d
	picture = GFX_aus_mal
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: kuala_lumpur_abbott.1.a executed"
		name = kuala_lumpur_abbott.1.a
		add_ideas = abbott_mal_pact_ast_2
		AST = {
			country_event = { id = kuala_lumpur_abbott.2 days = 1 }
		}
		ai_chance = { base = 1 }
	}

	option = {
		log = "[GetDateText]: [This.GetName]: kuala_lumpur_abbott.1.b executed"
		name = kuala_lumpur_abbott.1.b
		AST = {
			country_event = { id = kuala_lumpur_abbott.3 days = 1 }
			add_opinion_modifier = {
				target = THIS
				modifier = refused_trade_deal
			}
		}
		ai_chance = { base = 0 }
	}
}

#agreed
country_event = {
	id = kuala_lumpur_abbott.2
	title = kuala_lumpur_abbott.2.t
	desc = kuala_lumpur_abbott.2.d
	picture = GFX_aus_mal
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: kuala_lumpur_abbott.2.a executed"
		name = kuala_lumpur_abbott.2.a
		add_ideas = abbott_mal_pact_ast
		MAY = {
			diplomatic_relation = {
				country = AST
				relation = non_aggression_pact
				active = yes
			}
		}
	}
}

#refused
country_event = {
	id = kuala_lumpur_abbott.3
	title = kuala_lumpur_abbott.3.t
	desc = kuala_lumpur_abbott.3.d
	picture = GFX_aus_mal
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: kuala_lumpur_abbott.3.a executed"
		name = kuala_lumpur_abbott.3.a
		add_political_power = -20
	}
}

add_namespace = jap_repar_abbott

country_event = {
	id = jap_repar_abbott.1
	title = jap_repar_abbott.1.t
	desc = jap_repar_abbott.1.d
	picture = GFX_aus_flag
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: jap_repar_abbott.1.a executed"
		name = jap_repar_abbott.1.a
		set_temp_variable = { treasury_change = -53 }
		modify_treasury_effect = yes
		AST = {
			country_event = { id = jap_repar_abbott.2 days = 1 }
			add_opinion_modifier = {
				target = THIS
				modifier = reparations_paid_ast
			}
		}
		ai_chance = { base = 80 }
	}

	option = {
		log = "[GetDateText]: [This.GetName]: jap_repar_abbott.1.b executed"
		name = jap_repar_abbott.1.b
		AST = {
			country_event = { id = jap_repar_abbott.3 days = 1 }
			add_opinion_modifier = {
				target = THIS
				modifier = denied_us_ast
			}
		}
		ai_chance = { base = 20 }
	}
}

country_event = {
	id = jap_repar_abbott.2
	title = jap_repar_abbott.2.t
	desc = jap_repar_abbott.2.d
	picture = GFX_anzac_ceremony_ast
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: jap_repar_abbott.2.a executed"
		name = jap_repar_abbott.2.a
		set_temp_variable = { treasury_change = 53 }
		modify_treasury_effect = yes
	}
}

country_event = {
	id = jap_repar_abbott.3
	title = jap_repar_abbott.3.t
	desc = jap_repar_abbott.3.d
	picture = GFX_jap_flag
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: jap_repar_abbott.3.a executed"
		name = jap_repar_abbott.3.a
		add_political_power = -60
	}
}


add_namespace = jap_alliance_abbott

country_event = {
	id = jap_alliance_abbott.1
	title = jap_alliance_abbott.1.t
	desc = jap_alliance_abbott.1.d
	picture = GFX_aus_flag
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: jap_alliance_abbott.1.a executed"
		name = jap_alliance_abbott.1.a
		add_war_support = 0.025
		AST = {
			country_event = { id = jap_alliance_abbott.2 days = 1 }
			add_opinion_modifier = {
				target = THIS
				modifier = military_cooperation
			}
		}
		ai_chance = { base = 1 }
	}

	option = {
		log = "[GetDateText]: [This.GetName]: jap_alliance_abbott.1.b executed"
		name = jap_alliance_abbott.1.b
		AST = {
			country_event = { id = jap_alliance_abbott.3 days = 1 }
			add_opinion_modifier = {
				target = THIS
				modifier = denied_us_ast
			}
		}
		ai_chance = { base = 0 }
	}
}

country_event = {
	id = jap_alliance_abbott.2
	title = jap_alliance_abbott.2.t
	desc = jap_alliance_abbott.2.d
	picture = GFX_jap_flag
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: jap_alliance_abbott.2.a executed"
		name = jap_alliance_abbott.2.a
		custom_effect_tooltip = jap_alliance_abbott_tt
		set_country_flag = jap_allied_abbott
		hidden_effect = {
			give_guarantee = JAP
			JAP = { give_guarantee = AST }
		}
	}
}

country_event = {
	id = jap_alliance_abbott.3
	title = jap_alliance_abbott.3.t
	desc = jap_alliance_abbott.3.d
	picture = GFX_jap_flag
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: jap_alliance_abbott.3.a executed"
		name = jap_alliance_abbott.3.a
		add_political_power = -50
	}
}


add_namespace = france_abbott_ast

country_event = {
	id = france_abbott_ast.1
	title = france_abbott_ast.1.t
	desc = france_abbott_ast.1.d
	picture = GFX_aus_flag
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: france_abbott_ast.1.a executed"
		name = france_abbott_ast.1.a
		AST = {
			country_event = { id = france_abbott_ast.2 days = 1 }
			add_opinion_modifier = {
				target = FRA
				modifier = approved_island_lease
			}
		}
		set_temp_variable = { treasury_change = 39 }
		modify_treasury_effect = yes
		ai_chance = {
			base = 5
			modifier = {
				has_opinion = {
					target = AST
					value > 0
				}
				add = 90
			}
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: france_abbott_ast.1.b executed"
		name = france_abbott_ast.1.b
		AST = {
			country_event = { id = france_abbott_ast.3 days = 1 }
			add_opinion_modifier = {
				target = THIS
				modifier = denied_us_ast
			}
		}
		ai_chance = {
			base = 5
			modifier = {
				has_opinion = {
					target = AST
					value < 0
				}
				add = 90
			}
		}
	}
}

country_event = {
	id = france_abbott_ast.2
	title = france_abbott_ast.2.t
	desc = france_abbott_ast.2.d
	picture = GFX_pacific_islands_ast
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: france_abbott_ast.2.a executed"
		name = france_abbott_ast.2.a
		FRA = { 71 = { transfer_state_to = AST } }
		set_temp_variable = { treasury_change = -39 }
		modify_treasury_effect = yes
		hidden_effect = {
			FRA = {
				country_event = { id = france_abbott_ast.4 days = 1825 }
			}
		}
	}
}

country_event = {
	id = france_abbott_ast.3
	title = france_abbott_ast.3.t
	desc = france_abbott_ast.3.d
	picture = GFX_pacific_islands_ast
	is_triggered_only = yes

	option = { name = france_abbott_ast.3.a }
}

#fra renew event
country_event = {
	id = france_abbott_ast.4
	title = france_abbott_ast.4.t
	desc = france_abbott_ast.4.d
	picture = GFX_pacific_islands_ast
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: france_abbott_ast.4.a executed"
		name = france_abbott_ast.4.a
		AST = { country_event = france_abbott_ast.5 }
	}

	option = {
		log = "[GetDateText]: [This.GetName]: france_abbott_ast.4.b executed"
		name = france_abbott_ast.4.b
		AST = { country_event = france_abbott_ast.6 }
	}
}

#renew or not
country_event = {
	id = france_abbott_ast.5
	title = france_abbott_ast.5.t
	desc = france_abbott_ast.5.d
	picture = GFX_pacific_islands_ast
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: france_abbott_ast.5.a executed"
		name = france_abbott_ast.5.a
		set_temp_variable = { treasury_change = -39 }
		modify_treasury_effect = yes
		hidden_effect = {
			FRA = {
				country_event = { id = france_abbott_ast.4 days = 1825 }
				set_temp_variable = { treasury_change = 39 }
				modify_treasury_effect = yes
			}
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: france_abbott_ast.5.b executed"
		name = france_abbott_ast.5.b
		71 = { transfer_state_to = FRA }
		FRA = { country_event = france_abbott_ast.7 }
	}
}

#return or not
country_event = {
	id = france_abbott_ast.6
	title = france_abbott_ast.6.t
	desc = france_abbott_ast.6.d
	picture = GFX_pacific_islands_ast
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: france_abbott_ast.6.a executed"
		name = france_abbott_ast.6.a
		71 = { transfer_state_to = FRA }
		FRA = { country_event = france_abbott_ast.7 }
	}

	option = {
		log = "[GetDateText]: [This.GetName]: france_abbott_ast.6.b executed"
		name = france_abbott_ast.6.b
		FRA = {
			country_event = france_abbott_ast.8
			add_opinion_modifier = {
				target = AST
				modifier = refused_to_return_islands
			}
		}
	}
}

#island returned
country_event = {
	id = france_abbott_ast.7
	title = france_abbott_ast.7.t
	desc = france_abbott_ast.7.d
	picture = GFX_pacific_islands_ast
	is_triggered_only = yes

	option = { name = france_abbott_ast.7.a }
}

#refuse to return
country_event = {
	id = france_abbott_ast.8
	title = france_abbott_ast.8.t
	desc = france_abbott_ast.8.d
	picture = GFX_pacific_islands_ast
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: france_abbott_ast.8.a executed"
		name = france_abbott_ast.8.a
		if = {
			limit = { has_dlc = "By Blood Alone" }
			send_embargo = AST
		}
	}
}

add_namespace = middlepower_abbott

country_event = {
	id = middlepower_abbott.1
	title = middlepower_abbott.1.t
	desc = middlepower_abbott.1.d
	picture = GFX_kor_aus_flag
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: middlepower_abbott.1.a executed"
		name = middlepower_abbott.1.a
		AST = {
			country_event = { id = middlepower_abbott.5 days = 1 }
			set_country_flag = {
					flag = aus_kor_firstyes
					days = 30
					value = 1
				}
		}
		ai_chance = {
			base = 0
			modifier = {
				is_guaranteed_by = AST
				add = 99
			}
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: middlepower_abbott.1.b executed"
		name = middlepower_abbott.1.b
		AST = {
			country_event = { id = middlepower_abbott.2 days = 1 }
		}
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = middlepower_abbott.2
	title = middlepower_abbott.2.t
	desc = middlepower_abbott.2.d
	picture = GFX_kor_aus_flag
	is_triggered_only = yes

	#moderate
	option = {
		log = "[GetDateText]: [This.GetName]: middlepower_abbott.2.a executed"
		name = middlepower_abbott.2.a
		KOR = { country_event = middlepower_abbott.3 }
	}

	#bigly
	option = {
		log = "[GetDateText]: [This.GetName]: middlepower_abbott.2.b executed"
		name = middlepower_abbott.2.b
		KOR = { country_event = middlepower_abbott.4 }
		set_country_flag = {
					flag = aus_kor_biggly
					days = 30
					value = 1
				}
	}

	#pull out
	option = { name = middlepower_abbott.2.c }
}

country_event = {
	id = middlepower_abbott.3
	title = middlepower_abbott.3.t
	desc = middlepower_abbott.3.d
	picture = GFX_kor_aus_flag
	is_triggered_only = yes

	#yes
	option = {
		log = "[GetDateText]: [This.GetName]: middlepower_abbott.3.a executed"
		name = middlepower_abbott.3.a
		add_timed_idea = {
			idea = australian_military_assistance
			days = 1460
		}
		AST = {
			country_event = { id = middlepower_abbott.5 days = 1 }
		}
		ai_chance = { base = 65 }
	}

	#no
	option = {
		log = "[GetDateText]: [This.GetName]: middlepower_abbott.3.b executed"
		name = middlepower_abbott.3.b
		AST = {
			country_event = { id = middlepower_abbott.6 days = 1 }
		}
		ai_chance = { base = 35 }
	}
}

#bigly
country_event = {
	id = middlepower_abbott.4
	title = middlepower_abbott.4.t
	desc = middlepower_abbott.4.d
	picture = GFX_kor_aus_flag
	is_triggered_only = yes

	#yes
	option = {
		log = "[GetDateText]: [This.GetName]: middlepower_abbott.4.a executed"
		name = middlepower_abbott.4.a
		add_timed_idea = {
			idea = australian_military_assistance_1
			days = 1460
		}
		AST = {
			country_event = { id = middlepower_abbott.5 days = 1 }
		}
		ai_chance = { base = 85 }
	}

	#no
	option = {
		log = "[GetDateText]: [This.GetName]: middlepower_abbott.4.b executed"
		name = middlepower_abbott.4.b
		AST = {
			country_event = { id = middlepower_abbott.6 days = 1 }
		}
		ai_chance = { base = 15 }
	}
}

#kor says yes
country_event = {
	id = middlepower_abbott.5
	title = middlepower_abbott.5.t
	desc = middlepower_abbott.5.d
	picture = GFX_kor_aus_flag
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: middlepower_abbott.5.a executed"
		name = middlepower_abbott.5.a
		custom_effect_tooltip = middlepower_abbott_tt
		give_guarantee = KOR
		if = {
			limit = { has_country_flag = aus_kor_biggly }
			add_timed_idea = {
				idea = supporting_the_kor_abbot_1
				days = 1460
			}
		}
		else_if = {
			limit = { has_country_flag = aus_kor_firstyes }
			add_political_power = 50
		}
		else = {
			add_timed_idea = {
				idea = supporting_the_kor_abbot
				days = 1460
			}
		}
		set_country_flag = kor_says_yes_abbott
	}
}

#kor says no
country_event = {
	id = middlepower_abbott.6
	title = middlepower_abbott.6.t
	desc = middlepower_abbott.6.d
	picture = GFX_kor_aus_flag
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: middlepower_abbott.6.a executed"
		name = middlepower_abbott.6.a
		add_political_power = -30
		add_war_support = 0.02
	}
}


add_namespace = abbott_china_occupation

country_event = {
	id = abbott_china_occupation.1
	title = abbott_china_occupation.1.t
	desc = abbott_china_occupation.1.d
	picture = GFX_abbott_dark
	is_triggered_only = yes

	immediate = { set_country_flag = abbott_china_occupation_done }

	option = {
		log = "[GetDateText]: [This.GetName]: abbott_china_occupation.1.a executed"
		name = abbott_china_occupation.1.a
		add_stability = -0.1
		add_war_support = 0.05
	}
}

add_namespace = abbott_shirtfronting_china

country_event = {
	id = abbott_shirtfronting_china.1
	title = abbott_shirtfronting_china.1.t
	desc = abbott_shirtfronting_china.1.d
	picture = GFX_ship_sailing3
	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			destroy_ships = {
				type = frigate
				count = 2
			}
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: abbott_shirtfronting_china.1.a executed"
		name = abbott_shirtfronting_china.1.a
		CHI = { country_event = abbott_shirtfronting_china.2 }
	}

	option = {
		log = "[GetDateText]: [This.GetName]: abbott_shirtfronting_china.1.b executed"
		name = abbott_shirtfronting_china.1.b
		declare_war_on = {
			target = CHI
			type = topple_government
		}
		set_country_flag = abbott_war_declared_china
		hidden_effect = {
			create_country_leader = {
					name = "Tony Abbott"
					picture = "tony_abbott_2.dds"
					desc = tony_abbott_desc
					ideology = conservatism
					traits = {
						western_conservatism
						unpopular_in_the_party
					}
			}
			mark_focus_tree_layout_dirty = yes
		}
	}
}

country_event = {
	id = abbott_shirtfronting_china.2
	title = abbott_shirtfronting_china.1.t
	desc = abbott_shirtfronting_china.2.d
	picture = GFX_ship_sailing3
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: abbott_shirtfronting_china.2.a executed"
		name = abbott_shirtfronting_china.2.a
		custom_effect_tooltip = abbott_shirtfronting_tt
		add_war_support = -0.05
		AST = {
			country_event = { id = abbott_shirtfronting_china.3 days = 2 }
		}
		ai_chance = { base = 25 }
	}

	option = {
		log = "[GetDateText]: [This.GetName]: abbott_shirtfronting_china.2.a executed"
		name = abbott_shirtfronting_china.2.a
		add_war_support = 0.03
		AST = {
			country_event = { id = abbott_shirtfronting_china.4 days = 2 }
		}
		ai_chance = { base = 75 }
	}
}

country_event = {
	id = abbott_shirtfronting_china.3
	title = abbott_shirtfronting_china.3.t
	desc = abbott_shirtfronting_china.3.d
	picture = GFX_ship_sailing3
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: abbott_shirtfronting_china.3.a executed"
		name = abbott_shirtfronting_china.3.a
		set_country_flag = shirtfront_success_abbott
		mark_focus_tree_layout_dirty = yes
	}
}

country_event = {
	id = abbott_shirtfronting_china.4
	title = abbott_shirtfronting_china.4.t
	desc = abbott_shirtfronting_china.4.d
	picture = GFX_ship_sailing3
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: abbott_shirtfronting_china.4.a executed"
		name = abbott_shirtfronting_china.4.a
		add_war_support = -0.04
	}

	option = {
		log = "[GetDateText]: [This.GetName]: abbott_shirtfronting_china.4.b executed"
		name = abbott_shirtfronting_china.4.b
		declare_war_on = {
			target = CHI
			type = topple_government
		}
		set_country_flag = abbott_war_declared_china
		hidden_effect = {
			create_country_leader = {
					name = "Tony Abbott"
					picture = "tony_abbott_2.dds"
					desc = tony_abbott_desc
					ideology = conservatism
					traits = {
						western_conservatism
						unpopular_in_the_party
					}
			}
			mark_focus_tree_layout_dirty = yes
		}
	}
}

add_namespace = abbott_call_to_arms

country_event = {
	id = abbott_call_to_arms.1
	title = abbott_call_to_arms.1.t
	desc = abbott_call_to_arms.1.d
	picture = GFX_aus_flag
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: abbott_call_to_arms.1.a executed"
		name = abbott_call_to_arms.1.a
		add_war_support = 0.05
		declare_war_on = {
			target = CHI
			type = topple_government
		}
	}
}

add_namespace = aus_war_on_terror_abbott

country_event = {
	id = aus_war_on_terror_abbott.1
	title = aus_war_on_terror_abbott.1.t
	desc = aus_war_on_terror_abbott.1.d
	picture = GFX_aus_war_on_terror
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: aus_war_on_terror_abbott.1.a executed"
		name = aus_war_on_terror_abbott.1.a
		create_wargoal = {
				type = puppet_wargoal_focus
				target = IND
			}
	}
}

add_namespace = the_canberra_treaty_abbott

country_event = {
	id = the_canberra_treaty_abbott.1
	title = the_canberra_treaty_abbott.1.t
	desc = the_canberra_treaty_abbott.1.d
	picture = GFX_parliament_house_night_ast
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: the_canberra_treaty_abbott.1.a executed"
		name = the_canberra_treaty_abbott.1.a
		AST = {
			country_event = { id = the_canberra_treaty_abbott.2 days = 1 }
		}
		ai_chance = { base = 1 }
	}

	option = {
		log = "[GetDateText]: [This.GetName]: the_canberra_treaty_abbott.1.b executed"
		name = the_canberra_treaty_abbott.1.b
		AST = {
			country_event = { id = the_canberra_treaty_abbott.3 days = 1 }
		}
		if = {
			limit = { has_dlc = "By Blood Alone" }
			AST = { send_embargo = CHI }
			PHI = { send_embargo = CHI }
			USA = { send_embargo = CHI }
			JAP = { send_embargo = CHI }
			TAI = { send_embargo = CHI }
			NZL = { send_embargo = CHI }
			ENG = { send_embargo = CHI }
		}
		ai_chance = { base = 0 }
	}
}

country_event = {
	id = the_canberra_treaty_abbott.2
	title = the_canberra_treaty_abbott.2.t
	desc = the_canberra_treaty_abbott.2.d
	picture = GFX_parliament_house_day_ast
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: the_canberra_treaty_abbott.2.a executed"
		name = the_canberra_treaty_abbott.2.a
		add_political_power = 300
		add_stability = 0.1
		526 = { set_demilitarized_zone = yes }
		CHI = {
			add_war_support = -0.1
			add_timed_idea = {
				idea = canberra_treaty_idea
				days = 1480
			}
			diplomatic_relation = {
				country = AST
				relation = non_aggression_pact
				active = yes
			}
			diplomatic_relation = {
				country = PHI
				relation = non_aggression_pact
				active = yes
			}
		}
		PHI = {
			add_war_support = 0.1
			add_political_power = 250
		}
	}
}

country_event = {
	id = the_canberra_treaty_abbott.3
	title = the_canberra_treaty_abbott.3.t
	desc = the_canberra_treaty_abbott.3.d
	picture = GFX_parliament_house_day_ast
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: the_canberra_treaty_abbott.3.a executed"
		name = the_canberra_treaty_abbott.3.a
		add_war_support = 0.05
		add_political_power = 200
	}
}


######################
#Costello Events
#####################

add_namespace = starbucks_event_ast

country_event = {
	id = starbucks_event_ast.1
	title = starbucks_event_ast.1.t
	desc = starbucks_event_ast.1.d
	picture = GFX_starbucks_logo_ast
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: starbucks_event_ast.1.a executed"
		name = starbucks_event_ast.1.a
		add_timed_idea = {
				idea = foreign_brand_boom_ast
				days = 436
			}
	}
}

add_namespace = econ_costello_events

#oil
country_event = {
	id = econ_costello_events.1
	title = econ_costello_events.1.t
	desc = econ_costello_events.1.d
	picture = GFX_aus_oil_drilling
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: econ_costello_events.1.a executed"
		name = econ_costello_events.1.a
		add_resource = {
			type = oil
			amount = 17
			state = 741
		}
		newline = yes
		set_temp_variable = { temp_opinion = 10 }
		change_fossil_fuel_industry_opinion = yes
	}
}

#china trade event
country_event = {
	id = econ_costello_events.2
	title = econ_costello_events.2.t
	desc = econ_costello_events.2.d
	picture = GFX_CHI_beijing
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: econ_costello_events.2.a executed"
		name = econ_costello_events.2.a
		add_timed_idea = {
			idea = increased_trade_volumes_ast
			days = 130
		}
		CHI = {
			add_opinion_modifier = {
				target = AST
				modifier = trade_boom_ast
			}
		}
	}
}

#our man in beijing
country_event = {
	id = econ_costello_events.3
	title = econ_costello_events.3.t
	desc = econ_costello_events.3.d
	picture = GFX_alexander_downer
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: econ_costello_events.3.a executed"
		name = econ_costello_events.3.a
		add_ideas = chinese_agricultural_investments
		newline = yes
		one_random_agriculture_district = yes
	}
}

#housing corruption
news_event = {
	id = econ_costello_events.4
	title = econ_costello_events.4.t
	desc = econ_costello_events.4.d
	picture = GFX_news_housing_warning
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: econ_costello_events.4.a executed"
		name = econ_costello_events.4.a
		set_temp_variable = { party_popularity_increase = -0.05 }
		change_relative_party_popularity = yes
		increase_corruption = yes
	}
}

add_namespace = costello_in_the_mines

country_event = {
	id = costello_in_the_mines.1
	title = costello_in_the_mines.1.t
	desc = costello_in_the_mines.1.d
	picture = GFX_mining
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: costello_in_the_mines.1.a executed"
		name = costello_in_the_mines.1.a
		add_political_power = -100
		add_ideas = mining_backlash_ast
		newline = yes
		set_temp_variable = { temp_opinion = -60 }
		change_fossil_fuel_industry_opinion = yes
	}
}

country_event = {
	id = costello_in_the_mines.2
	title = costello_in_the_mines.2.t
	desc = costello_in_the_mines.2.d
	picture = GFX_mining
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: costello_in_the_mines.2.a executed"
		name = costello_in_the_mines.2.a
		decrease_corruption = yes
		set_country_flag = investigation_has_concluded_ast
	}
}

country_event = {
	id = costello_in_the_mines.3
	title = costello_in_the_mines.3.t
	desc = costello_in_the_mines.3.d
	picture = GFX_jury
	is_triggered_only = yes

	#deport them
	option = {
		log = "[GetDateText]: [This.GetName]: costello_in_the_mines.3.a executed"
		name = costello_in_the_mines.3.a
		if = {
			limit = { has_idea = boat_arrivals_ast }
			swap_ideas = {
				remove_idea = boat_arrivals_ast
				add_idea = boat_arrivals_ast_2
			}
		}
		else_if = {
			limit = { has_idea = boat_arrivals_ast_2 }
			swap_ideas = {
				remove_idea = boat_arrivals_ast_2
				add_idea = boat_arrivals_ast_3
			}
		}
		else_if = {
			limit = { has_idea = boat_arrivals_ast_4 }
			swap_ideas = {
				remove_idea = boat_arrivals_ast_4
				add_idea = boat_arrivals_ast
			}
		}
		else = { add_stability = 0.02 }
		add_timed_idea = {
			idea = mining_interruption_ast
			days = 160
		}
		set_temp_variable = { party_popularity_increase = 0.02 }
		change_relative_party_popularity = yes
	}

	#let them stay
	option = {
		log = "[GetDateText]: [This.GetName]: costello_in_the_mines.3.b executed"
		name = costello_in_the_mines.3.b
		add_timed_idea = {
			idea = mining_visas_granted_ast
			days = 720
		}
		newline = yes
		set_temp_variable = { temp_opinion = 10 }
		change_fossil_fuel_industry_opinion = yes
		set_temp_variable = { party_popularity_increase = -0.03 }
		change_relative_party_popularity = yes
	}
}

country_event = {
	id = costello_in_the_mines.4
	title = costello_in_the_mines.4.t
	desc = costello_in_the_mines.4.d
	picture = GFX_mining_night_event
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: costello_in_the_mines.4.a executed"
		name = costello_in_the_mines.4.a
		add_resource = {
				type = chromium
				amount = 9
				state = 747
			}
		newline = yes
		SAU = {
			add_opinion_modifier = {
				target = AST
				modifier = agreed_to_investment
			}
		}
		hidden_effect = {
			set_temp_variable = { percent_change = 7 }
			set_temp_variable = { tag_index = SAU }
			set_temp_variable = { influence_target = AST }
			change_influence_percentage = yes
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: costello_in_the_mines.4.b executed"
		name = costello_in_the_mines.4.b
		set_temp_variable = { percent_change = 5 }
		change_domestic_influence_percentage = yes
		newline = yes
		SAU = {
			add_opinion_modifier = {
				target = AST
				modifier = denied_us_ast
			}
		}
	}
}

#murdoch event
country_event = {
	id = costello_in_the_mines.5
	title = costello_in_the_mines.5.t
	desc = costello_in_the_mines.5.d
	picture = GFX_murdoch_event
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: costello_in_the_mines.5.a executed"
		name = costello_in_the_mines.5.a
		add_political_power = -10
		set_temp_variable = { temp_opinion = 5 }
		change_fossil_fuel_industry_opinion = yes
	}
}

add_namespace = costello_republic_events

country_event = {
	id = costello_republic_events.1
	title = costello_republic_events.1.t
	desc = costello_republic_events.1.d
	picture = GFX_aus_parliament
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: costello_republic_events.1.a executed"
		name = costello_republic_events.1.a
		add_political_power = -80
		custom_effect_tooltip = costello_republic_events_abbott_tt
	}
}

#rudd event
country_event = {
	id = costello_republic_events.2
	title = costello_republic_events.2.t
	desc = costello_republic_events.2.d
	picture = GFX_rudd_generic_speech
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: costello_republic_events.2.a executed"
		name = costello_republic_events.2.a
		custom_effect_tooltip = ast_raise_repub_support_tt
		newline = yes
		add_to_variable = { ast_republic_support = 1 }
		add_timed_idea = {
			idea = medicare_expansion_ast
			days = 240
		}
	}
}

#gov general
country_event = {
	id = costello_republic_events.3
	title = costello_republic_events.3.t
	desc = costello_republic_events.3.d
	picture = GFX_aus_repub_1
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: costello_republic_events.3.a executed"
		name = costello_republic_events.3.a
		add_political_power = 100
	}
}

#last push
news_event = {
	id = costello_republic_events.4
	title = costello_republic_events.4.t
	desc = costello_republic_events.4.d
	picture = GFX_aus_repub_fireworks
	is_triggered_only = yes
	major = yes

	option = {
		log = "[GetDateText]: [This.GetName]: costello_republic_events.4.a executed"
		name = costello_republic_events.4.a
		add_political_power = 120
		trigger = { tag = AST }
	}

	option = {
		name = costello_republic_events.4.b
		trigger = { NOT = { tag = AST } }
	}
}


country_event = {
	id = costello_republic_events.5
	title = costello_republic_events.5.t
	desc = costello_republic_events.5.d
	picture = GFX_howard_peter_2
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: costello_republic_events.5.a executed"
		name = costello_republic_events.5.a
		custom_effect_tooltip = costello_republic_success_tt
		newline = yes
		hidden_effect = { set_cosmetic_tag = AST_REPUB }
		if = {
			limit = { has_completed_focus = AST_enshrine_the_protections }
			add_ideas = bill_of_rights_ast
			set_country_flag = bor_enacted_ast
			newline = yes
		}
		if = {
			limit = { has_completed_focus = AST_with_heritage_to_remember }
			if = {
				limit = { has_idea = reform_despair_ast }
				swap_ideas = {
					remove_idea = reform_despair_ast
					add_idea = reconciliation_discontent
				}
			}
			else_if = {
				limit = { has_idea = reconciliation_discontent }
				swap_ideas = {
					remove_idea = reconciliation_discontent
					add_idea = rekindled_hope_ast
				}
			}
			else_if = {
				limit = { has_idea = rekindled_hope_ast }
				swap_ideas = {
					remove_idea = rekindled_hope_ast
					add_idea = a_new_era_ast
				}
			}
			else_if = {
				limit = { has_idea = a_new_era_ast }
				swap_ideas = {
					remove_idea = a_new_era_ast
					add_idea = radical_protections_ast
				}
			}
			else = { add_stability = 0.04 }
			set_country_flag = itstheconst_bypass
			newline = yes
		}
		if = {
			limit = { has_completed_focus = AST_hold_onto_the_wild }
			add_ideas = national_parks_codified_ast
			bushfires_tick_down = yes
			newline = yes
		}
		if = {
			limit = { has_completed_focus = AST_a_generation_to_persevere }
			add_ideas = commonwealth_education_amendments_ast
			add_stability = 0.03
			newline = yes
			increase_education_budget = yes
		}
		set_temp_variable = { party_popularity_increase = 0.03 }
		change_relative_party_popularity = yes
	}
}

#opening event
country_event = {
	id = costello_republic_events.6
	title = costello_republic_events.6.t
	desc = costello_republic_events.6.d
	picture = GFX_alexander_downer_1
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: costello_republic_events.6.a executed"
		name = costello_republic_events.6.a
		add_political_power = 60
	}
}

add_namespace = commonwealth_games_ast

news_event = {
	id = commonwealth_games_ast.1
	title = commonwealth_games_ast.1.t
	desc = commonwealth_games_ast.1.d
	picture = GFX_commonwealthgames_ast_1
	is_triggered_only = yes
	major = yes

	option = {
		log = "[GetDateText]: [This.GetName]: commonwealth_games_ast.1.a executed"
		name = commonwealth_games_ast.1.a
		trigger = { tag = AST }
		every_country = {
			limit = {
				has_dynamic_modifier = Commonwealth_member_modifier
				NOT = { tag = AST }
			}
			add_opinion_modifier = {
				target = AST
				modifier = hosted_the_games_ast
			}
		}
	}

	option = {
		name = commonwealth_games_ast.1.a
		trigger = {
			NOT = { tag = AST }
			has_dynamic_modifier = Commonwealth_member_modifier
		}
	}

	option = {
		name = commonwealth_games_ast.1.b
		trigger = {
			NOT = {
				OR = {
					tag = AST
					has_dynamic_modifier = Commonwealth_member_modifier
				}
			}
		}
	}
}

#############################
#Election Events
#############################

add_namespace = ast_elections_howard_placeholders

news_event = {
	id = ast_elections_howard_placeholders.1
	title = ast_elections_howard_placeholders.1.t
	desc = ast_elections_howard_placeholders.1.d
	picture = GFX_howard_election_win_1
	is_triggered_only = yes

	trigger = {
		tag = AST
		NOT = { has_country_flag = election_victory_2001_ast }
	}

	immediate = { set_country_flag = election_victory_2001_ast }

	option = { name = ast_elections_howard_placeholders.1.a }
}

news_event = {
	id = ast_elections_howard_placeholders.2
	title = ast_elections_howard_placeholders.2.t
	desc = ast_elections_howard_placeholders.2.d
	picture = GFX_liberal_rally
	is_triggered_only = yes

	trigger = {
		tag = AST
		NOT = { has_country_flag = election_victory_2004_ast }
	}

	immediate = { set_country_flag = election_victory_2004_ast }

	option = { name = ast_elections_howard_placeholders.2.a }
}

add_namespace = dissolution_election_rudd

country_event = {
	id = dissolution_election_rudd.1
	title = ast_elections.3.t
	desc = ast_elections.3.d
	picture = GFX_election_rally
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: ast_elections.3.a executed"
		name = ast_elections.3.a
		hidden_effect = {
			country_event = { id = dissolution_election_rudd.2 days = 1 }
		}
	}
}

country_event = {
	id = dissolution_election_rudd.2
	is_triggered_only = yes
	hidden = yes

	immediate = {
		set_temp_variable = { ruling_party_popularity = party_pop_array^0 }
		set_variable = { ruling_party = 0 }
		for_each_loop = {
			array = party_pop_array
			value = v
			index = i
			if = {
				limit = { check_variable = { ruling_party_popularity < v } }
				set_temp_variable = { ruling_party_popularity = v }
				set_variable = { ruling_party = i }
			}
		}
		set_temp_variable = { outlook_party_index = ruling_party }
		set_outlook_from_party_index = yes

		#rudd wins big
		if = {
			limit = {
				western_social_democrats_are_in_power = yes
			}
			news_event = dissolution_election_rudd.3
		}
		#abbott wins
		else_if = {
			limit = {
				western_conservatism_are_in_power = yes
			}
			news_event = dissolution_election_rudd.4
		}
	}
}

#rudd wins
news_event = {
	id = dissolution_election_rudd.3
	title = dissolution_election_rudd.3.t
	desc = dissolution_election_rudd.3.d
	picture = GFX_rudd_wins_2
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: dissolution_election_rudd.3.a executed"
		name = dissolution_election_rudd.3.a
		clr_country_flag = legislation_blocked_ast
	}
}

#abbott wins
news_event = {
	id = dissolution_election_rudd.4
	title = dissolution_election_rudd.4.t
	desc = dissolution_election_rudd.4.d
	picture = GFX_abbott_wins
	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			kill_country_leader = yes
			remove_power_balance = { id = rudd_bop }
			create_country_leader = {
					name = "Tony Abbott"
					picture = "tony_abbott_1.dds"
					desc = tony_abbott_desc
					ideology = conservatism
					traits = {
						western_conservatism
						unpopular_in_the_party
					}
				}
			load_focus_tree = {
				tree = australia_abbottgov_focus
				keep_completed = yes
			}
			set_temp_variable = { add_col_one = 14 }
			add_coalition_members_effect = yes
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: dissolution_election_rudd.3.a executed"
		name = dissolution_election_rudd.3.a
		custom_effect_tooltip = focus_tree_has_changed_ast_tt
	}
}

add_namespace = ast_elections

#ai elections
country_event = {
	id = ast_elections.1
	title = ast_elections.1.t
	desc = ast_elections.1.d
	is_triggered_only = yes

	trigger = {
		tag = AST
		is_ai = yes
	}

	option = {
		log = "[GetDateText]: [This.GetName]: ast_elections.1.a executed"
		name = ast_elections.1.a
		if = {
			limit = {
				has_global_flag = AST_HISTORICAL_FOCUS_PATH
			}
			if = {
				limit = {
					date > 2007.01.01 date < 2010.01.01
				}
				set_temp_variable = { rul_party_temp = 3 }
				change_ruling_party_effect = yes
				kill_country_leader = yes
				create_country_leader = {
						name = "Kevin Rudd"
						desc = "kevin_rudd_desc"
						picture = "kevin_rudd_1.dds"
						ideology = socialism
						traits = {
							western_socialism
						}
					}
				load_focus_tree = {
					tree = ruddgov_focus
					keep_completed = yes
				}
			}
			else_if = {
				limit = { date > 2012.01.01 date < 2014.01.01 }
				set_temp_variable = { rul_party_temp = 1 }
				change_ruling_party_effect = yes
				kill_country_leader = yes
				remove_power_balance = { id = rudd_bop }
				create_country_leader = {
						name = "Tony Abbott"
						picture = "tony_abbott_1.dds"
						desc = tony_abbott_desc
						ideology = conservatism
						traits = {
							western_conservatism
							unpopular_in_the_party
						}
					}
				load_focus_tree = {
					tree = australia_abbottgov_focus
					keep_completed = yes
				}
				hidden_effect = {
					set_temp_variable = { add_col_one = 14 }
					add_coalition_members_effect = yes
				}
			}
			else = { add_political_power = 50 }
		}
		else = {
			country_event = ast_elections.3
		}
	}
}

#repeating general election
country_event = {
	id = ast_elections.2
	title = ast_elections.1.t
	desc = ast_elections.1.d
	picture = GFX_generic_election_ast
	is_triggered_only = yes

	trigger = {
		original_tag = AST
		date > 2005.01.01
		NOT = { has_country_flag = election_cooldown_ast }
		is_ai = no
	}

	immediate = { set_country_flag = general_elections_start }

	option = {
		log = "[GetDateText]: [This.GetName]: ast_elections.1.a executed"
		name = ast_elections.1.a
		custom_effect_tooltip = campaigning_liberals_ast_tt
		set_country_flag = {
					flag = campaigning_liberals_ast
					days = 90
					value = 1
				}
		set_country_flag = election_ongoing_ast
	}

	option = {
		log = "[GetDateText]: [This.GetName]: ast_elections.1.b executed"
		name = ast_elections.1.b
		custom_effect_tooltip = campaigning_labor_ast_tt
		set_country_flag = {
					flag = campaigning_labor_ast
					days = 90
					value = 1
				}
		set_country_flag = election_ongoing_ast
	}

	option = {
		log = "[GetDateText]: [This.GetName]: ast_elections.1.c executed"
		name = ast_elections.1.c
		custom_effect_tooltip = campaigning_one_nation_ast_tt
		set_country_flag = {
					flag = campaigning_one_nation_ast
					days = 90
					value = 1
				}
		set_country_flag = election_ongoing_ast
	}

	option = {
		log = "[GetDateText]: [This.GetName]: ast_elections.1.e executed"
		name = ast_elections.1.e
		custom_effect_tooltip = campaigning_greens_ast_tt
		set_country_flag = {
					flag = campaigning_greens_ast
					days = 90
					value = 1
				}
		set_country_flag = election_ongoing_ast
	}
}

#election day
country_event = {
	id = ast_elections.3
	title = ast_elections.3.t
	desc = ast_elections.3.d
	picture = GFX_election_rally
	is_triggered_only = yes

	immediate = {
		if = {
			limit = { western_social_democrats_are_in_power = yes }
			set_country_flag = {
					flag = labor_previously_in
					days = 60
					value = 1
				}
		}
		else_if = {
			limit = { western_conservatism_are_in_power = yes }
			set_country_flag = {
					flag = liberals_previously_in
					days = 60
					value = 1
				}
		}
		else_if = {
			limit = { nationalist_right_wing_populists_are_in_power = yes }
			set_country_flag = {
					flag = one_nation_previously_in
					days = 60
					value = 1
				}
		}
		else_if = {
			limit = { neutrality_neutral_green_are_in_power = yes }
			set_country_flag = {
					flag = greens_previously_in
					days = 60
					value = 1
				}
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: ast_elections.3.a executed"
		name = ast_elections.3.a
		hidden_effect = {
			country_event = { id = ast_elections.4 days = 1 }
		}
	}
}

country_event = {
	id = ast_elections.4
	is_triggered_only = yes
	hidden = yes

	immediate = {
		set_temp_variable = { ruling_party_popularity = party_pop_array^0 }
		set_variable = { ruling_party = 0 }
		for_each_loop = {
			array = party_pop_array
			value = v
			index = i
			if = {
				limit = { check_variable = { ruling_party_popularity < v } }
				set_temp_variable = { ruling_party_popularity = v }
				set_variable = { ruling_party = i }
			}
		}
		set_temp_variable = { outlook_party_index = ruling_party }
		set_outlook_from_party_index = yes
		hidden_effect = {
			set_temp_variable = { outlook_party_index = ruling_party }
			set_outlook_from_party_index = yes
			update_set_politics = yes
		}
		country_event = ast_elections.5 #chooses government
	}
}

country_event = {
	id = ast_elections.5
	is_triggered_only = yes
	hidden = yes

	immediate = {
		if = {
			limit = {
				western_conservatism_are_in_power = yes
				date > 2004.01.01
				date < 2008.01.01
				NOT = {
					has_country_flag = liberals_previously_in
				}

			}
			kill_country_leader = yes
			create_country_leader = {
						name = "Peter Costello"
						picture = "peter_costello.dds"
						desc = peter_costello_desc
						ideology = conservatism
						traits = {
							western_conservatism
							economist
						}
					}
			load_focus_tree = {
				tree = costellogov_focus
				keep_completed = yes
			}
		}
		else_if = {
			limit = {
				western_social_democrats_are_in_power = yes
				date > 2007.01.01
				date < 2011.01.01
				NOT = {
					has_country_flag = labor_previously_in
				}
			}
			news_event = election_outcomes_ast.1 #rudd wins
		}
		else_if = {
			limit = {
				western_social_democrats_are_in_power = yes
				has_focus_tree = ruddgov_focus
				NOT = {
					has_country_flag = rudd_consecutive_win
				}
			}
			set_politics = {
					ruling_party = democratic
					elections_allowed = yes
				}
			news_event = election_outcomes_ast.4 #rudd consecutive
		}
		else_if = {
			limit = {
				western_social_democrats_are_in_power = yes
				date > 2011.01.01
				date < 2017.01.01
				NOT = { has_country_flag = labor_previously_in }
			}
			set_politics = {
					ruling_party = democratic
					elections_allowed = yes
				}
			news_event = election_outcomes_ast.8 #gillard wins nonconsecutive
		}
		else_if = {
			limit = {
				western_social_democrats_are_in_power = yes
				has_focus_tree = gillardgov_focus
				NOT = {
					has_country_flag = gillard_consecutive_win
				}
			}
			news_event = election_outcomes_ast.6 #consecutive gillard wins
		}
		else_if = {
			limit = {
				western_conservatism_are_in_power = yes
				date > 2007.01.01
				date < 2008.01.01
				has_country_flag = liberals_previously_in
			}
			news_event = election_outcomes_ast.2 #consecutive lib win 2007
		}
		else_if = {
			limit = {
				western_conservatism_are_in_power = yes
				date > 2010.01.01
				date < 2014.01.01
				NOT = {
					has_country_flag = liberals_previously_in
				}
			}
			news_event = dissolution_election_rudd.4 #abbott wins
		}
		else_if = {
			limit = {
				western_conservatism_are_in_power = yes
				date > 2016.01.01
				NOT = {
					has_country_flag = liberals_previously_in
				}
			}
			news_event = election_outcomes_ast.9 #turnbull win
		}
		#generic reelections
		else_if = {
			limit = {
				western_conservatism_are_in_power = yes
				has_country_flag = liberals_previously_in
			}
			news_event = election_outcomes_ast.7
		}
		else_if = {
			limit = {
				western_social_democrats_are_in_power = yes
				has_country_flag = labor_previously_in
			}
			news_event = election_outcomes_ast.3
		}
		else = {
			set_temp_variable = { rul_party_temp = FROM.ruling_party }
			change_ruling_party_effect = yes
			load_focus_tree = {
				tree = miscle_tree_focus
				keep_completed = yes
			}
		}
		hidden_effect = {
			country_event = { id = ast_elections.6 days = 1 } #election day after effects
		}
	}
}

country_event = {
	id = ast_elections.6
	is_triggered_only = yes
	hidden = yes

	immediate = {
		if = {
			limit = {
				NOT = {
					OR = {
						has_focus_tree = gillardgov_focus
						has_focus_tree = ruddgov_focus
					}
				}
			}
			remove_power_balance = { id = rudd_bop }
		}
	}
}


add_namespace = election_outcomes_ast

#kevin rudd victory
news_event = {
	id = election_outcomes_ast.1
	title = election_outcomes_ast.1.t
	desc = election_outcomes_ast.1.d
	picture = GFX_rudd_victory_ast
	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			kill_country_leader = yes
			create_country_leader = {
					name = "Kevin Rudd"
					desc = "kevin_rudd_desc"
					picture = "kevin_rudd_1.dds"
					ideology = socialism
					traits = {
						western_socialism
					}
				}
			load_focus_tree = {
				tree = ruddgov_focus
				keep_completed = yes
			}
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: election_outcomes_ast.1.a executed"
		name = election_outcomes_ast.1.a
		custom_effect_tooltip = focus_tree_has_changed_ast_tt
	}
}

#coalition wins 2007
news_event = {
	id = election_outcomes_ast.2
	title = election_outcomes_ast.2.t
	desc = election_outcomes_ast.2.d
	picture = GFX_liberal_rally
	is_triggered_only = yes

	option = { name = election_outcomes_ast.2.a }
}

#generic labor reelection
news_event = {
	id = election_outcomes_ast.3
	title = election_outcomes_ast.3.t
	desc = election_outcomes_ast.3.d
	picture = GFX_generic_labor_crowd
	is_triggered_only = yes

	option = { name = election_outcomes_ast.3.a }
}

#rudd reelected
news_event = {
	id = election_outcomes_ast.4
	title = election_outcomes_ast.4.t
	desc = election_outcomes_ast.4.d
	picture = GFX_generic_labor_crowd
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: election_outcomes_ast.3.a executed"
		name = election_outcomes_ast.3.a
		set_country_flag = rudd_consecutive_win
	}
}

#julia wins special election
news_event = {
	id = election_outcomes_ast.5
	title = election_outcomes_ast.5.t
	desc = election_outcomes_ast.5.d
	picture = GFX_hung_parliament_ast
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: election_outcomes_ast.5.a executed"
		name = election_outcomes_ast.5.a
		add_ideas = hung_parliament_ast
		set_country_flag = gillard_won_election_ast
	}
}

#julia wins another term
news_event = {
	id = election_outcomes_ast.6
	title = election_outcomes_ast.6.t
	desc = election_outcomes_ast.6.d
	picture = GFX_gillard_wins_election
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: election_outcomes_ast.6.a executed"
		name = election_outcomes_ast.6.a
		set_country_flag = gillard_consecutive_win
	}
}

#generic coalition reelection
news_event = {
	id = election_outcomes_ast.7
	title = election_outcomes_ast.7.t
	desc = election_outcomes_ast.7.d
	picture = GFX_liberal_rally
	is_triggered_only = yes

	option = { name = election_outcomes_ast.7.a }
}

#gillard wins 2013 nonconsecutive
news_event = {
	id = election_outcomes_ast.8
	title = election_outcomes_ast.5.t
	desc = election_outcomes_ast.5.d
	picture = GFX_hung_parliament_ast
	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			kill_country_leader = yes
			set_power_balance = {
				id = rudd_bop
				set_default = yes
			}
			create_country_leader = {
					name = "Julia Gillard"
					desc = julia_gilard_desc
					picture = "julia_gillard_1.dds"
					ideology = socialism
					traits = {
						western_conservatism
					}
			}
			load_focus_tree = {
				tree = gillardgov_focus
				keep_completed = yes
			}
			set_country_flag = special_gillard_election_done
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: election_outcomes_ast.5.a executed"
		name = election_outcomes_ast.5.a
		add_ideas = hung_parliament_ast
		set_country_flag = gillard_won_election_ast
		custom_effect_tooltip = focus_tree_has_changed_ast_tt
	}
}

#turnbull elected
news_event = {
	id = election_outcomes_ast.9
	title = election_outcomes_ast.9.t
	desc = election_outcomes_ast.9.d
	picture = GFX_malcolm_turnbull_speech_wide
	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			kill_country_leader = yes
			create_country_leader = {
					name = "Malcolm Turnbull"
					picture = "malcolm_turnbull_1.dds"
					ideology = conservatism
					traits = {
						western_conservatism
					}
			}
			load_focus_tree = {
				tree = turnbullgov_focus
				keep_completed = yes
			}
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: election_outcomes_ast.9.a executed"
		name = election_outcomes_ast.9.a
		custom_effect_tooltip = focus_tree_has_changed_ast_tt
	}
}


add_namespace = special_gillard_election

country_event = {
	id = special_gillard_election.1
	title = special_gillard_election.1.t
	desc = special_gillard_election.1.d
	picture = GFX_special_gillard_election_image
	is_triggered_only = yes

	immediate = {
		set_country_flag = special_gillard_election_done
		set_country_flag = {
					flag = election_cooldown_ast
					days = 435
					value = 1
				}
		set_country_flag = {
					flag = campaigning_labor_ast
					days = 90
					value = 1
				}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: special_gillard_election.1.a executed"
		name = special_gillard_election.1.a
		custom_effect_tooltip = election_is_on_decisions_tt
		set_country_flag = election_ongoing_ast
		set_country_flag = gillard_election_ongoing_ast
	}
}

#election day special
country_event = {
	id = special_gillard_election.2
	title = ast_elections.3.t
	desc = ast_elections.3.d
	picture = GFX_election_rally
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: ast_elections.3.a executed"
		name = ast_elections.3.a
		hidden_effect = {
			country_event = { id = special_gillard_election.3 days = 1 }
		}
	}
}

country_event = {
	id = special_gillard_election.3
	is_triggered_only = yes
	hidden = yes

	immediate = {
		set_temp_variable = { ruling_party_popularity = party_pop_array^0 }
		set_variable = { ruling_party = 0 }
		for_each_loop = {
			array = party_pop_array
			value = v
			index = i
			if = {
				limit = { check_variable = { ruling_party_popularity < v } }
				set_temp_variable = { ruling_party_popularity = v }
				set_variable = { ruling_party = i }
			}
		}
		set_temp_variable = { outlook_party_index = ruling_party }
		set_outlook_from_party_index = yes

		#gillard wins
		if = {
			limit = {
				western_social_democrats_are_in_power = yes
			}
			news_event = election_outcomes_ast.5
			set_country_flag = gillard_won_election_ast
		}
		#abbott wins
		else_if = {
			limit = {
				western_conservatism_are_in_power = yes
			}
			news_event = dissolution_election_rudd.4
		}
		else = {
			set_country_flag = {
					flag = labor_previously_in
					days = 60
					value = 1
				}
			country_event = ast_elections.4
		}
	}
}

##############################
#Gillard events
#############################

add_namespace = ast_fm_rudd_focus

country_event = {
	id = ast_fm_rudd_focus.1
	is_triggered_only = yes
	hidden = yes

	immediate = {
		complete_national_focus = {
			focus = AST_papua_residency
			use_side_message = yes
			originator_name = kevin_rudd
		}
	}
}

country_event = {
	id = ast_fm_rudd_focus.2
	is_triggered_only = yes
	hidden = yes

	immediate = {
		complete_national_focus = {
			focus = AST_soften_the_emerald
			use_side_message = yes
			originator_name = kevin_rudd
		}
	}
}

country_event = {
	id = ast_fm_rudd_focus.3
	is_triggered_only = yes
	hidden = yes

	immediate = {
		complete_national_focus = {
			focus = AST_the_new_bear
			use_side_message = yes
			originator_name = kevin_rudd
		}
	}
}

country_event = {
	id = ast_fm_rudd_focus.4
	is_triggered_only = yes
	hidden = yes

	immediate = {
		complete_national_focus = {
			focus = AST_entente_with_north_korea
			use_side_message = yes
			originator_name = kevin_rudd
		}
	}
}

country_event = {
	id = ast_fm_rudd_focus.5
	title = ast_fm_rudd_focus.5.t
	desc = ast_fm_rudd_focus.5.d
	picture = GFX_rudd_generic_speech
	is_triggered_only = yes

	immediate = {
		deactivate_shine_on_focus = AST_entente_with_north_korea
		clr_country_flag = ast_entente_with_north_korea_in_progress_flag
		clr_country_flag = rudd_given_support_ast
	}

	option = {
		log = "[GetDateText]: [This.GetName]: ast_fm_rudd_focus.5.a executed"
		name = ast_fm_rudd_focus.5.a
		hidden_effect = {
			uncomplete_national_focus = { focus = AST_foreign_minister_rudd uncomplete_children = no refund_political_power = no }
			set_temp_variable = { party_popularity_increase = -0.03 }
			change_relative_party_popularity = yes
		}
	}
}

add_namespace = ast_fm_smith_focus

country_event = {
	id = ast_fm_smith_focus.1
	is_triggered_only = yes
	hidden = yes

	immediate = {
		complete_national_focus = {
			focus = AST_our_glowing_deposits
			use_side_message = yes
			originator_name = stephen_smith
		}
	}
}

country_event = {
	id = ast_fm_smith_focus.2
	is_triggered_only = yes
	hidden = yes

	immediate = {
		complete_national_focus = {
			focus = AST_the_best_of_both_worlds
			use_side_message = yes
			originator_name = stephen_smith
		}
	}
}

country_event = {
	id = ast_fm_smith_focus.3
	is_triggered_only = yes
	hidden = yes

	immediate = {
		complete_national_focus = {
			focus = AST_made_in_vietnam
			use_side_message = yes
			originator_name = stephen_smith
		}
	}
}

country_event = {
	id = ast_fm_smith_focus.4
	is_triggered_only = yes
	hidden = yes

	immediate = {
		complete_national_focus = {
			focus = AST_world_hold_on
			use_side_message = yes
			originator_name = stephen_smith
		}
	}
}

add_namespace = ast_fm_carr_focus

country_event = {
	id = ast_fm_carr_focus.1
	is_triggered_only = yes
	hidden = yes

	immediate = {
		complete_national_focus = {
			focus = AST_smother_the_pot
			use_side_message = yes
			originator_name = bob_carr
		}
	}
}

country_event = {
	id = ast_fm_carr_focus.2
	is_triggered_only = yes
	hidden = yes

	immediate = {
		complete_national_focus = {
			focus = AST_the_big_boys_club
			use_side_message = yes
			originator_name = bob_carr
		}
	}
}

country_event = {
	id = ast_fm_carr_focus.3
	is_triggered_only = yes
	hidden = yes

	immediate = {
		complete_national_focus = {
			focus = AST_global_weapon_trading
			use_side_message = yes
			originator_name = bob_carr
		}
	}
}

country_event = {
	id = ast_fm_carr_focus.4
	is_triggered_only = yes
	hidden = yes

	immediate = {
		complete_national_focus = {
			focus = AST_myanmar_intervention
			use_side_message = yes
			originator_name = bob_carr
		}
	}
}

add_namespace = gillard_gov_event

country_event = {
	id = gillard_gov_event.1
	title = gillard_gov_event.1.t
	desc = gillard_gov_event.1.d
	picture = GFX_gillard_microphones
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		log = "[GetDateText]: [This.GetName]: gillard_gov_event.1.a executed"
		name = gillard_gov_event.1.a
		add_political_power = 120
		set_temp_variable = { party_popularity_increase = 0.03 }
		change_relative_party_popularity = yes
	}
}

country_event = {
	id = gillard_gov_event.2
	title = gillard_gov_event.2.t
	desc = gillard_gov_event.2.d
	picture = GFX_gillard_swan
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		log = "[GetDateText]: [This.GetName]: gillard_gov_event.2.a executed"
		name = gillard_gov_event.2.a
		add_power_balance_value = {
				id = rudd_bop
				value = 0.1
				tooltip_side = gillard_power_side
			}
	}
}

add_namespace = forming_government_gil

country_event = {
	id = forming_government_gil.1
	title = forming_government_gil.1.t
	desc = forming_government_gil.1.d
	picture = GFX_aus_parliament
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: forming_government_gil.1.a executed"
		name = forming_government_gil.1.a
		swap_ideas = {
			remove_idea = hung_parliament_ast
			add_idea = hung_parliament_ast_2
		}
		complete_national_focus = AST_go_green
		ai_chance = {
			base = 1
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: forming_government_gil.1.b executed"
		name = forming_government_gil.1.b
		swap_ideas = {
			remove_idea = hung_parliament_ast
			add_idea = hung_parliament_ast_2
		}
		complete_national_focus = AST_wrangle_liberal_defectors
		ai_chance = {
			base = 1
			modifier = {
				has_global_flag = AST_HISTORICAL_FOCUS_PATH
				factor = 0
			}
		}
	}
}

add_namespace = forced_adoptions_gillard

news_event = {
	id = forced_adoptions_gillard.1
	title = forced_adoptions_gillard.1.t
	desc = forced_adoptions_gillard.1.d
	picture = GFX_gillard_apology
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: forced_adoptions_gillard.1.a executed"
		name = forced_adoptions_gillard.1.a
		add_stability = 0.03
	}
}

add_namespace = let_debate_decide_gillard

country_event = {
	id = let_debate_decide_gillard.1
	title = let_debate_decide_gillard.1.t
	desc = let_debate_decide_gillard.1.d
	picture = GFX_aus_parliament
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		log = "[GetDateText]: [This.GetName]: let_debate_decide_gillard.1.a executed"
		name = let_debate_decide_gillard.1.a
		add_political_power = -50
		set_temp_variable = { party_popularity_increase = -0.03 }
		change_relative_party_popularity = yes
	}
}

country_event = {
	id = let_debate_decide_gillard.2
	title = let_debate_decide_gillard.2.t
	desc = let_debate_decide_gillard.2.d
	picture = GFX_lgbt_parade
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		log = "[GetDateText]: [This.GetName]: let_debate_decide_gillard.2.a executed"
		name = let_debate_decide_gillard.2.a
		add_ideas = amended_sex_discrimination_act_ast
	}
}

add_namespace = papua_residency_ast

country_event = {
	id = papua_residency_ast.1
	title = papua_residency_ast.1.t
	desc = papua_residency_ast.1.d
	picture = GFX_papua_aus
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		log = "[GetDateText]: [This.GetName]: papua_residency_ast.1.a executed"
		name = papua_residency_ast.1.a
		AST = {
			country_event = { id = papua_residency_ast.2 days = 1 }
			add_opinion_modifier = { target = PAP modifier = economic_union }
		}
		ai_chance = { base = 1 }
	}

	option = {
		log = "[GetDateText]: [This.GetName]: papua_residency_ast.1.b executed"
		name = papua_residency_ast.1.b
		AST = {
			country_event = { id = papua_residency_ast.3 days = 1 }
		}
		ai_chance = { base = 0 }
	}
}

country_event = {
	id = papua_residency_ast.2
	title = papua_residency_ast.2.t
	desc = papua_residency_ast.2.d
	picture = GFX_papua_aus
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		log = "[GetDateText]: [This.GetName]: papua_residency_ast.2.a executed"
		name = papua_residency_ast.2.a
		PAP = { add_opinion_modifier = { target = AST modifier = economic_union } }
		set_temp_variable = { percent_change = 11 }
		set_temp_variable = { tag_index = AST.id }
		set_temp_variable = { influence_target = PAP.id }
		change_influence_percentage = yes
	}
}

country_event = {
	id = papua_residency_ast.3
	title = papua_residency_ast.3.t
	desc = papua_residency_ast.3.d
	picture = GFX_papua_aus
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		log = "[GetDateText]: [This.GetName]: papua_residency_ast.3.a executed"
		name = papua_residency_ast.3.a
		add_opinion_modifier = { target = PAP modifier = refused_trade_deal }
	}
}

add_namespace = indo_ast_trade_deal

country_event = {
	id = indo_ast_trade_deal.1
	title = indo_ast_trade_deal.1.t
	desc = indo_ast_trade_deal.1.d
	picture = GFX_indo_ast
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		log = "[GetDateText]: [This.GetName]: indo_ast_trade_deal.1.a executed"
		name = indo_ast_trade_deal.1.a
		AST = {
			country_event = { id = indo_ast_trade_deal.2 days = 1 }
			add_opinion_modifier = { target = IND modifier = free_trade_agreement }
		}
		ai_chance = {
			base = 10
			modifier = {
				has_opinion = {
					target = AST
					value > 0
				}
				add = 80
			}
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: indo_ast_trade_deal.1.b executed"
		name = indo_ast_trade_deal.1.b
		AST = {
			country_event = { id = indo_ast_trade_deal.3 days = 1 }
		}
		ai_chance = {
			base = 10
			modifier = {
				has_opinion = {
					target = AST
					value < 0
				}
				add = 80
			}
		}
	}
}

country_event = {
	id = indo_ast_trade_deal.2
	title = indo_ast_trade_deal.2.t
	desc = indo_ast_trade_deal.2.d
	picture = GFX_indo_ast
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		log = "[GetDateText]: [This.GetName]: indo_ast_trade_deal.2.a executed"
		name = indo_ast_trade_deal.2.a
		add_opinion_modifier = { target = IND modifier = free_trade_agreement }
		set_temp_variable = { percent_change = 6 }
		set_temp_variable = { tag_index = AST.id }
		set_temp_variable = { influence_target = IND.id }
		change_influence_percentage = yes
		diplomatic_relation = {
			country = IND
			relation = non_aggression_pact
			active = yes
		}
	}
}

country_event = {
	id = indo_ast_trade_deal.3
	title = indo_ast_trade_deal.3.t
	desc = indo_ast_trade_deal.3.d
	picture = GFX_indo_ast
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		log = "[GetDateText]: [This.GetName]: indo_ast_trade_deal.3.a executed"
		name = indo_ast_trade_deal.3.a
		add_opinion_modifier = { target = IND modifier = refused_trade_deal }
	}
}


add_namespace = opposition_attacks_ast

country_event = {
	id = opposition_attacks_ast.1
	title = opposition_attacks_ast.1.t
	desc = opposition_attacks_ast.1.d
	picture = GFX_tony_attack_ast
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		log = "[GetDateText]: [This.GetName]: opposition_attacks_ast.1.a executed"
		name = opposition_attacks_ast.1.a
		add_political_power = -30
		hidden_effect = {
			country_event = { id = opposition_attacks_ast.2 days = 210 }
		}
	}
}

country_event = {
	id = opposition_attacks_ast.2
	title = opposition_attacks_ast.2.t
	desc = opposition_attacks_ast.2.d
	picture = GFX_abbott_generic
	is_triggered_only = yes
	fire_only_once = yes

	immediate = {
		hidden_effect = {
			set_temp_variable = { party_popularity_increase = -0.05 }
			change_relative_party_popularity = yes
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: opposition_attacks_ast.2.a executed"
		name = opposition_attacks_ast.2.a
		add_political_power = -50
		hidden_effect = {
			country_event = { id = opposition_attacks_ast.3 days = 263 }
		}
	}
}

country_event = {
	id = opposition_attacks_ast.3
	title = opposition_attacks_ast.3.t
	desc = opposition_attacks_ast.3.d
	picture = GFX_peter_slipper_ast
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		log = "[GetDateText]: [This.GetName]: opposition_attacks_ast.3.a executed"
		name = opposition_attacks_ast.3.a
		add_political_power = -20
		hidden_effect = {
			news_event = { id = opposition_attacks_ast.4 days = 2 }
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: opposition_attacks_ast.3.b executed"
		name = opposition_attacks_ast.3.b
		add_political_power = 20
	}
}

news_event = {
	id = opposition_attacks_ast.4
	title = opposition_attacks_ast.4.t
	desc = opposition_attacks_ast.4.d
	picture = GFX_gillard_miso_speech
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		log = "[GetDateText]: [This.GetName]: opposition_attacks_ast.4.a executed"
		name = opposition_attacks_ast.4.a
		add_political_power = 120
	}
}

add_namespace = rudd_events_gillard

country_event = {
	id = rudd_events_gillard.1
	title = rudd_events_gillard.1.t
	desc = rudd_events_gillard.1.d
	picture = GFX_rudd_generic_speech
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		log = "[GetDateText]: [This.GetName]: rudd_events_gillard.1.a executed"
		name = rudd_events_gillard.1.a
		hidden_effect = {
			uncomplete_national_focus = { focus = AST_foreign_minister_carr uncomplete_children = no refund_political_power = no }
			uncomplete_national_focus = { focus = AST_foreign_minister_smith uncomplete_children = no refund_political_power = no }
		}
		complete_national_focus = AST_foreign_minister_rudd
		set_country_flag = rudd_given_support_ast
		ai_chance = {
			base = 1
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: rudd_events_gillard.1.b executed"
		name = rudd_events_gillard.1.b
		add_political_power = 30
		ai_chance = {
			base = 1
			modifier = {
				has_global_flag = AST_HISTORICAL_FOCUS_PATH
				factor = 0
			}
		}
	}
}

country_event = {
	id = rudd_events_gillard.2
	title = rudd_events_gillard.2.t
	desc = rudd_events_gillard.2.d
	picture = GFX_rudd_thinking
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		log = "[GetDateText]: [This.GetName]: rudd_events_gillard.2.a executed"
		name = rudd_events_gillard.2.a
		add_political_power = -20
		hidden_effect = {
			country_event = { id = rudd_events_gillard.3 days = 182 }
		}
	}
}

#negative campaigning
country_event = {
	id = rudd_events_gillard.3
	title = rudd_events_gillard.3.t
	desc = rudd_events_gillard.3.d
	picture = GFX_rudd_campaigning
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		log = "[GetDateText]: [This.GetName]: rudd_events_gillard.3.a executed"
		name = rudd_events_gillard.3.a
		add_power_balance_value = {
				id = rudd_bop
				value = -0.15
				tooltip_side = rudd_power_side
		}
		hidden_effect = {
			country_event = { id = rudd_events_gillard.5 days = 113 }
		}
	}
}

#helpful campaigning
country_event = {
	id = rudd_events_gillard.4
	title = rudd_events_gillard.3.t
	desc = rudd_events_gillard.4.d
	picture = GFX_rudd_campaigning
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		log = "[GetDateText]: [This.GetName]: rudd_events_gillard.4.a executed"
		name = rudd_events_gillard.4.a
		add_political_power = 60
		set_temp_variable = { party_popularity_increase = 0.03 }
		change_relative_party_popularity = yes
	}
}

#rudd out against gov
country_event = {
	id = rudd_events_gillard.5
	title = rudd_events_gillard.5.t
	desc = rudd_events_gillard.5.d
	picture = GFX_rudd_generic_speech
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		log = "[GetDateText]: [This.GetName]: rudd_events_gillard.5.a executed"
		name = rudd_events_gillard.5.a
		country_event = { id = rudd_events_gillard.6 days = 2 }
		hidden_effect = {
			country_event = { id = rudd_events_gillard.7 days = 31 }
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: rudd_events_gillard.5.b executed"
		name = rudd_events_gillard.5.b
		add_political_power = -40
		hidden_effect = {
			country_event = { id = rudd_events_gillard.7 days = 143 }
		}
	}
}

#leadership challenge ez win
country_event = {
	id = rudd_events_gillard.6
	title = rudd_events_gillard.6.t
	desc = rudd_events_gillard.6.d
	picture = GFX_aus_parliament
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		log = "[GetDateText]: [This.GetName]: rudd_events_gillard.6.a executed"
		name = rudd_events_gillard.6.a
		add_political_power = 40
	}
}

#mass resignations
country_event = {
	id = rudd_events_gillard.7
	title = rudd_events_gillard.7.t
	desc = rudd_events_gillard.7.d
	picture = GFX_gillard_comic
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		log = "[GetDateText]: [This.GetName]: rudd_events_gillard.7.a executed"
		name = rudd_events_gillard.7.a
		add_political_power = -80
		add_power_balance_value = {
				id = rudd_bop
				value = -0.20
				tooltip_side = rudd_power_side
		}
		hidden_effect = {
			country_event = { id = rudd_events_gillard.8 days = 232 }
		}
	}
}

#greens ditch/independents champion
country_event = {
	id = rudd_events_gillard.8
	title = {
		text = rudd_events_gillard.8.t.a
		trigger = { has_completed_focus = AST_go_green }
	}
	title = {
		text = rudd_events_gillard.8.t.b
		trigger = { has_completed_focus = AST_wrangle_liberal_defectors }
	}
	desc = {
		text = rudd_events_gillard.8.d.a
		trigger = { has_completed_focus = AST_go_green }
	}
	desc = {
		text = rudd_events_gillard.8.d.b
		trigger = { has_completed_focus = AST_wrangle_liberal_defectors }
	}
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: rudd_events_gillard.8.a executed"
		name = rudd_events_gillard.8.a
		trigger = { has_completed_focus = AST_go_green }
		set_temp_variable = { party_popularity_increase = -0.03 }
		change_relative_party_popularity = yes
		add_power_balance_value = {
				id = rudd_bop
				value = -0.25
				tooltip_side = rudd_power_side
		}
		hidden_effect = {
			country_event = { id = rudd_events_gillard.9 days = 78 }
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: rudd_events_gillard.8.b executed"
		name = rudd_events_gillard.8.b
		trigger = { has_completed_focus = AST_wrangle_liberal_defectors }
		add_power_balance_value = {
				id = rudd_bop
				value = 0.05
				tooltip_side = gillard_power_side
		}
		hidden_effect = {
			country_event = { id = rudd_events_gillard.9 days = 78 }
		}
	}
}

#last leadership challenge
country_event = {
	id = rudd_events_gillard.9
	title = rudd_events_gillard.9.t
	desc = rudd_events_gillard.9.d
	picture = GFX_aus_parliament
	is_triggered_only = yes
	fire_only_once = yes

	immediate = {
		hidden_effect = {
			add_power_balance_value = {
				id = rudd_bop
				value = -0.1
				tooltip_side = rudd_power_side
			}
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: rudd_events_gillard.9.a executed"
		name = rudd_events_gillard.9.a
		if = {
			limit = {
				power_balance_value = {
					id = rudd_bop
					value > 0.65
				}
			}
			country_event = { id = gillard_goodbye_ast.2 days = 3 }
		}
		else = {
			country_event = { id = gillard_goodbye_ast.1 days = 3 }
		}
	}
}

add_namespace = gillard_goodbye_ast

#loses
country_event = {
	id = gillard_goodbye_ast.1
	title = gillard_goodbye_ast.1.t
	desc = gillard_goodbye_ast.1.d
	picture = GFX_parliament_dawn
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: gillard_goodbye_ast.1.a executed"
		name = gillard_goodbye_ast.1.a
		add_stability = -0.05
		hidden_effect = {
			kill_country_leader = yes
			remove_ideas = hung_parliament_ast
			remove_ideas = hung_parliament_ast_2
			set_temp_variable = { party_popularity_increase = -0.09 }
			change_relative_party_popularity = yes
			create_country_leader = {
					name = "Kevin Rudd"
					picture = "kevin_rudd_1.dds"
					desc = kevin_rudd_desc
					ideology = socialism
					traits = {
						western_socialism
						popular_figure_ast
					}
				}
			load_focus_tree = {
					tree = ruddgov_return_focus
					keep_completed = yes
				}
		}
		custom_effect_tooltip = focus_tree_has_changed_ast_tt
	}
}

#wins
country_event = {
	id = gillard_goodbye_ast.2
	title = gillard_goodbye_ast.2.t
	desc = gillard_goodbye_ast.2.d
	picture = GFX_aus_parliament
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: gillard_goodbye_ast.2.a executed"
		name = gillard_goodbye_ast.2.a
		add_political_power = 50
	}
}

add_namespace = uranium_trade_deal_ast

country_event = {
	id = uranium_trade_deal_ast.1
	title = uranium_trade_deal_ast.1.t
	desc = uranium_trade_deal_ast.1.d
	picture = GFX_aus_flag
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		log = "[GetDateText]: [This.GetName]: uranium_trade_deal_ast.1.a executed"
		name = uranium_trade_deal_ast.1.a
		add_tech_bonus = {
			name = uranium_trade_deal_ast.1.t
				bonus = 0.7
				uses = 1
				category = CAT_nuclear_reactors
			} hidden_effect = { rq_eb_c1c27c36cf = yes }
		AST = {
			add_opinion_modifier = {
				target = RAJ
				modifier = free_trade_agreement
			}
			country_event = { id = uranium_trade_deal_ast.2 days = 1 }
		}
		ai_chance = { base = 1 }
	}

	option = {
		log = "[GetDateText]: [This.GetName]: uranium_trade_deal_ast.1.b executed"
		name = uranium_trade_deal_ast.1.b
		AST = {
			add_opinion_modifier = {
				target = RAJ
				modifier = refused_trade_deal
			}
			country_event = { id = uranium_trade_deal_ast.3 days = 1 }
		}
		ai_chance = { base = 0 }
	}
}

country_event = {
	id = uranium_trade_deal_ast.2
	title = uranium_trade_deal_ast.2.t
	desc = uranium_trade_deal_ast.2.d
	picture = GFX_indo_ast
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: uranium_trade_deal_ast.2.a executed"
		name = uranium_trade_deal_ast.2.a
		add_tech_bonus = {
			name = uranium_trade_deal_ast.2.t
				bonus = 0.4
				uses = 1
				category = CAT_nuclear_reactors
			} hidden_effect = { rq_eb_46562fa71e = yes }
		RAJ = {
			add_opinion_modifier = {
				target = AST
				modifier = free_trade_agreement
			}
		}
	}
}

country_event = {
	id = uranium_trade_deal_ast.3
	title = uranium_trade_deal_ast.3.t
	desc = uranium_trade_deal_ast.3.d
	picture = GFX_indo_ast
	is_triggered_only = yes

	option = { name = uranium_trade_deal_ast.3.a }
}

country_event = {
	id = uranium_trade_deal_ast.4
	title = uranium_trade_deal_ast.1.t
	desc = uranium_trade_deal_ast.1.d
	picture = GFX_aus_flag
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: uranium_trade_deal_ast.1.a executed"
		name = uranium_trade_deal_ast.1.a
		add_ideas = australia_uranium_deal
		AST = {
			add_opinion_modifier = {
				target = SOV
				modifier = ast_trade_deal
			}
			country_event = { id = uranium_trade_deal_ast.5 days = 1 }
		}
		ai_chance = {
			base = 10
			modifier = {
				has_opinion = {
					target = AST
					value > 0
				}
				add = 80
			}
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: uranium_trade_deal_ast.1.b executed"
		name = uranium_trade_deal_ast.1.b
		AST = {
			add_opinion_modifier = {
				target = SOV
				modifier = refused_trade_deal
			}
			country_event = { id = uranium_trade_deal_ast.6 days = 1 }
		}
		ai_chance = {
			base = 10
			modifier = {
				has_opinion = {
					target = AST
					value < 0
				}
				add = 80
			}
		}
	}
}

country_event = {
	id = uranium_trade_deal_ast.5
	title = uranium_trade_deal_ast.5.t
	desc = uranium_trade_deal_ast.5.d
	picture = GFX_sov_dubrovka
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: uranium_trade_deal_ast.5.a executed"
		name = uranium_trade_deal_ast.5.a
		SOV = {
			add_opinion_modifier = {
				target = AST
				modifier = ast_trade_deal
			}
		}
	}
}

country_event = {
	id = uranium_trade_deal_ast.6
	title = uranium_trade_deal_ast.6.t
	desc = uranium_trade_deal_ast.6.d
	picture = GFX_sov_dubrovka
	is_triggered_only = yes

	option = { name = uranium_trade_deal_ast.6.a }
}

add_namespace = rudd_in_korea

country_event = {
	id = rudd_in_korea.1
	title = rudd_in_korea.1.t
	desc = rudd_in_korea.1.d
	picture = GFX_aus_flag
	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			add_opinion_modifier = {
			target = AST
			modifier = state_visit
			}
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: rudd_in_korea.1.a executed"
		name = rudd_in_korea.1.a
		AST = {
			news_event = { id = rudd_in_korea.2 days = 1 }
		}
		ai_chance = { base = 1 }
	}

	option = {
		name = rudd_in_korea.1.b
		ai_chance = { base = 0 }
	}
}

news_event = {
	id = rudd_in_korea.2
	title = rudd_in_korea.2.t
	desc = rudd_in_korea.2.d
	picture = GFX_rudd_in_nk
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: rudd_in_korea.2.a executed"
		name = rudd_in_korea.2.a
		NKO = {
			diplomatic_relation = {
			country = KOR
			relation = non_aggression_pact
			active = yes
			}
		}
	}
}

add_namespace = vietnam_trade_gillard_ast

country_event = {
	id = vietnam_trade_gillard_ast.1
	title = vietnam_trade_gillard_ast.1.t
	desc = vietnam_trade_gillard_ast.1.d
	picture = GFX_aus_flag
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: uranium_trade_deal_ast.1.a executed"
		name = uranium_trade_deal_ast.1.a
		AST = {
			add_opinion_modifier = {
				target = VIE
				modifier = free_trade_agreement
			}
			country_event = { id = vietnam_trade_gillard_ast.2 days = 1 }
		}
		ai_chance = { base = 1 }
	}

	option = {
		log = "[GetDateText]: [This.GetName]: uranium_trade_deal_ast.1.b executed"
		name = uranium_trade_deal_ast.1.b
		AST = {
			add_opinion_modifier = {
				target = VIE
				modifier = refused_trade_deal
			}
			country_event = { id = vietnam_trade_gillard_ast.3 days = 1 }
		}
		ai_chance = { base = 0 }
	}
}

country_event = {
	id = vietnam_trade_gillard_ast.2
	title = vietnam_trade_gillard_ast.2.t
	desc = vietnam_trade_gillard_ast.2.d
	picture = GFX_vietnam_aus
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: vietnam_trade_gillard_ast.2.a executed"
		name = vietnam_trade_gillard_ast.2.a
		VIE = {
			add_opinion_modifier = {
				target = AST
				modifier = free_trade_agreement
			}
		}
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = vietnam_trade_gillard_ast.3
	title = vietnam_trade_gillard_ast.3.t
	desc = vietnam_trade_gillard_ast.3.d
	picture = GFX_vietnam_aus
	is_triggered_only = yes

	option = {
		name = vietnam_trade_gillard_ast.3.a
		ai_chance = { base = 0 }
	}
}

add_namespace = stir_the_pot_event

country_event = {
	id = stir_the_pot_event.1
	title = stir_the_pot_event.1.t
	desc = stir_the_pot_event.1.d
	picture = GFX_aus_flag
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: stir_the_pot_event.1.a executed"
		name = stir_the_pot_event.1.a
		add_ideas = enforced_no_fly_zone_ast
		AST = {
			country_event = { id = stir_the_pot_event.2 days = 1 }
		}
		ai_chance = { base = 30 }
	}

	option = {
		log = "[GetDateText]: [This.GetName]: stir_the_pot_event.1.b executed"
		name = stir_the_pot_event.1.b
		AST = {
			country_event = { id = stir_the_pot_event.3 days = 1 }
		}
		ai_chance = { base = 70 }
	}
}

country_event = {
	id = stir_the_pot_event.2
	title = stir_the_pot_event.2.t
	desc = stir_the_pot_event.2.d
	picture = GFX_fighter_jet
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: stir_the_pot_event.2.a executed"
		name = stir_the_pot_event.2.a
		add_political_power = 100
		ENG = {
			add_opinion_modifier = {
				target = AST
				modifier = military_support_ast
			}
		}
		FRA = {
			add_opinion_modifier = {
				target = AST
				modifier = military_support_ast
			}
		}
		USA = {
			add_opinion_modifier = {
				target = AST
				modifier = military_support_ast
			}
		}
	}
}

country_event = {
	id = stir_the_pot_event.3
	title = stir_the_pot_event.3.t
	desc = stir_the_pot_event.3.d
	picture = GFX_fighter_jet
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: stir_the_pot_event.3.a executed"
		name = stir_the_pot_event.3.a
		add_ideas = airforce_intervention_ast
		add_opinion_modifier = {
			target = LBA
			modifier = denied_us_ast
		}
	}
}

add_namespace = myanmar_intervention_gillard

country_event = {
	id = myanmar_intervention_gillard.1
	title = myanmar_intervention_gillard.1.t
	desc = myanmar_intervention_gillard.1.d
	picture = GFX_aus_flag
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: myanmar_intervention_gillard.1.a executed"
		name = myanmar_intervention_gillard.1.a
		AST = {
			country_event = { id = myanmar_intervention_gillard.3 days = 1 }
		}
		ai_chance = { base = 1 }
	}

	option = {
		log = "[GetDateText]: [This.GetName]: myanmar_intervention_gillard.1.b executed"
		name = myanmar_intervention_gillard.1.b
		AST = {
			country_event = { id = myanmar_intervention_gillard.2 days = 1 }
		}
		ai_chance = { base = 0 }
	}
}

country_event = {
	id = myanmar_intervention_gillard.2
	title = myanmar_intervention_gillard.2.t
	desc = myanmar_intervention_gillard.2.d
	picture = GFX_aus_adf
	is_triggered_only = yes

	immediate = { add_threat = 8 }

	option = {
		log = "[GetDateText]: [This.GetName]: myanmar_intervention_gillard.2.a executed"
		name = myanmar_intervention_gillard.2.a
		puppet = BRM
		BRM = {
			add_opinion_modifier = {
				target = AST
				modifier = peacekeepers_occupying_our_territory
			}
		}
	}
}

country_event = {
	id = myanmar_intervention_gillard.3
	title = myanmar_intervention_gillard.3.t
	desc = myanmar_intervention_gillard.3.d
	picture = GFX_aus_adf
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: myanmar_intervention_gillard.3.a executed"
		name = myanmar_intervention_gillard.3.a
		if = {
			limit = { has_dlc = "By Blood Alone" }
			send_embargo = BRM
		}
		BRM = { add_ideas = australian_sanctions }
	}

	option = {
		log = "[GetDateText]: [This.GetName]: myanmar_intervention_gillard.3.b executed"
		name = myanmar_intervention_gillard.3.b
		create_wargoal = {
			type = puppet_wargoal_focus
			target = BRM
		}
	}
}

#Rudd events

add_namespace = labor_factionalism

country_event = {
	id = labor_factionalism.1
	title = labor_factionalism.1.t
	desc = labor_factionalism.1.d
	picture = GFX_labor_factionalism_ast
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: labor_factionalism.1.a executed"
		name = labor_factionalism.1.a
		set_power_balance = { id = rudd_bop }
	}
}

add_namespace = rudd_apology

news_event = {
	id = rudd_apology.1
	title = rudd_apology.1.t
	desc = rudd_apology.1.d
	picture = GFX_national_apology_image_2
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: rudd_apology.1.a executed"
		name = rudd_apology.1.a
		add_stability = 0.03
	}
}

add_namespace = unite_the_nation_speech_ast

news_event = {
	id = unite_the_nation_speech_ast.1
	title = unite_the_nation_speech_ast.1.t
	desc = unite_the_nation_speech_ast.1.d
	picture = GFX_rudd_generic_speech_wide
	is_triggered_only = yes

	option = { name = unite_the_nation_speech_ast.1.a }
}

add_namespace = pink_batts_ast

country_event = {
	id = pink_batts_ast.1
	title = pink_batts_ast.1.t
	desc = pink_batts_ast.1.d
	picture = GFX_pink_batts
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: pink_batts_ast.1.a executed"
		name = pink_batts_ast.1.a
		add_stability = -0.07
		add_political_power = -90
	}
}

add_namespace = bob_brown_event

country_event = {
	id = bob_brown_event.1
	title = bob_brown_event.1.t
	desc = bob_brown_event.1.d
	picture = GFX_bob_brown_event
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: bob_brown_event.1.a executed"
		name = bob_brown_event.1.a
		custom_effect_tooltip = bob_brown_event_tt
		newline = yes
		add_political_power = 40
	}
}

add_namespace = something_to_give_ast

country_event = {
	id = something_to_give_ast.1
	title = something_to_give_ast.1.t
	desc = something_to_give_ast.1.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = { name = something_to_give_ast.1.a }
}

add_namespace = school_visit_rudd

country_event = {
	id = school_visit_rudd.1
	title = school_visit_rudd.1.t
	desc = school_visit_rudd.1.d
	picture = GFX_rudd_school_event
	is_triggered_only = yes

	option = { name = school_visit_rudd.1.a }
}

add_namespace = gayvote_rudd

news_event = {
	id = gayvote_rudd.1
	title = gayvote_rudd.1.t
	desc = gayvote_rudd.1.d
	picture = GFX_gayvote_rudd_event
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: gayvote_rudd.1.a executed"
		name = gayvote_rudd.1.a
		add_stability = 0.03
		set_country_flag = gay_law_1_done
	}
}

add_namespace = bill_of_rights_ast

country_event = {
	id = bill_of_rights_ast.1
	title = bill_of_rights_ast.1.t
	desc = bill_of_rights_ast.1.d
	picture = GFX_hung_2020
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: bill_of_rights_ast.1.a executed"
		name = bill_of_rights_ast.1.a
		add_ideas = bill_of_rights_ast
	}
}

add_namespace = tackle_mining_oligarchy_ast

country_event = {
	id = tackle_mining_oligarchy_ast.1
	title = tackle_mining_oligarchy_ast.1.t
	desc = tackle_mining_oligarchy_ast.1.d
	picture = GFX_ken_henry_ast
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: tackle_mining_oligarchy_ast.1.a executed"
		name = tackle_mining_oligarchy_ast.1.a
		add_political_power = 30
	}
}

country_event = {
	id = tackle_mining_oligarchy_ast.2
	title = tackle_mining_oligarchy_ast.2.t
	desc = tackle_mining_oligarchy_ast.2.d
	picture = GFX_wayne_swan_rudd
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: tackle_mining_oligarchy_ast.2.a executed"
		name = tackle_mining_oligarchy_ast.2.a
		add_political_power = 50
	}
}

add_namespace = rudd_nz_deal

country_event = {
	id = rudd_nz_deal.1
	title = rudd_nz_deal.1.t
	desc = rudd_nz_deal.1.d
	picture = GFX_nz_scenery
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: rudd_nz_deal.1.a executed"
		name = rudd_nz_deal.1.a
		NZL = {
			add_opinion_modifier = {
				target = AST
				modifier = trans_tasman_trade_deal
			}
			add_opinion_modifier = {
				target = AST
				modifier = gratitude
			}
			set_temp_variable = { percent_change = 5 }
			set_temp_variable = { tag_index = AST.id }
			set_temp_variable = { influence_target = THIS.id }
			change_influence_percentage = yes
		}
		newline = yes
		set_temp_variable = { treasury_change = -22 }
		modify_treasury_effect = yes
		750 = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
				type = industrial_complex
				level = 2
				instant_build = yes
				}
			}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: rudd_nz_deal.1.b executed"
		name = rudd_nz_deal.1.b
		NZL = {
			add_opinion_modifier = {
				target = AST
				modifier = trans_tasman_trade_deal
			}
			add_opinion_modifier = {
				target = AST
				modifier = insult
			}
		}
	}
}

add_namespace = rudd_visit_ast

country_event = {
	id = rudd_visit_ast.1
	title = rudd_visit_ast.1.t
	desc = rudd_visit_ast.1.d
	picture = GFX_sk_memorial
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: rudd_visit_ast.1.a executed"
		name = rudd_visit_ast.1.a
		give_guarantee = KOR
		hidden_effect = { set_country_flag = rudd_agreement_done_1 }
		trigger = { NOT = { has_guaranteed = KOR } }
	}

	option = {
		log = "[GetDateText]: [This.GetName]: rudd_visit_ast.1.b executed"
		name = rudd_visit_ast.1.b
		KOR = {
			add_opinion_modifier = {
				target = AST
				modifier = insult
			}
		}
		trigger = { NOT = { has_guaranteed = KOR } }
	}

	option = {
		log = "[GetDateText]: [This.GetName]: rudd_visit_ast.1.c executed"
		name = rudd_visit_ast.1.c
		KOR = {
			add_opinion_modifier = {
				target = AST
				modifier = gratitude
			}
		}
		trigger = { has_guaranteed = KOR }
	}
}

country_event = {
	id = rudd_visit_ast.2
	title = rudd_visit_ast.2.t
	desc = rudd_visit_ast.2.d
	picture = GFX_jap_flag
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: rudd_visit_ast.2.a executed"
		name = rudd_visit_ast.2.a
		hidden_effect = { set_country_flag = rudd_agreement_done_2 }
	}
}

country_event = {
	id = rudd_visit_ast.3
	title = rudd_visit_ast.3.t
	desc = rudd_visit_ast.3.d
	picture = GFX_CHI_beijing
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: rudd_visit_ast.3.a executed"
		name = rudd_visit_ast.3.a
		hidden_effect = {
			set_temp_variable = { percent_change = 2 }
			set_temp_variable = { tag_index = CHI.id }
			set_temp_variable = { influence_target = AST.id }
			change_influence_percentage = yes
		}
		if = {
			limit = { has_idea = chinese_export_bonus_ast }
			swap_ideas = {
				remove_idea = chinese_export_bonus_ast
				add_idea = chinese_export_bonus_ast_3
			}
		}
		else = { add_ideas = chinese_export_bonus_ast }
	}
}

country_event = {
	id = rudd_visit_ast.4
	title = rudd_visit_ast.4.t
	desc = rudd_visit_ast.4.d
	picture = GFX_CHI_beijing
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: rudd_visit_ast.4.a executed"
		name = rudd_visit_ast.4.a
		swap_ideas = {
			remove_idea = chinese_export_bonus_ast
			add_idea = chinese_export_bonus_ast_2
		}
		CHI = {
			diplomatic_relation = {
			country = JAP
			relation = non_aggression_pact
			active = yes
			}
		}
		hidden_effect = {
			set_temp_variable = { percent_change = 6 }
			set_temp_variable = { tag_index = CHI.id }
			set_temp_variable = { influence_target = AST.id }
			change_influence_percentage = yes
		}
	}
}

add_namespace = gillard_talk

country_event = {
	id = gillard_talk.1
	title = gillard_talk.1.t
	desc = gillard_talk.1.d
	picture = GFX_julia_gillard_standard
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: gillard_talk.1.a executed"
		name = gillard_talk.1.a
		add_political_power = 50
	}
}

add_namespace = papua_talks_rudd

country_event = {
	id = papua_talks_rudd.1
	title = papua_talks_rudd.1.t
	desc = papua_talks_rudd.1.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: papua_talks_rudd.1.a executed"
		name = papua_talks_rudd.1.a
		set_temp_variable = { treasury_change = 3.5 }
		modify_treasury_effect = yes
		ai_chance = { base = 1 }
		AST = {
			country_event = { id = papua_talks_rudd.2 days = 1 }
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: papua_talks_rudd.1.b executed"
		name = papua_talks_rudd.1.b
		ai_chance = { base = 0 }
		AST = {
			country_event = { id = papua_talks_rudd.3 days = 1 }
			add_opinion_modifier = {
			target = PAP
			modifier = denied_us_ast
			}
		}
	}
}

#accept
country_event = {
	id = papua_talks_rudd.2
	title = papua_talks_rudd.2.t
	desc = papua_talks_rudd.2.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: papua_talks_rudd.2.a executed"
		name = papua_talks_rudd.2.a
		if = {
			limit = { has_idea = boat_arrivals_ast }
			swap_ideas = {
				remove_idea = boat_arrivals_ast
				add_idea = boat_arrivals_ast_2
			}
		}
		else_if = {
			limit = { has_idea = boat_arrivals_ast_2 }
			swap_ideas = {
				remove_idea = boat_arrivals_ast_2
				add_idea = boat_arrivals_ast_3
			}
		}
		hidden_effect = {
			set_temp_variable = { treasury_change = -3.5 }
			modify_treasury_effect = yes
			set_temp_variable = { percent_change = 3 }
			set_temp_variable = { tag_index = AST.id }
			set_temp_variable = { influence_target = PAP.id }
			change_influence_percentage = yes
		}
	}
}

#refuse
country_event = {
	id = papua_talks_rudd.3
	title = papua_talks_rudd.3.t
	desc = papua_talks_rudd.3.d
	picture = GFX_treaty_rejected
	is_triggered_only = yes

	option = { name = papua_talks_rudd.3.a }
}

add_namespace = address_the_tiger_event_ast

country_event = {
	id = address_the_tiger_event_ast.1
	title = address_the_tiger_event_ast.1.t
	desc = address_the_tiger_event_ast.1.d
	picture = GFX_new_delhi_event
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: address_the_tiger_event_ast.1.a executed"
		name = address_the_tiger_event_ast.1.a
		diplomatic_relation = {
			country = RAJ
			relation = military_access
			active = yes
		}
		add_timed_idea = {
			idea = indian_military_collaboration_ast
			days = 980
		}
	}
}

add_namespace = legislation_rudd_blocked

country_event = {
	id = legislation_rudd_blocked.1
	title = legislation_rudd_blocked.1.t
	desc = legislation_rudd_blocked.1.d
	picture = GFX_aus_parliament
	is_triggered_only = yes
	fire_only_once = yes

	immediate = {
		set_country_flag = legislation_blocked_ast
		set_country_flag = legislation_event_rudd_1
	}

	option = {
		log = "[GetDateText]: [This.GetName]: legislation_rudd_blocked.1.a executed"
		name = legislation_rudd_blocked.1.a
		set_country_flag = resubmitting_the_bill_rudd
		custom_effect_tooltip = aus_legislation_decisions_tt
	}
}

country_event = {
	id = legislation_rudd_blocked.2
	title = legislation_rudd_blocked.2.t
	desc = {
		text = legislation_rudd_blocked.2.d.a
		trigger = { NOT = { has_country_flag = greens_support_rudd } }
	}
	desc = {
		text = legislation_rudd_blocked.2.d.b
		trigger = { has_country_flag = greens_support_rudd }
	}
	picture = GFX_aus_parliament
	is_triggered_only = yes
	fire_only_once = yes

	immediate = { set_country_flag = legislation_blocked_ast }

	option = {
		log = "[GetDateText]: [This.GetName]: legislation_rudd_blocked.2.a executed"
		name = legislation_rudd_blocked.2.a
		add_stability = -0.05
		add_political_power = -200
		country_event = { id = legislation_rudd_blocked.3 days = 2 }
		if = {
			limit = { has_idea = subdued_governor_general_ast }
			remove_ideas = subdued_governor_general_ast
		}
		set_country_flag = {
					flag = election_cooldown_ast
					days = 680
					value = 1
				}
		ai_chance = {
			base = 1
			modifier = {
				has_global_flag = AST_HISTORICAL_FOCUS_PATH
				factor = 0
			}
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: legislation_rudd_blocked.2.b executed"
		name = legislation_rudd_blocked.2.b
		add_political_power = -30
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = legislation_rudd_blocked.3
	title = legislation_rudd_blocked.3.t
	desc = legislation_rudd_blocked.3.d
	picture = GFX_rudd_abbott
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: legislation_rudd_blocked.3.a executed"
		name = legislation_rudd_blocked.3.a
		set_country_flag = dissolution_election_ongoing_ast
		set_country_flag = election_ongoing_ast
		set_country_flag = {
					flag = campaigning_labor_ast
					days = 90
					value = 1
				}
		custom_effect_tooltip = election_is_on_decisions_tt
	}
}

add_namespace = aus_gillard_overthrow

country_event = {
	id = aus_gillard_overthrow.2
	title = aus_gillard_overthrow.2.t
	desc = aus_gillard_overthrow.2.d
	picture = GFX_rudd_goodbye
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: aus_gillard_overthrow.2.a executed"
		name = aus_gillard_overthrow.2.a
		add_stability = -0.05
		hidden_effect = {
			kill_country_leader = yes
			create_country_leader = {
					name = "Julia Gillard"
					desc = julia_gilard_desc
					picture = "julia_gillard_1.dds"
					ideology = socialism
					traits = {
						western_conservatism
					}
			}
			set_power_balance = {
				id = rudd_bop
				set_default = yes
			}
			load_focus_tree = {
				tree = gillardgov_focus
				keep_completed = yes
			}
		}
		custom_effect_tooltip = focus_tree_has_changed_ast_tt
	}
}

country_event = {
	id = aus_gillard_overthrow.3
	title = aus_gillard_overthrow.1.t
	desc = aus_gillard_overthrow.1.d
	picture = GFX_parliament_dawn
	is_triggered_only = yes

	immediate = { set_country_flag = aus_gillard_overthrow_1_done }

	option = {
		log = "[GetDateText]: [This.GetName]: aus_gillard_overthrow.1.a executed"
		name = aus_gillard_overthrow.1.a
		country_event = { id = aus_gillard_overthrow.2 days = 5 }
	}
}

country_event = {
	id = aus_gillard_overthrow.4
	title = aus_gillard_overthrow.1.t
	desc = aus_gillard_overthrow.1.d
	picture = GFX_parliament_dawn
	is_triggered_only = yes

	immediate = { set_country_flag = aus_gillard_overthrow_1_done }

	option = {
		log = "[GetDateText]: [This.GetName]: aus_gillard_overthrow.1.a executed"
		name = aus_gillard_overthrow.1.a
		country_event = { id = aus_gillard_overthrow.2 days = 5 }
	}
}

country_event = {
	id = legislation_rudd_blocked.4
	title = legislation_rudd_blocked.4.t
	desc = {
		text = legislation_rudd_blocked.4.d.a
		trigger = { has_country_flag = rudd_shelter_passed }
	}
	desc = {
		text = legislation_rudd_blocked.4.d.b
		trigger = { has_country_flag = rudd_super_passed }
	}
	desc = {
		text = legislation_rudd_blocked.4.d.c
		trigger = { has_country_flag = ets_completed_ast }
	}
	picture = GFX_kevin_rudd_happy
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		log = "[GetDateText]: [This.GetName]: legislation_rudd_blocked.4.a executed"
		name = legislation_rudd_blocked.4.a
		set_country_flag = legislation_passed_rudd
	}
}

add_namespace = approach_parties_rudd

country_event = {
	id = approach_parties_rudd.1
	title = approach_parties_rudd.1.t
	desc = approach_parties_rudd.1.d
	picture = GFX_coalition_generic_ast
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: approach_parties_rudd.1.a executed"
		name = approach_parties_rudd.1.a
		add_political_power = -10
	}
}

country_event = {
	id = approach_parties_rudd.2
	title = approach_parties_rudd.2.t
	desc = approach_parties_rudd.2.d
	picture = GFX_greens_generic
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: approach_parties_rudd.2.a executed"
		name = approach_parties_rudd.2.a
		set_country_flag = greens_support_rudd
		add_political_power = -50
	}
}

country_event = {
	id = approach_parties_rudd.3
	title = approach_parties_rudd.3.t
	desc = approach_parties_rudd.3.d
	picture = GFX_aus_parliament
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: approach_parties_rudd.3.a executed"
		name = approach_parties_rudd.3.a
		add_political_power = 10
	}
}


add_namespace = mad_katter_ast

country_event = {
	id = mad_katter_ast.1
	title = mad_katter_ast.1.t
	desc = mad_katter_ast.1.d
	picture = GFX_bob_katter_1
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: mad_katter_ast.1.a executed"
		name = mad_katter_ast.1.a
		add_timed_idea = {
			idea = aus_farmer_subsidies
			days = 350
		}
	}
}

add_namespace = whispers_in_the_crowd_ast

country_event = {
	id = whispers_in_the_crowd_ast.1
	title = whispers_in_the_crowd_ast.1.t
	desc = whispers_in_the_crowd_ast.1.d
	picture = GFX_rudd_generic_speech
	is_triggered_only = yes

	immediate = { set_country_flag = whispers_in_the_crowd_ast_1_done }

	option = { name = whispers_in_the_crowd_ast.1.a }
}

add_namespace = mining_smear_campaign_ast

country_event = {
	id = mining_smear_campaign_ast.1
	title = mining_smear_campaign_ast.1.t
	desc = mining_smear_campaign_ast.1.d
	picture = GFX_mining
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		log = "[GetDateText]: [This.GetName]: mining_smear_campaign_ast.1.a executed"
		name = mining_smear_campaign_ast.1.a
		set_temp_variable = { temp_opinion = -70 }
		change_fossil_fuel_industry_opinion = yes
		newline = yes
		add_ideas = mining_smear_campaign_idea_ast
		hidden_effect = {
			country_event = { id = mining_smear_campaign_ast.2 days = 280 }
		}
	}
}

country_event = {
	id = mining_smear_campaign_ast.2
	is_triggered_only = yes
	hidden = yes
	fire_only_once = yes

	immediate = { remove_ideas = mining_smear_campaign_idea_ast }
}

add_namespace = corruption_outcome_aus

country_event = {
	id = corruption_outcome_aus.1
	title = corruption_outcome_aus.1.t
	desc = corruption_outcome_aus.1.d
	picture = GFX_jury
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: corruption_outcome_aus.1.a executed"
		name = corruption_outcome_aus.1.a
		add_political_power = -130
		add_popularity = {
				ideology = democratic
				popularity = -0.06
			}
	}
}

add_namespace = the_new_look_rudd

country_event = {
	id = the_new_look_rudd.1
	title = the_new_look_rudd.1.t
	desc = the_new_look_rudd.1.d
	picture = GFX_rudd_beard
	is_triggered_only = yes

	trigger = {
		tag = AST
		has_focus_tree = ruddgov_focus
		NOT = { has_country_flag = aus_gillard_overthrow_1_done }
	}

	option = {
		log = "[GetDateText]: [This.GetName]: the_new_look_rudd.1.a executed"
		name = the_new_look_rudd.1.a
		hidden_effect = {
			kill_country_leader = yes
			create_country_leader = {
					name = "Kevin Rudd"
					desc = "kevin_rudd_desc"
					picture = "kevin_rudd_2.dds"
					ideology = socialism
					traits = {
						western_socialism
						popular_figure_ast
					}
				}
		}
	}

	option = { name = the_new_look_rudd.1.b }
}


add_namespace = rudd_the_next_leader

country_event = {
	id = rudd_the_next_leader.1
	title = rudd_the_next_leader.1.t
	desc = rudd_the_next_leader.1.d
	picture = GFX_gillard_resigns
	is_triggered_only = yes

	trigger = {
		tag = AST
		has_focus_tree = ruddgov_focus
		NOT = { has_country_flag = aus_gillard_overthrow_1_done }
		NOT = { has_country_flag = rudd_the_next_leader_done }
		date > 2013.02.10
	}

	immediate = { set_country_flag = rudd_the_next_leader_done }

	option = {
		log = "[GetDateText]: [This.GetName]: rudd_the_next_leader.1.a executed"
		name = rudd_the_next_leader.1.a
		custom_effect_tooltip = rudd_the_next_leader_tt
	}

	option = { name = rudd_the_next_leader.1.b }
}


country_event = {
	id = rudd_the_next_leader.2
	title = rudd_the_next_leader.2.t
	desc = rudd_the_next_leader.2.d
	picture = GFX_rudd_goodbye
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: rudd_the_next_leader.2.a executed"
		name = rudd_the_next_leader.2.a
		hidden_effect = {
			kill_country_leader = yes
			set_power_balance = {
				id = rudd_bop
				set_default = yes
			}
			create_country_leader = {
					name = "Julia Gillard"
					desc = julia_gilard_desc
					picture = "julia_gillard_1.dds"
					ideology = socialism
					traits = {
						western_conservatism
					}
			}
			load_focus_tree = {
				tree = gillardgov_focus
				keep_completed = yes
			}
		}
		custom_effect_tooltip = focus_tree_has_changed_ast_tt
	}
}

add_namespace = rudd_campaigning_round_two

country_event = {
	id = rudd_campaigning_round_two.1
	title = rudd_campaigning_round_two.1.t
	desc = rudd_campaigning_round_two.1.d
	picture = GFX_rudd_generic_speech
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: rudd_campaigning_round_two.1.a executed"
		name = rudd_campaigning_round_two.1.a
		add_political_power = 50
		set_temp_variable = { party_popularity_increase = 0.03 }
		change_relative_party_popularity = yes
	}
}

################
#News Events
################

add_namespace = solomon_islands_intervention

news_event = {
	id = solomon_islands_intervention.1
	title = solomon_islands_intervention.1.t
	desc = solomon_islands_intervention.1.d
	picture = GFX_solomon_islands_news
	is_triggered_only = yes

	trigger = {
		tag = AST
		NOT = { has_country_flag = sol_islands_event_done }
		is_ai = no
	}

	immediate = {
		hidden_effect = {
			SOL = {
				add_threat = 4
				add_stability = -15
				add_war_support = -2
				add_ideas = collapsing_state_sol
				decrease_two_level_economic_growth = yes
			}
		}
		set_country_flag = sol_islands_event_done
	}

	option = {
		log = "[GetDateText]: [This.GetName]: solomon_islands_intervention.1.a executed"
		name = solomon_islands_intervention.1.a
		country_event = { id = solomon_islands_intervention.2 days = 1 }
	}
}

country_event = {
	id = solomon_islands_intervention.2
	title = solomon_islands_intervention.2.t
	desc = solomon_islands_intervention.2.d
	picture = GFX_SLO_peacekeepers
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: solomon_islands_intervention.2.a executed"
		name = solomon_islands_intervention.2.a
		custom_effect_tooltip = sol_intervention_tt
		set_country_flag = sol_intervention
	}

	option = {
		log = "[GetDateText]: [This.GetName]: solomon_islands_intervention.2.b executed"
		name = solomon_islands_intervention.2.b
		add_stability = -0.10
		hidden_effect = {
			news_event = { id = solomon_islands_intervention.6 days = 268 }
		}
	}
}

#success
country_event = {
	id = solomon_islands_intervention.3
	title = solomon_islands_intervention.3.t
	desc = solomon_islands_intervention.3.d
	picture = GFX_solomon_islands_success
	is_triggered_only = yes

	immediate = { hidden_effect = { puppet = SOL } }

	option = {
		log = "[GetDateText]: [This.GetName]: solomon_islands_intervention.3.a executed"
		name = solomon_islands_intervention.3.a
		add_stability = 0.05
		SOL = { remove_ideas = collapsing_state_sol_1 }
	}
}

#failure
country_event = {
	id = solomon_islands_intervention.4
	title = solomon_islands_intervention.4.t
	desc = solomon_islands_intervention.4.d
	picture = GFX_SLO_rebels
	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			news_event = { id = solomon_islands_intervention.6 days = 223 }
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: solomon_islands_intervention.4.a executed"
		name = solomon_islands_intervention.4.a
		add_stability = -0.15
		SOL = {
			if = {
				limit = { has_idea = collapsing_state_sol }
				swap_ideas = {
					remove_idea = collapsing_state_sol
					add_idea = collapsed_state_sol
				}
			}
			else = {
				swap_ideas = {
					remove_idea = collapsing_state_sol_1
					add_idea = collapsed_state_sol
				}
			}
		}
	}
}

country_event = {
	id = solomon_islands_intervention.5
	title = solomon_islands_intervention.5.t
	desc = solomon_islands_intervention.5.d
	picture = GFX_guns
	is_triggered_only = yes

	option = { name = solomon_islands_intervention.5.a }
}

#eagles take over
news_event = {
	id = solomon_islands_intervention.6
	title = solomon_islands_intervention.6.t
	desc = solomon_islands_intervention.6.d
	picture = GFX_SLO_civil_war
	is_triggered_only = yes
	major = yes

	immediate = {
		hidden_effect = {
			SOL = {
				add_popularity = {
					ideology = nationalist
					popularity = 0.23
				}
				set_temp_variable = { rul_party_temp = 22 }
				change_ruling_party_effect = yes
				set_politics = {
					ruling_party = nationalist
					elections_allowed = no
				}
				remove_ideas = collapsed_state_sol
				remove_ideas = collapsing_state_sol
			}
		}
	}

	option = { name = solomon_islands_intervention.6.a }
}

add_namespace = walk_for_reconciliation

news_event = {
	id = walk_for_reconciliation.1
	title = walk_for_reconciliation.1.t
	desc = walk_for_reconciliation.1.d
	picture = GFX_walk_for_reconciliation
	is_triggered_only = yes

	trigger = {
		NOT = { has_completed_focus = AST_a_national_apology }
		tag = AST
	}

	option = {
		log = "[GetDateText]: [This.GetName]: walk_for_reconciliation.1.a executed"
		name = walk_for_reconciliation.1.a
		add_stability = -0.02
	}
}

add_namespace = sydney_olympic_games
news_event = {
	id = sydney_olympic_games.1
	title = sydney_olympic_games.1.t
	desc = sydney_olympic_games.1.d
	picture = GFX_sydney_olympic_games
	is_triggered_only = yes
	major = yes

	option = { name = sydney_olympic_games.1.a }
}

add_namespace = shell_takeover
country_event = {
	id = shell_takeover.1
	title = shell_takeover.1.t
	desc = shell_takeover.1.d
	picture = GFX_shell_takeover
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: shell_takeover.1.a executed"
		name = shell_takeover.1.a
		set_temp_variable = { temp_opinion = 15 }
		change_labour_unions_opinion = yes
		set_temp_variable = { temp_opinion = -20 }
		change_fossil_fuel_industry_opinion = yes
		ai_chance = {
			base = 1
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: shell_takeover.1.b executed"
		name = shell_takeover.1.b
		set_temp_variable = { temp_opinion = -15 }
		change_labour_unions_opinion = yes
		set_temp_variable = { temp_opinion = 20 }
		change_fossil_fuel_industry_opinion = yes
		ai_chance = {
			base = 1
		}
	}
}

add_namespace = tampa_affair

news_event = {
	id = tampa_affair.1
	title = tampa_affair.1.t
	desc = tampa_affair.1.d
	picture = GFX_tampa_affair
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		log = "[GetDateText]: [This.GetName]: tampa_affair.1.a executed"
		name = tampa_affair.1.a
		add_stability = -0.03
		NRY = {
			add_opinion_modifier = {
				target = ROOT
				modifier = tampa_ast
			}
		}
	}
}

add_namespace = bali_bombings

news_event = {
	id = bali_bombings.1
	title = bali_bombings.1.t
	desc = bali_bombings.1.d
	picture = GFX_bali_bombings
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: bali_bombings.1.a executed"
		name = bali_bombings.1.a
		add_stability = -0.05
	}
}

add_namespace = embassy_attacked

country_event = {
	id = embassy_attacked.1
	title = embassy_attacked.1.t
	desc = embassy_attacked.1.d
	picture = GFX_embasyattack
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: embassy_attacked.1.a executed"
		name = embassy_attacked.1.a
		add_stability = -0.03
	}
}

add_namespace = asian_earthquakes

country_event = {
	id = asian_earthquakes.1
	title = asian_earthquakes.1.t
	desc = asian_earthquakes.1.d
	picture = GFX_asian_earthquakes
	is_triggered_only = yes

	immediate = {
		set_country_flag = asian_quakes_ast
	}

	option = {
		log = "[GetDateText]: [This.GetName]: asian_earthquakes.1.a executed"
		name = asian_earthquakes.1.a
		set_temp_variable = { treasury_change = -4.5 }
		modify_treasury_effect = yes
		RAJ = {
			country_event = asian_earthquakes.2
			add_opinion_modifier = {
				target = ROOT
				modifier = economic_mission
			}
		}
		ai_chance = {
			base = 1
		}
	}

	option = { name = asian_earthquakes.1.b }
}

country_event = {
	id = asian_earthquakes.2
	title = asian_earthquakes.2.t
	desc = asian_earthquakes.2.d
	picture = GFX_aus_flag
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: asian_earthquakes.2.a executed"
		name = asian_earthquakes.2.a
		set_temp_variable = { treasury_change = 4.5 }
		modify_treasury_effect = yes
	}
}

add_namespace = cronulla_riots

news_event = {
	id = cronulla_riots.1
	title = cronulla_riots.1.t
	desc = cronulla_riots.1.d
	picture = GFX_cronulla_riots
	is_triggered_only = yes

	trigger = {
		tag = AST
		NOT = { has_country_flag = cronulla_riots_done }
	}

	immediate = { set_country_flag = cronulla_riots_done }

	option = {
		log = "[GetDateText]: [This.GetName]: cronulla_riots.1.a executed"
		add_stability = -0.03
		name = cronulla_riots.1.a
		add_popularity = {
				ideology = nationalist
				popularity = 0.03
			}
		ai_chance = { base = 1 }
	}

	option = {
		log = "[GetDateText]: [This.GetName]: cronulla_riots.1.b executed"
		add_stability = -0.05
		name = cronulla_riots.1.b
		add_popularity = {
				ideology = nationalist
				popularity = -0.04
			}
		ai_chance = { base = 0 }
	}
}

add_namespace = rip_steve_irwin

news_event = {
	id = rip_steve_irwin.1
	title = rip_steve_irwin.1.t
	desc = rip_steve_irwin.1.d
	picture = GFX_rip_steve_irwin
	is_triggered_only = yes

	trigger = {
		tag = AST
		NOT = { has_country_flag = steve_die_rip }
		is_ai = no
	}

	immediate = { set_country_flag = steve_die_rip }

	option = { name = rip_steve_irwin.1.a }
}

add_namespace = a_global_financial_crisis

country_event = {
	id = a_global_financial_crisis.1
	title = a_global_financial_crisis.1.t
	desc = a_global_financial_crisis.1.d
	picture = GFX_lehmanbrothers
	is_triggered_only = yes

	trigger = {
		tag = AST
		NOT = { has_country_flag = mfc_event_done }
		is_ai = no
	}

	immediate = {
		set_country_flag = mfc_event_done
		set_country_flag = {
			flag = increased_consumer_confidence
			days = 390
			value = 1
		}
		set_country_flag = the_nation_is_in_crisis_ast
	}

	option = {
		log = "[GetDateText]: [This.GetName]: a_global_financial_crisis.1.a executed"
		name = a_global_financial_crisis.1.a
		custom_effect_tooltip = focus_tree_has_changed_ast_tt
		newline = yes
		add_ideas = tfc_1
		newline = yes
		add_ideas = recession
		hidden_effect = {
			set_country_flag = tfc_ast_flag
			mark_focus_tree_layout_dirty = yes
		}
	}
}

country_event = {
	id = a_global_financial_crisis.2
	title = a_global_financial_crisis.2.t
	desc = a_global_financial_crisis.2.d
	picture = GFX_aus_currency
	is_triggered_only = yes

	trigger = {
		tag = AST
		is_ai = no
	}

	immediate = {
		hidden_effect = {
			country_event = { id = a_global_financial_crisis.1 days = 221 }
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: a_global_financial_crisis.2.a executed"
		name = a_global_financial_crisis.2.a
		1221 = {
				if = {
					limit = { offices > 1 }
					remove_building = {
						type = offices
						level = 2
					}
				}
			}
	}
}

country_event = {
	id = a_global_financial_crisis.3
	title = a_global_financial_crisis.3.t
	desc = a_global_financial_crisis.3.d
	picture = GFX_aus_currency
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: a_global_financial_crisis.3.a executed"
		name = a_global_financial_crisis.3.a
		remove_ideas = tfc_3
	}
}

country_event = {
	id = a_global_financial_crisis.4
	is_triggered_only = yes
	hidden = yes

	immediate = {
		if = {
				limit = { has_country_flag = negative_gearing_diminished_ast }
				hidden_effect = {
					country_event = { id = a_global_financial_crisis.3 days = 280 }
				}
			}
			else = {
				hidden_effect = {
					country_event = { id = a_global_financial_crisis.3 days = 760 }
				}
			}
	}
}

add_namespace = new_governor_general_ast

news_event = {
	id = new_governor_general_ast.1
	title = new_governor_general_ast.1.t
	desc = new_governor_general_ast.1.d
	picture = GFX_bryce_governor_general
	is_triggered_only = yes

	trigger = {
		tag = AST
		NOT = { has_country_flag = aus_is_a_republic }
		NOT = { has_idea = subdued_governor_general_ast }
		is_ai = no
	}

	option = { name = new_governor_general_ast.1.a }
}

add_namespace = turnbull_letter_ast

country_event = {
	id = turnbull_letter_ast.1
	title = turnbull_letter_ast.1.t
	desc = turnbull_letter_ast.1.d
	picture = GFX_turnbull_generic_ast
	is_triggered_only = yes

	trigger = {
		tag = AST
		western_conservatism_are_in_power = no
		is_ai = no
	}

	option = {
		log = "[GetDateText]: [This.GetName]: turnbull_letter_ast.1.a executed"
		name = turnbull_letter_ast.1.a
		add_political_power = -20
		hidden_effect = {
			country_event = { id = turnbull_letter_ast.2 days = 26 }
		}
	}
}

country_event = {
	id = turnbull_letter_ast.2
	title = turnbull_letter_ast.2.t
	desc = turnbull_letter_ast.2.d
	picture = GFX_court
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: turnbull_letter_ast.2.a executed"
		name = turnbull_letter_ast.2.a
		add_political_power = 30
	}
}

add_namespace = oceanic_viking_ast

country_event = {
	id = oceanic_viking_ast.1
	title = oceanic_viking_ast.1.t
	desc = oceanic_viking_ast.1.d
	picture = GFX_oceanic_viking
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: oceanic_viking_ast.1.a executed"
		name = oceanic_viking_ast.1.a
		hidden_effect = {
			country_event = { id = oceanic_viking_ast.2 days = 5 }
		}
		ai_chance = {
			base = 1
			modifier = {
				has_global_flag = AST_HISTORICAL_FOCUS_PATH
				add = 10
			}
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: oceanic_viking_ast.1.b executed"
		name = oceanic_viking_ast.1.b
		hidden_effect = {
			country_event = { id = oceanic_viking_ast.3 days = 5 }
		}
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = oceanic_viking_ast.2
	title = oceanic_viking_ast.2.t
	desc = oceanic_viking_ast.2.d
	picture = GFX_pauline_protest
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: oceanic_viking_ast.2.a executed"
		name = oceanic_viking_ast.2.a
		add_ideas = problem_with_the_boats
		hidden_effect = {
			country_event = { id = oceanic_viking_ast.4 days = 243 }
		}
	}
}

country_event = {
	id = oceanic_viking_ast.3
	title = oceanic_viking_ast.3.t
	desc = oceanic_viking_ast.3.d
	picture = GFX_2012_protests
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: oceanic_viking_ast.3.a executed"
		name = oceanic_viking_ast.3.a
		add_ideas = problem_with_the_boats_2
		hidden_effect = {
			country_event = { id = oceanic_viking_ast.4 days = 243 }
		}
	}
}

country_event = {
	id = oceanic_viking_ast.4
	title = oceanic_viking_ast.4.t
	desc = oceanic_viking_ast.4.d
	is_triggered_only = yes
	hidden = yes

	immediate = {
		if = {
			limit = { has_idea = problem_with_the_boats_2 }
			remove_ideas = problem_with_the_boats_2
		}
		else = { remove_ideas = problem_with_the_boats }
	}
}

add_namespace = migration_event_ast

country_event = {
	id = migration_event_ast.1
	title = migration_event_ast.1.t
	desc = migration_event_ast.1.d
	picture = GFX_european_migrant_crisis
	is_triggered_only = yes

	trigger = {
		tag = AST
		NOT = { nationalist_right_wing_populists_are_in_power = yes }
	}

	option = {
		log = "[GetDateText]: [This.GetName]: migration_event_ast.1.a executed"
		name = migration_event_ast.1.a
		if = {
			limit = { has_idea = boat_arrivals_ast_3 }
			swap_ideas = {
				remove_idea = boat_arrivals_ast_3
				add_idea = boat_arrivals_ast_2
			}
		}
		else_if = {
			limit = { has_idea = boat_arrivals_ast_2 }
			swap_ideas = {
				remove_idea = boat_arrivals_ast_2
				add_idea = boat_arrivals_ast
			}
		}
		else_if = {
			limit = { has_idea = boat_arrivals_ast }
			swap_ideas = {
				remove_idea = boat_arrivals_ast
				add_idea = boat_arrivals_ast_4
			}
		}
		add_popularity = {
				ideology = nationalist
				popularity = 0.03
			}
	}
}

add_namespace = aus_cyclone

country_event = {
	id = aus_cyclone.1
	title = aus_cyclone.1.t
	desc = aus_cyclone.1.d
	picture = GFX_BRA_event_cyclone_catarina
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: aus_cyclone.1.a executed"
		name = aus_cyclone.1.a
		741 = {
			if = {
				limit = { infrastructure > 0 }
				damage_building = {
					type = infrastructure
					damage = 3
				}
			}
		}
		hidden_effect = {
			533 = {
				if = {
					limit = { infrastructure > 0 }
					damage_building = {
  				type = infrastructure
  				damage = 3
				}
				}
			}
		}
	}
}

add_namespace = great_barrier_reef

country_event = {
	id = great_barrier_reef.1
	title = great_barrier_reef.1.t
	desc = great_barrier_reef.1.d
	picture = GFX_great_barrier_reef_1
	is_triggered_only = yes

	trigger = {
		tag = AST
		NOT = { has_country_flag = ast_a_nation_worth_preserving_tag }
	}

	option = {
		log = "[GetDateText]: [This.GetName]: great_barrier_reef.1.a executed"
		name = great_barrier_reef.1.a
		add_stability = -0.02
		set_temp_variable = { party_index = 17 }
		set_temp_variable = { party_popularity_increase = 0.04 }
		change_relative_party_popularity = yes
		add_opinion_modifier = {
					target = CHI
					modifier = small_decrease
				}
	}
}

add_namespace = indo_cattle_drama

country_event = {
	id = indo_cattle_drama.1
	title = indo_cattle_drama.1.t
	desc = indo_cattle_drama.1.d
	picture = GFX_cows_event
	is_triggered_only = yes

	trigger = {
		tag = AST
		is_ai = no
	}

	option = {
		log = "[GetDateText]: [This.GetName]: indo_cattle_drama.1.a executed"
		name = indo_cattle_drama.1.a
		add_timed_idea = {
			idea = cattle_exports_suspended_ast
			days = 190
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: indo_cattle_drama.1.b executed"
		name = indo_cattle_drama.1.b
		add_stability = -0.03
	}
}

add_namespace = malaysia_solution_ast

country_event = {
	id = malaysia_solution_ast.1
	title = malaysia_solution_ast.1.t
	desc = malaysia_solution_ast.1.d
	picture = GFX_european_migrant_crisis
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: malaysia_solution_ast.1.a executed"
		name = malaysia_solution_ast.1.a
		add_political_power = 90
		MAL = {
			add_opinion_modifier = {
					target = AST
					modifier = small_increase
				}
		}
		hidden_effect = {
			country_event = { id = malaysia_solution_ast.2 days = 49 }
		}
		ai_chance = {
			base = 1
			modifier = {
				has_global_flag = AST_HISTORICAL_FOCUS_PATH
				add = 10
			}
		}
	}

	option = {
		name = malaysia_solution_ast.1.b
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = malaysia_solution_ast.2
	title = malaysia_solution_ast.2.t
	desc = malaysia_solution_ast.2.d
	picture = GFX_jury
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: malaysia_solution_ast.2.a executed"
		name = malaysia_solution_ast.2.a
		add_political_power = -100
	}
}

add_namespace = embassy_tent_protests

country_event = {
	id = embassy_tent_protests.1
	title = embassy_tent_protests.1.t
	desc = embassy_tent_protests.1.d
	picture = GFX_embassy_tent_event
	is_triggered_only = yes

	option = {
		name = embassy_tent_protests.1.a
		ai_chance = {
			base = 1
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: embassy_tent_protests.1.b executed"
		name = embassy_tent_protests.1.b
		trigger = { has_focus_tree = gillardgov_focus }
		hidden_effect = {
			country_event = { id = embassy_tent_protests.2 days = 1 }
		}
		ai_chance = {
			base = 1
			modifier = {
				has_global_flag = AST_HISTORICAL_FOCUS_PATH
				factor = 0
			}
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: embassy_tent_protests.1.b executed"
		name = embassy_tent_protests.1.b
		trigger = { has_focus_tree = ruddgov_focus }
		hidden_effect = {
			country_event = { id = embassy_tent_protests.3 days = 1 }
		}
		ai_chance = {
			base = 1
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: embassy_tent_protests.1.b executed"
		name = embassy_tent_protests.1.b
		trigger = { has_focus_tree = australia_abbottgov_focus }
		hidden_effect = {
			country_event = { id = embassy_tent_protests.4 days = 1 }
		}
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = embassy_tent_protests.2
	title = embassy_tent_protests.2.t
	desc = embassy_tent_protests.2.d
	picture = GFX_embassy_tent_event
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: embassy_tent_protests.2.a executed"
		name = embassy_tent_protests.2.a
		add_stability = -0.04
		hidden_effect = {
			kill_country_leader = yes
			create_country_leader = {
					name = "Julia Gillard"
					picture = "julia_gillard_2.dds"
					ideology = socialism
					traits = {
						western_conservatism
					}
			}
		}
	}
}

country_event = {
	id = embassy_tent_protests.3
	title = embassy_tent_protests.3.t
	desc = embassy_tent_protests.3.d
	picture = GFX_rudd_campaigning
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: embassy_tent_protests.3.a executed"
		name = embassy_tent_protests.3.a
		add_political_power = 50
	}
}

country_event = {
	id = embassy_tent_protests.4
	title = embassy_tent_protests.4.t
	desc = embassy_tent_protests.4.d
	picture = GFX_embassy_tent_event
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: embassy_tent_protests.2.a executed"
		name = embassy_tent_protests.2.a
		add_stability = -0.03
	}
}

add_namespace = muslim_protests_sydney

news_event = {
	id = muslim_protests_sydney.1
	title = muslim_protests_sydney.1.t
	desc = muslim_protests_sydney.1.d
	picture = GFX_muslim_protests
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: muslim_protests_sydney.1.a executed"
		name = muslim_protests_sydney.1.a
		add_stability = -0.03
		add_popularity = {
				ideology = nationalist
				popularity = 0.05
			}
	}
}

add_namespace = murrawarri_republic_event

country_event = {
	id = murrawarri_republic_event.1
	title = murrawarri_republic_event.1.t
	desc = murrawarri_republic_event.1.d
	picture = GFX_murrawarri_flag
	is_triggered_only = yes

	trigger = {
		tag = AST
		is_ai = no
	}

	option = { name = murrawarri_republic_event.1.a }
}

add_namespace = shark_attacks_ast

news_event = {
	id = shark_attacks_ast.1
	title = shark_attacks_ast.1.t
	desc = shark_attacks_ast.1.d
	picture = GFX_shark_event
	is_triggered_only = yes

	trigger = {
		tag = AST
		is_ai = no
	}

	option = { name = shark_attacks_ast.1.a }
}

add_namespace = aukus_formed_ast

news_event = {
	id = aukus_formed_ast.1
	title = aukus_formed_ast.1.t
	desc = aukus_formed_ast.1.d
	picture = GFX_aukus_pic_ast
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		log = "[GetDateText]: [This.GetName]: aukus_formed_ast.1.a executed"
		name = aukus_formed_ast.1.a
		add_ideas = aukus_proliferation_project
		newline = yes
		ENG = { add_ideas = aukus_proliferation_project }
		USA = { add_ideas = aukus_proliferation_project }
	}
}

add_namespace = pukpuk_treaty_event

news_event = {
	id = pukpuk_treaty_event.1
	title = pukpuk_treaty_event.1.t
	desc = pukpuk_treaty_event.1.d
	picture = GFX_pukpuk_treaty_pic
	is_triggered_only = yes
	fire_only_once = yes

	immediate = {
		puppet = PAP 
	}

	option = {
		log = "[GetDateText]: [This.GetName]: pukpuk_treaty_event.1.a executed"
		name = pukpuk_treaty_event.1.a
		add_war_support = 0.03
	}
}

add_namespace = ast_taiwan_recognition

news_event = {
	id = ast_taiwan_recognition.1
	title = ast_taiwan_recognition.1.t
	desc = ast_taiwan_recognition.1.d
	picture = GFX_taiwan_meeting_ast
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		log = "[GetDateText]: [This.GetName]: ast_taiwan_recognition.1.a executed"
		name = ast_taiwan_recognition.1.a
		CHI = {
			add_opinion_modifier = {
				target = AST
				modifier = recognize_taiwan_chi
			}
		}
		TAI = {
			add_opinion_modifier = {
				target = AST
				modifier = recognized_us
			}
		}
		hidden_effect = {
			remove_ideas = {
				chinese_export_bonus_ast
				chinese_export_bonus_ast_2
				chinese_export_bonus_ast_3
				chinese_export_bonus_ast_4
			}
		}
	}
}

#bushfire mechanic events
add_namespace = generic_bushfires_ast

country_event = {
	id = generic_bushfires_ast.1
	title = generic_bushfires_ast.1.t
	desc = generic_bushfires_ast.1.d
	picture = GFX_bushfire2
	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			random_owned_state = {
				limit = {
					is_core_of = AST
					is_on_continent = australia
				}
				save_global_event_target_as = ast_bushfire_state
			}
		}
	}

	option = {
		name = generic_bushfires_ast.1.a
		log = "[GetDateText]: [This.GetName]: generic_bushfires_ast.1.a executed"
		event_target:ast_bushfire_state = {
			if = {
				limit = { infrastructure > 0 }
				damage_building = {
					type = infrastructure
					damage = 2
				}
			}
		}
		add_stability = -0.03
	}
}

#canberra bushfire
news_event = {
	id = generic_bushfires_ast.2
	title = generic_bushfires_ast.2.t
	desc = generic_bushfires_ast.2.d
	picture = GFX_AST_canberra_fires
	is_triggered_only = yes

	option = {
		name = generic_bushfires_ast.2.a
		log = "[GetDateText]: [This.GetName]: generic_bushfires_ast.2.a executed"
		742 = {
			if = {
				limit = { infrastructure > 0 }
				damage_building = {
					type = infrastructure
					damage = 2
				}
			}
			set_temp_variable = { temp_productivity_change = -20 }
			state_flat_productivity_change_effect = yes
		}
		add_stability = -0.03
	}
}

country_event = {
	id = generic_bushfires_ast.3
	is_triggered_only = yes
	hidden = yes

	trigger = {
		country_exists = AST
	}

	immediate = {
		#yearly firestuff
			bushfires_tick_up = yes
			if = {
				limit = {
					NOT = {
						has_country_flag = AST_fire_event_cooldown
					}
				}
				if = {
					limit = { check_variable = { bushfire_ticker = 4 } }
					random = {
						chance = 30
						AST_fire_bushfire_event = yes
						set_variable = { bushfire_ticker = 1 }
						set_country_flag = {
							flag = AST_fire_event_cooldown
							days = 450
							value = 1
						}
					}
				}
				else_if = {
					limit = { check_variable = { bushfire_ticker = 5 } }
					random = {
						chance = 60
						AST_fire_bushfire_event = yes
						set_variable = { bushfire_ticker = 1 }
						set_country_flag = {
							flag = AST_fire_event_cooldown
							days = 450
							value = 1
						}
					}
				}
				else_if = {
					limit = { check_variable = { bushfire_ticker = 6 } }
					AST_fire_bushfire_event = yes
					set_variable = { bushfire_ticker = 1 }
					set_country_flag = {
						flag = AST_fire_event_cooldown
						days = 450
						value = 1
					}
				}
			}
		country_event = { id = generic_bushfires_ast.3 days = 365 }
	}
}

add_namespace = black_saturday_ast

news_event = {
	id = black_saturday_ast.1
	title = black_saturday_ast.1.t
	desc = black_saturday_ast.1.d
	picture = GFX_black_saturday_1
	is_triggered_only = yes

	option = {
		name = black_saturday_ast.1.a
		log = "[GetDateText]: [This.GetName]: black_saturday_ast.1.a executed"
		add_stability = -0.02
		hidden_effect = {
			if = {
				limit = { has_focus_tree = ruddgov_focus }
				news_event = { id = black_saturday_ast.3 days = 21 }
			}
			else = {
				news_event = { id = black_saturday_ast.2 days = 21 }
			}
		}
		set_country_flag = black_saturday_1_done
	}
}

news_event = {
	id = black_saturday_ast.2
	title = black_saturday_ast.2.t
	desc = black_saturday_ast.2.d
	picture = GFX_black_saturday_2
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: black_saturday_ast.2.a executed"
		name = black_saturday_ast.2.a
		add_stability = -0.05
	}
}

news_event = {
	id = black_saturday_ast.3
	title = black_saturday_ast.2.t
	desc = black_saturday_ast.2.d
	picture = GFX_black_saturday_3
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: black_saturday_ast.3.a executed"
		name = black_saturday_ast.2.a
		add_stability = -0.05
	}
}

add_namespace = syrian_refugees_event_ast

country_event = {
	id = syrian_refugees_event_ast.1
	title = syrian_refugees_event_ast.1.t
	desc = syrian_refugees_event_ast.1.d
	picture = GFX_failed_to_catch_migrants
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: syrian_refugees_event_ast.1.a executed"
		name = syrian_refugees_event_ast.1.a
		add_timed_idea = {
			idea = syrian_refugees_idea_ast
			days = 326
		}
		ai_chance = {
			base = 1
			modifier = {
				has_global_flag = AST_HISTORICAL_FOCUS_PATH
				add = 10
			}
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: syrian_refugees_event_ast.2.a executed"
		name = syrian_refugees_event_ast.1.b
		add_political_power = 20
		add_popularity = {
				ideology = nationalist
				popularity = 0.02
			}
		ai_chance = {
			base = 1
		}
	}
}

add_namespace = malaysianflight_event_ast

news_event = {
	id = malaysianflight_event_ast.1
	title = malaysianflight_event_ast.1.t
	desc = malaysianflight_event_ast.1.d
	picture = GFX_mh370_disappearance_event
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: malaysianflight_event_ast.1.a executed"
		name = malaysianflight_event_ast.1.a
		add_stability = -0.02
	}
}

add_namespace = opening_info_ast

country_event = {
	id = opening_info_ast.1
	title = opening_info_ast.1.t
	desc = opening_info_ast.1.d
	picture = GFX_aus_kangaroo
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: opening_info_ast.1.a executed"
		name = opening_info_ast.1.a
		add_political_power = 10


		ai_chance = {
			base = 100
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: opening_info_ast.1.b executed"
		name = opening_info_ast.1.b
		country_event = opening_info_ast.2

		ai_chance = {
			base = 0
		}
	}
}

country_event = {
	id = opening_info_ast.2
	title = opening_info_ast.2.t
	desc = opening_info_ast.2.d
	picture = GFX_parliament_house_day_ast
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: opening_info_ast.2.a executed"
		name = opening_info_ast.1.a
		add_political_power = 10
	}

	option = {
		name = opening_info_ast.2.a
		log = "[GetDateText]: [This.GetName]: opening_info_ast.2.b executed"
		country_event = opening_info_ast.1
	}
}
