#Category only allowed for all china
#Category visible when PRC_coalition_government focus is completed for PRC
#Category visible when CHI_join_the_republican_government focus is completed for warlord

#Variables and flags and targets to know about
#Event target WTT_current_china_leader
#State variable for amount Support Points gained: state_political_support_value
#State flag: majority_political_platform_<TAG> for whoever has majority in the state
#Country flag: wtt_political_struggle for all countries involved in the struggle

#Variables:
#days_remove = global.days_add_support?1337 #DAYS_UNTIL_SUPPORRT_IN_STATE_IS_ADDED
#days_remove = global.days_remove_support?1337 #DAYS_UNTIL_REMOVE_SUPPORT



#Nat China
#595 "Fujian"
#596 "Zhejiang"
#597 "Shandong"
#598 "Jiangsu"
#600 "Jiangxi"
#601 "Xikang"
#602 "Hunan"
#603 "Guizhou"
#605 "Sichuan"
#606 "Anhui"
#607 "Henan"
#608 "Beijing"
#613 "Shanghai"
#614 "Hebei"
#620 "Hubei"

#Shanxi
#615 "Shanxi"
#621 "Suiyuan"

#Com China
#622 "Shaanxi"

#Xibei San Ma
#283 "Gansu"
#604 "Qinghai"
#616 "Ningxia"

#Sinkiang
#287 "Taklamakan"
#617 "Urumqi"
#618 "Dzungaria"
#619 "Yarkand"

#Yunnan
#325 "Yunnan"

#Guangxi Clique
#591 "Hainan"
#592 "Guangzhou"
#593 "Guangdong"
#594 "Nanning"
#599 "Guangxi"

#Remember to also change the custom tooltip if you change these
@PP_COST_PER_DAY_GAIN_SUPPORT = -0.75
@PP_GAIN_PER_DAY_COST_TRIGGER = 0.75

@PP_COST_PER_DAY_REMOVE_OPPOSITION = -0.75
@PP_GAIN_PER_DAY_REMOVE_OPPOSITION_TRIGGER = 0.75

CHI_political_power_struggle = {

	WTT_national_leadership = {
		icon = generic_nationalism
		visible = {
			
		}

		available = {
			is_subject = no
			event_target:WTT_current_china_leader = {
				is_subject = no
			}
			if = {
				limit = { WTT_not_china_leader_refused_to_give_up_national_leadership = no }
				WTT_not_china_leader_refused_to_give_up_national_leadership = yes
			}
			else_if = {
				limit = {
					WTT_not_taking_over_national_leadership = no
				}
				WTT_not_taking_over_national_leadership = yes
				else = {
					if = {
						limit = {
							WTT_is_ROOT_current_leader_of_china = yes
						}
						WTT_ROOT_is_not_current_leader_of_china = yes
						else = {
							if = {
								limit = {
									has_country_flag = wtt_political_struggle
								}
								custom_trigger_tooltip = {
									tooltip = more_political_support_than_current_leader
									check_variable = { total_political_support_points > WTT_current_china_leader.total_political_support_points } #Change tooltip if you change this
									has_civil_war = no
								}
								else = {
									custom_trigger_tooltip = {
										tooltip = WTT_national_leadership_trigger_before_start
										always = no
									}
								}
							}			
						}
					}
				}
			}
		}

		ai_will_do = {
			base = 42
			modifier = {
				add = 1295 #very specific value
				always = yes
			}
		}

		days_remove = 0
		days_re_enable = 0

		cost = 0

		complete_effect = {
			every_state = {
				limit = {
					is_core_of = CHI
				}
				add_core_of = ROOT
			}
			if = {
				limit = {
					WTT_ROOT_is_not_current_leader_of_china = yes
				}
				event_target:WTT_current_china_leader = {
					WTT_political_struggle_remove_current_country = yes
					set_global_flag = { flag = wtt_national_leadership_takeover_in_progress value = 1 days =  14 }
					country_event = wtt_take_national_leadership.1
				}
				custom_effect_tooltip = WTT_national_leadership_accept_tooltip
				custom_effect_tooltip = WTT_national_leadership_join_wars_effect
				effect_tooltip = {
					annex_country = { target = event_target:WTT_current_china_leader transfer_troops = yes }
				}
				custom_effect_tooltip = WTT_national_leadership_refuse_tooltip
				effect_tooltip = {
					event_target:WTT_current_china_leader = { add_ideas = CHI_illegal_regime declare_war_on = { target = ROOT type = annex_everything } }
				}
			}
			else = {
				custom_effect_tooltip = WTT_national_leadership_effect_tooltip_leader
				effect_tooltip = {
					event_target:WTT_current_china_leader = { add_ideas = CHI_illegal_regime }
				}
			}
		}
	}


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

	#Nat China

	#595 "Fujian"
	WTT_build_support_in_fujian = {

		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_COST_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075

		icon = generic_political_discourse
		visible = {
			595 = {
				WTT_should_show_state_decision = yes
			}
			WTT_show_build_support_decisions = yes
		}
		
		available = {
			has_political_power > 0
			595 = {
				WTT_can_ROOT_select_state_support_decision_state = yes
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = WTT_build_support_positive_pp
				OR = {
					has_political_power < 0	
					NOT = {
						595 = {
							WTT_can_ROOT_select_state_support_decision_state = yes
						}
					}
				}
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_GAIN_SUPPORT
		}
	
		days_remove = global.days_add_support?1337 #DAYS_UNTIL_SUPPORRT_IN_STATE_IS_ADDED
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
			highlight_state_targets = {
				state = 595
			} 
		}
		
		fixed_random_seed = no

#BUILD_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Another country has majority in this state
			modifier = {
				add = 50
				any_other_country = {
					595 = {
						has_state_flag = majority_political_platform_@PREV
					}
				}
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					595 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#I am super far ahead
			modifier = {
				add = -50
				set_temp_variable = { temp_support_points = ROOT.total_political_support_points }
				add_to_temp_variable = { temp_support_points = -40 }
				NOT = {
					any_other_country = {
						check_variable = { total_political_support_points > temp_support_points }
					}
				}
			}

			#Opponent is far ahead in state. Focus elsewhere first
			modifier = {
				add = -45				
				any_other_country = {
					595 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 595.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 595.political_platform_@PREV }
				check_variable = { majority_holder_lead > 4 }
			}

			#Big states are more important
			modifier = {
				add = 25
				595 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#I have a change to grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					595 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 595.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 595.political_platform_@PREV }
				check_variable = { majority_holder_lead < 2 }
			}

			#I can for sure grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					595 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_points = 595.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { points_difference = majority_holder_points }
				check_variable = { points_difference < 1 }
			}
			
			#I am far enough ahead in this state
			modifier = {
				add = -50
				595 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 595.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 595.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 595.political_platform_@THIS }
					}
				}
				subtract_from_temp_variable = { my_points_lead = closest_points }

				check_variable = { my_points_lead > 2 }
			}

			#I want to push just a little bit ahead of my opponent so he cannot grab state
			modifier = {
				add = 25
				595 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 595.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 595.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 595.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
			# Don't if we risk running out of pp
			modifier = {
				factor = 0
				has_political_power < 180 # We ca do if safe, I guess0 # We ca do if safe, I guess
				political_power_growth < @PP_GAIN_PER_DAY_COST_TRIGGER
			}


		}
#BUILD_SUPPORT_AI_WIL_DO_END

		complete_effect = {

		}

		remove_effect = {
			595 = {
				#Add random state support for ROOT
				WTT_random_support_chance_increase_for_ROOT_in_state = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_add_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#596 "Zhejiang"
	WTT_build_support_in_zhejiang = {

		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_COST_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075
		icon = generic_political_discourse
		visible = {
			596 = {
				WTT_should_show_state_decision = yes
			}
			WTT_show_build_support_decisions = yes
		}
		
		available = {
			has_political_power > 0
			596 = {
				WTT_can_ROOT_select_state_support_decision_state = yes
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = WTT_build_support_positive_pp
				OR = {
					has_political_power < 0
					NOT = {
						596 = {
							WTT_can_ROOT_select_state_support_decision_state = yes
						}
					}
				}
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_GAIN_SUPPORT
		}
	
		days_remove = global.days_add_support?1337 #DAYS_UNTIL_SUPPORRT_IN_STATE_IS_ADDED
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
			highlight_state_targets = {
				state = 596
			} 
		 }
		
		fixed_random_seed = no

#BUILD_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Another country has majority in this state
			modifier = {
				add = 50
				any_other_country = {
					596 = {
						has_state_flag = majority_political_platform_@PREV
					}
				}
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					596 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#I am super far ahead
			modifier = {
				add = -50
				set_temp_variable = { temp_support_points = ROOT.total_political_support_points }
				add_to_temp_variable = { temp_support_points = -40 }
				NOT = {
					any_other_country = {
						check_variable = { total_political_support_points > temp_support_points }
					}
				}
			}

			#Opponent is far ahead in state. Focus elsewhere first
			modifier = {
				add = -45				
				any_other_country = {
					596 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 596.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 596.political_platform_@PREV }
				check_variable = { majority_holder_lead > 4 }
			}

			#Big states are more important
			modifier = {
				add = 25
				596 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#I have a change to grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					596 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 596.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 596.political_platform_@PREV }
				check_variable = { majority_holder_lead < 2 }
			}

			#I can for sure grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					596 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_points = 596.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { points_difference = majority_holder_points }
				check_variable = { points_difference < 1 }
			}
			
			#I am far enough ahead in this state
			modifier = {
				add = -50
				596 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 596.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 595.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 596.political_platform_@THIS }
					}
				}
				subtract_from_temp_variable = { my_points_lead = closest_points }

				check_variable = { my_points_lead > 2 }
			}

			#I want to push just a little bit ahead of my opponent so he cannot grab state
			modifier = {
				add = 25
				596 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 596.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 596.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 596.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
			# Don't if we risk running out of pp
			modifier = {
				factor = 0
				has_political_power < 180 # We ca do if safe, I guess0 # We ca do if safe, I guess
				political_power_growth < @PP_GAIN_PER_DAY_COST_TRIGGER
			}
		}
#BUILD_SUPPORT_AI_WIL_DO_END

		complete_effect = {

		}

		remove_effect = {
			596 = {
				#Add random state support for ROOT
				WTT_random_support_chance_increase_for_ROOT_in_state = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_add_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#597 "Shandong"
	WTT_build_support_in_shandong = {

		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_COST_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075
		icon = generic_political_discourse
		visible = {
			597 = {
				WTT_should_show_state_decision = yes
			}
			WTT_show_build_support_decisions = yes
		}
		
		available = {
			has_political_power > 0
			597 = {
				WTT_can_ROOT_select_state_support_decision_state = yes
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = WTT_build_support_positive_pp
				OR = {
					has_political_power < 0
					NOT = {
						597 = {
							WTT_can_ROOT_select_state_support_decision_state = yes
						}
					}
				}
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_GAIN_SUPPORT
		}
	
		days_remove = global.days_add_support?1337 #DAYS_UNTIL_SUPPORRT_IN_STATE_IS_ADDED
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 597
		} 
}
		
		fixed_random_seed = no

#BUILD_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Another country has majority in this state
			modifier = {
				add = 50
				any_other_country = {
					597 = {
						has_state_flag = majority_political_platform_@PREV
					}
				}
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					597 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#I am super far ahead
			modifier = {
				add = -50
				set_temp_variable = { temp_support_points = ROOT.total_political_support_points }
				add_to_temp_variable = { temp_support_points = -40 }
				NOT = {
					any_other_country = {
						check_variable = { total_political_support_points > temp_support_points }
					}
				}
			}

			#Opponent is far ahead in state. Focus elsewhere first
			modifier = {
				add = -45				
				any_other_country = {
					597 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 597.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 597.political_platform_@PREV }
				check_variable = { majority_holder_lead > 4 }
			}

			#Big states are more important
			modifier = {
				add = 25
				597 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#I have a change to grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					597 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 597.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 597.political_platform_@PREV }
				check_variable = { majority_holder_lead < 2 }
			}

			#I can for sure grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					597 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_points = 597.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { points_difference = majority_holder_points }
				check_variable = { points_difference < 1 }
			}
			
			#I am far enough ahead in this state
			modifier = {
				add = -50
				597 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 597.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 595.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 597.political_platform_@THIS }
					}
				}
				subtract_from_temp_variable = { my_points_lead = closest_points }

				check_variable = { my_points_lead > 2 }
			}

			#I want to push just a little bit ahead of my opponent so he cannot grab state
			modifier = {
				add = 25
				597 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 597.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 597.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 597.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
			# Don't if we risk running out of pp
			modifier = {
				factor = 0
				has_political_power < 180 # We ca do if safe, I guess
				political_power_growth < @PP_GAIN_PER_DAY_COST_TRIGGER
			}
		}
#BUILD_SUPPORT_AI_WIL_DO_END

		complete_effect = {

		}

		remove_effect = {
			597 = {
				#Add random state support for ROOT
				WTT_random_support_chance_increase_for_ROOT_in_state = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_add_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#598 "Jiangsu"
	WTT_build_support_in_jiangsu = {

		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_COST_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075
		icon = generic_political_discourse
		visible = {
			598 = {
				WTT_should_show_state_decision = yes
			}
			WTT_show_build_support_decisions = yes
		}
		
		available = {
			has_political_power > 0
			598 = {
				WTT_can_ROOT_select_state_support_decision_state = yes
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = WTT_build_support_positive_pp
				OR = {
					has_political_power < 0
					NOT = {
						598 = {
							WTT_can_ROOT_select_state_support_decision_state = yes
						}
					}
				}
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_GAIN_SUPPORT
		}
	
		days_remove = global.days_add_support?1337 #DAYS_UNTIL_SUPPORRT_IN_STATE_IS_ADDED
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 598
		} 
}
		
		fixed_random_seed = no

#BUILD_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Another country has majority in this state
			modifier = {
				add = 50
				any_other_country = {
					598 = {
						has_state_flag = majority_political_platform_@PREV
					}
				}
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					598 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#I am super far ahead
			modifier = {
				add = -50
				set_temp_variable = { temp_support_points = ROOT.total_political_support_points }
				add_to_temp_variable = { temp_support_points = -40 }
				NOT = {
					any_other_country = {
						check_variable = { total_political_support_points > temp_support_points }
					}
				}
			}

			#Opponent is far ahead in state. Focus elsewhere first
			modifier = {
				add = -45				
				any_other_country = {
					598 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 598.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 598.political_platform_@PREV }
				check_variable = { majority_holder_lead > 4 }
			}

			#Big states are more important
			modifier = {
				add = 25
				598 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#I have a change to grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					598 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 598.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 598.political_platform_@PREV }
				check_variable = { majority_holder_lead < 2 }
			}

			#I can for sure grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					598 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_points = 598.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { points_difference = majority_holder_points }
				check_variable = { points_difference < 1 }
			}
			
			#I am far enough ahead in this state
			modifier = {
				add = -50
				598 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 598.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 595.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 598.political_platform_@THIS }
					}
				}
				subtract_from_temp_variable = { my_points_lead = closest_points }

				check_variable = { my_points_lead > 2 }
			}

			#I want to push just a little bit ahead of my opponent so he cannot grab state
			modifier = {
				add = 25
				598 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 598.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 598.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 598.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
			# Don't if we risk running out of pp
			modifier = {
				factor = 0
				has_political_power < 180 # We ca do if safe, I guess
				political_power_growth < @PP_GAIN_PER_DAY_COST_TRIGGER
			}
		}
#BUILD_SUPPORT_AI_WIL_DO_END

		complete_effect = {

		}

		remove_effect = {
			598 = {
				#Add random state support for ROOT
				WTT_random_support_chance_increase_for_ROOT_in_state = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_add_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#600 "Jiangxi"
	WTT_build_support_in_jiangxi = {

		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_COST_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075
		icon = generic_political_discourse
		visible = {
			600 = {
				WTT_should_show_state_decision = yes
			}
			WTT_show_build_support_decisions = yes
		}
		
		available = {
			has_political_power > 0
			600 = {
				WTT_can_ROOT_select_state_support_decision_state = yes
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = WTT_build_support_positive_pp
				OR = {
					has_political_power < 0
					NOT = {
						600 = {
							WTT_can_ROOT_select_state_support_decision_state = yes
						}
					}
				}
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_GAIN_SUPPORT
		}
	
		days_remove = global.days_add_support?1337 #DAYS_UNTIL_SUPPORRT_IN_STATE_IS_ADDED
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 600
		} 
}
		
		fixed_random_seed = no

#BUILD_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Another country has majority in this state
			modifier = {
				add = 50
				any_other_country = {
					600 = {
						has_state_flag = majority_political_platform_@PREV
					}
				}
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					600 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#I am super far ahead
			modifier = {
				add = -50
				set_temp_variable = { temp_support_points = ROOT.total_political_support_points }
				add_to_temp_variable = { temp_support_points = -40 }
				NOT = {
					any_other_country = {
						check_variable = { total_political_support_points > temp_support_points }
					}
				}
			}

			#Opponent is far ahead in state. Focus elsewhere first
			modifier = {
				add = -45				
				any_other_country = {
					600 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 600.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 600.political_platform_@PREV }
				check_variable = { majority_holder_lead > 4 }
			}

			#Big states are more important
			modifier = {
				add = 25
				600 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#I have a change to grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					600 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 600.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 600.political_platform_@PREV }
				check_variable = { majority_holder_lead < 2 }
			}

			#I can for sure grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					600 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_points = 600.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { points_difference = majority_holder_points }
				check_variable = { points_difference < 1 }
			}
			
			#I am far enough ahead in this state
			modifier = {
				add = -50
				600 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 600.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 595.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 600.political_platform_@THIS }
					}
				}
				subtract_from_temp_variable = { my_points_lead = closest_points }

				check_variable = { my_points_lead > 2 }
			}

			#I want to push just a little bit ahead of my opponent so he cannot grab state
			modifier = {
				add = 25
				600 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 600.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 600.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 600.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
			# Don't if we risk running out of pp
			modifier = {
				factor = 0
				has_political_power < 180 # We ca do if safe, I guess
				political_power_growth < @PP_GAIN_PER_DAY_COST_TRIGGER
			}
		}
#BUILD_SUPPORT_AI_WIL_DO_END

		complete_effect = {

		}

		remove_effect = {
			600 = {
				#Add random state support for ROOT
				WTT_random_support_chance_increase_for_ROOT_in_state = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_add_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#601 "Xikang"
	WTT_build_support_in_xikang = {

		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_COST_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075
		icon = generic_political_discourse
		visible = {
			601 = {
				WTT_should_show_state_decision = yes
			}
			WTT_show_build_support_decisions = yes
		}
		
		available = {
			has_political_power > 0
			601 = {
				WTT_can_ROOT_select_state_support_decision_state = yes
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = WTT_build_support_positive_pp
				OR = {
					has_political_power < 0
					NOT = {
						601 = {
							WTT_can_ROOT_select_state_support_decision_state = yes
						}
					}
				}
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_GAIN_SUPPORT
		}
	
		days_remove = global.days_add_support?1337 #DAYS_UNTIL_SUPPORRT_IN_STATE_IS_ADDED
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 601
		} 
}
		
		fixed_random_seed = no

#BUILD_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Another country has majority in this state
			modifier = {
				add = 50
				any_other_country = {
					601 = {
						has_state_flag = majority_political_platform_@PREV
					}
				}
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					601 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#I am super far ahead
			modifier = {
				add = -50
				set_temp_variable = { temp_support_points = ROOT.total_political_support_points }
				add_to_temp_variable = { temp_support_points = -40 }
				NOT = {
					any_other_country = {
						check_variable = { total_political_support_points > temp_support_points }
					}
				}
			}

			#Opponent is far ahead in state. Focus elsewhere first
			modifier = {
				add = -45				
				any_other_country = {
					601 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 601.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 601.political_platform_@PREV }
				check_variable = { majority_holder_lead > 4 }
			}

			#Big states are more important
			modifier = {
				add = 25
				601 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#I have a change to grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					601 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 601.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 601.political_platform_@PREV }
				check_variable = { majority_holder_lead < 2 }
			}

			#I can for sure grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					601 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_points = 601.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { points_difference = majority_holder_points }
				check_variable = { points_difference < 1 }
			}
			
			#I am far enough ahead in this state
			modifier = {
				add = -50
				601 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 601.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 595.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 601.political_platform_@THIS }
					}
				}
				subtract_from_temp_variable = { my_points_lead = closest_points }

				check_variable = { my_points_lead > 2 }
			}

			#I want to push just a little bit ahead of my opponent so he cannot grab state
			modifier = {
				add = 25
				601 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 601.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 601.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 601.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
			# Don't if we risk running out of pp
			modifier = {
				factor = 0
				has_political_power < 180 # We ca do if safe, I guess
				political_power_growth < @PP_GAIN_PER_DAY_COST_TRIGGER
			}
		}
#BUILD_SUPPORT_AI_WIL_DO_END

		complete_effect = {

		}

		remove_effect = {
			601 = {
				#Add random state support for ROOT
				WTT_random_support_chance_increase_for_ROOT_in_state = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_add_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#602 "Hunan"
	WTT_build_support_in_hunan = {

		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_COST_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075
		icon = generic_political_discourse
		visible = {
			602 = {
				WTT_should_show_state_decision = yes
			}
			WTT_show_build_support_decisions = yes
		}
		
		available = {
			has_political_power > 0
			602 = {
				WTT_can_ROOT_select_state_support_decision_state = yes
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = WTT_build_support_positive_pp
				OR = {
					has_political_power < 0
					NOT = {
						602 = {
							WTT_can_ROOT_select_state_support_decision_state = yes
						}
					}
				
				}
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_GAIN_SUPPORT
		}
	
		days_remove = global.days_add_support?1337 #DAYS_UNTIL_SUPPORRT_IN_STATE_IS_ADDED
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 602
		} 
}
		
		fixed_random_seed = no

#BUILD_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Another country has majority in this state
			modifier = {
				add = 50
				any_other_country = {
					602 = {
						has_state_flag = majority_political_platform_@PREV
					}
				}
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					602 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#I am super far ahead
			modifier = {
				add = -50
				set_temp_variable = { temp_support_points = ROOT.total_political_support_points }
				add_to_temp_variable = { temp_support_points = -40 }
				NOT = {
					any_other_country = {
						check_variable = { total_political_support_points > temp_support_points }
					}
				}
			}

			#Opponent is far ahead in state. Focus elsewhere first
			modifier = {
				add = -45				
				any_other_country = {
					602 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 602.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 602.political_platform_@PREV }
				check_variable = { majority_holder_lead > 4 }
			}

			#Big states are more important
			modifier = {
				add = 25
				602 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#I have a change to grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					602 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 602.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 602.political_platform_@PREV }
				check_variable = { majority_holder_lead < 2 }
			}

			#I can for sure grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					602 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_points = 602.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { points_difference = majority_holder_points }
				check_variable = { points_difference < 1 }
			}
			
			#I am far enough ahead in this state
			modifier = {
				add = -50
				602 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 602.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 595.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 602.political_platform_@THIS }
					}
				}
				subtract_from_temp_variable = { my_points_lead = closest_points }

				check_variable = { my_points_lead > 2 }
			}

			#I want to push just a little bit ahead of my opponent so he cannot grab state
			modifier = {
				add = 25
				602 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 602.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 602.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 602.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
			# Don't if we risk running out of pp
			modifier = {
				factor = 0
				has_political_power < 180 # We ca do if safe, I guess
				political_power_growth < @PP_GAIN_PER_DAY_COST_TRIGGER
			}
		}
#BUILD_SUPPORT_AI_WIL_DO_END

		complete_effect = {

		}

		remove_effect = {
			602 = {
				#Add random state support for ROOT
				WTT_random_support_chance_increase_for_ROOT_in_state = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_add_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#603 "Guizhou"
	WTT_build_support_in_guizhou = {

		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_COST_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075
		icon = generic_political_discourse
		visible = {
			603 = {
				WTT_should_show_state_decision = yes
			}
			WTT_show_build_support_decisions = yes
		}
		
		available = {
			has_political_power > 0
			603 = {
				WTT_can_ROOT_select_state_support_decision_state = yes
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = WTT_build_support_positive_pp
				OR = {
					has_political_power < 0
					NOT = {
						603 = {
							WTT_can_ROOT_select_state_support_decision_state = yes
						}
					}
				}
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_GAIN_SUPPORT
		}
	
		days_remove = global.days_add_support?1337 #DAYS_UNTIL_SUPPORRT_IN_STATE_IS_ADDED
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 603
		} 
}
		
		fixed_random_seed = no

#BUILD_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Another country has majority in this state
			modifier = {
				add = 50
				any_other_country = {
					603 = {
						has_state_flag = majority_political_platform_@PREV
					}
				}
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					603 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#I am super far ahead
			modifier = {
				add = -50
				set_temp_variable = { temp_support_points = ROOT.total_political_support_points }
				add_to_temp_variable = { temp_support_points = -40 }
				NOT = {
					any_other_country = {
						check_variable = { total_political_support_points > temp_support_points }
					}
				}
			}

			#Opponent is far ahead in state. Focus elsewhere first
			modifier = {
				add = -45				
				any_other_country = {
					603 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 603.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 603.political_platform_@PREV }
				check_variable = { majority_holder_lead > 4 }
			}

			#Big states are more important
			modifier = {
				add = 25
				603 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#I have a change to grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					603 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 603.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 603.political_platform_@PREV }
				check_variable = { majority_holder_lead < 2 }
			}

			#I can for sure grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					603 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_points = 603.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { points_difference = majority_holder_points }
				check_variable = { points_difference < 1 }
			}
			
			#I am far enough ahead in this state
			modifier = {
				add = -50
				603 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 603.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 595.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 603.political_platform_@THIS }
					}
				}
				subtract_from_temp_variable = { my_points_lead = closest_points }

				check_variable = { my_points_lead > 2 }
			}

			#I want to push just a little bit ahead of my opponent so he cannot grab state
			modifier = {
				add = 25
				603 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 603.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 603.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 603.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
			# Don't if we risk running out of pp
			modifier = {
				factor = 0
				has_political_power < 180 # We ca do if safe, I guess
				political_power_growth < @PP_GAIN_PER_DAY_COST_TRIGGER
			}
		}
#BUILD_SUPPORT_AI_WIL_DO_END

		complete_effect = {

		}

		remove_effect = {
			603 = {
				#Add random state support for ROOT
				WTT_random_support_chance_increase_for_ROOT_in_state = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_add_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#605 "Sichuan"
	WTT_build_support_in_sichuan = {

		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_COST_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075
		icon = generic_political_discourse
		visible = {
			605 = {
				WTT_should_show_state_decision = yes
			}
			WTT_show_build_support_decisions = yes
		}
		
		available = {
			has_political_power > 0
			605 = {
				WTT_can_ROOT_select_state_support_decision_state = yes
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = WTT_build_support_positive_pp
				OR = {
					has_political_power < 0
					NOT = {
						605 = {
							WTT_can_ROOT_select_state_support_decision_state = yes
						}
					}
				}
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_GAIN_SUPPORT
		}
	
		days_remove = global.days_add_support?1337 #DAYS_UNTIL_SUPPORRT_IN_STATE_IS_ADDED
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 605
		} 
}
		
		fixed_random_seed = no

#BUILD_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Another country has majority in this state
			modifier = {
				add = 50
				any_other_country = {
					605 = {
						has_state_flag = majority_political_platform_@PREV
					}
				}
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					605 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#I am super far ahead
			modifier = {
				add = -50
				set_temp_variable = { temp_support_points = ROOT.total_political_support_points }
				add_to_temp_variable = { temp_support_points = -40 }
				NOT = {
					any_other_country = {
						check_variable = { total_political_support_points > temp_support_points }
					}
				}
			}

			#Opponent is far ahead in state. Focus elsewhere first
			modifier = {
				add = -45				
				any_other_country = {
					605 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 605.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 605.political_platform_@PREV }
				check_variable = { majority_holder_lead > 4 }
			}

			#Big states are more important
			modifier = {
				add = 25
				605 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#I have a change to grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					605 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 605.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 605.political_platform_@PREV }
				check_variable = { majority_holder_lead < 2 }
			}

			#I can for sure grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					605 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_points = 605.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { points_difference = majority_holder_points }
				check_variable = { points_difference < 1 }
			}
			
			#I am far enough ahead in this state
			modifier = {
				add = -50
				605 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 605.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 595.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 605.political_platform_@THIS }
					}
				}
				subtract_from_temp_variable = { my_points_lead = closest_points }

				check_variable = { my_points_lead > 2 }
			}

			#I want to push just a little bit ahead of my opponent so he cannot grab state
			modifier = {
				add = 25
				605 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 605.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 605.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 605.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
			# Don't if we risk running out of pp
			modifier = {
				factor = 0
				has_political_power < 180 # We ca do if safe, I guess
				political_power_growth < @PP_GAIN_PER_DAY_COST_TRIGGER
			}
		}
#BUILD_SUPPORT_AI_WIL_DO_END

		complete_effect = {

		}

		remove_effect = {
			605 = {
				#Add random state support for ROOT
				WTT_random_support_chance_increase_for_ROOT_in_state = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_add_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#606 "Anhui"
	WTT_build_support_in_anhui = {

		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_COST_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075
		icon = generic_political_discourse
		visible = {
			606 = {
				WTT_should_show_state_decision = yes
			}
			WTT_show_build_support_decisions = yes
		}
		
		available = {
			has_political_power > 0
			606 = {
				WTT_can_ROOT_select_state_support_decision_state = yes
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = WTT_build_support_positive_pp
				OR = {
					has_political_power < 0
					NOT = {
						606 = {
							WTT_can_ROOT_select_state_support_decision_state = yes
						}
					}
				}
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_GAIN_SUPPORT
		}
	
		days_remove = global.days_add_support?1337 #DAYS_UNTIL_SUPPORRT_IN_STATE_IS_ADDED
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 606
		} 
}
		
		fixed_random_seed = no

#BUILD_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Another country has majority in this state
			modifier = {
				add = 50
				any_other_country = {
					606 = {
						has_state_flag = majority_political_platform_@PREV
					}
				}
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					606 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#I am super far ahead
			modifier = {
				add = -50
				set_temp_variable = { temp_support_points = ROOT.total_political_support_points }
				add_to_temp_variable = { temp_support_points = -40 }
				NOT = {
					any_other_country = {
						check_variable = { total_political_support_points > temp_support_points }
					}
				}
			}

			#Opponent is far ahead in state. Focus elsewhere first
			modifier = {
				add = -45				
				any_other_country = {
					606 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 606.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 606.political_platform_@PREV }
				check_variable = { majority_holder_lead > 4 }
			}

			#Big states are more important
			modifier = {
				add = 25
				606 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#I have a change to grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					606 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 606.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 606.political_platform_@PREV }
				check_variable = { majority_holder_lead < 2 }
			}

			#I can for sure grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					606 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_points = 606.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { points_difference = majority_holder_points }
				check_variable = { points_difference < 1 }
			}
			
			#I am far enough ahead in this state
			modifier = {
				add = -50
				606 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 606.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 595.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 606.political_platform_@THIS }
					}
				}
				subtract_from_temp_variable = { my_points_lead = closest_points }

				check_variable = { my_points_lead > 2 }
			}

			#I want to push just a little bit ahead of my opponent so he cannot grab state
			modifier = {
				add = 25
				606 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 606.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 606.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 606.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
			# Don't if we risk running out of pp
			modifier = {
				factor = 0
				has_political_power < 180 # We ca do if safe, I guess
				political_power_growth < @PP_GAIN_PER_DAY_COST_TRIGGER
			}
		}
#BUILD_SUPPORT_AI_WIL_DO_END

		complete_effect = {

		}

		remove_effect = {
			606 = {
				#Add random state support for ROOT
				WTT_random_support_chance_increase_for_ROOT_in_state = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_add_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#607 "Henan"
	WTT_build_support_in_henan = {

		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_COST_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075
		icon = generic_political_discourse
		visible = {
			607 = {
				WTT_should_show_state_decision = yes
			}
			WTT_show_build_support_decisions = yes
		}
		
		available = {
			has_political_power > 0
			607 = {
				WTT_can_ROOT_select_state_support_decision_state = yes
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = WTT_build_support_positive_pp
				OR = {
					has_political_power < 0
					NOT = {
						607 = {
							WTT_can_ROOT_select_state_support_decision_state = yes
						}
					}
				}
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_GAIN_SUPPORT
		}
	
		days_remove = global.days_add_support?1337 #DAYS_UNTIL_SUPPORRT_IN_STATE_IS_ADDED
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 607
		} 
}
		
		fixed_random_seed = no

#BUILD_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Another country has majority in this state
			modifier = {
				add = 50
				any_other_country = {
					607 = {
						has_state_flag = majority_political_platform_@PREV
					}
				}
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					607 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#I am super far ahead
			modifier = {
				add = -50
				set_temp_variable = { temp_support_points = ROOT.total_political_support_points }
				add_to_temp_variable = { temp_support_points = -40 }
				NOT = {
					any_other_country = {
						check_variable = { total_political_support_points > temp_support_points }
					}
				}
			}

			#Opponent is far ahead in state. Focus elsewhere first
			modifier = {
				add = -45				
				any_other_country = {
					607 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 607.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 607.political_platform_@PREV }
				check_variable = { majority_holder_lead > 4 }
			}

			#Big states are more important
			modifier = {
				add = 25
				607 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#I have a change to grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					607 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 607.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 607.political_platform_@PREV }
				check_variable = { majority_holder_lead < 2 }
			}

			#I can for sure grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					607 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_points = 607.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { points_difference = majority_holder_points }
				check_variable = { points_difference < 1 }
			}
			
			#I am far enough ahead in this state
			modifier = {
				add = -50
				607 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 607.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 595.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 607.political_platform_@THIS }
					}
				}
				subtract_from_temp_variable = { my_points_lead = closest_points }

				check_variable = { my_points_lead > 2 }
			}

			#I want to push just a little bit ahead of my opponent so he cannot grab state
			modifier = {
				add = 25
				607 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 607.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 607.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 607.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
			# Don't if we risk running out of pp
			modifier = {
				factor = 0
				has_political_power < 180 # We ca do if safe, I guess
				political_power_growth < @PP_GAIN_PER_DAY_COST_TRIGGER
			}
		}
#BUILD_SUPPORT_AI_WIL_DO_END

		complete_effect = {

		}

		remove_effect = {
			607 = {
				#Add random state support for ROOT
				WTT_random_support_chance_increase_for_ROOT_in_state = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_add_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#608 "Beijing"
	WTT_build_support_in_beijing = {

		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_COST_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075
		icon = generic_political_discourse
		visible = {
			608 = {
				WTT_should_show_state_decision = yes
			}
			WTT_show_build_support_decisions = yes
		}
		
		available = {
			has_political_power > 0
			608 = {
				WTT_can_ROOT_select_state_support_decision_state = yes
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = WTT_build_support_positive_pp
				OR = {
					has_political_power < 0
					NOT = {
						608 = {
							WTT_can_ROOT_select_state_support_decision_state = yes
						}
					}
				}
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_GAIN_SUPPORT
		}
	
		days_remove = global.days_add_support?1337 #DAYS_UNTIL_SUPPORRT_IN_STATE_IS_ADDED
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 608
		} 
}
		
		fixed_random_seed = no

#BUILD_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Another country has majority in this state
			modifier = {
				add = 50
				any_other_country = {
					608 = {
						has_state_flag = majority_political_platform_@PREV
					}
				}
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					608 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#I am super far ahead
			modifier = {
				add = -50
				set_temp_variable = { temp_support_points = ROOT.total_political_support_points }
				add_to_temp_variable = { temp_support_points = -40 }
				NOT = {
					any_other_country = {
						check_variable = { total_political_support_points > temp_support_points }
					}
				}
			}

			#Opponent is far ahead in state. Focus elsewhere first
			modifier = {
				add = -45				
				any_other_country = {
					608 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 608.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 608.political_platform_@PREV }
				check_variable = { majority_holder_lead > 4 }
			}

			#Big states are more important
			modifier = {
				add = 25
				608 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#I have a change to grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					608 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 608.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 608.political_platform_@PREV }
				check_variable = { majority_holder_lead < 2 }
			}

			#I can for sure grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					608 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_points = 608.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { points_difference = majority_holder_points }
				check_variable = { points_difference < 1 }
			}
			
			#I am far enough ahead in this state
			modifier = {
				add = -50
				608 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 608.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 595.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 608.political_platform_@THIS }
					}
				}
				subtract_from_temp_variable = { my_points_lead = closest_points }

				check_variable = { my_points_lead > 2 }
			}

			#I want to push just a little bit ahead of my opponent so he cannot grab state
			modifier = {
				add = 25
				608 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 608.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 608.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 608.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
			# Don't if we risk running out of pp
			modifier = {
				factor = 0
				has_political_power < 180 # We ca do if safe, I guess
				political_power_growth < @PP_GAIN_PER_DAY_COST_TRIGGER
			}
		}
#BUILD_SUPPORT_AI_WIL_DO_END

		complete_effect = {

		}

		remove_effect = {
			608 = {
				#Add random state support for ROOT
				WTT_random_support_chance_increase_for_ROOT_in_state = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_add_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#613 "Shanghai"
	WTT_build_support_in_shanghai = {

		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_COST_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075
		icon = generic_political_discourse
		visible = {
			613 = {
				WTT_should_show_state_decision = yes
			}
			WTT_show_build_support_decisions = yes
		}
		
		available = {
			has_political_power > 0
			613 = {
				WTT_can_ROOT_select_state_support_decision_state = yes
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = WTT_build_support_positive_pp
				OR = {
					has_political_power < 0
					NOT = {
						613 = {
							WTT_can_ROOT_select_state_support_decision_state = yes
						}
					}
				}
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_GAIN_SUPPORT
		}
	
		days_remove = global.days_add_support?1337 #DAYS_UNTIL_SUPPORRT_IN_STATE_IS_ADDED
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 613
		} 
}
		
		fixed_random_seed = no

#BUILD_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Another country has majority in this state
			modifier = {
				add = 50
				any_other_country = {
					613 = {
						has_state_flag = majority_political_platform_@PREV
					}
				}
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					613 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#I am super far ahead
			modifier = {
				add = -50
				set_temp_variable = { temp_support_points = ROOT.total_political_support_points }
				add_to_temp_variable = { temp_support_points = -40 }
				NOT = {
					any_other_country = {
						check_variable = { total_political_support_points > temp_support_points }
					}
				}
			}

			#Opponent is far ahead in state. Focus elsewhere first
			modifier = {
				add = -45				
				any_other_country = {
					613 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 613.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 613.political_platform_@PREV }
				check_variable = { majority_holder_lead > 4 }
			}

			#Big states are more important
			modifier = {
				add = 25
				613 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#I have a change to grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					613 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 613.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 613.political_platform_@PREV }
				check_variable = { majority_holder_lead < 2 }
			}

			#I can for sure grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					613 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_points = 613.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { points_difference = majority_holder_points }
				check_variable = { points_difference < 1 }
			}
			
			#I am far enough ahead in this state
			modifier = {
				add = -50
				613 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 613.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 595.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 613.political_platform_@THIS }
					}
				}
				subtract_from_temp_variable = { my_points_lead = closest_points }

				check_variable = { my_points_lead > 2 }
			}

			#I want to push just a little bit ahead of my opponent so he cannot grab state
			modifier = {
				add = 25
				613 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 613.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 613.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 613.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
			# Don't if we risk running out of pp
			modifier = {
				factor = 0
				has_political_power < 180 # We ca do if safe, I guess
				political_power_growth < @PP_GAIN_PER_DAY_COST_TRIGGER
			}
		}
#BUILD_SUPPORT_AI_WIL_DO_END

		complete_effect = {

		}

		remove_effect = {
			613 = {
				#Add random state support for ROOT
				WTT_random_support_chance_increase_for_ROOT_in_state = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_add_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#614 "Hebei"
	WTT_build_support_in_hebei = {

		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_COST_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075
		icon = generic_political_discourse
		visible = {
			614 = {
				WTT_should_show_state_decision = yes
			}
			WTT_show_build_support_decisions = yes
		}
		
		available = {
			has_political_power > 0
			614 = {
				WTT_can_ROOT_select_state_support_decision_state = yes
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = WTT_build_support_positive_pp
				OR = {
					has_political_power < 0
					NOT = {
						614 = {
							WTT_can_ROOT_select_state_support_decision_state = yes
						}
					}
				}
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_GAIN_SUPPORT
		}
	
		days_remove = global.days_add_support?1337 #DAYS_UNTIL_SUPPORRT_IN_STATE_IS_ADDED
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 614
		} 
}
		
		fixed_random_seed = no

#BUILD_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Another country has majority in this state
			modifier = {
				add = 50
				any_other_country = {
					614 = {
						has_state_flag = majority_political_platform_@PREV
					}
				}
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					614 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#I am super far ahead
			modifier = {
				add = -50
				set_temp_variable = { temp_support_points = ROOT.total_political_support_points }
				add_to_temp_variable = { temp_support_points = -40 }
				NOT = {
					any_other_country = {
						check_variable = { total_political_support_points > temp_support_points }
					}
				}
			}

			#Opponent is far ahead in state. Focus elsewhere first
			modifier = {
				add = -45				
				any_other_country = {
					614 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 614.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 614.political_platform_@PREV }
				check_variable = { majority_holder_lead > 4 }
			}

			#Big states are more important
			modifier = {
				add = 25
				614 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#I have a change to grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					614 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 614.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 614.political_platform_@PREV }
				check_variable = { majority_holder_lead < 2 }
			}

			#I can for sure grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					614 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_points = 614.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { points_difference = majority_holder_points }
				check_variable = { points_difference < 1 }
			}
			
			#I am far enough ahead in this state
			modifier = {
				add = -50
				614 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 614.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 595.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 614.political_platform_@THIS }
					}
				}
				subtract_from_temp_variable = { my_points_lead = closest_points }

				check_variable = { my_points_lead > 2 }
			}

			#I want to push just a little bit ahead of my opponent so he cannot grab state
			modifier = {
				add = 25
				614 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 614.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 614.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 614.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
			# Don't if we risk running out of pp
			modifier = {
				factor = 0
				has_political_power < 180 # We ca do if safe, I guess
				political_power_growth < @PP_GAIN_PER_DAY_COST_TRIGGER
			}
		}
#BUILD_SUPPORT_AI_WIL_DO_END

		complete_effect = {

		}

		remove_effect = {
			614 = {
				#Add random state support for ROOT
				WTT_random_support_chance_increase_for_ROOT_in_state = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_add_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#620 "Hubei"
	WTT_build_support_in_hubei = {

		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_COST_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075
		icon = generic_political_discourse
		visible = {
			620 = {
				WTT_should_show_state_decision = yes
			}
			WTT_show_build_support_decisions = yes
		}
		
		available = {
			has_political_power > 0
			620 = {
				WTT_can_ROOT_select_state_support_decision_state = yes
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = WTT_build_support_positive_pp
				OR = {
					has_political_power < 0
					NOT = {
						620 = {
							WTT_can_ROOT_select_state_support_decision_state = yes
						}
					}
				}
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_GAIN_SUPPORT
		}
	
		days_remove = global.days_add_support?1337 #DAYS_UNTIL_SUPPORRT_IN_STATE_IS_ADDED
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 620
		} 
}
		
		fixed_random_seed = no

#BUILD_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Another country has majority in this state
			modifier = {
				add = 50
				any_other_country = {
					620 = {
						has_state_flag = majority_political_platform_@PREV
					}
				}
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					620 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#I am super far ahead
			modifier = {
				add = -50
				set_temp_variable = { temp_support_points = ROOT.total_political_support_points }
				add_to_temp_variable = { temp_support_points = -40 }
				NOT = {
					any_other_country = {
						check_variable = { total_political_support_points > temp_support_points }
					}
				}
			}

			#Opponent is far ahead in state. Focus elsewhere first
			modifier = {
				add = -45				
				any_other_country = {
					620 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 620.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 620.political_platform_@PREV }
				check_variable = { majority_holder_lead > 4 }
			}

			#Big states are more important
			modifier = {
				add = 25
				620 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#I have a change to grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					620 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 620.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 620.political_platform_@PREV }
				check_variable = { majority_holder_lead < 2 }
			}

			#I can for sure grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					620 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_points = 620.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { points_difference = majority_holder_points }
				check_variable = { points_difference < 1 }
			}
			
			#I am far enough ahead in this state
			modifier = {
				add = -50
				620 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 620.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 595.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 620.political_platform_@THIS }
					}
				}
				subtract_from_temp_variable = { my_points_lead = closest_points }

				check_variable = { my_points_lead > 2 }
			}

			#I want to push just a little bit ahead of my opponent so he cannot grab state
			modifier = {
				add = 25
				620 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 620.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 620.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 620.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
			# Don't if we risk running out of pp
			modifier = {
				factor = 0
				has_political_power < 180 # We ca do if safe, I guess
				political_power_growth < @PP_GAIN_PER_DAY_COST_TRIGGER
			}
		}
#BUILD_SUPPORT_AI_WIL_DO_END

		complete_effect = {

		}

		remove_effect = {
			620 = {
				#Add random state support for ROOT
				WTT_random_support_chance_increase_for_ROOT_in_state = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_add_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#Shanxi

	#615 "Shanxi"
	WTT_build_support_in_shanxi = {

		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_COST_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075
		icon = generic_political_discourse
		visible = {
			615 = {
				WTT_should_show_state_decision = yes
			}
			WTT_show_build_support_decisions = yes
		}
		
		available = {
			has_political_power > 0
			615 = {
				WTT_can_ROOT_select_state_support_decision_state = yes
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = WTT_build_support_positive_pp
				OR = {
					has_political_power < 0
					NOT = {
						615 = {
							WTT_can_ROOT_select_state_support_decision_state = yes
						}
					}
				}
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_GAIN_SUPPORT
		}
	
		days_remove = global.days_add_support?1337 #DAYS_UNTIL_SUPPORRT_IN_STATE_IS_ADDED
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 615
		} 
}
		
		fixed_random_seed = no

#BUILD_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Another country has majority in this state
			modifier = {
				add = 50
				any_other_country = {
					615 = {
						has_state_flag = majority_political_platform_@PREV
					}
				}
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					615 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#I am super far ahead
			modifier = {
				add = -50
				set_temp_variable = { temp_support_points = ROOT.total_political_support_points }
				add_to_temp_variable = { temp_support_points = -40 }
				NOT = {
					any_other_country = {
						check_variable = { total_political_support_points > temp_support_points }
					}
				}
			}

			#Opponent is far ahead in state. Focus elsewhere first
			modifier = {
				add = -45				
				any_other_country = {
					615 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 615.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 615.political_platform_@PREV }
				check_variable = { majority_holder_lead > 4 }
			}

			#Big states are more important
			modifier = {
				add = 25
				615 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#I have a change to grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					615 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 615.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 615.political_platform_@PREV }
				check_variable = { majority_holder_lead < 2 }
			}

			#I can for sure grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					615 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_points = 615.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { points_difference = majority_holder_points }
				check_variable = { points_difference < 1 }
			}
			
			#I am far enough ahead in this state
			modifier = {
				add = -50
				615 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 615.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 595.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 615.political_platform_@THIS }
					}
				}
				subtract_from_temp_variable = { my_points_lead = closest_points }

				check_variable = { my_points_lead > 2 }
			}

			#I want to push just a little bit ahead of my opponent so he cannot grab state
			modifier = {
				add = 25
				615 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 615.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 615.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 615.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
			# Don't if we risk running out of pp
			modifier = {
				factor = 0
				has_political_power < 180 # We ca do if safe, I guess
				political_power_growth < @PP_GAIN_PER_DAY_COST_TRIGGER
			}
		}
#BUILD_SUPPORT_AI_WIL_DO_END

		complete_effect = {

		}

		remove_effect = {
			615 = {
				#Add random state support for ROOT
				WTT_random_support_chance_increase_for_ROOT_in_state = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_add_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#621 "Suiyuan"
	WTT_build_support_in_suiyuan = {

		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_COST_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075
		icon = generic_political_discourse
		visible = {
			621 = {
				WTT_should_show_state_decision = yes
			}
			WTT_show_build_support_decisions = yes
		}
		
		available = {
			621 = {
				WTT_can_ROOT_select_state_support_decision_state = yes
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = WTT_build_support_positive_pp
				OR = {
					has_political_power < 0
					NOT = {
						621 = {
							WTT_can_ROOT_select_state_support_decision_state = yes
						}
					}
				}
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_GAIN_SUPPORT
		}
	
		days_remove = global.days_add_support?1337 #DAYS_UNTIL_SUPPORRT_IN_STATE_IS_ADDED
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 621
		} 
}
		
		fixed_random_seed = no

#BUILD_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Another country has majority in this state
			modifier = {
				add = 50
				any_other_country = {
					621 = {
						has_state_flag = majority_political_platform_@PREV
					}
				}
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					621 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#I am super far ahead
			modifier = {
				add = -50
				set_temp_variable = { temp_support_points = ROOT.total_political_support_points }
				add_to_temp_variable = { temp_support_points = -40 }
				NOT = {
					any_other_country = {
						check_variable = { total_political_support_points > temp_support_points }
					}
				}
			}

			#Opponent is far ahead in state. Focus elsewhere first
			modifier = {
				add = -45				
				any_other_country = {
					621 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 621.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 621.political_platform_@PREV }
				check_variable = { majority_holder_lead > 4 }
			}

			#Big states are more important
			modifier = {
				add = 25
				621 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#I have a change to grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					621 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 621.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 621.political_platform_@PREV }
				check_variable = { majority_holder_lead < 2 }
			}

			#I can for sure grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					621 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_points = 621.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { points_difference = majority_holder_points }
				check_variable = { points_difference < 1 }
			}
			
			#I am far enough ahead in this state
			modifier = {
				add = -50
				621 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 621.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 595.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 621.political_platform_@THIS }
					}
				}
				subtract_from_temp_variable = { my_points_lead = closest_points }

				check_variable = { my_points_lead > 2 }
			}

			#I want to push just a little bit ahead of my opponent so he cannot grab state
			modifier = {
				add = 25
				621 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 621.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 621.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 621.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
			# Don't if we risk running out of pp
			modifier = {
				factor = 0
				has_political_power < 180 # We ca do if safe, I guess
				political_power_growth < @PP_GAIN_PER_DAY_COST_TRIGGER
			}
		}
#BUILD_SUPPORT_AI_WIL_DO_END

		complete_effect = {

		}

		remove_effect = {
			621 = {
				#Add random state support for ROOT
				WTT_random_support_chance_increase_for_ROOT_in_state = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_add_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#Com China

	#622 "Shaanxi"
	WTT_build_support_in_shaanxi = {

		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_COST_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075
		icon = generic_political_discourse
		visible = {
			622 = {
				WTT_should_show_state_decision = yes
			}
			WTT_show_build_support_decisions = yes
		}
		
		available = {
			622 = {
				WTT_can_ROOT_select_state_support_decision_state = yes
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = WTT_build_support_positive_pp
				OR = {
					has_political_power < 0
					NOT = {
						622 = {
							WTT_can_ROOT_select_state_support_decision_state = yes
						}
					}
				}
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_GAIN_SUPPORT
		}
	
		days_remove = global.days_add_support?1337 #DAYS_UNTIL_SUPPORRT_IN_STATE_IS_ADDED
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 622
		} 
}
		
		fixed_random_seed = no

#BUILD_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Another country has majority in this state
			modifier = {
				add = 50
				any_other_country = {
					622 = {
						has_state_flag = majority_political_platform_@PREV
					}
				}
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					622 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#I am super far ahead
			modifier = {
				add = -50
				set_temp_variable = { temp_support_points = ROOT.total_political_support_points }
				add_to_temp_variable = { temp_support_points = -40 }
				NOT = {
					any_other_country = {
						check_variable = { total_political_support_points > temp_support_points }
					}
				}
			}

			#Opponent is far ahead in state. Focus elsewhere first
			modifier = {
				add = -45				
				any_other_country = {
					622 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 622.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 622.political_platform_@PREV }
				check_variable = { majority_holder_lead > 4 }
			}

			#Big states are more important
			modifier = {
				add = 25
				622 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#I have a change to grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					622 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 622.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 622.political_platform_@PREV }
				check_variable = { majority_holder_lead < 2 }
			}

			#I can for sure grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					622 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_points = 622.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { points_difference = majority_holder_points }
				check_variable = { points_difference < 1 }
			}
			
			#I am far enough ahead in this state
			modifier = {
				add = -50
				622 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 622.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 595.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 622.political_platform_@THIS }
					}
				}
				subtract_from_temp_variable = { my_points_lead = closest_points }

				check_variable = { my_points_lead > 2 }
			}

			#I want to push just a little bit ahead of my opponent so he cannot grab state
			modifier = {
				add = 25
				622 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 622.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 622.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 622.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
			# Don't if we risk running out of pp
			modifier = {
				factor = 0
				has_political_power < 180 # We ca do if safe, I guess
				political_power_growth < @PP_GAIN_PER_DAY_COST_TRIGGER
			}
		}
#BUILD_SUPPORT_AI_WIL_DO_END

		complete_effect = {

		}

		remove_effect = {
			622 = {
				#Add random state support for ROOT
				WTT_random_support_chance_increase_for_ROOT_in_state = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_add_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#Xibei San Ma

	#283 "Gansu"
	WTT_build_support_in_gansu = {

		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_COST_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075
		icon = generic_political_discourse
		visible = {
			283 = {
				WTT_should_show_state_decision = yes
			}
			WTT_show_build_support_decisions = yes
		}
		
		available = {
			283 = {
				WTT_can_ROOT_select_state_support_decision_state = yes
			}
		}

		cancel_trigger = {
		custom_trigger_tooltip = {
				tooltip = WTT_build_support_positive_pp
				OR = {
					has_political_power < 0
					NOT = {
						283 = {
							WTT_can_ROOT_select_state_support_decision_state = yes
						}
					}
				}
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_GAIN_SUPPORT
		}
	
		days_remove = global.days_add_support?1337 #DAYS_UNTIL_SUPPORRT_IN_STATE_IS_ADDED
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 283
		} 
}
		
		fixed_random_seed = no

#BUILD_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Another country has majority in this state
			modifier = {
				add = 50
				any_other_country = {
					283 = {
						has_state_flag = majority_political_platform_@PREV
					}
				}
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					283 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#I am super far ahead
			modifier = {
				add = -50
				set_temp_variable = { temp_support_points = ROOT.total_political_support_points }
				add_to_temp_variable = { temp_support_points = -40 }
				NOT = {
					any_other_country = {
						check_variable = { total_political_support_points > temp_support_points }
					}
				}
			}

			#Opponent is far ahead in state. Focus elsewhere first
			modifier = {
				add = -45				
				any_other_country = {
					283 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 283.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 283.political_platform_@PREV }
				check_variable = { majority_holder_lead > 4 }
			}

			#Big states are more important
			modifier = {
				add = 25
				283 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#I have a change to grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					283 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 283.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 283.political_platform_@PREV }
				check_variable = { majority_holder_lead < 2 }
			}

			#I can for sure grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					283 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_points = 283.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { points_difference = majority_holder_points }
				check_variable = { points_difference < 1 }
			}
			
			#I am far enough ahead in this state
			modifier = {
				add = -50
				283 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 283.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 595.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 283.political_platform_@THIS }
					}
				}
				subtract_from_temp_variable = { my_points_lead = closest_points }

				check_variable = { my_points_lead > 2 }
			}

			#I want to push just a little bit ahead of my opponent so he cannot grab state
			modifier = {
				add = 25
				283 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 283.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 283.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 283.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
			# Don't if we risk running out of pp
			modifier = {
				factor = 0
				has_political_power < 180 # We ca do if safe, I guess
				political_power_growth < @PP_GAIN_PER_DAY_COST_TRIGGER
			}
		}
#BUILD_SUPPORT_AI_WIL_DO_END

		complete_effect = {

		}

		remove_effect = {
			283 = {
				#Add random state support for ROOT
				WTT_random_support_chance_increase_for_ROOT_in_state = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_add_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#604 "Qinghai"
	WTT_build_support_in_qinghai = {

		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_COST_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075
		icon = generic_political_discourse
		visible = {
			604 = {
				WTT_should_show_state_decision = yes
			}
			WTT_show_build_support_decisions = yes
		}
		
		available = {
			has_political_power > 0
			604 = {
				WTT_can_ROOT_select_state_support_decision_state = yes
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = WTT_build_support_positive_pp
				OR = {
					has_political_power < 0
					NOT = {
						604 = {
							WTT_can_ROOT_select_state_support_decision_state = yes
						}
					}
				}
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_GAIN_SUPPORT
		}
	
		days_remove = global.days_add_support?1337 #DAYS_UNTIL_SUPPORRT_IN_STATE_IS_ADDED
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 604
		} 
}
		
		fixed_random_seed = no

#BUILD_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Another country has majority in this state
			modifier = {
				add = 50
				any_other_country = {
					604 = {
						has_state_flag = majority_political_platform_@PREV
					}
				}
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					604 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#I am super far ahead
			modifier = {
				add = -50
				set_temp_variable = { temp_support_points = ROOT.total_political_support_points }
				add_to_temp_variable = { temp_support_points = -40 }
				NOT = {
					any_other_country = {
						check_variable = { total_political_support_points > temp_support_points }
					}
				}
			}

			#Opponent is far ahead in state. Focus elsewhere first
			modifier = {
				add = -45				
				any_other_country = {
					604 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 604.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 604.political_platform_@PREV }
				check_variable = { majority_holder_lead > 4 }
			}

			#Big states are more important
			modifier = {
				add = 25
				604 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#I have a change to grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					604 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 604.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 604.political_platform_@PREV }
				check_variable = { majority_holder_lead < 2 }
			}

			#I can for sure grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					604 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_points = 604.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { points_difference = majority_holder_points }
				check_variable = { points_difference < 1 }
			}
			
			#I am far enough ahead in this state
			modifier = {
				add = -50
				604 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 604.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 595.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 604.political_platform_@THIS }
					}
				}
				subtract_from_temp_variable = { my_points_lead = closest_points }

				check_variable = { my_points_lead > 2 }
			}

			#I want to push just a little bit ahead of my opponent so he cannot grab state
			modifier = {
				add = 25
				604 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 604.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 604.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 604.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
			# Don't if we risk running out of pp
			modifier = {
				factor = 0
				has_political_power < 180 # We ca do if safe, I guess
				political_power_growth < @PP_GAIN_PER_DAY_COST_TRIGGER
			}
		}
#BUILD_SUPPORT_AI_WIL_DO_END

		complete_effect = {

		}

		remove_effect = {
			604 = {
				#Add random state support for ROOT
				WTT_random_support_chance_increase_for_ROOT_in_state = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_add_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#616 "Ningxia"
	WTT_build_support_in_ningxia = {

		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_COST_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075
		icon = generic_political_discourse
		visible = {
			616 = {
				WTT_should_show_state_decision = yes
			}
			WTT_show_build_support_decisions = yes
		}
		
		available = {
			has_political_power > 0
			616 = {
				WTT_can_ROOT_select_state_support_decision_state = yes
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = WTT_build_support_positive_pp
				OR = {
					has_political_power < 0
					NOT = {
						616 = {
							WTT_can_ROOT_select_state_support_decision_state = yes
						}
					}
				}
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_GAIN_SUPPORT
		}
	
		days_remove = global.days_add_support?1337 #DAYS_UNTIL_SUPPORRT_IN_STATE_IS_ADDED
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 616
		} 
}
		
		fixed_random_seed = no

#BUILD_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Another country has majority in this state
			modifier = {
				add = 50
				any_other_country = {
					616 = {
						has_state_flag = majority_political_platform_@PREV
					}
				}
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					616 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#I am super far ahead
			modifier = {
				add = -50
				set_temp_variable = { temp_support_points = ROOT.total_political_support_points }
				add_to_temp_variable = { temp_support_points = -40 }
				NOT = {
					any_other_country = {
						check_variable = { total_political_support_points > temp_support_points }
					}
				}
			}

			#Opponent is far ahead in state. Focus elsewhere first
			modifier = {
				add = -45				
				any_other_country = {
					616 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 616.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 616.political_platform_@PREV }
				check_variable = { majority_holder_lead > 4 }
			}

			#Big states are more important
			modifier = {
				add = 25
				616 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#I have a change to grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					616 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 616.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 616.political_platform_@PREV }
				check_variable = { majority_holder_lead < 2 }
			}

			#I can for sure grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					616 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_points = 616.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { points_difference = majority_holder_points }
				check_variable = { points_difference < 1 }
			}
			
			#I am far enough ahead in this state
			modifier = {
				add = -50
				616 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 616.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 595.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 616.political_platform_@THIS }
					}
				}
				subtract_from_temp_variable = { my_points_lead = closest_points }

				check_variable = { my_points_lead > 2 }
			}

			#I want to push just a little bit ahead of my opponent so he cannot grab state
			modifier = {
				add = 25
				616 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 616.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 616.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 616.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
			# Don't if we risk running out of pp
			modifier = {
				factor = 0
				has_political_power < 180 # We ca do if safe, I guess
				political_power_growth < @PP_GAIN_PER_DAY_COST_TRIGGER
			}
		}
#BUILD_SUPPORT_AI_WIL_DO_END

		complete_effect = {

		}

		remove_effect = {
			616 = {
				#Add random state support for ROOT
				WTT_random_support_chance_increase_for_ROOT_in_state = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_add_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#Sinkiang

	#287 "Taklamakan"
	WTT_build_support_in_taklamakan = {

		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_COST_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075
		icon = generic_political_discourse
		visible = {
			287 = {
				WTT_should_show_state_decision = yes
			}
			WTT_show_build_support_decisions = yes
		}
		
		available = {
			has_political_power > 0
			287 = {
				WTT_can_ROOT_select_state_support_decision_state = yes
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = WTT_build_support_positive_pp
				OR = {
					has_political_power < 0
					NOT = {
						287 = {
							WTT_can_ROOT_select_state_support_decision_state = yes
						}
					}
				}
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_GAIN_SUPPORT
		}
	
		days_remove = global.days_add_support?1337 #DAYS_UNTIL_SUPPORRT_IN_STATE_IS_ADDED
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 287
		} 
}
		
		fixed_random_seed = no

#BUILD_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Another country has majority in this state
			modifier = {
				add = 50
				any_other_country = {
					287 = {
						has_state_flag = majority_political_platform_@PREV
					}
				}
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					287 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#I am super far ahead
			modifier = {
				add = -50
				set_temp_variable = { temp_support_points = ROOT.total_political_support_points }
				add_to_temp_variable = { temp_support_points = -40 }
				NOT = {
					any_other_country = {
						check_variable = { total_political_support_points > temp_support_points }
					}
				}
			}

			#Opponent is far ahead in state. Focus elsewhere first
			modifier = {
				add = -45				
				any_other_country = {
					287 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 287.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 287.political_platform_@PREV }
				check_variable = { majority_holder_lead > 4 }
			}

			#Big states are more important
			modifier = {
				add = 25
				287 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#I have a change to grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					287 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 287.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 287.political_platform_@PREV }
				check_variable = { majority_holder_lead < 2 }
			}

			#I can for sure grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					287 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_points = 287.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { points_difference = majority_holder_points }
				check_variable = { points_difference < 1 }
			}
			
			#I am far enough ahead in this state
			modifier = {
				add = -50
				287 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 287.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 595.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 287.political_platform_@THIS }
					}
				}
				subtract_from_temp_variable = { my_points_lead = closest_points }

				check_variable = { my_points_lead > 2 }
			}

			#I want to push just a little bit ahead of my opponent so he cannot grab state
			modifier = {
				add = 25
				287 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 287.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 287.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 287.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
			# Don't if we risk running out of pp
			modifier = {
				factor = 0
				has_political_power < 180 # We ca do if safe, I guess
				political_power_growth < @PP_GAIN_PER_DAY_COST_TRIGGER
			}
		}
#BUILD_SUPPORT_AI_WIL_DO_END

		complete_effect = {

		}

		remove_effect = {
			287 = {
				#Add random state support for ROOT
				WTT_random_support_chance_increase_for_ROOT_in_state = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_add_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#617 "Urumqi"
	WTT_build_support_in_urumqi = {

		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_COST_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075
		icon = generic_political_discourse
		visible = {
			617 = {
				WTT_should_show_state_decision = yes
			}
			WTT_show_build_support_decisions = yes
		}
		
		available = {
			has_political_power > 0
			617 = {
				WTT_can_ROOT_select_state_support_decision_state = yes
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = WTT_build_support_positive_pp
				OR = {
					has_political_power < 0
					NOT = {
						617 = {
							WTT_can_ROOT_select_state_support_decision_state = yes
						}
					}
				}
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_GAIN_SUPPORT
		}
	
		days_remove = global.days_add_support?1337 #DAYS_UNTIL_SUPPORRT_IN_STATE_IS_ADDED
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 617
		} 
}
		
		fixed_random_seed = no

#BUILD_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Another country has majority in this state
			modifier = {
				add = 50
				any_other_country = {
					617 = {
						has_state_flag = majority_political_platform_@PREV
					}
				}
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					617 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#I am super far ahead
			modifier = {
				add = -50
				set_temp_variable = { temp_support_points = ROOT.total_political_support_points }
				add_to_temp_variable = { temp_support_points = -40 }
				NOT = {
					any_other_country = {
						check_variable = { total_political_support_points > temp_support_points }
					}
				}
			}

			#Opponent is far ahead in state. Focus elsewhere first
			modifier = {
				add = -45				
				any_other_country = {
					617 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 617.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 617.political_platform_@PREV }
				check_variable = { majority_holder_lead > 4 }
			}

			#Big states are more important
			modifier = {
				add = 25
				617 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#I have a change to grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					617 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 617.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 617.political_platform_@PREV }
				check_variable = { majority_holder_lead < 2 }
			}

			#I can for sure grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					617 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_points = 617.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { points_difference = majority_holder_points }
				check_variable = { points_difference < 1 }
			}
			
			#I am far enough ahead in this state
			modifier = {
				add = -50
				617 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 617.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 595.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 617.political_platform_@THIS }
					}
				}
				subtract_from_temp_variable = { my_points_lead = closest_points }

				check_variable = { my_points_lead > 2 }
			}

			#I want to push just a little bit ahead of my opponent so he cannot grab state
			modifier = {
				add = 25
				617 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 617.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 617.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 617.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
			# Don't if we risk running out of pp
			modifier = {
				factor = 0
				has_political_power < 180 # We ca do if safe, I guess
				political_power_growth < @PP_GAIN_PER_DAY_COST_TRIGGER
			}
		}
#BUILD_SUPPORT_AI_WIL_DO_END

		complete_effect = {

		}

		remove_effect = {
			617 = {
				#Add random state support for ROOT
				WTT_random_support_chance_increase_for_ROOT_in_state = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_add_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#618 "Dzungaria"
	WTT_build_support_in_dzungaria = {

		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_COST_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075
		icon = generic_political_discourse
		visible = {
			618 = {
				WTT_should_show_state_decision = yes
			}
			WTT_show_build_support_decisions = yes
		}
		
		available = {
			has_political_power > 0
			618 = {
				WTT_can_ROOT_select_state_support_decision_state = yes
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = WTT_build_support_positive_pp
				OR = {
					has_political_power < 0
					NOT = {
						618 = {
							WTT_can_ROOT_select_state_support_decision_state = yes
						}
					}
				}
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_GAIN_SUPPORT
		}
	
		days_remove = global.days_add_support?1337 #DAYS_UNTIL_SUPPORRT_IN_STATE_IS_ADDED
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 618
		} 
}
		
		fixed_random_seed = no

#BUILD_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Another country has majority in this state
			modifier = {
				add = 50
				any_other_country = {
					618 = {
						has_state_flag = majority_political_platform_@PREV
					}
				}
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					618 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#I am super far ahead
			modifier = {
				add = -50
				set_temp_variable = { temp_support_points = ROOT.total_political_support_points }
				add_to_temp_variable = { temp_support_points = -40 }
				NOT = {
					any_other_country = {
						check_variable = { total_political_support_points > temp_support_points }
					}
				}
			}

			#Opponent is far ahead in state. Focus elsewhere first
			modifier = {
				add = -45				
				any_other_country = {
					618 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 618.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 618.political_platform_@PREV }
				check_variable = { majority_holder_lead > 4 }
			}

			#Big states are more important
			modifier = {
				add = 25
				618 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#I have a change to grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					618 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 618.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 618.political_platform_@PREV }
				check_variable = { majority_holder_lead < 2 }
			}

			#I can for sure grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					618 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_points = 618.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { points_difference = majority_holder_points }
				check_variable = { points_difference < 1 }
			}
			
			#I am far enough ahead in this state
			modifier = {
				add = -50
				618 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 618.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 595.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 618.political_platform_@THIS }
					}
				}
				subtract_from_temp_variable = { my_points_lead = closest_points }

				check_variable = { my_points_lead > 2 }
			}

			#I want to push just a little bit ahead of my opponent so he cannot grab state
			modifier = {
				add = 25
				618 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 618.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 618.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 618.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
			# Don't if we risk running out of pp
			modifier = {
				factor = 0
				has_political_power < 180 # We ca do if safe, I guess
				political_power_growth < @PP_GAIN_PER_DAY_COST_TRIGGER
			}
		}
#BUILD_SUPPORT_AI_WIL_DO_END

		complete_effect = {

		}

		remove_effect = {
			618 = {
				#Add random state support for ROOT
				WTT_random_support_chance_increase_for_ROOT_in_state = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_add_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#619 "Yarkand"
	WTT_build_support_in_yarkand = {

		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_COST_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075
		icon = generic_political_discourse
		visible = {
			619 = {
				WTT_should_show_state_decision = yes
			}
			WTT_show_build_support_decisions = yes
		}
		
		available = {
			has_political_power > 0
			619 = {
				WTT_can_ROOT_select_state_support_decision_state = yes
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = WTT_build_support_positive_pp
				OR = {
					has_political_power < 0
					NOT = {
						619 = {
							WTT_can_ROOT_select_state_support_decision_state = yes
						}
					}
				}
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_GAIN_SUPPORT
		}
	
		days_remove = global.days_add_support?1337 #DAYS_UNTIL_SUPPORRT_IN_STATE_IS_ADDED
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 619
		} 
}
		
		fixed_random_seed = no

#BUILD_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Another country has majority in this state
			modifier = {
				add = 50
				any_other_country = {
					619 = {
						has_state_flag = majority_political_platform_@PREV
					}
				}
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					619 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#I am super far ahead
			modifier = {
				add = -50
				set_temp_variable = { temp_support_points = ROOT.total_political_support_points }
				add_to_temp_variable = { temp_support_points = -40 }
				NOT = {
					any_other_country = {
						check_variable = { total_political_support_points > temp_support_points }
					}
				}
			}

			#Opponent is far ahead in state. Focus elsewhere first
			modifier = {
				add = -45				
				any_other_country = {
					619 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 619.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 619.political_platform_@PREV }
				check_variable = { majority_holder_lead > 4 }
			}

			#Big states are more important
			modifier = {
				add = 25
				619 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#I have a change to grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					619 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 619.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 619.political_platform_@PREV }
				check_variable = { majority_holder_lead < 2 }
			}

			#I can for sure grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					619 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_points = 619.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { points_difference = majority_holder_points }
				check_variable = { points_difference < 1 }
			}
			
			#I am far enough ahead in this state
			modifier = {
				add = -50
				619 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 619.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 595.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 619.political_platform_@THIS }
					}
				}
				subtract_from_temp_variable = { my_points_lead = closest_points }

				check_variable = { my_points_lead > 2 }
			}

			#I want to push just a little bit ahead of my opponent so he cannot grab state
			modifier = {
				add = 25
				619 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 619.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 619.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 619.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
			# Don't if we risk running out of pp
			modifier = {
				factor = 0
				has_political_power < 180 # We ca do if safe, I guess
				political_power_growth < @PP_GAIN_PER_DAY_COST_TRIGGER
			}
		}
#BUILD_SUPPORT_AI_WIL_DO_END

		complete_effect = {

		}

		remove_effect = {
			619 = {
				#Add random state support for ROOT
				WTT_random_support_chance_increase_for_ROOT_in_state = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_add_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#Yunnan

	#325 "Yunnan"
	WTT_build_support_in_yunnan = {

		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_COST_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075
		icon = generic_political_discourse
		visible = {
			325 = {
				WTT_should_show_state_decision = yes
			}
			WTT_show_build_support_decisions = yes
		}
		
		available = {
			has_political_power > 0
			325 = {
				WTT_can_ROOT_select_state_support_decision_state = yes
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = WTT_build_support_positive_pp
				OR = {
					has_political_power < 0
					NOT = {
						325 = {
							WTT_can_ROOT_select_state_support_decision_state = yes
						}
					}
				}
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_GAIN_SUPPORT
		}
	
		days_remove = global.days_add_support?1337 #DAYS_UNTIL_SUPPORRT_IN_STATE_IS_ADDED
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 325
		} 
}
		
		fixed_random_seed = no

#BUILD_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Another country has majority in this state
			modifier = {
				add = 50
				any_other_country = {
					325 = {
						has_state_flag = majority_political_platform_@PREV
					}
				}
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					325 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#I am super far ahead
			modifier = {
				add = -50
				set_temp_variable = { temp_support_points = ROOT.total_political_support_points }
				add_to_temp_variable = { temp_support_points = -40 }
				NOT = {
					any_other_country = {
						check_variable = { total_political_support_points > temp_support_points }
					}
				}
			}

			#Opponent is far ahead in state. Focus elsewhere first
			modifier = {
				add = -45				
				any_other_country = {
					325 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 325.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 325.political_platform_@PREV }
				check_variable = { majority_holder_lead > 4 }
			}

			#Big states are more important
			modifier = {
				add = 25
				325 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#I have a change to grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					325 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 325.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 325.political_platform_@PREV }
				check_variable = { majority_holder_lead < 2 }
			}

			#I can for sure grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					325 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_points = 325.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { points_difference = majority_holder_points }
				check_variable = { points_difference < 1 }
			}
			
			#I am far enough ahead in this state
			modifier = {
				add = -50
				325 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 325.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 595.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 325.political_platform_@THIS }
					}
				}
				subtract_from_temp_variable = { my_points_lead = closest_points }

				check_variable = { my_points_lead > 2 }
			}

			#I want to push just a little bit ahead of my opponent so he cannot grab state
			modifier = {
				add = 25
				325 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 325.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 325.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 325.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
			# Don't if we risk running out of pp
			modifier = {
				factor = 0
				has_political_power < 180 # We ca do if safe, I guess
				political_power_growth < @PP_GAIN_PER_DAY_COST_TRIGGER
			}
		}
#BUILD_SUPPORT_AI_WIL_DO_END

		complete_effect = {

		}

		remove_effect = {
			325 = {
				#Add random state support for ROOT
				WTT_random_support_chance_increase_for_ROOT_in_state = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_add_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#Guangxi Clique

	#591 "Hainan"
	WTT_build_support_in_hainan = {

		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_COST_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075
		icon = generic_political_discourse
		visible = {
			591 = {
				WTT_should_show_state_decision = yes
			}
			WTT_show_build_support_decisions = yes
		}
		
		available = {
			has_political_power > 0
			591 = {
				WTT_can_ROOT_select_state_support_decision_state = yes
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = WTT_build_support_positive_pp
				OR = {
					has_political_power < 0
					NOT = {
						591 = {
							WTT_can_ROOT_select_state_support_decision_state = yes
						}
					}
				}
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_GAIN_SUPPORT
		}
	
		days_remove = global.days_add_support?1337 #DAYS_UNTIL_SUPPORRT_IN_STATE_IS_ADDED
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 591
		} 
}
		
		fixed_random_seed = no

#BUILD_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Another country has majority in this state
			modifier = {
				add = 50
				any_other_country = {
					591 = {
						has_state_flag = majority_political_platform_@PREV
					}
				}
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					591 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#I am super far ahead
			modifier = {
				add = -50
				set_temp_variable = { temp_support_points = ROOT.total_political_support_points }
				add_to_temp_variable = { temp_support_points = -40 }
				NOT = {
					any_other_country = {
						check_variable = { total_political_support_points > temp_support_points }
					}
				}
			}

			#Opponent is far ahead in state. Focus elsewhere first
			modifier = {
				add = -45				
				any_other_country = {
					591 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 591.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 591.political_platform_@PREV }
				check_variable = { majority_holder_lead > 4 }
			}

			#Big states are more important
			modifier = {
				add = 25
				591 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#I have a change to grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					591 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 591.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 591.political_platform_@PREV }
				check_variable = { majority_holder_lead < 2 }
			}

			#I can for sure grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					591 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_points = 591.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { points_difference = majority_holder_points }
				check_variable = { points_difference < 1 }
			}
			
			#I am far enough ahead in this state
			modifier = {
				add = -50
				591 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 591.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 595.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 591.political_platform_@THIS }
					}
				}
				subtract_from_temp_variable = { my_points_lead = closest_points }

				check_variable = { my_points_lead > 2 }
			}

			#I want to push just a little bit ahead of my opponent so he cannot grab state
			modifier = {
				add = 25
				591 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 591.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 591.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 591.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
			# Don't if we risk running out of pp
			modifier = {
				factor = 0
				has_political_power < 180 # We ca do if safe, I guess
				political_power_growth < @PP_GAIN_PER_DAY_COST_TRIGGER
			}
		}
#BUILD_SUPPORT_AI_WIL_DO_END

		complete_effect = {

		}

		remove_effect = {
			591 = {
				#Add random state support for ROOT
				WTT_random_support_chance_increase_for_ROOT_in_state = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_add_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#592 "Guangzhou"
	WTT_build_support_in_guangzhou = {

		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_COST_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075
		icon = generic_political_discourse
		visible = {
			592 = {
				WTT_should_show_state_decision = yes
			}
			WTT_show_build_support_decisions = yes
		}
		
		available = {
			has_political_power > 0
			592 = {
				WTT_can_ROOT_select_state_support_decision_state = yes
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = WTT_build_support_positive_pp
				OR = {
					has_political_power < 0
					NOT = {
						592 = {
							WTT_can_ROOT_select_state_support_decision_state = yes
						}
					}
				}
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_GAIN_SUPPORT
		}
	
		days_remove = global.days_add_support?1337 #DAYS_UNTIL_SUPPORRT_IN_STATE_IS_ADDED
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 592
		} 
}
		
		fixed_random_seed = no

#BUILD_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Another country has majority in this state
			modifier = {
				add = 50
				any_other_country = {
					592 = {
						has_state_flag = majority_political_platform_@PREV
					}
				}
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					592 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#I am super far ahead
			modifier = {
				add = -50
				set_temp_variable = { temp_support_points = ROOT.total_political_support_points }
				add_to_temp_variable = { temp_support_points = -40 }
				NOT = {
					any_other_country = {
						check_variable = { total_political_support_points > temp_support_points }
					}
				}
			}

			#Opponent is far ahead in state. Focus elsewhere first
			modifier = {
				add = -45				
				any_other_country = {
					592 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 592.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 592.political_platform_@PREV }
				check_variable = { majority_holder_lead > 4 }
			}

			#Big states are more important
			modifier = {
				add = 25
				592 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#I have a change to grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					592 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 592.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 592.political_platform_@PREV }
				check_variable = { majority_holder_lead < 2 }
			}

			#I can for sure grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					592 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_points = 592.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { points_difference = majority_holder_points }
				check_variable = { points_difference < 1 }
			}
			
			#I am far enough ahead in this state
			modifier = {
				add = -50
				592 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 592.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 595.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 592.political_platform_@THIS }
					}
				}
				subtract_from_temp_variable = { my_points_lead = closest_points }

				check_variable = { my_points_lead > 2 }
			}

			#I want to push just a little bit ahead of my opponent so he cannot grab state
			modifier = {
				add = 25
				592 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 592.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 592.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 592.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
			# Don't if we risk running out of pp
			modifier = {
				factor = 0
				has_political_power < 180 # We ca do if safe, I guess
				political_power_growth < @PP_GAIN_PER_DAY_COST_TRIGGER
			}
		}
#BUILD_SUPPORT_AI_WIL_DO_END

		complete_effect = {

		}

		remove_effect = {
			592 = {
				#Add random state support for ROOT
				WTT_random_support_chance_increase_for_ROOT_in_state = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_add_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#593 "Guangdong"
	WTT_build_support_in_guangdong = {

		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_COST_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075
		icon = generic_political_discourse
		visible = {
			593 = {
				WTT_should_show_state_decision = yes
			}
			WTT_show_build_support_decisions = yes
		}
		
		available = {
			has_political_power > 0
			593 = {
				WTT_can_ROOT_select_state_support_decision_state = yes
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = WTT_build_support_positive_pp
				OR = {
					has_political_power < 0
					NOT = {
						593 = {
							WTT_can_ROOT_select_state_support_decision_state = yes
						}
					}
				}
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_GAIN_SUPPORT
		}
	
		days_remove = global.days_add_support?1337 #DAYS_UNTIL_SUPPORRT_IN_STATE_IS_ADDED
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 593
		} 
}
		
		fixed_random_seed = no

#BUILD_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Another country has majority in this state
			modifier = {
				add = 50
				any_other_country = {
					593 = {
						has_state_flag = majority_political_platform_@PREV
					}
				}
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					593 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#I am super far ahead
			modifier = {
				add = -50
				set_temp_variable = { temp_support_points = ROOT.total_political_support_points }
				add_to_temp_variable = { temp_support_points = -40 }
				NOT = {
					any_other_country = {
						check_variable = { total_political_support_points > temp_support_points }
					}
				}
			}

			#Opponent is far ahead in state. Focus elsewhere first
			modifier = {
				add = -45				
				any_other_country = {
					593 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 593.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 593.political_platform_@PREV }
				check_variable = { majority_holder_lead > 4 }
			}

			#Big states are more important
			modifier = {
				add = 25
				593 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#I have a change to grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					593 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 593.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 593.political_platform_@PREV }
				check_variable = { majority_holder_lead < 2 }
			}

			#I can for sure grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					593 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_points = 593.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { points_difference = majority_holder_points }
				check_variable = { points_difference < 1 }
			}
			
			#I am far enough ahead in this state
			modifier = {
				add = -50
				593 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 593.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 595.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 593.political_platform_@THIS }
					}
				}
				subtract_from_temp_variable = { my_points_lead = closest_points }

				check_variable = { my_points_lead > 2 }
			}

			#I want to push just a little bit ahead of my opponent so he cannot grab state
			modifier = {
				add = 25
				593 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 593.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 593.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 593.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
			# Don't if we risk running out of pp
			modifier = {
				factor = 0
				has_political_power < 180 # We ca do if safe, I guess
				political_power_growth < @PP_GAIN_PER_DAY_COST_TRIGGER
			}
		}
#BUILD_SUPPORT_AI_WIL_DO_END

		complete_effect = {

		}

		remove_effect = {
			593 = {
				#Add random state support for ROOT
				WTT_random_support_chance_increase_for_ROOT_in_state = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_add_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#594 "Nanning"
	WTT_build_support_in_nanning = {

		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_COST_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075
		icon = generic_political_discourse
		visible = {
			594 = {
				WTT_should_show_state_decision = yes
			}
			WTT_show_build_support_decisions = yes
		}
		
		available = {
			has_political_power > 0
			594 = {
				WTT_can_ROOT_select_state_support_decision_state = yes
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = WTT_build_support_positive_pp
				OR = {
					has_political_power < 0
					NOT = {
						594 = {
							WTT_can_ROOT_select_state_support_decision_state = yes
						}
					}
				}
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_GAIN_SUPPORT
		}
	
		days_remove = global.days_add_support?1337 #DAYS_UNTIL_SUPPORRT_IN_STATE_IS_ADDED
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 594
		} 
}
		
		fixed_random_seed = no

#BUILD_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Another country has majority in this state
			modifier = {
				add = 50
				any_other_country = {
					594 = {
						has_state_flag = majority_political_platform_@PREV
					}
				}
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					594 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#I am super far ahead
			modifier = {
				add = -50
				set_temp_variable = { temp_support_points = ROOT.total_political_support_points }
				add_to_temp_variable = { temp_support_points = -40 }
				NOT = {
					any_other_country = {
						check_variable = { total_political_support_points > temp_support_points }
					}
				}
			}

			#Opponent is far ahead in state. Focus elsewhere first
			modifier = {
				add = -45				
				any_other_country = {
					594 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 594.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 594.political_platform_@PREV }
				check_variable = { majority_holder_lead > 4 }
			}

			#Big states are more important
			modifier = {
				add = 25
				594 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#I have a change to grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					594 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 594.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 594.political_platform_@PREV }
				check_variable = { majority_holder_lead < 2 }
			}

			#I can for sure grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					594 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_points = 594.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { points_difference = majority_holder_points }
				check_variable = { points_difference < 1 }
			}
			
			#I am far enough ahead in this state
			modifier = {
				add = -50
				594 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 594.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 595.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 594.political_platform_@THIS }
					}
				}
				subtract_from_temp_variable = { my_points_lead = closest_points }

				check_variable = { my_points_lead > 2 }
			}

			#I want to push just a little bit ahead of my opponent so he cannot grab state
			modifier = {
				add = 25
				594 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 594.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 594.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 594.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
			# Don't if we risk running out of pp
			modifier = {
				factor = 0
				has_political_power < 180 # We ca do if safe, I guess
				political_power_growth < @PP_GAIN_PER_DAY_COST_TRIGGER
			}
		}
#BUILD_SUPPORT_AI_WIL_DO_END

		complete_effect = {

		}

		remove_effect = {
			594 = {
				#Add random state support for ROOT
				WTT_random_support_chance_increase_for_ROOT_in_state = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_add_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#599 "Guangxi"
	WTT_build_support_in_guangxi = {

		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_COST_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075
		icon = generic_political_discourse
		visible = {
			599 = {
				WTT_should_show_state_decision = yes
			}
			WTT_show_build_support_decisions = yes
		}
		
		available = {
			has_political_power > 0
			599 = {
				WTT_can_ROOT_select_state_support_decision_state = yes
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = WTT_build_support_positive_pp
				OR = {
					has_political_power < 0
					NOT = {
						599 = {
							WTT_can_ROOT_select_state_support_decision_state = yes
						}
					}
				}
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_GAIN_SUPPORT
		}
	
		days_remove = global.days_add_support?1337 #DAYS_UNTIL_SUPPORRT_IN_STATE_IS_ADDED
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
			highlight_state_targets = {
				state = 599
			} 
		}
		
		fixed_random_seed = no

#BUILD_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Another country has majority in this state
			modifier = {
				add = 50
				any_other_country = {
					599 = {
						has_state_flag = majority_political_platform_@PREV
					}
				}
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					599 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#I am super far ahead
			modifier = {
				add = -50
				set_temp_variable = { temp_support_points = ROOT.total_political_support_points }
				add_to_temp_variable = { temp_support_points = -40 }
				NOT = {
					any_other_country = {
						check_variable = { total_political_support_points > temp_support_points }
					}
				}
			}

			#Opponent is far ahead in state. Focus elsewhere first
			modifier = {
				add = -45				
				any_other_country = {
					599 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 599.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 599.political_platform_@PREV }
				check_variable = { majority_holder_lead > 4 }
			}

			#Big states are more important
			modifier = {
				add = 25
				599 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#I have a change to grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					599 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = 599.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { majority_holder_lead = 599.political_platform_@PREV }
				check_variable = { majority_holder_lead < 2 }
			}

			#I can for sure grab this with just one push for support
			modifier = {
				add = 25
				any_other_country = {
					599 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_points = 599.political_platform_@PREV }
					}
				}
				subtract_from_temp_variable = { points_difference = majority_holder_points }
				check_variable = { points_difference < 1 }
			}
			
			#I am far enough ahead in this state
			modifier = {
				add = -50
				599 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 599.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 595.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 599.political_platform_@THIS }
					}
				}
				subtract_from_temp_variable = { my_points_lead = closest_points }

				check_variable = { my_points_lead > 2 }
			}

			#I want to push just a little bit ahead of my opponent so he cannot grab state
			modifier = {
				add = 25
				599 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 599.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 599.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 599.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
			# Don't if we risk running out of pp
			modifier = {
				factor = 0
				has_political_power < 180 # We ca do if safe, I guess
				political_power_growth < @PP_GAIN_PER_DAY_COST_TRIGGER
			}
		}
#BUILD_SUPPORT_AI_WIL_DO_END

		complete_effect = {

		}

		remove_effect = {
			599 = {
				#Add random state support for ROOT
				WTT_random_support_chance_increase_for_ROOT_in_state = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_add_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

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

@WARLORD_SUPPORT_NUM_STEPS_FROM_SAME_IDEOLOGY = 2
@WARLORD_SUPPORT_NUM_STEPS_FROM_OPINION = 6
@WARLORD_SUPPORT_MINIMUM_OPINION = -25

	WTT_seek_support_from_warlord = {
		icon = generic_civil_support
		visible = {
			FROM = { NOT = { has_country_flag = wtt_political_struggle } }
			FROM = { NOT = { has_war_with = ROOT } }
			NOT = { event_target:WTT_current_china_leader = { tag = ROOT } }
			NOT = {
				any_country = {
					FROM = { has_country_flag = warlord_supports_@PREV }
				}
			}
			#Not subject of CHI, not support others.
		}
		
		available = {
			FROM = { has_opinion = { target = ROOT value > @WARLORD_SUPPORT_MINIMUM_OPINION } }
			FROM = {
				custom_trigger_tooltip = {
					tooltip = is_not_supporting_someone
					NOT = {
						any_country = {
							FROM = { has_country_flag = warlord_supports_@PREV }
						}
					}
				}
				custom_trigger_tooltip = {
					tooltip = is_not_negotiating_support_with_other_country
					NOT = {
						any_country = {
							FROM = { has_country_flag = wtt_negotiating_support_with@PREV }
						}
					}
				}
			}
		}

		target_root_trigger = {
			has_country_flag = wtt_political_struggle
		}

		targets = { GXC YUN SHX XSM SIK }
		targets_dynamic = yes

		target_trigger = {
			FROM = {
				NOT = { has_country_flag = wtt_political_struggle }
				is_chinese_warlord = yes
			}
		}

		ai_will_do = {
			base = 50
			modifier = {
				add = 50
				has_government = FROM
			}
			modifier = {
				factor = 0
				check_variable = { total_political_support_points > WTT_current_china_leader.total_political_support_points }
			}
		}
	
		days_remove = 0
		days_re_enable = 0

		fire_only_once = yes
	
		cost = 0
		
		fixed_random_seed = no

		complete_effect = {
			FROM = { set_country_flag = wtt_negotiating_support_with@ROOT }

			set_variable = { total_num_steps = @WARLORD_SUPPORT_NUM_STEPS_FROM_OPINION }
			add_to_variable = { total_num_steps = @WARLORD_SUPPORT_NUM_STEPS_FROM_SAME_IDEOLOGY }
			
			set_variable = { same_ruling_party_steps = 0 }
			if = {
				limit = { has_government = FROM }
				add_to_variable = { same_ruling_party_steps = @WARLORD_SUPPORT_NUM_STEPS_FROM_SAME_IDEOLOGY }
			}			

			set_variable = { var = opinion_of_us_steps value = FROM.opinion@ROOT }
			set_temp_variable = { temp_opinion_range = 100 }
			subtract_from_temp_variable = { temp_opinion_range = @WARLORD_SUPPORT_MINIMUM_OPINION }

			subtract_from_variable = { var = opinion_of_us_steps value = @WARLORD_SUPPORT_MINIMUM_OPINION }

			divide_variable = { var = opinion_of_us_steps value = temp_opinion_range }

			multiply_variable = { opinion_of_us_steps = @WARLORD_SUPPORT_NUM_STEPS_FROM_OPINION }
			round_variable = opinion_of_us_steps

			set_variable = { FROM.step_increase_from_opinion_ideology_@ROOT = total_num_steps }
			subtract_from_variable = { FROM.step_increase_from_opinion_ideology_@ROOT = same_ruling_party_steps }
			subtract_from_variable = { FROM.step_increase_from_opinion_ideology_@ROOT = opinion_of_us_steps }

			custom_effect_tooltip = WTT_seek_support_from_warlord_cost_tt

			clear_variable = total_num_steps
			clear_variable = same_ruling_party_steps
			clear_variable = opinion_of_us_steps

			FROM = { country_event = { id = wtt_political_warlord_support.10 } }
		}
	}

	WTT_pay_for_support_from_warlord_PP = {
		icon = generic_civil_support

		allowed = { always = no } #Activated from effect

		visible = {
			FROM = { NOT = { has_country_flag = wtt_political_struggle } }
			FROM = { NOT = { has_war_with = ROOT } }
			NOT = { event_target:WTT_current_china_leader = { tag = ROOT } }
		}

		target_trigger = {

		}

		ai_will_do = {
			base = 50
			modifier = {
				add = 75
				check_variable = { FROM.PP_amount_for_support_@ROOT < 151 }
			}
			modifier = {
				factor = 0
				check_variable = { total_political_support_points > WTT_current_china_leader.total_political_support_points }
			}
		}
	
		days_remove = 0
		days_re_enable = 0

		fire_only_once = yes
	
		#cost = FROM.PP_amount_for_support_@ROOT #TODO_WTT_CODE cost does not take FROM scope
		
		fixed_random_seed = no

		days_mission_timeout = 60
		selectable_mission = yes

		timeout_effect = {
			custom_effect_tooltip = WTT_pay_for_support_from_warlord_PP_timeout
			clr_country_flag = wtt_negotiating_support_with@ROOT
		}

		complete_effect = {
			subtract_from_temp_variable = { reduce_pp_amount = FROM.PP_amount_for_support_@ROOT }
			add_political_power = reduce_pp_amount
			custom_effect_tooltip = WTT_warlord_supports_us
			FROM = {
				effect_tooltip = {
					add_political_power = PP_amount_gained_from_supporting_@ROOT
				}
				clear_variable = PP_amount_for_support_@ROOT
				set_country_flag = warlord_supports_@ROOT
				clr_country_flag = wtt_negotiating_support_with@ROOT
				country_event = { id = wtt_political_warlord_support.21 }
			}
			WTT_political_struggle_recalculate_support = yes
		}
	}

	WTT_pay_for_support_from_warlord_equipment = {
		icon = generic_civil_support

		allowed = { always = no } #Activated from effect

		visible = {
			FROM = { NOT = { has_country_flag = wtt_political_struggle } }
			FROM = { NOT = { has_war_with = ROOT } }
			NOT = { event_target:WTT_current_china_leader = { tag = ROOT } }
		}

		available = {
			has_equipment = { infantry_equipment > FROM.equipment_amount_for_support_@ROOT }
			has_manpower > FROM.manpower_amount_for_support_@ROOT
		}

		target_trigger = {

		}

		ai_will_do = {
			base = 50
			modifier = {
				add = 75				
			}
			modifier = {
				factor = 0
				check_variable = { total_political_support_points > WTT_current_china_leader.total_political_support_points }
			}
		}
	
		days_remove = 0
		days_re_enable = 0

		days_mission_timeout = 60
		selectable_mission = yes

		timeout_effect = {
			custom_effect_tooltip = WTT_pay_for_support_from_warlord_PP_timeout
			clr_country_flag = wtt_negotiating_support_with@ROOT
		}

		fire_only_once = yes
	
		#cost = FROM.equipment_amount_for_support_@ROOT #TODO_WTT_CODE cost does not take FROM scope
		
		fixed_random_seed = no

		complete_effect = {
			subtract_from_temp_variable = { reduce_manpower_amount = FROM.manpower_amount_for_support_@ROOT }
			add_manpower = reduce_manpower_amount
			send_equipment = {
				target = FROM
				type = infantry_equipment
				amount = FROM.equipment_amount_for_support_@ROOT
			}
			effect_tooltip = {
				FROM = { add_manpower = FROM.manpower_amount_for_support_@ROOT }
			}
			custom_effect_tooltip = WTT_warlord_supports_us
			FROM = {
				set_country_flag = warlord_supports_@ROOT
				clr_country_flag = wtt_negotiating_support_with@ROOT
				country_event = { id = wtt_political_warlord_support.22 }
			}
			WTT_political_struggle_recalculate_support = yes
		}
	}

	WTT_pay_for_support_from_warlord_xp = {
		icon = generic_civil_support

		allowed = { always = no } #Activated from effect

		visible = {
			FROM = { NOT = { has_country_flag = wtt_political_struggle } }
			FROM = { NOT = { has_war_with = ROOT } }
			NOT = { event_target:WTT_current_china_leader = { tag = ROOT } }
		}

		available = {
			has_army_experience > FROM.xp_amount_for_support_@ROOT
			has_manpower > FROM.manpower_amount_for_support_@ROOT
		}

		target_trigger = {

		}

		ai_will_do = {
			base = 50
			modifier = {
				add = 75				
			}
			modifier = {
				factor = 0
				check_variable = { total_political_support_points > WTT_current_china_leader.total_political_support_points }
			}
		}
	
		days_remove = 0
		days_re_enable = 0

		fire_only_once = yes
	
		days_mission_timeout = 60
		selectable_mission = yes

		timeout_effect = {
			custom_effect_tooltip = WTT_pay_for_support_from_warlord_PP_timeout
			clr_country_flag = wtt_negotiating_support_with@ROOT
		}
		
		fixed_random_seed = no

		complete_effect = {
			subtract_from_temp_variable = { reduce_manpower_amount = FROM.manpower_amount_for_support_@ROOT }
			add_manpower = reduce_manpower_amount
			effect_tooltip = {
				FROM = { add_manpower = FROM.manpower_amount_for_support_@ROOT }
			}

			subtract_from_temp_variable = { reduce_xp_amount = FROM.xp_amount_for_support_@ROOT }
			army_experience = reduce_xp_amount
			effect_tooltip = {
				FROM = { army_experience = FROM.xp_amount_for_support_@ROOT }
			}

			custom_effect_tooltip = WTT_warlord_supports_us
			FROM = {
				set_country_flag = warlord_supports_@ROOT
				clr_country_flag = wtt_negotiating_support_with@ROOT
				country_event = { id = wtt_political_warlord_support.23 }
			}
			WTT_political_struggle_recalculate_support = yes
		}
	}


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

	#Nat China
	#595 "Fujian"
	WTT_remove_opposition_in_fujian = {
		icon = oppression
		visible = {
			WTT_is_ROOT_current_leader_of_china = yes
			595 = {
				WTT_can_select_state_remove_support_state = yes
			}
		}
		
		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_REMOVE_OPPOSITION_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075

		available = {
			595 = {
				WTT_can_select_state_remove_support_state = yes				
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_REMOVE_OPPOSITION
		}

	
		days_remove = global.days_remove_support?1337 #DAYS_UNTIL_REMOVE_SUPPORT
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 595
		} 
}
		
		fixed_random_seed = no

#REMOVE_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Rarely worth it if we have majority
			modifier = {
				add = -50
				595 = { has_state_flag = majority_political_platform_@PREV }
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					595 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#If I am close to losing... cut my life into pieces...
			modifier = {
				add = 75
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 10 }
			}

			#Opponent has enough points that I need to be scared
			modifier = {
				add = 25
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 20 }
			}

			#I will grab this state if I stomp out the opposition
			modifier = {
				add = 50
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					595 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = STATE_ID.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead = 595.political_platform_@PREV }
				check_variable = { majority_holder_lead < support_to_remove }
			}

			#It is not worth the points
			modifier = {
				add = -50

				#Don't calc this for own states
				595 = { NOT = { has_state_flag = majority_political_platform_@PREV } }

				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}

				check_variable = { support_to_remove < 595.political_platform_@PREV }
			}

			#Opponent is far ahead in state. Stomp elsewhere first
			modifier = {
				add = -25
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					595 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead_after_removal = 595.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead_after_removal = 595.political_platform_@PREV }
				subtract_from_temp_variable = { majority_holder_lead_after_removal = support_to_remove }

				check_variable = { majority_holder_lead_after_removal > 3 }
			}

			#Big states are more important
			modifier = {
				add = 10
				595 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#Opponent is too close for my liking
			modifier = {
				add = 10
				595 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 595.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 595.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 595.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
		}
#REMOVE_SUPPORT_AI_WIL_DO_END
		
		complete_effect = {

		}

		remove_effect = {
			595 = {
				custom_effect_tooltip = state_majority_country_rules
				custom_effect_tooltip = state_support_breakdown
				custom_effect_tooltip = remove_support_in_state_chance_modifiers

				#Remove support from opposition
				WTT_remove_opposition_state_support = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support					
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_remove_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#596 "Zhejiang"
	WTT_remove_opposition_in_zhejiang = {
		icon = oppression
		visible = {
			WTT_is_ROOT_current_leader_of_china = yes
			596 = {
				WTT_can_select_state_remove_support_state = yes
			}
		}
		
		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_REMOVE_OPPOSITION_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075

		available = {
			596 = {
				WTT_can_select_state_remove_support_state = yes				
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_REMOVE_OPPOSITION
		}

	
		days_remove = global.days_remove_support?1337 #DAYS_UNTIL_REMOVE_SUPPORT
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 596
		} 
}
		
		fixed_random_seed = no

#REMOVE_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Rarely worth it if we have majority
			modifier = {
				add = -50
				596 = { has_state_flag = majority_political_platform_@PREV }
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					596 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#If I am close to losing... cut my life into pieces...
			modifier = {
				add = 75
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 10 }
			}

			#Opponent has enough points that I need to be scared
			modifier = {
				add = 25
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 20 }
			}

			#I will grab this state if I stomp out the opposition
			modifier = {
				add = 50
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					596 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = STATE_ID.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead = 596.political_platform_@PREV }
				check_variable = { majority_holder_lead < support_to_remove }
			}

			#It is not worth the points
			modifier = {
				add = -50

				#Don't calc this for own states
				596 = { NOT = { has_state_flag = majority_political_platform_@PREV } }

				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}

				check_variable = { support_to_remove < 596.political_platform_@PREV }
			}

			#Opponent is far ahead in state. Stomp elsewhere first
			modifier = {
				add = -25
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					596 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead_after_removal = 596.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead_after_removal = 596.political_platform_@PREV }
				subtract_from_temp_variable = { majority_holder_lead_after_removal = support_to_remove }

				check_variable = { majority_holder_lead_after_removal > 3 }
			}

			#Big states are more important
			modifier = {
				add = 10
				596 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#Opponent is too close for my liking
			modifier = {
				add = 10
				596 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 596.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 596.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 596.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
		}
#REMOVE_SUPPORT_AI_WIL_DO_END
		
		complete_effect = {

		}

		remove_effect = {
			596 = {
				custom_effect_tooltip = state_majority_country_rules
				custom_effect_tooltip = state_support_breakdown
				custom_effect_tooltip = remove_support_in_state_chance_modifiers

				#Remove support from opposition
				WTT_remove_opposition_state_support = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support					
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_remove_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#597 "Shandong"
	WTT_remove_opposition_in_shandong = {
		icon = oppression
		visible = {
			WTT_is_ROOT_current_leader_of_china = yes
			597 = {
				WTT_can_select_state_remove_support_state = yes
			}
		}
		
		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_REMOVE_OPPOSITION_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075

		available = {
			597 = {
				WTT_can_select_state_remove_support_state = yes				
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_REMOVE_OPPOSITION
		}

	
		days_remove = global.days_remove_support?1337 #DAYS_UNTIL_REMOVE_SUPPORT
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 597
		} 
}
		
		fixed_random_seed = no

#REMOVE_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Rarely worth it if we have majority
			modifier = {
				add = -50
				597 = { has_state_flag = majority_political_platform_@PREV }
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					597 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#If I am close to losing... cut my life into pieces...
			modifier = {
				add = 75
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 10 }
			}

			#Opponent has enough points that I need to be scared
			modifier = {
				add = 25
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 20 }
			}

			#I will grab this state if I stomp out the opposition
			modifier = {
				add = 50
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					597 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = STATE_ID.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead = 597.political_platform_@PREV }
				check_variable = { majority_holder_lead < support_to_remove }
			}

			#It is not worth the points
			modifier = {
				add = -50

				#Don't calc this for own states
				597 = { NOT = { has_state_flag = majority_political_platform_@PREV } }

				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}

				check_variable = { support_to_remove < 597.political_platform_@PREV }
			}

			#Opponent is far ahead in state. Stomp elsewhere first
			modifier = {
				add = -25
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					597 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead_after_removal = 597.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead_after_removal = 597.political_platform_@PREV }
				subtract_from_temp_variable = { majority_holder_lead_after_removal = support_to_remove }

				check_variable = { majority_holder_lead_after_removal > 3 }
			}

			#Big states are more important
			modifier = {
				add = 10
				597 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#Opponent is too close for my liking
			modifier = {
				add = 10
				597 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 597.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 597.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 597.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
		}
#REMOVE_SUPPORT_AI_WIL_DO_END
		
		complete_effect = {

		}

		remove_effect = {
			597 = {
				custom_effect_tooltip = state_majority_country_rules
				custom_effect_tooltip = state_support_breakdown
				custom_effect_tooltip = remove_support_in_state_chance_modifiers

				#Remove support from opposition
				WTT_remove_opposition_state_support = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support					
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_remove_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#598 "Jiangsu"
	WTT_remove_opposition_in_jiangsu = {
		icon = oppression
		visible = {
			WTT_is_ROOT_current_leader_of_china = yes
			598 = {
				WTT_can_select_state_remove_support_state = yes
			}
		}
		
		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_REMOVE_OPPOSITION_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075

		available = {
			598 = {
				WTT_can_select_state_remove_support_state = yes				
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_REMOVE_OPPOSITION
		}

	
		days_remove = global.days_remove_support?1337 #DAYS_UNTIL_REMOVE_SUPPORT
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 598
		} 
}
		
		fixed_random_seed = no

#REMOVE_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Rarely worth it if we have majority
			modifier = {
				add = -50
				598 = { has_state_flag = majority_political_platform_@PREV }
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					598 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#If I am close to losing... cut my life into pieces...
			modifier = {
				add = 75
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 10 }
			}

			#Opponent has enough points that I need to be scared
			modifier = {
				add = 25
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 20 }
			}

			#I will grab this state if I stomp out the opposition
			modifier = {
				add = 50
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					598 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = STATE_ID.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead = 598.political_platform_@PREV }
				check_variable = { majority_holder_lead < support_to_remove }
			}

			#It is not worth the points
			modifier = {
				add = -50

				#Don't calc this for own states
				598 = { NOT = { has_state_flag = majority_political_platform_@PREV } }

				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}

				check_variable = { support_to_remove < 598.political_platform_@PREV }
			}

			#Opponent is far ahead in state. Stomp elsewhere first
			modifier = {
				add = -25
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					598 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead_after_removal = 598.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead_after_removal = 598.political_platform_@PREV }
				subtract_from_temp_variable = { majority_holder_lead_after_removal = support_to_remove }

				check_variable = { majority_holder_lead_after_removal > 3 }
			}

			#Big states are more important
			modifier = {
				add = 10
				598 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#Opponent is too close for my liking
			modifier = {
				add = 10
				598 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 598.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 598.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 598.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
		}
#REMOVE_SUPPORT_AI_WIL_DO_END
		
		complete_effect = {

		}

		remove_effect = {
			598 = {
				custom_effect_tooltip = state_majority_country_rules
				custom_effect_tooltip = state_support_breakdown
				custom_effect_tooltip = remove_support_in_state_chance_modifiers

				#Remove support from opposition
				WTT_remove_opposition_state_support = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support					
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_remove_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#600 "Jiangxi"
	WTT_remove_opposition_in_jiangxi = {
		icon = oppression
		visible = {
			WTT_is_ROOT_current_leader_of_china = yes
			600 = {
				WTT_can_select_state_remove_support_state = yes
			}
		}
		
		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_REMOVE_OPPOSITION_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075

		available = {
			600 = {
				WTT_can_select_state_remove_support_state = yes				
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_REMOVE_OPPOSITION
		}

	
		days_remove = global.days_remove_support?1337 #DAYS_UNTIL_REMOVE_SUPPORT
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 600
		} 
}
		
		fixed_random_seed = no

#REMOVE_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Rarely worth it if we have majority
			modifier = {
				add = -50
				600 = { has_state_flag = majority_political_platform_@PREV }
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					600 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#If I am close to losing... cut my life into pieces...
			modifier = {
				add = 75
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 10 }
			}

			#Opponent has enough points that I need to be scared
			modifier = {
				add = 25
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 20 }
			}

			#I will grab this state if I stomp out the opposition
			modifier = {
				add = 50
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					600 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = STATE_ID.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead = 600.political_platform_@PREV }
				check_variable = { majority_holder_lead < support_to_remove }
			}

			#It is not worth the points
			modifier = {
				add = -50

				#Don't calc this for own states
				600 = { NOT = { has_state_flag = majority_political_platform_@PREV } }

				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}

				check_variable = { support_to_remove < 600.political_platform_@PREV }
			}

			#Opponent is far ahead in state. Stomp elsewhere first
			modifier = {
				add = -25
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					600 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead_after_removal = 600.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead_after_removal = 600.political_platform_@PREV }
				subtract_from_temp_variable = { majority_holder_lead_after_removal = support_to_remove }

				check_variable = { majority_holder_lead_after_removal > 3 }
			}

			#Big states are more important
			modifier = {
				add = 10
				600 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#Opponent is too close for my liking
			modifier = {
				add = 10
				600 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 600.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 600.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 600.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
		}
#REMOVE_SUPPORT_AI_WIL_DO_END
		
		complete_effect = {

		}

		remove_effect = {
			600 = {
				custom_effect_tooltip = state_majority_country_rules
				custom_effect_tooltip = state_support_breakdown
				custom_effect_tooltip = remove_support_in_state_chance_modifiers

				#Remove support from opposition
				WTT_remove_opposition_state_support = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support					
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_remove_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#601 "Xikang"
	WTT_remove_opposition_in_xikang = {
		icon = oppression
		visible = {
			WTT_is_ROOT_current_leader_of_china = yes
			601 = {
				WTT_can_select_state_remove_support_state = yes
			}
		}
		
		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_REMOVE_OPPOSITION_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075

		available = {
			601 = {
				WTT_can_select_state_remove_support_state = yes				
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_REMOVE_OPPOSITION
		}

	
		days_remove = global.days_remove_support?1337 #DAYS_UNTIL_REMOVE_SUPPORT
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 601
		} 
}
		
		fixed_random_seed = no

#REMOVE_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Rarely worth it if we have majority
			modifier = {
				add = -50
				601 = { has_state_flag = majority_political_platform_@PREV }
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					601 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#If I am close to losing... cut my life into pieces...
			modifier = {
				add = 75
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 10 }
			}

			#Opponent has enough points that I need to be scared
			modifier = {
				add = 25
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 20 }
			}

			#I will grab this state if I stomp out the opposition
			modifier = {
				add = 50
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					601 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = STATE_ID.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead = 601.political_platform_@PREV }
				check_variable = { majority_holder_lead < support_to_remove }
			}

			#It is not worth the points
			modifier = {
				add = -50

				#Don't calc this for own states
				601 = { NOT = { has_state_flag = majority_political_platform_@PREV } }

				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}

				check_variable = { support_to_remove < 601.political_platform_@PREV }
			}

			#Opponent is far ahead in state. Stomp elsewhere first
			modifier = {
				add = -25
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					601 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead_after_removal = 601.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead_after_removal = 601.political_platform_@PREV }
				subtract_from_temp_variable = { majority_holder_lead_after_removal = support_to_remove }

				check_variable = { majority_holder_lead_after_removal > 3 }
			}

			#Big states are more important
			modifier = {
				add = 10
				601 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#Opponent is too close for my liking
			modifier = {
				add = 10
				601 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 601.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 601.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 601.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
		}
#REMOVE_SUPPORT_AI_WIL_DO_END
		
		complete_effect = {

		}

		remove_effect = {
			601 = {
				custom_effect_tooltip = state_majority_country_rules
				custom_effect_tooltip = state_support_breakdown
				custom_effect_tooltip = remove_support_in_state_chance_modifiers

				#Remove support from opposition
				WTT_remove_opposition_state_support = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support					
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_remove_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#602 "Hunan"
	WTT_remove_opposition_in_hunan = {
		icon = oppression
		visible = {
			WTT_is_ROOT_current_leader_of_china = yes
			602 = {
				WTT_can_select_state_remove_support_state = yes
			}
		}
		
		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_REMOVE_OPPOSITION_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075

		available = {
			602 = {
				WTT_can_select_state_remove_support_state = yes				
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_REMOVE_OPPOSITION
		}

	
		days_remove = global.days_remove_support?1337 #DAYS_UNTIL_REMOVE_SUPPORT
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 602
		} 
}
		
		fixed_random_seed = no

#REMOVE_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Rarely worth it if we have majority
			modifier = {
				add = -50
				602 = { has_state_flag = majority_political_platform_@PREV }
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					602 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#If I am close to losing... cut my life into pieces...
			modifier = {
				add = 75
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 10 }
			}

			#Opponent has enough points that I need to be scared
			modifier = {
				add = 25
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 20 }
			}

			#I will grab this state if I stomp out the opposition
			modifier = {
				add = 50
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					602 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = STATE_ID.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead = 602.political_platform_@PREV }
				check_variable = { majority_holder_lead < support_to_remove }
			}

			#It is not worth the points
			modifier = {
				add = -50

				#Don't calc this for own states
				602 = { NOT = { has_state_flag = majority_political_platform_@PREV } }

				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}

				check_variable = { support_to_remove < 602.political_platform_@PREV }
			}

			#Opponent is far ahead in state. Stomp elsewhere first
			modifier = {
				add = -25
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					602 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead_after_removal = 602.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead_after_removal = 602.political_platform_@PREV }
				subtract_from_temp_variable = { majority_holder_lead_after_removal = support_to_remove }

				check_variable = { majority_holder_lead_after_removal > 3 }
			}

			#Big states are more important
			modifier = {
				add = 10
				602 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#Opponent is too close for my liking
			modifier = {
				add = 10
				602 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 602.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 602.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 602.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
		}
#REMOVE_SUPPORT_AI_WIL_DO_END
		
		complete_effect = {

		}

		remove_effect = {
			602 = {
				custom_effect_tooltip = state_majority_country_rules
				custom_effect_tooltip = state_support_breakdown
				custom_effect_tooltip = remove_support_in_state_chance_modifiers

				#Remove support from opposition
				WTT_remove_opposition_state_support = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support					
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_remove_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#603 "Guizhou"
	WTT_remove_opposition_in_guizhou = {
		icon = oppression
		visible = {
			WTT_is_ROOT_current_leader_of_china = yes
			603 = {
				WTT_can_select_state_remove_support_state = yes
			}
		}
		
		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_REMOVE_OPPOSITION_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075

		available = {
			603 = {
				WTT_can_select_state_remove_support_state = yes				
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_REMOVE_OPPOSITION
		}

	
		days_remove = global.days_remove_support?1337 #DAYS_UNTIL_REMOVE_SUPPORT
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 603
		} 
}
		
		fixed_random_seed = no

#REMOVE_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Rarely worth it if we have majority
			modifier = {
				add = -50
				603 = { has_state_flag = majority_political_platform_@PREV }
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					603 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#If I am close to losing... cut my life into pieces...
			modifier = {
				add = 75
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 10 }
			}

			#Opponent has enough points that I need to be scared
			modifier = {
				add = 25
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 20 }
			}

			#I will grab this state if I stomp out the opposition
			modifier = {
				add = 50
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					603 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = STATE_ID.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead = 603.political_platform_@PREV }
				check_variable = { majority_holder_lead < support_to_remove }
			}

			#It is not worth the points
			modifier = {
				add = -50

				#Don't calc this for own states
				603 = { NOT = { has_state_flag = majority_political_platform_@PREV } }

				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}

				check_variable = { support_to_remove < 603.political_platform_@PREV }
			}

			#Opponent is far ahead in state. Stomp elsewhere first
			modifier = {
				add = -25
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					603 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead_after_removal = 603.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead_after_removal = 603.political_platform_@PREV }
				subtract_from_temp_variable = { majority_holder_lead_after_removal = support_to_remove }

				check_variable = { majority_holder_lead_after_removal > 3 }
			}

			#Big states are more important
			modifier = {
				add = 10
				603 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#Opponent is too close for my liking
			modifier = {
				add = 10
				603 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 603.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 603.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 603.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
		}
#REMOVE_SUPPORT_AI_WIL_DO_END
		
		complete_effect = {

		}

		remove_effect = {
			603 = {
				custom_effect_tooltip = state_majority_country_rules
				custom_effect_tooltip = state_support_breakdown
				custom_effect_tooltip = remove_support_in_state_chance_modifiers

				#Remove support from opposition
				WTT_remove_opposition_state_support = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support					
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_remove_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#605 "Sichuan"
	WTT_remove_opposition_in_sichuan = {
		icon = oppression
		visible = {
			WTT_is_ROOT_current_leader_of_china = yes
			605 = {
				WTT_can_select_state_remove_support_state = yes
			}
		}
		
		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_REMOVE_OPPOSITION_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075

		available = {
			605 = {
				WTT_can_select_state_remove_support_state = yes				
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_REMOVE_OPPOSITION
		}

	
		days_remove = global.days_remove_support?1337 #DAYS_UNTIL_REMOVE_SUPPORT
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 605
		} 
}
		
		fixed_random_seed = no

#REMOVE_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Rarely worth it if we have majority
			modifier = {
				add = -50
				605 = { has_state_flag = majority_political_platform_@PREV }
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					605 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#If I am close to losing... cut my life into pieces...
			modifier = {
				add = 75
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 10 }
			}

			#Opponent has enough points that I need to be scared
			modifier = {
				add = 25
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 20 }
			}

			#I will grab this state if I stomp out the opposition
			modifier = {
				add = 50
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					605 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = STATE_ID.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead = 605.political_platform_@PREV }
				check_variable = { majority_holder_lead < support_to_remove }
			}

			#It is not worth the points
			modifier = {
				add = -50

				#Don't calc this for own states
				605 = { NOT = { has_state_flag = majority_political_platform_@PREV } }

				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}

				check_variable = { support_to_remove < 605.political_platform_@PREV }
			}

			#Opponent is far ahead in state. Stomp elsewhere first
			modifier = {
				add = -25
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					605 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead_after_removal = 605.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead_after_removal = 605.political_platform_@PREV }
				subtract_from_temp_variable = { majority_holder_lead_after_removal = support_to_remove }

				check_variable = { majority_holder_lead_after_removal > 3 }
			}

			#Big states are more important
			modifier = {
				add = 10
				605 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#Opponent is too close for my liking
			modifier = {
				add = 10
				605 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 605.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 605.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 605.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
		}
#REMOVE_SUPPORT_AI_WIL_DO_END
		
		complete_effect = {

		}

		remove_effect = {
			605 = {
				custom_effect_tooltip = state_majority_country_rules
				custom_effect_tooltip = state_support_breakdown
				custom_effect_tooltip = remove_support_in_state_chance_modifiers

				#Remove support from opposition
				WTT_remove_opposition_state_support = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support					
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_remove_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#606 "Anhui"
	WTT_remove_opposition_in_anhui = {
		icon = oppression
		visible = {
			WTT_is_ROOT_current_leader_of_china = yes
			606 = {
				WTT_can_select_state_remove_support_state = yes
			}
		}
		
		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_REMOVE_OPPOSITION_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075

		available = {
			606 = {
				WTT_can_select_state_remove_support_state = yes				
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_REMOVE_OPPOSITION
		}

	
		days_remove = global.days_remove_support?1337 #DAYS_UNTIL_REMOVE_SUPPORT
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 606
		} 
}
		
		fixed_random_seed = no

#REMOVE_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Rarely worth it if we have majority
			modifier = {
				add = -50
				606 = { has_state_flag = majority_political_platform_@PREV }
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					606 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#If I am close to losing... cut my life into pieces...
			modifier = {
				add = 75
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 10 }
			}

			#Opponent has enough points that I need to be scared
			modifier = {
				add = 25
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 20 }
			}

			#I will grab this state if I stomp out the opposition
			modifier = {
				add = 50
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					606 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = STATE_ID.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead = 606.political_platform_@PREV }
				check_variable = { majority_holder_lead < support_to_remove }
			}

			#It is not worth the points
			modifier = {
				add = -50

				#Don't calc this for own states
				606 = { NOT = { has_state_flag = majority_political_platform_@PREV } }

				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}

				check_variable = { support_to_remove < 606.political_platform_@PREV }
			}

			#Opponent is far ahead in state. Stomp elsewhere first
			modifier = {
				add = -25
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					606 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead_after_removal = 606.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead_after_removal = 606.political_platform_@PREV }
				subtract_from_temp_variable = { majority_holder_lead_after_removal = support_to_remove }

				check_variable = { majority_holder_lead_after_removal > 3 }
			}

			#Big states are more important
			modifier = {
				add = 10
				606 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#Opponent is too close for my liking
			modifier = {
				add = 10
				606 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 606.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 606.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 606.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
		}
#REMOVE_SUPPORT_AI_WIL_DO_END
		
		complete_effect = {

		}

		remove_effect = {
			606 = {
				custom_effect_tooltip = state_majority_country_rules
				custom_effect_tooltip = state_support_breakdown
				custom_effect_tooltip = remove_support_in_state_chance_modifiers

				#Remove support from opposition
				WTT_remove_opposition_state_support = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support					
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_remove_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#607 "Henan"
	WTT_remove_opposition_in_henan = {
		icon = oppression
		visible = {
			WTT_is_ROOT_current_leader_of_china = yes
			607 = {
				WTT_can_select_state_remove_support_state = yes
			}
		}
		
		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_REMOVE_OPPOSITION_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075

		available = {
			607 = {
				WTT_can_select_state_remove_support_state = yes				
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_REMOVE_OPPOSITION
		}

	
		days_remove = global.days_remove_support?1337 #DAYS_UNTIL_REMOVE_SUPPORT
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 607
		} 
}
		
		fixed_random_seed = no

#REMOVE_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Rarely worth it if we have majority
			modifier = {
				add = -50
				607 = { has_state_flag = majority_political_platform_@PREV }
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					607 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#If I am close to losing... cut my life into pieces...
			modifier = {
				add = 75
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 10 }
			}

			#Opponent has enough points that I need to be scared
			modifier = {
				add = 25
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 20 }
			}

			#I will grab this state if I stomp out the opposition
			modifier = {
				add = 50
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					607 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = STATE_ID.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead = 607.political_platform_@PREV }
				check_variable = { majority_holder_lead < support_to_remove }
			}

			#It is not worth the points
			modifier = {
				add = -50

				#Don't calc this for own states
				607 = { NOT = { has_state_flag = majority_political_platform_@PREV } }

				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}

				check_variable = { support_to_remove < 607.political_platform_@PREV }
			}

			#Opponent is far ahead in state. Stomp elsewhere first
			modifier = {
				add = -25
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					607 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead_after_removal = 607.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead_after_removal = 607.political_platform_@PREV }
				subtract_from_temp_variable = { majority_holder_lead_after_removal = support_to_remove }

				check_variable = { majority_holder_lead_after_removal > 3 }
			}

			#Big states are more important
			modifier = {
				add = 10
				607 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#Opponent is too close for my liking
			modifier = {
				add = 10
				607 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 607.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 607.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 607.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
		}
#REMOVE_SUPPORT_AI_WIL_DO_END
		
		complete_effect = {

		}

		remove_effect = {
			607 = {
				custom_effect_tooltip = state_majority_country_rules
				custom_effect_tooltip = state_support_breakdown
				custom_effect_tooltip = remove_support_in_state_chance_modifiers

				#Remove support from opposition
				WTT_remove_opposition_state_support = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support					
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_remove_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#608 "Beijing"
	WTT_remove_opposition_in_beijing = {
		icon = oppression
		visible = {
			WTT_is_ROOT_current_leader_of_china = yes
			608 = {
				WTT_can_select_state_remove_support_state = yes
			}
		}
		
		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_REMOVE_OPPOSITION_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075

		available = {
			608 = {
				WTT_can_select_state_remove_support_state = yes				
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_REMOVE_OPPOSITION
		}

	
		days_remove = global.days_remove_support?1337 #DAYS_UNTIL_REMOVE_SUPPORT
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 608
		} 
}
		
		fixed_random_seed = no

#REMOVE_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Rarely worth it if we have majority
			modifier = {
				add = -50
				608 = { has_state_flag = majority_political_platform_@PREV }
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					608 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#If I am close to losing... cut my life into pieces...
			modifier = {
				add = 75
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 10 }
			}

			#Opponent has enough points that I need to be scared
			modifier = {
				add = 25
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 20 }
			}

			#I will grab this state if I stomp out the opposition
			modifier = {
				add = 50
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					608 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = STATE_ID.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead = 608.political_platform_@PREV }
				check_variable = { majority_holder_lead < support_to_remove }
			}

			#It is not worth the points
			modifier = {
				add = -50

				#Don't calc this for own states
				608 = { NOT = { has_state_flag = majority_political_platform_@PREV } }

				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}

				check_variable = { support_to_remove < 608.political_platform_@PREV }
			}

			#Opponent is far ahead in state. Stomp elsewhere first
			modifier = {
				add = -25
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					608 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead_after_removal = 608.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead_after_removal = 608.political_platform_@PREV }
				subtract_from_temp_variable = { majority_holder_lead_after_removal = support_to_remove }

				check_variable = { majority_holder_lead_after_removal > 3 }
			}

			#Big states are more important
			modifier = {
				add = 10
				608 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#Opponent is too close for my liking
			modifier = {
				add = 10
				608 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 608.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 608.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 608.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
		}
#REMOVE_SUPPORT_AI_WIL_DO_END
		
		complete_effect = {

		}

		remove_effect = {
			608 = {
				custom_effect_tooltip = state_majority_country_rules
				custom_effect_tooltip = state_support_breakdown
				custom_effect_tooltip = remove_support_in_state_chance_modifiers

				#Remove support from opposition
				WTT_remove_opposition_state_support = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support					
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_remove_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#613 "Shanghai"
	WTT_remove_opposition_in_shanghai = {
		icon = oppression
		visible = {
			WTT_is_ROOT_current_leader_of_china = yes
			613 = {
				WTT_can_select_state_remove_support_state = yes
			}
		}
		
		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_REMOVE_OPPOSITION_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075

		available = {
			613 = {
				WTT_can_select_state_remove_support_state = yes				
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_REMOVE_OPPOSITION
		}

	
		days_remove = global.days_remove_support?1337 #DAYS_UNTIL_REMOVE_SUPPORT
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 613
		} 
}
		
		fixed_random_seed = no

#REMOVE_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Rarely worth it if we have majority
			modifier = {
				add = -50
				613 = { has_state_flag = majority_political_platform_@PREV }
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					613 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#If I am close to losing... cut my life into pieces...
			modifier = {
				add = 75
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 10 }
			}

			#Opponent has enough points that I need to be scared
			modifier = {
				add = 25
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 20 }
			}

			#I will grab this state if I stomp out the opposition
			modifier = {
				add = 50
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					613 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = STATE_ID.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead = 613.political_platform_@PREV }
				check_variable = { majority_holder_lead < support_to_remove }
			}

			#It is not worth the points
			modifier = {
				add = -50

				#Don't calc this for own states
				613 = { NOT = { has_state_flag = majority_political_platform_@PREV } }

				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}

				check_variable = { support_to_remove < 613.political_platform_@PREV }
			}

			#Opponent is far ahead in state. Stomp elsewhere first
			modifier = {
				add = -25
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					613 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead_after_removal = 613.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead_after_removal = 613.political_platform_@PREV }
				subtract_from_temp_variable = { majority_holder_lead_after_removal = support_to_remove }

				check_variable = { majority_holder_lead_after_removal > 3 }
			}

			#Big states are more important
			modifier = {
				add = 10
				613 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#Opponent is too close for my liking
			modifier = {
				add = 10
				613 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 613.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 613.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 613.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
		}
#REMOVE_SUPPORT_AI_WIL_DO_END
		
		complete_effect = {

		}

		remove_effect = {
			613 = {
				custom_effect_tooltip = state_majority_country_rules
				custom_effect_tooltip = state_support_breakdown
				custom_effect_tooltip = remove_support_in_state_chance_modifiers

				#Remove support from opposition
				WTT_remove_opposition_state_support = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support					
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_remove_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#614 "Hebei"
	WTT_remove_opposition_in_hebei = {
		icon = oppression
		visible = {
			WTT_is_ROOT_current_leader_of_china = yes
			614 = {
				WTT_can_select_state_remove_support_state = yes
			}
		}
		
		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_REMOVE_OPPOSITION_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075

		available = {
			614 = {
				WTT_can_select_state_remove_support_state = yes				
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_REMOVE_OPPOSITION
		}

	
		days_remove = global.days_remove_support?1337 #DAYS_UNTIL_REMOVE_SUPPORT
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 614
		} 
}
		
		fixed_random_seed = no

#REMOVE_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Rarely worth it if we have majority
			modifier = {
				add = -50
				614 = { has_state_flag = majority_political_platform_@PREV }
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					614 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#If I am close to losing... cut my life into pieces...
			modifier = {
				add = 75
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 10 }
			}

			#Opponent has enough points that I need to be scared
			modifier = {
				add = 25
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 20 }
			}

			#I will grab this state if I stomp out the opposition
			modifier = {
				add = 50
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					614 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = STATE_ID.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead = 614.political_platform_@PREV }
				check_variable = { majority_holder_lead < support_to_remove }
			}

			#It is not worth the points
			modifier = {
				add = -50

				#Don't calc this for own states
				614 = { NOT = { has_state_flag = majority_political_platform_@PREV } }

				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}

				check_variable = { support_to_remove < 614.political_platform_@PREV }
			}

			#Opponent is far ahead in state. Stomp elsewhere first
			modifier = {
				add = -25
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					614 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead_after_removal = 614.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead_after_removal = 614.political_platform_@PREV }
				subtract_from_temp_variable = { majority_holder_lead_after_removal = support_to_remove }

				check_variable = { majority_holder_lead_after_removal > 3 }
			}

			#Big states are more important
			modifier = {
				add = 10
				614 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#Opponent is too close for my liking
			modifier = {
				add = 10
				614 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 614.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 614.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 614.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
		}
#REMOVE_SUPPORT_AI_WIL_DO_END
		
		complete_effect = {

		}

		remove_effect = {
			614 = {
				custom_effect_tooltip = state_majority_country_rules
				custom_effect_tooltip = state_support_breakdown
				custom_effect_tooltip = remove_support_in_state_chance_modifiers

				#Remove support from opposition
				WTT_remove_opposition_state_support = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support					
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_remove_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#620 "Hubei"
	WTT_remove_opposition_in_hubei = {
		icon = oppression
		visible = {
			WTT_is_ROOT_current_leader_of_china = yes
			620 = {
				WTT_can_select_state_remove_support_state = yes
			}
		}
		
		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_REMOVE_OPPOSITION_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075

		available = {
			620 = {
				WTT_can_select_state_remove_support_state = yes				
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_REMOVE_OPPOSITION
		}

	
		days_remove = global.days_remove_support?1337 #DAYS_UNTIL_REMOVE_SUPPORT
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 620
		} 
}
		
		fixed_random_seed = no

#REMOVE_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Rarely worth it if we have majority
			modifier = {
				add = -50
				620 = { has_state_flag = majority_political_platform_@PREV }
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					620 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#If I am close to losing... cut my life into pieces...
			modifier = {
				add = 75
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 10 }
			}

			#Opponent has enough points that I need to be scared
			modifier = {
				add = 25
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 20 }
			}

			#I will grab this state if I stomp out the opposition
			modifier = {
				add = 50
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					620 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = STATE_ID.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead = 620.political_platform_@PREV }
				check_variable = { majority_holder_lead < support_to_remove }
			}

			#It is not worth the points
			modifier = {
				add = -50

				#Don't calc this for own states
				620 = { NOT = { has_state_flag = majority_political_platform_@PREV } }

				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}

				check_variable = { support_to_remove < 620.political_platform_@PREV }
			}

			#Opponent is far ahead in state. Stomp elsewhere first
			modifier = {
				add = -25
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					620 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead_after_removal = 620.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead_after_removal = 620.political_platform_@PREV }
				subtract_from_temp_variable = { majority_holder_lead_after_removal = support_to_remove }

				check_variable = { majority_holder_lead_after_removal > 3 }
			}

			#Big states are more important
			modifier = {
				add = 10
				620 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#Opponent is too close for my liking
			modifier = {
				add = 10
				620 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 620.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 620.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 620.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
		}
#REMOVE_SUPPORT_AI_WIL_DO_END
		
		complete_effect = {

		}

		remove_effect = {
			620 = {
				custom_effect_tooltip = state_majority_country_rules
				custom_effect_tooltip = state_support_breakdown
				custom_effect_tooltip = remove_support_in_state_chance_modifiers

				#Remove support from opposition
				WTT_remove_opposition_state_support = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support					
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_remove_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}


	#Shanxi
	#615 "Shanxi"
	WTT_remove_opposition_in_shanxi = {
		icon = oppression
		visible = {
			WTT_is_ROOT_current_leader_of_china = yes
			615 = {
				WTT_can_select_state_remove_support_state = yes
			}
		}
		
		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_REMOVE_OPPOSITION_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075

		available = {
			615 = {
				WTT_can_select_state_remove_support_state = yes				
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_REMOVE_OPPOSITION
		}

	
		days_remove = global.days_remove_support?1337 #DAYS_UNTIL_REMOVE_SUPPORT
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 615
		} 
}
		
		fixed_random_seed = no

#REMOVE_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Rarely worth it if we have majority
			modifier = {
				add = -50
				615 = { has_state_flag = majority_political_platform_@PREV }
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					615 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#If I am close to losing... cut my life into pieces...
			modifier = {
				add = 75
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 10 }
			}

			#Opponent has enough points that I need to be scared
			modifier = {
				add = 25
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 20 }
			}

			#I will grab this state if I stomp out the opposition
			modifier = {
				add = 50
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					615 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = STATE_ID.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead = 615.political_platform_@PREV }
				check_variable = { majority_holder_lead < support_to_remove }
			}

			#It is not worth the points
			modifier = {
				add = -50

				#Don't calc this for own states
				615 = { NOT = { has_state_flag = majority_political_platform_@PREV } }

				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}

				check_variable = { support_to_remove < 615.political_platform_@PREV }
			}

			#Opponent is far ahead in state. Stomp elsewhere first
			modifier = {
				add = -25
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					615 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead_after_removal = 615.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead_after_removal = 615.political_platform_@PREV }
				subtract_from_temp_variable = { majority_holder_lead_after_removal = support_to_remove }

				check_variable = { majority_holder_lead_after_removal > 3 }
			}

			#Big states are more important
			modifier = {
				add = 10
				615 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#Opponent is too close for my liking
			modifier = {
				add = 10
				615 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 615.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 615.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 615.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
		}
#REMOVE_SUPPORT_AI_WIL_DO_END
		
		complete_effect = {

		}

		remove_effect = {
			615 = {
				custom_effect_tooltip = state_majority_country_rules
				custom_effect_tooltip = state_support_breakdown
				custom_effect_tooltip = remove_support_in_state_chance_modifiers

				#Remove support from opposition
				WTT_remove_opposition_state_support = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support					
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_remove_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#621 "Suiyuan"
	WTT_remove_opposition_in_suiyuan = {
		icon = oppression
		visible = {
			WTT_is_ROOT_current_leader_of_china = yes
			621 = {
				WTT_can_select_state_remove_support_state = yes
			}
		}
		
		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_REMOVE_OPPOSITION_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075

		available = {
			621 = {
				WTT_can_select_state_remove_support_state = yes				
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_REMOVE_OPPOSITION
		}

	
		days_remove = global.days_remove_support?1337 #DAYS_UNTIL_REMOVE_SUPPORT
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 621
		} 
}
		
		fixed_random_seed = no

#REMOVE_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Rarely worth it if we have majority
			modifier = {
				add = -50
				621 = { has_state_flag = majority_political_platform_@PREV }
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					621 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#If I am close to losing... cut my life into pieces...
			modifier = {
				add = 75
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 10 }
			}

			#Opponent has enough points that I need to be scared
			modifier = {
				add = 25
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 20 }
			}

			#I will grab this state if I stomp out the opposition
			modifier = {
				add = 50
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					621 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = STATE_ID.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead = 621.political_platform_@PREV }
				check_variable = { majority_holder_lead < support_to_remove }
			}

			#It is not worth the points
			modifier = {
				add = -50

				#Don't calc this for own states
				621 = { NOT = { has_state_flag = majority_political_platform_@PREV } }

				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}

				check_variable = { support_to_remove < 621.political_platform_@PREV }
			}

			#Opponent is far ahead in state. Stomp elsewhere first
			modifier = {
				add = -25
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					621 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead_after_removal = 621.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead_after_removal = 621.political_platform_@PREV }
				subtract_from_temp_variable = { majority_holder_lead_after_removal = support_to_remove }

				check_variable = { majority_holder_lead_after_removal > 3 }
			}

			#Big states are more important
			modifier = {
				add = 10
				621 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#Opponent is too close for my liking
			modifier = {
				add = 10
				621 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 621.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 621.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 621.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
		}
#REMOVE_SUPPORT_AI_WIL_DO_END
		
		complete_effect = {

		}

		remove_effect = {
			621 = {
				custom_effect_tooltip = state_majority_country_rules
				custom_effect_tooltip = state_support_breakdown
				custom_effect_tooltip = remove_support_in_state_chance_modifiers

				#Remove support from opposition
				WTT_remove_opposition_state_support = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support					
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_remove_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}


	#Com China
	#622 "Shaanxi"
	WTT_remove_opposition_in_shaanxi = {
		icon = oppression
		visible = {
			WTT_is_ROOT_current_leader_of_china = yes
			622 = {
				WTT_can_select_state_remove_support_state = yes
			}
		}
		
		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_REMOVE_OPPOSITION_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075

		available = {
			622 = {
				WTT_can_select_state_remove_support_state = yes				
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_REMOVE_OPPOSITION
		}

	
		days_remove = global.days_remove_support?1337 #DAYS_UNTIL_REMOVE_SUPPORT
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 622
		} 
}
		
		fixed_random_seed = no

#REMOVE_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Rarely worth it if we have majority
			modifier = {
				add = -50
				622 = { has_state_flag = majority_political_platform_@PREV }
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					622 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#If I am close to losing... cut my life into pieces...
			modifier = {
				add = 75
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 10 }
			}

			#Opponent has enough points that I need to be scared
			modifier = {
				add = 25
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 20 }
			}

			#I will grab this state if I stomp out the opposition
			modifier = {
				add = 50
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					622 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = STATE_ID.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead = 622.political_platform_@PREV }
				check_variable = { majority_holder_lead < support_to_remove }
			}

			#It is not worth the points
			modifier = {
				add = -50

				#Don't calc this for own states
				622 = { NOT = { has_state_flag = majority_political_platform_@PREV } }

				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}

				check_variable = { support_to_remove < 622.political_platform_@PREV }
			}

			#Opponent is far ahead in state. Stomp elsewhere first
			modifier = {
				add = -25
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					622 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead_after_removal = 622.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead_after_removal = 622.political_platform_@PREV }
				subtract_from_temp_variable = { majority_holder_lead_after_removal = support_to_remove }

				check_variable = { majority_holder_lead_after_removal > 3 }
			}

			#Big states are more important
			modifier = {
				add = 10
				622 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#Opponent is too close for my liking
			modifier = {
				add = 10
				622 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 622.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 622.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 622.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
		}
#REMOVE_SUPPORT_AI_WIL_DO_END
		
		complete_effect = {

		}

		remove_effect = {
			622 = {
				custom_effect_tooltip = state_majority_country_rules
				custom_effect_tooltip = state_support_breakdown
				custom_effect_tooltip = remove_support_in_state_chance_modifiers

				#Remove support from opposition
				WTT_remove_opposition_state_support = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support					
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_remove_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}


	#Xibei San Ma
	#283 "Gansu"
	WTT_remove_opposition_in_gansu = {
		icon = oppression
		visible = {
			WTT_is_ROOT_current_leader_of_china = yes
			283 = {
				WTT_can_select_state_remove_support_state = yes
			}
		}
		
		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_REMOVE_OPPOSITION_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075

		available = {
			283 = {
				WTT_can_select_state_remove_support_state = yes				
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_REMOVE_OPPOSITION
		}

	
		days_remove = global.days_remove_support?1337 #DAYS_UNTIL_REMOVE_SUPPORT
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 283
		} 
}
		
		fixed_random_seed = no

#REMOVE_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Rarely worth it if we have majority
			modifier = {
				add = -50
				283 = { has_state_flag = majority_political_platform_@PREV }
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					283 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#If I am close to losing... cut my life into pieces...
			modifier = {
				add = 75
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 10 }
			}

			#Opponent has enough points that I need to be scared
			modifier = {
				add = 25
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 20 }
			}

			#I will grab this state if I stomp out the opposition
			modifier = {
				add = 50
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					283 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = STATE_ID.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead = 283.political_platform_@PREV }
				check_variable = { majority_holder_lead < support_to_remove }
			}

			#It is not worth the points
			modifier = {
				add = -50

				#Don't calc this for own states
				283 = { NOT = { has_state_flag = majority_political_platform_@PREV } }

				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}

				check_variable = { support_to_remove < 283.political_platform_@PREV }
			}

			#Opponent is far ahead in state. Stomp elsewhere first
			modifier = {
				add = -25
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					283 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead_after_removal = 283.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead_after_removal = 283.political_platform_@PREV }
				subtract_from_temp_variable = { majority_holder_lead_after_removal = support_to_remove }

				check_variable = { majority_holder_lead_after_removal > 3 }
			}

			#Big states are more important
			modifier = {
				add = 10
				283 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#Opponent is too close for my liking
			modifier = {
				add = 10
				283 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 283.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 283.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 283.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
		}
#REMOVE_SUPPORT_AI_WIL_DO_END
		
		complete_effect = {

		}

		remove_effect = {
			283 = {
				custom_effect_tooltip = state_majority_country_rules
				custom_effect_tooltip = state_support_breakdown
				custom_effect_tooltip = remove_support_in_state_chance_modifiers

				#Remove support from opposition
				WTT_remove_opposition_state_support = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support					
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_remove_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#604 "Qinghai"
	WTT_remove_opposition_in_qinghai = {
		icon = oppression
		visible = {
			WTT_is_ROOT_current_leader_of_china = yes
			604 = {
				WTT_can_select_state_remove_support_state = yes
			}
		}
		
		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_REMOVE_OPPOSITION_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075

		available = {
			604 = {
				WTT_can_select_state_remove_support_state = yes				
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_REMOVE_OPPOSITION
		}

	
		days_remove = global.days_remove_support?1337 #DAYS_UNTIL_REMOVE_SUPPORT
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 604
		} 
}
		
		fixed_random_seed = no

#REMOVE_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Rarely worth it if we have majority
			modifier = {
				add = -50
				604 = { has_state_flag = majority_political_platform_@PREV }
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					604 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#If I am close to losing... cut my life into pieces...
			modifier = {
				add = 75
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 10 }
			}

			#Opponent has enough points that I need to be scared
			modifier = {
				add = 25
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 20 }
			}

			#I will grab this state if I stomp out the opposition
			modifier = {
				add = 50
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					604 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = STATE_ID.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead = 604.political_platform_@PREV }
				check_variable = { majority_holder_lead < support_to_remove }
			}

			#It is not worth the points
			modifier = {
				add = -50

				#Don't calc this for own states
				604 = { NOT = { has_state_flag = majority_political_platform_@PREV } }

				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}

				check_variable = { support_to_remove < 604.political_platform_@PREV }
			}

			#Opponent is far ahead in state. Stomp elsewhere first
			modifier = {
				add = -25
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					604 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead_after_removal = 604.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead_after_removal = 604.political_platform_@PREV }
				subtract_from_temp_variable = { majority_holder_lead_after_removal = support_to_remove }

				check_variable = { majority_holder_lead_after_removal > 3 }
			}

			#Big states are more important
			modifier = {
				add = 10
				604 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#Opponent is too close for my liking
			modifier = {
				add = 10
				604 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 604.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 604.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 604.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
		}
#REMOVE_SUPPORT_AI_WIL_DO_END
		
		complete_effect = {

		}

		remove_effect = {
			604 = {
				custom_effect_tooltip = state_majority_country_rules
				custom_effect_tooltip = state_support_breakdown
				custom_effect_tooltip = remove_support_in_state_chance_modifiers

				#Remove support from opposition
				WTT_remove_opposition_state_support = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support					
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_remove_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#616 "Ningxia"
	WTT_remove_opposition_in_ningxia = {
		icon = oppression
		visible = {
			WTT_is_ROOT_current_leader_of_china = yes
			616 = {
				WTT_can_select_state_remove_support_state = yes
			}
		}
		
		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_REMOVE_OPPOSITION_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075

		available = {
			616 = {
				WTT_can_select_state_remove_support_state = yes				
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_REMOVE_OPPOSITION
		}

	
		days_remove = global.days_remove_support?1337 #DAYS_UNTIL_REMOVE_SUPPORT
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 616
		} 
}
		
		fixed_random_seed = no

#REMOVE_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Rarely worth it if we have majority
			modifier = {
				add = -50
				616 = { has_state_flag = majority_political_platform_@PREV }
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					616 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#If I am close to losing... cut my life into pieces...
			modifier = {
				add = 75
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 10 }
			}

			#Opponent has enough points that I need to be scared
			modifier = {
				add = 25
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 20 }
			}

			#I will grab this state if I stomp out the opposition
			modifier = {
				add = 50
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					616 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = STATE_ID.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead = 616.political_platform_@PREV }
				check_variable = { majority_holder_lead < support_to_remove }
			}

			#It is not worth the points
			modifier = {
				add = -50

				#Don't calc this for own states
				616 = { NOT = { has_state_flag = majority_political_platform_@PREV } }

				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}

				check_variable = { support_to_remove < 616.political_platform_@PREV }
			}

			#Opponent is far ahead in state. Stomp elsewhere first
			modifier = {
				add = -25
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					616 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead_after_removal = 616.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead_after_removal = 616.political_platform_@PREV }
				subtract_from_temp_variable = { majority_holder_lead_after_removal = support_to_remove }

				check_variable = { majority_holder_lead_after_removal > 3 }
			}

			#Big states are more important
			modifier = {
				add = 10
				616 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#Opponent is too close for my liking
			modifier = {
				add = 10
				616 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 616.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 616.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 616.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
		}
#REMOVE_SUPPORT_AI_WIL_DO_END
		
		complete_effect = {

		}

		remove_effect = {
			616 = {
				custom_effect_tooltip = state_majority_country_rules
				custom_effect_tooltip = state_support_breakdown
				custom_effect_tooltip = remove_support_in_state_chance_modifiers

				#Remove support from opposition
				WTT_remove_opposition_state_support = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support					
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_remove_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}


	#Sinkiang
	#287 "Taklamakan"
	WTT_remove_opposition_in_taklamakan = {
		icon = oppression
		visible = {
			WTT_is_ROOT_current_leader_of_china = yes
			287 = {
				WTT_can_select_state_remove_support_state = yes
			}
		}
		
		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_REMOVE_OPPOSITION_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075

		available = {
			287 = {
				WTT_can_select_state_remove_support_state = yes				
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_REMOVE_OPPOSITION
		}

	
		days_remove = global.days_remove_support?1337 #DAYS_UNTIL_REMOVE_SUPPORT
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 287
		} 
}
		
		fixed_random_seed = no

#REMOVE_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Rarely worth it if we have majority
			modifier = {
				add = -50
				287 = { has_state_flag = majority_political_platform_@PREV }
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					287 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#If I am close to losing... cut my life into pieces...
			modifier = {
				add = 75
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 10 }
			}

			#Opponent has enough points that I need to be scared
			modifier = {
				add = 25
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 20 }
			}

			#I will grab this state if I stomp out the opposition
			modifier = {
				add = 50
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					287 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = STATE_ID.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead = 287.political_platform_@PREV }
				check_variable = { majority_holder_lead < support_to_remove }
			}

			#It is not worth the points
			modifier = {
				add = -50

				#Don't calc this for own states
				287 = { NOT = { has_state_flag = majority_political_platform_@PREV } }

				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}

				check_variable = { support_to_remove < 287.political_platform_@PREV }
			}

			#Opponent is far ahead in state. Stomp elsewhere first
			modifier = {
				add = -25
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					287 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead_after_removal = 287.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead_after_removal = 287.political_platform_@PREV }
				subtract_from_temp_variable = { majority_holder_lead_after_removal = support_to_remove }

				check_variable = { majority_holder_lead_after_removal > 3 }
			}

			#Big states are more important
			modifier = {
				add = 10
				287 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#Opponent is too close for my liking
			modifier = {
				add = 10
				287 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 287.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 287.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 287.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
		}
#REMOVE_SUPPORT_AI_WIL_DO_END
		
		complete_effect = {

		}

		remove_effect = {
			287 = {
				custom_effect_tooltip = state_majority_country_rules
				custom_effect_tooltip = state_support_breakdown
				custom_effect_tooltip = remove_support_in_state_chance_modifiers

				#Remove support from opposition
				WTT_remove_opposition_state_support = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support					
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_remove_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#617 "Urumqi"
	WTT_remove_opposition_in_urumqi = {
		icon = oppression
		visible = {
			WTT_is_ROOT_current_leader_of_china = yes
			617 = {
				WTT_can_select_state_remove_support_state = yes
			}
		}
		
		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_REMOVE_OPPOSITION_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075

		available = {
			617 = {
				WTT_can_select_state_remove_support_state = yes				
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_REMOVE_OPPOSITION
		}

	
		days_remove = global.days_remove_support?1337 #DAYS_UNTIL_REMOVE_SUPPORT
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 617
		} 
}
		
		fixed_random_seed = no

#REMOVE_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Rarely worth it if we have majority
			modifier = {
				add = -50
				617 = { has_state_flag = majority_political_platform_@PREV }
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					617 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#If I am close to losing... cut my life into pieces...
			modifier = {
				add = 75
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 10 }
			}

			#Opponent has enough points that I need to be scared
			modifier = {
				add = 25
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 20 }
			}

			#I will grab this state if I stomp out the opposition
			modifier = {
				add = 50
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					617 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = STATE_ID.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead = 617.political_platform_@PREV }
				check_variable = { majority_holder_lead < support_to_remove }
			}

			#It is not worth the points
			modifier = {
				add = -50

				#Don't calc this for own states
				617 = { NOT = { has_state_flag = majority_political_platform_@PREV } }

				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}

				check_variable = { support_to_remove < 617.political_platform_@PREV }
			}

			#Opponent is far ahead in state. Stomp elsewhere first
			modifier = {
				add = -25
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					617 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead_after_removal = 617.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead_after_removal = 617.political_platform_@PREV }
				subtract_from_temp_variable = { majority_holder_lead_after_removal = support_to_remove }

				check_variable = { majority_holder_lead_after_removal > 3 }
			}

			#Big states are more important
			modifier = {
				add = 10
				617 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#Opponent is too close for my liking
			modifier = {
				add = 10
				617 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 617.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 617.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 617.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
		}
#REMOVE_SUPPORT_AI_WIL_DO_END
		
		complete_effect = {

		}

		remove_effect = {
			617 = {
				custom_effect_tooltip = state_majority_country_rules
				custom_effect_tooltip = state_support_breakdown
				custom_effect_tooltip = remove_support_in_state_chance_modifiers

				#Remove support from opposition
				WTT_remove_opposition_state_support = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support					
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_remove_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#618 "Dzungaria"
	WTT_remove_opposition_in_dzungaria = {
		icon = oppression
		visible = {
			WTT_is_ROOT_current_leader_of_china = yes
			618 = {
				WTT_can_select_state_remove_support_state = yes
			}
		}
		
		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_REMOVE_OPPOSITION_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075

		available = {
			618 = {
				WTT_can_select_state_remove_support_state = yes				
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_REMOVE_OPPOSITION
		}

	
		days_remove = global.days_remove_support?1337 #DAYS_UNTIL_REMOVE_SUPPORT
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 618
		} 
}
		
		fixed_random_seed = no

#REMOVE_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Rarely worth it if we have majority
			modifier = {
				add = -50
				618 = { has_state_flag = majority_political_platform_@PREV }
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					618 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#If I am close to losing... cut my life into pieces...
			modifier = {
				add = 75
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 10 }
			}

			#Opponent has enough points that I need to be scared
			modifier = {
				add = 25
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 20 }
			}

			#I will grab this state if I stomp out the opposition
			modifier = {
				add = 50
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					618 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = STATE_ID.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead = 618.political_platform_@PREV }
				check_variable = { majority_holder_lead < support_to_remove }
			}

			#It is not worth the points
			modifier = {
				add = -50

				#Don't calc this for own states
				618 = { NOT = { has_state_flag = majority_political_platform_@PREV } }

				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}

				check_variable = { support_to_remove < 618.political_platform_@PREV }
			}

			#Opponent is far ahead in state. Stomp elsewhere first
			modifier = {
				add = -25
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					618 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead_after_removal = 618.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead_after_removal = 618.political_platform_@PREV }
				subtract_from_temp_variable = { majority_holder_lead_after_removal = support_to_remove }

				check_variable = { majority_holder_lead_after_removal > 3 }
			}

			#Big states are more important
			modifier = {
				add = 10
				618 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#Opponent is too close for my liking
			modifier = {
				add = 10
				618 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 618.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 618.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 618.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
		}
#REMOVE_SUPPORT_AI_WIL_DO_END
		
		complete_effect = {

		}

		remove_effect = {
			618 = {
				custom_effect_tooltip = state_majority_country_rules
				custom_effect_tooltip = state_support_breakdown
				custom_effect_tooltip = remove_support_in_state_chance_modifiers

				#Remove support from opposition
				WTT_remove_opposition_state_support = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support					
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_remove_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#619 "Yarkand"
	WTT_remove_opposition_in_yarkand = {
		icon = oppression
		visible = {
			WTT_is_ROOT_current_leader_of_china = yes
			619 = {
				WTT_can_select_state_remove_support_state = yes
			}
		}
		
		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_REMOVE_OPPOSITION_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075

		available = {
			619 = {
				WTT_can_select_state_remove_support_state = yes				
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_REMOVE_OPPOSITION
		}

	
		days_remove = global.days_remove_support?1337 #DAYS_UNTIL_REMOVE_SUPPORT
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 619
		} 
}
		
		fixed_random_seed = no

#REMOVE_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Rarely worth it if we have majority
			modifier = {
				add = -50
				619 = { has_state_flag = majority_political_platform_@PREV }
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					619 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#If I am close to losing... cut my life into pieces...
			modifier = {
				add = 75
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 10 }
			}

			#Opponent has enough points that I need to be scared
			modifier = {
				add = 25
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 20 }
			}

			#I will grab this state if I stomp out the opposition
			modifier = {
				add = 50
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					619 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = STATE_ID.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead = 619.political_platform_@PREV }
				check_variable = { majority_holder_lead < support_to_remove }
			}

			#It is not worth the points
			modifier = {
				add = -50

				#Don't calc this for own states
				619 = { NOT = { has_state_flag = majority_political_platform_@PREV } }

				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}

				check_variable = { support_to_remove < 619.political_platform_@PREV }
			}

			#Opponent is far ahead in state. Stomp elsewhere first
			modifier = {
				add = -25
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					619 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead_after_removal = 619.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead_after_removal = 619.political_platform_@PREV }
				subtract_from_temp_variable = { majority_holder_lead_after_removal = support_to_remove }

				check_variable = { majority_holder_lead_after_removal > 3 }
			}

			#Big states are more important
			modifier = {
				add = 10
				619 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#Opponent is too close for my liking
			modifier = {
				add = 10
				619 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 619.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 619.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 619.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
		}
#REMOVE_SUPPORT_AI_WIL_DO_END
		
		complete_effect = {

		}

		remove_effect = {
			619 = {
				custom_effect_tooltip = state_majority_country_rules
				custom_effect_tooltip = state_support_breakdown
				custom_effect_tooltip = remove_support_in_state_chance_modifiers

				#Remove support from opposition
				WTT_remove_opposition_state_support = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support					
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_remove_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}


	#Yunnan
	#325 "Yunnan"
	WTT_remove_opposition_in_yunnan = {
		icon = oppression
		visible = {
			WTT_is_ROOT_current_leader_of_china = yes
			325 = {
				WTT_can_select_state_remove_support_state = yes
			}
		}
		
		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_REMOVE_OPPOSITION_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075

		available = {
			325 = {
				WTT_can_select_state_remove_support_state = yes				
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_REMOVE_OPPOSITION
		}

	
		days_remove = global.days_remove_support?1337 #DAYS_UNTIL_REMOVE_SUPPORT
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 325
		} 
}
		
		fixed_random_seed = no

#REMOVE_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Rarely worth it if we have majority
			modifier = {
				add = -50
				325 = { has_state_flag = majority_political_platform_@PREV }
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					325 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#If I am close to losing... cut my life into pieces...
			modifier = {
				add = 75
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 10 }
			}

			#Opponent has enough points that I need to be scared
			modifier = {
				add = 25
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 20 }
			}

			#I will grab this state if I stomp out the opposition
			modifier = {
				add = 50
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					325 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = STATE_ID.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead = 325.political_platform_@PREV }
				check_variable = { majority_holder_lead < support_to_remove }
			}

			#It is not worth the points
			modifier = {
				add = -50

				#Don't calc this for own states
				325 = { NOT = { has_state_flag = majority_political_platform_@PREV } }

				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}

				check_variable = { support_to_remove < 325.political_platform_@PREV }
			}

			#Opponent is far ahead in state. Stomp elsewhere first
			modifier = {
				add = -25
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					325 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead_after_removal = 325.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead_after_removal = 325.political_platform_@PREV }
				subtract_from_temp_variable = { majority_holder_lead_after_removal = support_to_remove }

				check_variable = { majority_holder_lead_after_removal > 3 }
			}

			#Big states are more important
			modifier = {
				add = 10
				325 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#Opponent is too close for my liking
			modifier = {
				add = 10
				325 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 325.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 325.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 325.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
		}
#REMOVE_SUPPORT_AI_WIL_DO_END
		
		complete_effect = {

		}

		remove_effect = {
			325 = {
				custom_effect_tooltip = state_majority_country_rules
				custom_effect_tooltip = state_support_breakdown
				custom_effect_tooltip = remove_support_in_state_chance_modifiers

				#Remove support from opposition
				WTT_remove_opposition_state_support = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support					
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_remove_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}


	#Guangxi Clique
	#591 "Hainan"
	WTT_remove_opposition_in_hainan = {
		icon = oppression
		visible = {
			WTT_is_ROOT_current_leader_of_china = yes
			591 = {
				WTT_can_select_state_remove_support_state = yes
			}
		}
		
		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_REMOVE_OPPOSITION_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075

		available = {
			591 = {
				WTT_can_select_state_remove_support_state = yes				
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_REMOVE_OPPOSITION
		}

	
		days_remove = global.days_remove_support?1337 #DAYS_UNTIL_REMOVE_SUPPORT
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 591
		} 
}
		
		fixed_random_seed = no

#REMOVE_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Rarely worth it if we have majority
			modifier = {
				add = -50
				591 = { has_state_flag = majority_political_platform_@PREV }
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					591 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#If I am close to losing... cut my life into pieces...
			modifier = {
				add = 75
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 10 }
			}

			#Opponent has enough points that I need to be scared
			modifier = {
				add = 25
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 20 }
			}

			#I will grab this state if I stomp out the opposition
			modifier = {
				add = 50
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					591 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = STATE_ID.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead = 591.political_platform_@PREV }
				check_variable = { majority_holder_lead < support_to_remove }
			}

			#It is not worth the points
			modifier = {
				add = -50

				#Don't calc this for own states
				591 = { NOT = { has_state_flag = majority_political_platform_@PREV } }

				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}

				check_variable = { support_to_remove < 591.political_platform_@PREV }
			}

			#Opponent is far ahead in state. Stomp elsewhere first
			modifier = {
				add = -25
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					591 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead_after_removal = 591.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead_after_removal = 591.political_platform_@PREV }
				subtract_from_temp_variable = { majority_holder_lead_after_removal = support_to_remove }

				check_variable = { majority_holder_lead_after_removal > 3 }
			}

			#Big states are more important
			modifier = {
				add = 10
				591 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#Opponent is too close for my liking
			modifier = {
				add = 10
				591 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 591.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 591.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 591.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
		}
#REMOVE_SUPPORT_AI_WIL_DO_END
		
		complete_effect = {

		}

		remove_effect = {
			591 = {
				custom_effect_tooltip = state_majority_country_rules
				custom_effect_tooltip = state_support_breakdown
				custom_effect_tooltip = remove_support_in_state_chance_modifiers

				#Remove support from opposition
				WTT_remove_opposition_state_support = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support					
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_remove_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#592 "Guangzhou"
	WTT_remove_opposition_in_guangzhou = {
		icon = oppression
		visible = {
			WTT_is_ROOT_current_leader_of_china = yes
			592 = {
				WTT_can_select_state_remove_support_state = yes
			}
		}
		
		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_REMOVE_OPPOSITION_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075

		available = {
			592 = {
				WTT_can_select_state_remove_support_state = yes				
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_REMOVE_OPPOSITION
		}

	
		days_remove = global.days_remove_support?1337 #DAYS_UNTIL_REMOVE_SUPPORT
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 592
		} 
}
		
		fixed_random_seed = no

#REMOVE_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Rarely worth it if we have majority
			modifier = {
				add = -50
				592 = { has_state_flag = majority_political_platform_@PREV }
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					592 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#If I am close to losing... cut my life into pieces...
			modifier = {
				add = 75
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 10 }
			}

			#Opponent has enough points that I need to be scared
			modifier = {
				add = 25
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 20 }
			}

			#I will grab this state if I stomp out the opposition
			modifier = {
				add = 50
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					592 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = STATE_ID.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead = 592.political_platform_@PREV }
				check_variable = { majority_holder_lead < support_to_remove }
			}

			#It is not worth the points
			modifier = {
				add = -50

				#Don't calc this for own states
				592 = { NOT = { has_state_flag = majority_political_platform_@PREV } }

				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}

				check_variable = { support_to_remove < 592.political_platform_@PREV }
			}

			#Opponent is far ahead in state. Stomp elsewhere first
			modifier = {
				add = -25
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					592 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead_after_removal = 592.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead_after_removal = 592.political_platform_@PREV }
				subtract_from_temp_variable = { majority_holder_lead_after_removal = support_to_remove }

				check_variable = { majority_holder_lead_after_removal > 3 }
			}

			#Big states are more important
			modifier = {
				add = 10
				592 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#Opponent is too close for my liking
			modifier = {
				add = 10
				592 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 592.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 592.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 592.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
		}
#REMOVE_SUPPORT_AI_WIL_DO_END
		
		complete_effect = {

		}

		remove_effect = {
			592 = {
				custom_effect_tooltip = state_majority_country_rules
				custom_effect_tooltip = state_support_breakdown
				custom_effect_tooltip = remove_support_in_state_chance_modifiers

				#Remove support from opposition
				WTT_remove_opposition_state_support = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support					
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_remove_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#593 "Guangdong"
	WTT_remove_opposition_in_guangdong = {
		icon = oppression
		visible = {
			WTT_is_ROOT_current_leader_of_china = yes
			593 = {
				WTT_can_select_state_remove_support_state = yes
			}
		}
		
		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_REMOVE_OPPOSITION_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075

		available = {
			593 = {
				WTT_can_select_state_remove_support_state = yes				
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_REMOVE_OPPOSITION
		}

	
		days_remove = global.days_remove_support?1337 #DAYS_UNTIL_REMOVE_SUPPORT
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 593
		} 
}
		
		fixed_random_seed = no

#REMOVE_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Rarely worth it if we have majority
			modifier = {
				add = -50
				593 = { has_state_flag = majority_political_platform_@PREV }
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					593 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#If I am close to losing... cut my life into pieces...
			modifier = {
				add = 75
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 10 }
			}

			#Opponent has enough points that I need to be scared
			modifier = {
				add = 25
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 20 }
			}

			#I will grab this state if I stomp out the opposition
			modifier = {
				add = 50
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					593 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = STATE_ID.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead = 593.political_platform_@PREV }
				check_variable = { majority_holder_lead < support_to_remove }
			}

			#It is not worth the points
			modifier = {
				add = -50

				#Don't calc this for own states
				593 = { NOT = { has_state_flag = majority_political_platform_@PREV } }

				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}

				check_variable = { support_to_remove < 593.political_platform_@PREV }
			}

			#Opponent is far ahead in state. Stomp elsewhere first
			modifier = {
				add = -25
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					593 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead_after_removal = 593.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead_after_removal = 593.political_platform_@PREV }
				subtract_from_temp_variable = { majority_holder_lead_after_removal = support_to_remove }

				check_variable = { majority_holder_lead_after_removal > 3 }
			}

			#Big states are more important
			modifier = {
				add = 10
				593 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#Opponent is too close for my liking
			modifier = {
				add = 10
				593 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 593.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 593.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 593.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
		}
#REMOVE_SUPPORT_AI_WIL_DO_END
		
		complete_effect = {

		}

		remove_effect = {
			593 = {
				custom_effect_tooltip = state_majority_country_rules
				custom_effect_tooltip = state_support_breakdown
				custom_effect_tooltip = remove_support_in_state_chance_modifiers

				#Remove support from opposition
				WTT_remove_opposition_state_support = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support					
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_remove_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#594 "Nanning"
	WTT_remove_opposition_in_nanning = {
		icon = oppression
		visible = {
			WTT_is_ROOT_current_leader_of_china = yes
			594 = {
				WTT_can_select_state_remove_support_state = yes
			}
		}
		
		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_REMOVE_OPPOSITION_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075

		available = {
			594 = {
				WTT_can_select_state_remove_support_state = yes				
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_REMOVE_OPPOSITION
		}

	
		days_remove = global.days_remove_support?1337 #DAYS_UNTIL_REMOVE_SUPPORT
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 594
		} 
}
		
		fixed_random_seed = no

#REMOVE_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Rarely worth it if we have majority
			modifier = {
				add = -50
				594 = { has_state_flag = majority_political_platform_@PREV }
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					594 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#If I am close to losing... cut my life into pieces...
			modifier = {
				add = 75
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 10 }
			}

			#Opponent has enough points that I need to be scared
			modifier = {
				add = 25
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 20 }
			}

			#I will grab this state if I stomp out the opposition
			modifier = {
				add = 50
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					594 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = STATE_ID.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead = 594.political_platform_@PREV }
				check_variable = { majority_holder_lead < support_to_remove }
			}

			#It is not worth the points
			modifier = {
				add = -50

				#Don't calc this for own states
				594 = { NOT = { has_state_flag = majority_political_platform_@PREV } }

				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}

				check_variable = { support_to_remove < 594.political_platform_@PREV }
			}

			#Opponent is far ahead in state. Stomp elsewhere first
			modifier = {
				add = -25
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					594 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead_after_removal = 594.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead_after_removal = 594.political_platform_@PREV }
				subtract_from_temp_variable = { majority_holder_lead_after_removal = support_to_remove }

				check_variable = { majority_holder_lead_after_removal > 3 }
			}

			#Big states are more important
			modifier = {
				add = 10
				594 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#Opponent is too close for my liking
			modifier = {
				add = 10
				594 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 594.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 594.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 594.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
		}
#REMOVE_SUPPORT_AI_WIL_DO_END
		
		complete_effect = {

		}

		remove_effect = {
			594 = {
				custom_effect_tooltip = state_majority_country_rules
				custom_effect_tooltip = state_support_breakdown
				custom_effect_tooltip = remove_support_in_state_chance_modifiers

				#Remove support from opposition
				WTT_remove_opposition_state_support = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support					
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_remove_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

	#599 "Guangxi"
	WTT_remove_opposition_in_guangxi = {
		icon = oppression
		visible = {
			WTT_is_ROOT_current_leader_of_china = yes
			599 = {
				WTT_can_select_state_remove_support_state = yes
			}
		}
		
		custom_cost_trigger = {
			political_power_growth > @PP_GAIN_PER_DAY_REMOVE_OPPOSITION_TRIGGER
		}
		custom_cost_text = pp_per_day_neg_075

		available = {
			599 = {
				WTT_can_select_state_remove_support_state = yes				
			}
		}
		
		modifier = {
			political_power_gain = @PP_COST_PER_DAY_REMOVE_OPPOSITION
		}

	
		days_remove = global.days_remove_support?1337 #DAYS_UNTIL_REMOVE_SUPPORT
		days_re_enable = 0
	
		cost = 0

		highlight_states = {
 highlight_state_targets = {
			state = 599
		} 
}
		
		fixed_random_seed = no

#REMOVE_SUPPORT_AI_WIL_DO_START
		ai_will_do = {
			base = 0

			#Rarely worth it if we have majority
			modifier = {
				add = -50
				599 = { has_state_flag = majority_political_platform_@PREV }
			}

			#Another country has some support in this state
			modifier = {
				add = 10
				any_other_country = {
					599 = {
						check_variable = { political_platform_@PREV > 0 }
					}
				}
			}

			#If I am close to losing... cut my life into pieces...
			modifier = {
				add = 75
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 10 }
			}

			#Opponent has enough points that I need to be scared
			modifier = {
				add = 25
				set_temp_variable = { my_support_point_lead = ROOT.total_political_support_points }
				all_other_country = {
					if = {
						limit = { check_variable = { total_political_support_points > highest_opposition_support_points } }
						set_temp_variable = { highest_opposition_support_points = total_political_support_points }
					}
				}
				subtract_from_temp_variable = { my_support_point_lead = highest_opposition_support_points }
				check_variable = { my_support_point_lead < 20 }
			}

			#I will grab this state if I stomp out the opposition
			modifier = {
				add = 50
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					599 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead = STATE_ID.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead = 599.political_platform_@PREV }
				check_variable = { majority_holder_lead < support_to_remove }
			}

			#It is not worth the points
			modifier = {
				add = -50

				#Don't calc this for own states
				599 = { NOT = { has_state_flag = majority_political_platform_@PREV } }

				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}

				check_variable = { support_to_remove < 599.political_platform_@PREV }
			}

			#Opponent is far ahead in state. Stomp elsewhere first
			modifier = {
				add = -25
				set_temp_variable = { support_to_remove = 3 }
				if = {
					limit = { has_idea_with_trait = prince_of_terror }
					add_to_temp_variable = { support_to_remove = 2 }
				}
				if = {
					limit = {
						has_idea_with_trait = backroom_backstabber
					}
					add_to_temp_variable = { support_to_remove = 1 }
				}


				any_other_country = {
					599 = {
						has_state_flag = majority_political_platform_@PREV
						set_temp_variable = { majority_holder_lead_after_removal = 599.political_platform_@PREV }
					}
				}

				subtract_from_temp_variable = { majority_holder_lead_after_removal = 599.political_platform_@PREV }
				subtract_from_temp_variable = { majority_holder_lead_after_removal = support_to_remove }

				check_variable = { majority_holder_lead_after_removal > 3 }
			}

			#Big states are more important
			modifier = {
				add = 10
				599 = {
					check_variable = {
						var = state_political_support_value
						compare = greater_than_or_equals
						value = global.big_state_support_value
					}
				}
			}

			#Opponent is too close for my liking
			modifier = {
				add = 10
				599 = {
					has_state_flag = majority_political_platform_@PREV
					set_temp_variable = { my_points_lead = 599.political_platform_@PREV }
				}

				all_other_country = {
					if = {
						limit = {
							check_variable = { 599.political_platform_@THIS > closest_points }
						}
						set_temp_variable = { closest_points = 599.political_platform_@THIS }
					}
				}

				subtract_from_temp_variable = { my_points_lead = closest_points }
				check_variable = { my_points_lead < 2 }
			}
		}
#REMOVE_SUPPORT_AI_WIL_DO_END
		
		complete_effect = {

		}

		remove_effect = {
			599 = {
				custom_effect_tooltip = state_majority_country_rules
				custom_effect_tooltip = state_support_breakdown
				custom_effect_tooltip = remove_support_in_state_chance_modifiers

				#Remove support from opposition
				WTT_remove_opposition_state_support = yes

				hidden_effect = {
					#Save relevant event targets. Need to be done before updating state support
					save_event_target_as = state
					random_country = {
						limit = {
							PREV = { has_state_flag = majority_political_platform_@PREV }
						}
						save_event_target_as = majority_country
					}

					#Update state support					
					WTT_recalculate_state_support_for_ROOT = yes
					
					#Status events
					WTT_fire_remove_support_status_events = yes
					
					#Recalc all support
					WTT_political_struggle_recalculate_support = yes
				}
			}
		}
	}

}