#	Example:
# 
#	example_trigger = {
#		tag = GER
#		is_ai = no
#	}
#
#
#	In a script file:
#
#	trigger = {
#		exampel_trigger = yes
#	}
#


rada_low_support_trigger = {
	custom_trigger_tooltip = {
		tooltip = rada_low_support_trigger_tt
		check_variable = { var = ukrainian_parliament_support value = 50 compare = greater_than_or_equals }
	}
}

rada_medium_support_trigger = {
	custom_trigger_tooltip = {
		tooltip = rada_medium_support_trigger_tt
		check_variable = { var = ukrainian_parliament_support value = 70 compare = greater_than_or_equals }
	}
}

rada_high_support_trigger = {
	custom_trigger_tooltip = {
		tooltip = rada_high_support_trigger_tt
		check_variable = { var = ukrainian_parliament_support value = 85 compare = greater_than_or_equals }
	}
}

oun_low_power_of_konovalets_trigger = {
	custom_trigger_tooltip = {
		tooltip = oun_low_power_of_konovalets_trigger_tt
		check_variable = { var_oun_status_of_power < 3 }
	}
}

oun_strong_power_of_konovalets_trigger = {
	custom_trigger_tooltip = {
		tooltip = oun_strong_power_of_konovalets_trigger_tt
		check_variable = { var_oun_status_of_power = 2 }
	}
}

oun_low_power_of_melnyk_trigger = {
	custom_trigger_tooltip = {
		tooltip = oun_low_power_of_melnyk_trigger_tt
		OR = {
			check_variable = { var_oun_status_of_power = 3 }
			check_variable = { var_oun_status_of_power = 4 }
		}
	}
}

oun_strong_power_of_melnyk_trigger = {
	custom_trigger_tooltip = {
		tooltip = oun_strong_power_of_melnyk_trigger_tt
		check_variable = { var_oun_status_of_power = 4 }
	}
}

oun_low_power_of_bandera_trigger = {
	custom_trigger_tooltip = {
		tooltip = oun_low_power_of_bandera_trigger_tt
		check_variable = { var_oun_status_of_power > 4 }
	}
}

oun_strong_power_of_bandera_trigger = {
	custom_trigger_tooltip = {
		tooltip = oun_strong_power_of_bandera_trigger_tt
		check_variable = { var_oun_status_of_power = 6 }
	}
}

UKR_propaganda_poster_slot_available = {
	custom_trigger_tooltip = {
		tooltip = SOV_propaganda_poster_slot_available_tt
		OR = {
			check_variable = { UKR_poster_left_icon_frame = UKR_propaganda_empty_slot_index }
			check_variable = { UKR_poster_center_icon_frame = UKR_propaganda_empty_slot_index }
			check_variable = { UKR_poster_right_icon_frame = UKR_propaganda_empty_slot_index }
		}
	}
}

UKR_altdem_left_side_is_available = {
	custom_trigger_tooltip = {
		tooltip = UKR_altdem_left_side_is_available_tt
		if = {
			limit = { has_country_flag = UKR_altdem_bop_is_available }
			is_power_balance_in_range = {
				id = UKR_power_balance
				range < UKR_junta_small_control_range
			}
		}
		else = {
			OR = {
				has_country_flag = UKR_altdem_president_victory
				has_country_flag = UKR_altdem_rada_victory
			}
		}
	}
}

UKR_altdem_right_side_is_available = {
	custom_trigger_tooltip = {
		tooltip = UKR_altdem_right_side_is_available_tt
		if = {
			limit = { has_country_flag = UKR_altdem_bop_is_available }
			is_power_balance_in_range = {
				id = UKR_power_balance
				range > UKR_rada_small_control_range
			}
		}
		else = {
			OR = {
				has_country_flag = UKR_altdem_president_victory
				has_country_flag = UKR_altdem_army_victory
			}
		}
	}
}
POL_is_valid_to_boost_monarchy_from_UKR = {

	ROOT = {
		is_subject = no
		has_government = neutrality
	}
	has_country_flag = UKR_will_support_monarchy_in_POL
	
	NOT = { has_country_flag = attempted_royal_takeover_in_POL }
	POL = { NOT = { has_country_flag = achievement_POL_elected_monarch } } 
	NOT = {
		POL = {
			has_country_flag = POL_banned_monarchy_flag
		}
	}
	POL = {
		is_subject = no
	}
}