on_actions = { on_capitulation = { effect = { if = { limit = { ROOT = { original_tag = INS NOT = { has_government = fascism } } FROM = { original_tag = INS has_government = fascism controls_state = 334 controls_state = 673 controls_state = 669 controls_state = 668 controls_state = 738 controls_state = 667 controls_state = 672 controls_state = 335 } } AST = { country_event = { id = tfv_australia.41 } } } if = { limit = { ROOT = { original_tag = FRA has_government = democratic } } set_cosmetic_tag = FRA_FREE } } } #ROOT is subject FROM is previous overlord on_subject_free = { effect = { if = { limit = { NOT = { AND = { TAG = SAF has_government = communism #communist SAF gets cosmetic tag to allow recruitment of black generals. If they go communist before breaking free, they would lose the cosmetic tag. } } } drop_cosmetic_tag = yes } if = { limit = { TAG = INS } retire_country_leader = yes } if = { limit = { TAG = MAL } retire_country_leader = yes } if = { limit = { has_idea = RAJ_marginalized_muslim_community_happy } RAJ = { release = PAK } } if = { limit = { original_tag = RAJ } remove_ideas = { RAJ_quit_india_movement RAJ_marginalized_muslim_community RAJ_marginalized_muslim_community_angry RAJ_marginalized_muslim_community_happy RAJ_princely_states RAJ_princely_states_donations RAJ_princely_states_donations_troops } } #Achievement if = { limit = { FROM = { original_tag = SAF } } if = { limit = { tag = ANG } set_country_flag = SAF_released_ANG } if = { limit = { tag = MZB } set_country_flag = SAF_released_MZB } if = { limit = { tag = BOT } set_country_flag = SAF_released_BOT } if = { limit = { tag = ZIM } set_country_flag = SAF_released_ZIM } if = { limit = { tag = KEN } set_country_flag = SAF_released_KEN } if = { limit = { tag = COG } set_country_flag = SAF_released_COG } } #Achievement if = { limit = { tag = EGY } set_country_flag = achievement_EGY_free log = EGY_free } } } #ROOT is subject FROM is overlord on_subject_autonomy_level_change = { effect = { #Achievement if = { limit = { tag = EGY } if = { limit = { has_autonomy_state = autonomy_colony } set_country_flag = achievement_EGY_colony log = EGY_colony } if = { limit = { has_autonomy_state = autonomy_dominion } set_country_flag = achievement_EGY_dominion log = EGY_dominion } } #Add to commonwealth tech group if = { limit = { OR = { has_autonomy_state = autonomy_colony has_autonomy_state = autonomy_dominion } OVERLORD = { is_in_tech_sharing_group = commonwealth_research } } add_to_tech_sharing_group = commonwealth_research } if = { limit = { tag = RAJ has_autonomy_state = autonomy_dominion } set_politics = { ruling_party = democratic elections_allowed = yes } add_popularity = { ideology = neutrality popularity = -1 } } } } #ROOT is subject FROM is overlord on_subject_annexed = { } #used when puppeting in a peace conference #ROOT = nation being puppeted, FROM = overlord on_puppet = { effect = { if = { limit = { AND = { OR = { TAG = SOV TAG = GER } SOV = { has_idea = SOV_molotov_ribbentrop_pact } } } SOV = { remove_ideas = SOV_molotov_ribbentrop_pact } #the pact is OFF if one of them is a puppet } if = { limit = { AND = { TAG = USA is_subject_of = ENG } } set_cosmetic_tag = USA_UK } if = { limit = { AND = { TAG = USA is_subject_of = SAF SAF = { has_idea = SAF_king_edward } } } set_cosmetic_tag = USA_SAF_EDW } if = { limit = { AND = { TAG = UKR is_subject_of = GER } } set_cosmetic_tag = UKR_GER } if = { limit = { AND = { TAG = UKR is_subject_of = SOV SOV = { has_government = communism } } } set_cosmetic_tag = UKR_SOV } if = { limit = { AND = { TAG = BLR is_subject_of = GER } } set_cosmetic_tag = BLR_GER } if = { limit = { AND = { TAG = CZE SLO = { exists = yes } } } CZE = { set_cosmetic_tag = CZE_ONLY } #cosmetic tag for CZE if Slovakia exists } } } #used when puppeting through the occupied territories menu during peace time (or when releasing from non-core but owned territory, f.e. Britain releasing Egypt) #ROOT = nation being released, FROM = overlord on_release_as_puppet = { effect = { if = { limit = { AND = { TAG = USA is_subject_of = ENG } } set_cosmetic_tag = USA_UK } if = { limit = { AND = { TAG = UKR is_subject_of = GER } } set_cosmetic_tag = UKR_GER } if = { limit = { AND = { TAG = UKR is_subject_of = SOV SOV = { has_government = communism } } } set_cosmetic_tag = UKR_SOV } if = { limit = { AND = { TAG = BLR is_subject_of = GER } } set_cosmetic_tag = BLR_GER } if = { limit = { AND = { TAG = CZE SLO = { exists = yes } } } CZE = { set_cosmetic_tag = CZE_ONLY } #cosmetic tag for CZE if Slovakia exists } } } #ROOT is free nation FROM is releaser on_release_as_free = { effect = { if = { limit = { AND = { TAG = CZE SLO = { exists = yes } } } CZE = { set_cosmetic_tag = CZE_ONLY } #cosmetic tag for CZE if Slovakia exists } } } }