on_actions = {
    on_startup = {
		effect = {
			#Intro Event
			BLR = {
                country_event = note.1
				add_ai_strategy = {
					type = build_building
					id = industrial_complex
					target = 206
					value = 1
			    }
				if = {
				    limit = {
					    is_ai = yes
					}
					add_political_power = 75 
				}
				if = {
					limit = {
						has_start_date < 1936.01.02
						OR = {
							has_game_rule = {
								rule = BLR_ai_behavior
								option = DEFAULT
							}
							has_game_rule = {
								rule = BLR_ai_behavior
								option = RANDOM
							}
						}
					}
					random_list = {
						10 = {
							BLR = {
								set_country_flag = BLR_AI_RANDOM_COMMUNIST
							}
						}
						10 = {
							BLR = {
								set_country_flag = BLR_AI_ALT_COM
							}
						}
						20 = {
							BLR = {
								set_country_flag = BLR_AI_RANDOM_KING
							}
						}
						20 = {
							BLR = {
								set_country_flag = BLR_AI_RANDOM_POL_KING
							}
						}
						10 = {
							BLR = {
								set_country_flag = BLR_AI_RANDOM_FASCISM
							}
						}
						15 = {
							BLR = {
								set_country_flag = BLR_AI_RANDOM_DEM
							}
						}
						15 = {
							BLR = {
								set_country_flag = BLR_AI_RANDOM_DEM_UKR
							}
						}
					}
				}
			}
		}
	}
	on_capitulation = {
		effect = {
			if = {
				limit = { 
					original_tag = POL
					GER = { has_war_with = POL }
					BLR = { 
						exists = yes
						NOT = { is_in_faction_with = POL } 
						NOT = { has_war_with = GER }
						NOT = { has_war_with = POL }
						is_puppet = no
					}
					NOT = {
						94 = {
							is_controlled_by = BLR
						}
						95 = {
							is_controlled_by = BLR
						}
						977 = {
							is_controlled_by = BLR
						}
						96 = {
							is_controlled_by = BLR
						}
					}
					#has_global_flag = fall_of_warsaw_ger
				}
				BLR = { country_event = belarus.13 }
			}
		}
	}
	
	on_war_relation_added = {
	
	    effect = { 
			if = {
				limit = {
					BLR = {
					    OR = {
					        has_country_flag = blr_minsk_rebels
						    has_country_flag = blr_vitebsk_rebels
						    has_country_flag = blr_bobruisk_rebels
						    has_country_flag = blr_homel_rebels
						    has_country_flag = blr_mozyr_rebels
						    has_country_flag = blr_west_rebels
						}
						has_defensive_war = yes
					}
				}
				BLR = { country_event = { id = belarus.204 days = 1 } }
			}
		}
	}
	
	on_daily_BLR = {
	
	    effect = { 
			if = {
				limit = {
					BLR = {
					    OR = {
					        check_variable = {
				                blr_support_sereda > 9
					        }
							check_variable = {
				                blr_support_nikodim > 9
					        }
							check_variable = {
				                blr_support_zhawrid > 9
					        }
						}
					}
				} 
				BLR = { country_event = { id = belarus.282 } }
			}
			if = {
			    limit = {
				    check_variable = {
				        var_sereda_attitude = 2
					}
			    }
				activate_mission = BLR_if_sereda_2_mission
			}
			if = {
			    limit = {
				    check_variable = {
				        var_nikodim_attitude = 2
                    }
			    }
				activate_mission = BLR_if_nikod_2_mission 
			}
			if = {
			    limit = {
				    has_country_flag = BLR_unia_yes
					controls_state = 202
			    }
				set_cosmetic_tag = UKR_POL
			}
		}
	}
	
	on_war = {
	
	    effect = { 
			if = {
				limit = {
					has_country_flag = blr_is_ready_for_war
				}
				BLR = { country_event = { id = belarus.300 } }
			}
		}
	}
	
	on_nuke_drop = {

		effect = {

			if = {
				limit = {
					FROM = { state = 382 }
				}
				set_country_flag = cba_radioactive_ash_flag
			}
		}
	}
	
	on_daily = {
        effect = {
            if = {
                limit = { 
				    check_variable = {
				       var_sereda_attitude = 3
			        }
					NOT = { has_country_flag = BLR_sereda_integrated }
				}
                set_variable = { var_sereda_attitude = -1 }
            } 
        }
    }
	
	on_daily = {
        effect = {
            if = {
                limit = { 
				    check_variable = {
				       var_nikodim_attitude = 3
			        }
					NOT = { has_country_flag = BLR_nikod_integrated }
				}
                set_variable = { var_nikodim_attitude = -1 }
            } 
        }
    }
	
	on_daily = {
        effect = {
            if = {
                limit = { 
				    check_variable = {
				       var_sereda_attitude = -3
			        }
				}
                set_variable = {  var_sereda_attitude = 1 }
            } 
        }
    }
	
	on_daily = {
        effect = {
            if = {
                limit = { 
				    check_variable = {
				       var_nikodim_attitude = -3
			        }
				}
                set_variable = { var_nikodim_attitude = 1 }
            } 
        }
    }
	
}
			

