on_actions = {
	#EVENTS
	on_startup = {
		effect = {
			GER = {
				country_event = { id = reich.9 days = 18 }			#Moon Landing
				country_event = { id = reich.12 days = 43 } 		#Students Revolt
				country_event = { id = reich.41 days = 87 }			#Goebbels' death rememberance
				country_event = { id = reich.23 days = 653 }		#Hitler's Death
				country_event = { id = HGR_successor.9 days = 635 }	#Heydrich Pre-GCW events
				country_event = { id = reich.600 days = 3 } 		#Successor Introduction Events
				country_event = { id = reich.72 days = 17 } 		#Adler launch
				country_event = { id = reich.27 days = 119 } 		#Senile Hitler speech
				country_event = { id = reich.28 days = 142 } 		#Hitler art gallery
				country_event = { id = MCW_Skeleton.1 days = 531 }  #Assassination of Generalkommissar of Twer
				
				#spy events that idk where to put
				country_event = { id = speerflavor.106 days = 1251 }
				country_event = { id = speerflavor.107 days = 1621 }
				country_event = { id = speerflavor.108 days = 1948 }
				country_event = { id = speerflavor.109 days = 2502 }
				country_event = { id = speerflavor.110 days = 2533 }
				country_event = { id = speerflavor.111 days = 2534 }
			}

			OST = {
				country_event = {
					id = KOV.1
					days = 45
				}
				country_event = {
					id = OST.28
					days = 30
				}
				country_event = {
					id = OST.32
					days = 180
				}
				country_event = {
					id = OST.41
					days = 365
				}
				country_event = {
					id = OST.50
					days = 75
				}
				country_event = {
					id = OST.51
					days = 180
				}
				country_event = {
					id = OST.52
					days = 245
				}
				country_event = {
					id = OST.53
					days = 345
				}
			}

			HOL = {
				country_event = { id = hol.11 days = 410 }
				country_event = { id = hol.24 days = 675 }
			}

			HUN = {
				country_event = { id = HUN_skeleton.1 days = 670 } # Nov 2nd 1963
			}
		}
	}

	#-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
	#-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
	#-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
	#-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
	#-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

	#STARTUP DEFINITIONS
	on_startup = {
		effect = {
			# Resource rights
			CAU = {
				give_resource_rights = { receiver = GER state = 229 resources = { oil aluminium rubber tungsten steel chromium uranium } }
				give_resource_rights = { receiver = GER state = 231 resources = { oil aluminium rubber tungsten steel chromium uranium } }
				give_resource_rights = { receiver = GER state = 232 resources = { oil aluminium rubber tungsten steel chromium uranium } }
				give_resource_rights = { receiver = GER state = 234 resources = { oil aluminium rubber tungsten steel chromium uranium } }
				give_resource_rights = { receiver = GER state = 235 resources = { oil aluminium rubber tungsten steel chromium uranium } }
				give_resource_rights = { receiver = GER state = 1552 resources = { oil aluminium rubber tungsten steel chromium uranium } }
				give_resource_rights = { receiver = GER state = 1554 resources = { oil aluminium rubber tungsten steel chromium uranium } }
				give_resource_rights = { receiver = GER state = 1556 resources = { oil aluminium rubber tungsten steel chromium uranium } }
				give_resource_rights = { receiver = GER state = 1558 resources = { oil aluminium rubber tungsten steel chromium uranium } }
				give_resource_rights = { receiver = GER state = 1559 resources = { oil aluminium rubber tungsten steel chromium uranium } }
				give_resource_rights = { receiver = GER state = 1560 resources = { oil aluminium rubber tungsten steel chromium uranium } }
				give_resource_rights = { receiver = GER state = 1561 resources = { oil aluminium rubber tungsten steel chromium uranium } }
				give_resource_rights = { receiver = GER state = 1564 resources = { oil aluminium rubber tungsten steel chromium uranium } }
			}

			PER = {
				give_resource_rights = { receiver = GER state = 411 resources = { oil aluminium rubber tungsten steel chromium uranium } }
				give_resource_rights = { receiver = GER state = 412 resources = { oil aluminium rubber tungsten steel chromium uranium } }
			}

			SWE = {
				give_resource_rights = { receiver = GER state = 38 resources = { oil aluminium rubber tungsten steel chromium uranium } }
			}
			FIN = {
				give_resource_rights = { receiver = GER state = 1359 resources = { chromium } }
			}

			OST = {
				load_focus_tree = OST_start
			}
		}
	}

	#-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
	#-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
	#-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
	#-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
	#-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

	# GCW war balancing thing
	on_weekly_GER = {
		effect = {
			if = {
				limit = {
					has_global_flag = german_civil_war 
					NOT = {
						has_global_flag = GCW_no_more_balancing
					}
				}
				GCW_war_balancing_script_main = yes
			}
		}
	}

	on_daily_BRG = {
		effect = {
			every_owned_state = {
				if = {
					limit = { has_variable = BRG_InfraProgress }
					add_to_variable = { BRG_InfraProgress = 1 }
					if = {
						limit = { check_variable = { BRG_InfraProgress > 29 } }
						clear_variable = BRG_InfraProgress
					}
				}
				if = {
					limit = { has_variable = BRG_SlotsProgress }
					add_to_variable = { BRG_SlotsProgress = 1 }
					if = {
						limit = { check_variable = { BRG_SlotsProgress > 29 } }
						clear_variable = BRG_SlotsProgress
					}
				}
				if = {
					limit = { has_variable = BRG_FactoryProgress }
					add_to_variable = { BRG_FactoryProgress = 1 }
					if = {
						limit = { check_variable = { BRG_FactoryProgress > 29 } }
						clear_variable = BRG_FactoryProgress
					}
				}
				if = {
					limit = { has_variable = BRG_CityProgress }
					add_to_variable = { BRG_CityProgress = 1 }
					if = {
						limit = { check_variable = { BRG_CityProgress > 29 } }
						clear_variable = BRG_CityProgress
					}
				}
				if = {
					limit = { has_variable = BRG_PowerplantProgress }
					add_to_variable = { BRG_PowerplantProgress = 1 }
					if = {
						limit = { check_variable = { BRG_PowerplantProgress > 29 } }
						clear_variable = BRG_PowerplantProgress
					}
				}
			}
		}
	}

	on_monthly_NOR = { #The Milorg go around blowing stuff up
		effect = {
			if = {
				limit = {
					has_country_leader = {
						character = NOR_Josef_Terboven
						ruling_only = yes
					}
				}
				random_list = {
					25 = { country_event = { id = norway.20 days = 8 random_days = 30 } }
					25 = { country_event = { id = norway.21 days = 8 random_days = 30 } }
					25 = { country_event = { id = norway.22 days = 8 random_days = 30 } }
					25 = { country_event = { id = norway.23 days = 8 random_days = 30 } }
				}
			}
		}
	}

	on_monthly_GER = {
		effect = {
			# Speer econ limiter
			country_event = { id = speer.10010 days = 1462 }

			# Bormann Kartenhaus Pulse
			if = {
				limit = { has_country_flag = BOR_Kartenhaus_Active }
				BOR_Kartenhaus_On_Monthly = yes
			}

			# Bormann Economy Mechanic pulse effects
			if = {
				limit = { has_country_flag = BOR_EconomyMechanic_Active }
				BOR_EconMech_MonthlyPulse = yes
			}
		}
	}

	on_send_volunteers = { # Bormann (and now Speer) sends volunteers to the Ba'athists
		effect = {
			if = {
				limit = {
					OR = {
						has_global_flag = german_civil_war_bormannvic
						has_global_flag = german_civil_war_speervic
					}
					ROOT = { original_tag = GER }
					FROM = {
						OR = {
							tag = EGB
							tag = SDS
							tag = SYR
							tag = BIR
							tag = NYM
							tag = OMB
							AND = {
								tag = GUL
								has_government = progressivism
							}
							AND = {
								tag = PAL
								OR = {
									has_government = communist
									has_government = ultranationalism
								}
							}
						}
					}
				}
				add_to_variable = { GER.BOR_OC_participation = 5 }
			}
			else_if = { # Iberian wars flavor events
				limit = {
					ROOT = { original_tag = GER }
					FROM = {
						OR = {
							tag = SPS
							tag = FZL
						}
					}
				}
				if = { # Speer
					limit = { has_global_flag = german_civil_war_speervic }
					country_event = { id = speer_iberianwars.1 days = 9 }
				}
				else_if = { # Bormann
					limit = { has_global_flag = german_civil_war_bormannvic }
					country_event = { id = bormann_iberianwars.1 days = 9 }
				}
			}
		}
	}

	on_declare_war = { # WW3 stuff
		effect = {
			if = {
				limit = {
					OR = {
						AND = {
							OR = {
								ROOT = { tag = JAP }
								ROOT = { tag = USA }
							}
							FROM = { tag = GER }
						}
						AND = {
							OR = {
								FROM = { tag = JAP }
								FROM = { tag = USA }
							}
							ROOT = { tag = GER }
						}
					}
				}
				if = { # Loading the WW3 tree for Bormann & Speer
					limit = {
						OR = {
							has_global_flag = german_civil_war_speervic
							has_global_flag = german_civil_war_bormannvic
						}
					}
					GER = { country_event = { id = GER_WW3.1 days = 1 } }
				}
				if = {
					limit = {
						NOT = {
							has_global_flag = german_civil_war_goeringvic
						}
					}
					every_country = { # WW3 super event
						limit = { is_ai = no }
						set_temp_variable = { TNO_temp_super_event = token:SE_WW3 }
						TNO_fire_super_event = yes
					}
					set_global_flag = TNO_world_tension_WW3
				}
			}
		}
	}

	on_daily_GER = { # Bormann Dismantlement Collapse
		effect = {
			if = {
				limit = {
					has_global_flag = german_civil_war_bormannvic
					has_country_flag = BOR_PreparationOccured
					check_variable = { BOR_AlliedControlPerc < 45 }
					is_ai = no
				}
				if = {
					limit = { has_country_flag = BOR_Dismantlement_I_AntiRef }
					country_event = BOR_Dismantlement_I.57
				}
				else_if = {
					limit = { has_country_flag = BOR_Dismantlement_I_AntiMil }
					country_event = BOR_Dismantlement_I.140
				}
				else_if = {
					limit = { has_country_flag = BOR_Dismantlement_II_Active }
					country_event = bor_disII_collapse.1
				}
				set_country_flag = BOR_DismantlementCollapse
				clr_country_flag = BOR_PreparationOccured
			}
		}
	}

	#ROOT is new controller, FROM is old controller, FROM.FROM is state ID.
	on_state_control_changed = { # GCW Capture events
		effect = {
			if = {
				limit = {
					FROM = { is_in_array = { global.GCW_contenders = THIS } }
					ROOT = { is_in_array = { global.GCW_contenders = THIS } }
				}
				### BGR Cities
				if = { # Leipzig
					limit = { FROM.FROM = { state = 65 } }
					if = { # Captured
						limit = { FROM = { tag = BGR } }
						FROM = { country_event = { id = gcwcapture.1 days = 1 } }
						ROOT = { country_event = { id = gcwcapture.1 days = 1 } }
					}
					else_if = { # Recaptured
						limit = { ROOT = { tag = BGR } }
						FROM = { country_event = { id = gcwcapture.5 days = 1 } }
						ROOT = { country_event = { id = gcwcapture.5 days = 1 } }
					}
				}
				else_if = { # Nuremberg
					limit = { FROM.FROM = { state = 1026 } }
					if = { # Captured
						limit = { FROM = { tag = BGR } }
						FROM = { country_event = { id = gcwcapture.2 days = 1 } }
						ROOT = { country_event = { id = gcwcapture.2 days = 1 } }
					}
					else_if = { # Recaptured
						limit = { ROOT = { tag = BGR } }
						FROM = { country_event = { id = gcwcapture.6 days = 1 } }
						ROOT = { country_event = { id = gcwcapture.6 days = 1 } }
					}
				}
				else_if = { # Stuttgart
					limit = { FROM.FROM = { state = 50 } }
					if = { # Captured
						limit = { FROM = { tag = BGR } }
						FROM = { country_event = { id = gcwcapture.3 days = 1 } }
						ROOT = { country_event = { id = gcwcapture.3 days = 1 } }
					}
					else_if = { # Recaptured
						limit = { ROOT = { tag = BGR } }
						FROM = { country_event = { id = gcwcapture.7 days = 1 } }
						ROOT = { country_event = { id = gcwcapture.7 days = 1 } }
					}
				}
				else_if = { # München
					limit = { FROM.FROM = { state = 52 } }
					if = { # Captured
						limit = { FROM = { tag = BGR } }
						FROM = { country_event = { id = gcwcapture.4 days = 1 } }
						ROOT = { country_event = { id = gcwcapture.4 days = 1 } }
					}
					else_if = { # Recaptured
						limit = { ROOT = { tag = BGR } }
						FROM = { country_event = { id = gcwcapture.8 days = 1 } }
						ROOT = { country_event = { id = gcwcapture.8 days = 1 } }
					}
				}
				### SGR Cities
				else_if = { # Frankfurt
					limit = { FROM.FROM = { state = 55 } }
					if = { # Captured
						limit = { FROM = { tag = SGR } }
						FROM = { country_event = { id = gcwcapture.9 days = 1 } }
						ROOT = { country_event = { id = gcwcapture.9 days = 1 } }
					}
					else_if = { # Recaptured
						limit = { ROOT = { tag = SGR } }
						FROM = { country_event = { id = gcwcapture.12 days = 1 } }
						ROOT = { country_event = { id = gcwcapture.12 days = 1 } }
					}
				}
				else_if = { # Hannover
					limit = { FROM.FROM = { state = 59 } }
					if = { # Captured
						limit = { FROM = { tag = SGR } }
						FROM = { country_event = { id = gcwcapture.10 days = 1 } }
						ROOT = { country_event = { id = gcwcapture.10 days = 1 } }
					}
					else_if = { # Recaptured
						limit = { ROOT = { tag = SGR } }
						FROM = { country_event = { id = gcwcapture.13 days = 1 } }
						ROOT = { country_event = { id = gcwcapture.13 days = 1 } }
					}
				}
				else_if = { # Essen
					limit = { FROM.FROM = { state = 57 } }
					if = { # Captured
						limit = { FROM = { tag = SGR } }
						FROM = { country_event = { id = gcwcapture.11 days = 1 } }
						ROOT = { country_event = { id = gcwcapture.11 days = 1 } }
					}
					else_if = { # Recaptured
						limit = { ROOT = { tag = SGR } }
						FROM = { country_event = { id = gcwcapture.14 days = 1 } }
						ROOT = { country_event = { id = gcwcapture.14 days = 1 } }
					}
				}
				### GGR Cities
				else_if = { # Kiel
					limit = { FROM.FROM = { state = 58 } }
					if = { # Captured
						limit = { FROM = { tag = GGR } }
						FROM = { country_event = { id = gcwcapture.15 days = 1 } }
						ROOT = { country_event = { id = gcwcapture.15 days = 1 } }
					}
					else_if = { # Recaptured
						limit = { ROOT = { tag = GGR } }
						FROM = { country_event = { id = gcwcapture.19 days = 1 } }
						ROOT = { country_event = { id = gcwcapture.19 days = 1 } }
					}
				}
				else_if = { # Rostock
					limit = { FROM.FROM = { state = 61 } }
					if = { # Captured
						limit = { FROM = { tag = GGR } }
						FROM = { country_event = { id = gcwcapture.16 days = 1 } }
						ROOT = { country_event = { id = gcwcapture.16 days = 1 } }
					}
					else_if = { # Recaptured
						limit = { ROOT = { tag = GGR } }
						FROM = { country_event = { id = gcwcapture.20 days = 1 } }
						ROOT = { country_event = { id = gcwcapture.20 days = 1 } }
					}
				}
				else_if = { # Posen
					limit = { FROM.FROM = { state = 86 } }
					if = { # Captured
						limit = { FROM = { tag = GGR } }
						FROM = { country_event = { id = gcwcapture.17 days = 1 } }
						ROOT = { country_event = { id = gcwcapture.17 days = 1 } }
					}
					else_if = { # Recaptured
						limit = { ROOT = { tag = GGR } }
						FROM = { country_event = { id = gcwcapture.21 days = 1 } }
						ROOT = { country_event = { id = gcwcapture.21 days = 1 } }
					}
				}
				else_if = { # Kattowitz
					limit = { FROM.FROM = { state = 67 } }
					if = { # Captured
						limit = { FROM = { tag = GGR } }
						FROM = { country_event = { id = gcwcapture.18 days = 1 } }
						ROOT = { country_event = { id = gcwcapture.18 days = 1 } }
					}
					else_if = { # Recaptured
						limit = { ROOT = { tag = GGR } }
						FROM = { country_event = { id = gcwcapture.22 days = 1 } }
						ROOT = { country_event = { id = gcwcapture.22 days = 1 } }
					}
				}
				### HGR Cities
				else_if = { # Königsberg
					limit = { FROM.FROM = { state = 5 } }
					if = { # Captured
						limit = { FROM = { tag = HGR } }
						FROM = { country_event = { id = gcwcapture.23 days = 1 } }
						ROOT = { country_event = { id = gcwcapture.23 days = 1 } }
					}
					else_if = { # Recaptured
						limit = { ROOT = { tag = HGR } }
						FROM = { country_event = { id = gcwcapture.25 days = 1 } }
						ROOT = { country_event = { id = gcwcapture.25 days = 1 } }
					}
				}
				else_if = { # Strasburg
					limit = { FROM.FROM = { state = 28 } }
					if = { # Captured
						limit = { FROM = { tag = HGR } }
						FROM = { country_event = { id = gcwcapture.24 days = 1 } }
						ROOT = { country_event = { id = gcwcapture.24 days = 1 } }
					}
					else_if = { # Recaptured
						limit = { ROOT = { tag = HGR } }
						FROM = { country_event = { id = gcwcapture.26 days = 1 } }
						ROOT = { country_event = { id = gcwcapture.26 days = 1 } }
					}
				}
			}
		}
	}

	###Ukraine GUI Stuff#########
	on_startup = {
		effect = {
			UKR = {
				UKR_bb_startup = yes
				country_lock_all_division_template = yes #important to do this!
			}
		}
	}
	
	# Ukraine GUI but its the supplies one
	on_daily_UKR = { effect = { UCW_supply_mechanic_check = yes UCW_weekly_increase_mechanic = yes } }
	on_daily_FUK = { effect = { UCW_supply_mechanic_check = yes UCW_weekly_increase_mechanic = yes } }
	on_daily_BOV = { effect = { UCW_supply_mechanic_check = yes UCW_weekly_increase_mechanic = yes } }
	on_daily_UKS = { effect = { UCW_supply_mechanic_check = yes UCW_weekly_increase_mechanic = yes } }
	
	on_weekly_UKR = { effect = { UCW_weekly_consumption = yes UKR_UCWMech_calculate_effects = yes } }
	on_weekly_UKS = { effect = { UCW_weekly_consumption = yes UKR_UCWMech_calculate_effects = yes } }
	on_weekly_FUK = { effect = { UCW_weekly_consumption = yes UKR_UCWMech_calculate_effects = yes } }
	on_weekly_BOV = { effect = { UCW_weekly_consumption = yes UKR_UCWMech_calculate_effects = yes } }
	
	#Breadbasket
	on_monthly_UKR = {
		effect = {
			if = {
				limit = {
					has_country_flag = UKR_bb_enabled
				}
				UKR_bb_regional_modifiers = yes # for state dynmods
				UKR_bb_national_dynmod_setup_and_vars = yes # for the national dynmod
				if = { #to approximate the AI doing stuff
					limit = {
						has_country_flag = UKR_play_RK
					}
					set_temp_variable = { temp_state_pool_0 = Volyn_region }
					set_temp_variable = { temp_state_pool_1 = Kiev_region }
					set_temp_variable = { temp_state_pool_2 = Kharkiv_region }
					set_temp_variable = { temp_state_pool_3 = Chernihiv_region }
					set_temp_variable = { temp_state_pool_4 = Mykolaiv_region }
					set_temp_variable = { temp_state_pool_5 = Luhansk_region }
					UKR_bb_D_R_select_a_random_region = yes

					set_temp_variable = { temp_group = 0 }
					set_temp_variable = { temp_value = 4.5 }
					set_temp_variable = { temp_des = 1 }
					set_temp_variable = { temp_dev = 5 }
					set_temp_variable = { temp_exp = 0.5 }

					UKR_bb_R_change_control = yes
					UKR_bb_R_change_desolation = yes
					UKR_bb_D_change_development_values = yes

					UKR_bb_D_R_clear_random_region = yes
				}
				if = {
					limit = {
						has_country_flag = UKR_play_UKS
					}
					set_temp_variable = { temp_state_pool_0 = Volyn_region }
					set_temp_variable = { temp_state_pool_1 = Kiev_region }
					set_temp_variable = { temp_state_pool_2 = Kharkiv_region }
					set_temp_variable = { temp_state_pool_3 = Chernihiv_region }
					set_temp_variable = { temp_state_pool_4 = Mykolaiv_region }
					set_temp_variable = { temp_state_pool_5 = Luhansk_region }
					UKR_bb_D_R_select_a_random_region = yes

					set_temp_variable = { temp_group = 1 }
					set_temp_variable = { temp_value = 4.5 }
					set_temp_variable = { temp_des = 1 }
					set_temp_variable = { temp_dev = -2.5 }
					set_temp_variable = { temp_exp = -1.5 }

					UKR_bb_R_change_control = yes
					UKR_bb_R_change_desolation = yes
					UKR_bb_D_change_development_values = yes

					UKR_bb_D_R_clear_random_region = yes
				}
				if = {
					limit = {
						has_country_flag = UKR_play_FUK
					}
					set_temp_variable = { temp_state_pool_0 = Volyn_region }
					set_temp_variable = { temp_state_pool_1 = Kiev_region }
					set_temp_variable = { temp_state_pool_2 = Kharkiv_region }
					set_temp_variable = { temp_state_pool_3 = Chernihiv_region }
					set_temp_variable = { temp_state_pool_4 = Mykolaiv_region }
					set_temp_variable = { temp_state_pool_5 = Luhansk_region }
					UKR_bb_D_R_select_a_random_region = yes

					set_temp_variable = { temp_group = 2 }
					set_temp_variable = { temp_value = 4.5 }
					set_temp_variable = { temp_des = 1 }
					set_temp_variable = { temp_dev = -2.5 }
					set_temp_variable = { temp_exp = -1.5 }

					UKR_bb_R_change_control = yes
					UKR_bb_R_change_desolation = yes
					UKR_bb_D_change_development_values = yes

					UKR_bb_D_R_clear_random_region = yes
				}
				if = {
					limit = {
						has_country_flag = UKR_play_BOV
					}
					set_temp_variable = { temp_state_pool_0 = Volyn_region }
					set_temp_variable = { temp_state_pool_1 = Kiev_region }
					set_temp_variable = { temp_state_pool_2 = Kharkiv_region }
					set_temp_variable = { temp_state_pool_3 = Chernihiv_region }
					set_temp_variable = { temp_state_pool_4 = Mykolaiv_region }
					set_temp_variable = { temp_state_pool_5 = Luhansk_region }
					UKR_bb_D_R_select_a_random_region = yes

					set_temp_variable = { temp_group = 3 }
					set_temp_variable = { temp_value = 4.5 }
					set_temp_variable = { temp_des = 1 }
					set_temp_variable = { temp_dev = -2.5 }
					set_temp_variable = { temp_exp = -1.5 }

					UKR_bb_R_change_control = yes
					UKR_bb_R_change_desolation = yes
					UKR_bb_D_change_development_values = yes

					UKR_bb_D_R_clear_random_region = yes
				}
			}
		}
	}
	on_monthly_UKS = {
		effect = {
			if = {
				limit = {
					has_country_flag = UKR_bb_enabled
				}
				UKR_bb_regional_modifiers = yes # for state dynmods
				UKR_bb_national_dynmod_setup_and_vars = yes # for the national dynmod
			}
		}
	}
	on_monthly_FUK = {
		effect = {
			if = {
				limit = {
					has_country_flag = UKR_bb_enabled
				}
				UKR_bb_regional_modifiers = yes # for state dynmods
				UKR_bb_national_dynmod_setup_and_vars = yes # for the national dynmod
			}
		}
	}
	on_monthly_BOV = {
		effect = {
			if = {
				limit = {
					has_country_flag = UKR_bb_enabled
				}
				UKR_bb_regional_modifiers = yes # for state dynmods
				UKR_bb_national_dynmod_setup_and_vars = yes # for the national dynmod
			}
		}
	}
	
	on_weekly_UKR = {
		effect = {
			if = {
				limit = {
					has_country_flag = UKR_bb_enabled
				}
				UKR_bb_consumption_local_grain_needs_calc = yes
			}
			if = {
				limit = {
					has_country_flag = UKR_BB_Partisan_Stockpile_active
				}
				UKR_bb_resistance_stockpile_increment = yes
			}
		}
	}
	on_weekly_UKS = {
		effect = {
			if = {
				limit = {
					has_country_flag = UKR_bb_enabled
				}
				UKR_bb_consumption_local_grain_needs_calc = yes
			}
		}
	}
	on_weekly_FUK = {
		effect = {
			if = {
				limit = {
					has_country_flag = UKR_bb_enabled
				}
				UKR_bb_consumption_local_grain_needs_calc = yes
			}
		}
	}
	on_weekly_BOV = {
		effect = {
			if = {
				limit = {
					has_country_flag = UKR_bb_enabled
				}
				UKR_bb_consumption_local_grain_needs_calc = yes
			}
		}
	}
	
	on_daily_UKR = {
		effect = {
			if = {
				limit = {
					has_country_flag = UKR_bb_enabled
				}
				UKR_bb_daily_effects = yes
			}
		}
	}
	on_daily_UKS = {
		effect = {
			if = {
				limit = {
					has_country_flag = UKR_bb_enabled
				}
				UKR_bb_daily_effects = yes
			}
		}
	}
	on_daily_FUK = {
		effect = {
			if = {
				limit = {
					has_country_flag = UKR_bb_enabled
				}
				UKR_bb_daily_effects = yes
			}
		}
	}
	on_daily_BOV = {
		effect = {
			if = {
				limit = {
					has_country_flag = UKR_bb_enabled
				}
				UKR_bb_daily_effects = yes
			}
		}
	}
}
