BG_category = {

	BG_ost = {
		icon = GFX_decision_generic_form_nation
		cost = 0
		ai_will_do = { factor = 1 }
		allowed = {
                tag = GER
		}
		target_trigger = {
			FROM = {
				is_subject_of = ROOT
                tag = BLR
			}
		}
		visible = {
			BLR = {
                          NOT = {  has_cosmetic_tag = BLR_OST }
			}                        
                      }

		complete_effect = {
                BLR = {
                set_cosmetic_tag = BLR_OST
                           }
			    hidden_effect = {
				GER = {
					every_state = {
						limit = {
							OR = {
								state = 1213
							}
							is_fully_controlled_by = BLR
						}
						add_core_of = PREV
						transfer_state_to = PREV
                                   }
				}
				UKR = {
					every_state = {
						limit = {
							OR = {
								state = 1093
							}
							is_fully_controlled_by = BLR
						}
						add_core_of = PREV
						transfer_state_to = PREV
                                   }
				}				
				SOV = {
					every_state = {
						limit = {
							OR = {
								state = 704
							}
							is_fully_controlled_by = BLR
						}
						add_core_of = PREV
						transfer_state_to = PREV
                                   }
				}					
				}			   
            }
       }
	BG_UKR = {
		icon = GFX_decision_generic_form_nation
		cost = 0
		ai_will_do = { factor = 1 }
		allowed = {
                tag = GER
		}
		target_trigger = {
			FROM = {
				is_subject_of = ROOT
                		tag = UKR
			}
		}
		visible = {
			UKR = {
                          NOT = {  has_cosmetic_tag = UKR_GER }
			}                        
                      }

		complete_effect = {
                UKR = {
                set_cosmetic_tag = UKR_GER
                           }
               hidden_effect = {
				POL = {
					every_state = {
						limit = {
							OR = {
								state = 700
							}
							is_fully_controlled_by = UKR
						}
						add_core_of = PREV
						transfer_state_to = PREV
                                   }
				}
				HUN = {
					every_state = {
						limit = {
							OR = {
								state = 701
							}
							is_fully_controlled_by = UKR
						}
						add_core_of = PREV
						transfer_state_to = PREV
                                   }
				}				
				MLV = {
					every_state = {
						limit = {
							OR = {
								state = 333
								state = 1111
							}
							is_fully_controlled_by = UKR
						}
						add_core_of = PREV
						transfer_state_to = PREV
                                   }
				}
				ROM = {
					every_state = {
						limit = {
							OR = {
								state = 335
							}
							is_fully_controlled_by = UKR
						}
						add_core_of = PREV
						transfer_state_to = PREV
                                   }
                  }
				}
			}
       }
	
	BG_POL = {
		icon = GFX_decision_generic_form_nation
		cost = 0
		ai_will_do = { factor = 1 }
		allowed = {
                tag = GER
		}
		target_trigger = {
			FROM = {
				is_subject_of = ROOT
                                tag = POL
			}
		}
		visible = {
			POL = {
                          NOT = {  has_cosmetic_tag = POL_GGR }
			}                        
                      }

		complete_effect = {
                POL = {
                set_cosmetic_tag = POL_GGR
                           }
							    hidden_effect = {
				GER = {
					every_state = {
						limit = {
							OR = {
								state = 474
								state = 625
								state = 626
								state = 115
								state = 111
								state = 113
								state = 116
								state = 433
								state = 1014
								state = 1200
								state = 1201
								state = 1202
								state = 1221
								state = 1217
								state = 1215
								state = 1216								
							}
							is_fully_controlled_by = POL
						}
						add_core_of = PREV
						transfer_state_to = PREV
                                   }
				}
				POL = {
					every_state = {
						limit = {
							OR = {
								state = 474
								state = 625
								state = 626
								state = 115
								state = 111
								state = 113
								state = 116
								state = 433
								state = 1014
								state = 1200
								state = 1201
								state = 1202
								state = 1221
								state = 1217
								state = 1215
								state = 1216
							}
						}
						remove_core_of = PREV
                    }
				}
				}			   
            }
       }

	BG_BEL = {
		icon = GFX_decision_generic_form_nation
		cost = 0
		ai_will_do = { factor = 1 }
		allowed = {
                tag = GER
		}
		target_trigger = {
			FROM = {
				is_subject_of = ROOT
                tag = BEL
			}
		}
		visible = {
			BEL = {
                          NOT = {  has_cosmetic_tag = BEL_BRG }
			}                        
                      }

		complete_effect = {
                BEL = {
                set_cosmetic_tag = BEL_BRG
                           }
						   			    hidden_effect = {
				GER = {
					every_state = {
						limit = {
							OR = {
								state = 965
							}
							is_fully_controlled_by = BEL
						}
						add_core_of = PREV
						transfer_state_to = PREV
                    }
				}
				if ={
						FRA = {
							is_subject_of = GER
						}
				}
						BEL = {
					every_state = {
						limit = {
							OR = {
								state = 54
								state = 56
								state = 305
								state = 963
								state = 58
								state = 59
								state = 62
							}
						}
						add_core_of = PREV
						transfer_state_to = PREV
                    }
				}
			}
			else = {
				BEL = {
					every_state = {
						limit = {
							OR = {
								state = 54
								state = 56
								state = 305
								state = 963
								state = 58
								state = 59
								state = 62
							}
						}
						add_core_of = PREV
                    }
				}
				}			  
            }
       }
	BG_SOV = {
		icon = GFX_decision_generic_form_nation
		cost = 0
		ai_will_do = { factor = 1 }
		allowed = {
                tag = GER
		}
		target_trigger = {
			FROM = {
				is_subject_of = ROOT
                tag = SOV
			}
		}
		visible = {
			SOV = {
                          NOT = {  has_cosmetic_tag = RUS_MCW }
			}                        
                      }

		complete_effect = {
                SOV = {
                set_cosmetic_tag = RUS_MCW
                           }
					    hidden_effect = {
				GER = {
					every_state = {
						limit = {
							OR = {
								state = 642
							}
						}
						add_core_of = PREV
						transfer_state_to = PREV
                                   }
				}
				}			  				   
            }
       }
	   
	BG_DEN = {
		icon = GFX_decision_generic_form_nation
		cost = 0
		ai_will_do = { factor = 1 }
		allowed = {
                tag = GER
		}
		target_trigger = {
			FROM = {
				is_subject_of = ROOT
                tag = DEN
			}
		}
		visible = {
			DEN = {
                          NOT = {  has_cosmetic_tag =  DEN_GER }
			}                        
                      }

		complete_effect = {
                DEN = {
                set_cosmetic_tag = DEN_GER
                           }
					    hidden_effect = {
				GER = {
					every_state = {
						limit = {
							OR = {
								state = 1173
							}
						}
						add_core_of = PREV
						transfer_state_to = PREV
                                   }
				}
			}			  				   
            }
       }
	BG_FRA = {
		icon = GFX_decision_generic_form_nation
		cost = 0
		ai_will_do = { factor = 1 }
		allowed = {
                tag = GER
		}
		target_trigger = {
			FROM = {
				is_subject_of = ROOT
                		tag = FRA
			}
		}
		visible = {
			FRA = {
                          	NOT = {  has_cosmetic_tag = FRA_GER }
			}                        
                      }

		complete_effect = {
                FRA = {
                set_cosmetic_tag = FRA_GER
                           }
			hidden_effect = {
				GER = {
					every_state = {
						limit = {
							OR = {
								state = 57
							}
						}
						add_core_of = PREV
						transfer_state_to = PREV
                                   }
				}
				if ={
					limit = { 
						FROM = {
							is_subject_of = GER
							tag = BEL
						}
				}
						BEL = {
					every_state = {
						limit = {
							OR = {
								state = 54
								state = 56
								state = 305
								state = 963
								state = 58
								state = 59
								state = 62
							}
						}
						add_core_of = PREV
						transfer_state_to = PREV
                    }
				}
			}
		}
       }
	    }
	BG_SLV = {
		icon = GFX_decision_generic_form_nation
		cost = 0
		ai_will_do = { factor = 1 }
		allowed = {
                tag = GER
		}
		target_trigger = {
			FROM = {
				is_subject_of = ROOT
                tag = SLV
			}
		}
		visible = {
			SLV = {
				is_subject_of = ROOT
                          NOT = {  has_cosmetic_tag =  SLV_GER }
			}                        
                      }

		complete_effect = {
                SLV = {
                set_cosmetic_tag = SLV_GER
                           }
					    hidden_effect = {
				GER = {
					every_state = {
						limit = {
							OR = {
								state = 125
							}
						}
						add_core_of = PREV
						transfer_state_to = PREV
                                   }
				}
			}			  				   
            }
       }
	BG_LIT = {
		icon = GFX_decision_generic_form_nation
		cost = 0
		ai_will_do = { factor = 1 }
		allowed = {
                tag = GER
		}
		target_trigger = {
			FROM = {
				is_subject_of = ROOT
                tag = LIT
			}
		}
		visible = {
			LIT = {
				is_subject_of = ROOT
                NOT = {  has_cosmetic_tag = LIT_GER }
			}                        
                      }

		complete_effect = {
                LIT = {
                set_cosmetic_tag = LIT_GER
                           }
					    hidden_effect = {
				GER = {
					every_state = {
						limit = {
							OR = {
								state = 1043
							}
						}
						add_core_of = PREV
						transfer_state_to = PREV
                    }
				}
					BLR = {
					every_state = {
						limit = {
							OR = {
								state = 1044
								state = 110
								state = 109
							}
						}
						add_core_of = PREV
						transfer_state_to = PREV
                    }
				}
			}			  				   
            }
       }
	BG_LAT = {
		icon = GFX_decision_generic_form_nation
		cost = 0
		ai_will_do = { factor = 1 }
		allowed = {
                tag = GER
		}
		target_trigger = {
			FROM = {
				is_subject_of = ROOT
                tag = LAT
			}
		}
		visible = {
			LAT = {
				is_subject_of = ROOT
                          NOT = {  has_cosmetic_tag = LAT_GER }
			}                        
                      }

		complete_effect = {
                LAT = {
                set_cosmetic_tag = LAT_GER
                           }
					    hidden_effect = {
					BLR = {
					every_state = {
						limit = {
							OR = {
								state = 1013
								state = 1058
								state = 108
								state = 107
							}
						}
						add_core_of = PREV
						transfer_state_to = PREV
                    }
				}
			}			  				   
            }
       }
	BG_EST = {
		icon = GFX_decision_generic_form_nation
		cost = 0
		ai_will_do = { factor = 1 }
		allowed = {
                tag = GER
		}
		target_trigger = {
			FROM = {
				is_subject_of = ROOT
                tag = EST
			}
		}
		visible = {
			EST = {
				is_subject_of = ROOT
                          NOT = {  has_cosmetic_tag = EST_GER }
			}                        
                      }

		complete_effect = {
                EST = {
                set_cosmetic_tag = EST_GER
                           }
					    hidden_effect = {	
					BLR = {
					every_state = {
						limit = {
							OR = {
								state = 1074
								state = 105
								state = 106
								state = 1012
							}
						}
						add_core_of = PREV
						transfer_state_to = PREV
                    }
				}
			}			  				   
        }
       }
}	
