on_actions = { on_declare_war = { effect = { if = { limit = { tag = HOL } if = { limit = { 436 = { has_dynamic_modifier = { modifier = HOL_gujurat_port_patrol4 } } FROM = { tag = RAJ } } HOL = { set_state_controller = 436 } } if = { limit = { 452 = { has_dynamic_modifier = { modifier = HOL_gujurat_port_patrol4 } } FROM = { tag = RAJ } } HOL = { set_state_controller = 436 } } if = { limit = { 638 = { has_dynamic_modifier = { modifier = HOL_support_christian_rebellion_indonesia } } FROM = { tag = IND } } HOL = { set_state_controller = 638 } } if = { limit = { 281 = { has_dynamic_modifier = { modifier = HOL_cape_port_investment } } FROM = { tag = SAF } } HOL = { set_state_controller = 281 } } if = { limit = { has_game_rule = { rule = rule_disable_nato option = yes } HOL = { OR = { has_idea = HOL_nonselfsufficient_army1 has_idea = HOL_nonselfsufficient_army2 has_idea = HOL_nonselfsufficient_army3 has_idea = HOL_nonselfsufficient_army4 has_idea = HOL_nonselfsufficient_army5 } } } HOL = { country_event = HOL_military.083 } } } if = { limit = { ROOT = { original_tag = HOL } FROM = { has_idea = HOL_country_prepare_for_the_dutch2 } } FROM = { country_event = HOL_voc.62 } } } } on_leave_faction = { effect = { if = { limit = { has_game_rule = { rule = rule_disable_nato option = no } tag = HOL ROOT = { tag = USA } HOL = { OR = { has_idea = HOL_nonselfsufficient_army1 has_idea = HOL_nonselfsufficient_army2 has_idea = HOL_nonselfsufficient_army3 has_idea = HOL_nonselfsufficient_army4 has_idea = HOL_nonselfsufficient_army5 } } } HOL = { country_event = HOL_military.083 } } } } on_government_change = { effect = { if = { limit = { ROOT = { original_tag = HOL } NOT = { has_country_flag = HOL_monarchist_stop_functioning } OR = { nationalist_monarchists_are_in_power = yes western_autocrats_are_in_power = yes } } add_ideas = HOL_non_functioning_government } } } on_monthly_HOL = { effect = { semiconductor_market_quarterly_driver = yes if = { limit = { has_completed_focus = HOL_nam_groningen NOT = { has_completed_focus = HOL_health_houses } NOT = { has_country_flag = HOL_groningen_quake_cooldown } } random = { chance = HOL_groningen_quake_chance country_event = HOL_groningen.2 } } } } on_unit_leader_created = { effect = { if = { limit = { FROM = { original_tag = HOL has_completed_focus = HOL_marinestudie } is_navy_leader = yes } random = { chance = 40 add_trait = { trait = HOL_navy_moderniser_leader } } } } } }