SIA_war_fervor_cat = { SIA_war_fervor_coup_dummy = { available = { has_war_support > 0.95 has_civil_war = no hidden_trigger = { always = no } } days_remove = 125 remove_effect = { add_war_support = -0.5 SIA_start_opposing_civil_war = yes } } SIA_war_fervor_coup = { icon = generic_civil_support available = { hidden_trigger = { always = no } } priority = 10 days_mission_timeout = 125 activation = { has_war_support > 0.95 has_civil_war = no has_war = no has_idea = idea_SIA_war_fervor } cancel_trigger = { OR = { has_war_support < 0.95 has_war = yes NOT = { has_idea = idea_SIA_war_fervor } } } fire_only_once = no is_good = no timeout_effect = { if = { limit = { has_idea = idea_SIA_war_fervor } add_war_support = -0.5 if = { #The AI should avoid this at all costs on historical, but if for some reason it fails due to lack off pp safeguard on historical and punish in other ways limit = { is_ai = yes is_historical_focus_on = yes } add_ideas = volunteer_only add_ideas = civilian_economy } else = { SIA_start_opposing_civil_war = yes } remove_ideas = idea_SIA_war_fervor } } } SIA_urge_restraint = { icon = generic_civil_support available = { has_war = no has_idea = idea_SIA_war_fervor } cost = 25 days_re_enable = 90 complete_effect = { add_war_support = -0.15 } cancel_trigger = { has_war_support < 0.01 } fire_only_once = no is_good = no ai_will_do = { base = 0 modifier = { has_war_support > 0.65 has_idea = idea_SIA_war_fervor add = 400 } } } } SIA_thai_cultural_mandates = { SIA_mandate_1 = { icon = GFX_decision_SOV_place_hq available = { } cost = 0 fire_only_once = yes complete_effect = { if = { #Rest it scripted effects but this one is always free to pick, limit = { NOT = { has_dynamic_modifier = { modifier = idea_SIA_thai_cultural_mandates } } } add_dynamic_modifier = { modifier = idea_SIA_thai_cultural_mandates } } custom_effect_tooltip = SIA_modify_cultural_mandates add_to_variable = { SIA_cultural_mandates_stability_factor = 0.07 tooltip = stability_factor_tt } custom_effect_tooltip = SIA_mandate_1_tt hidden_effect = { drop_cosmetic_tag = yes set_cosmetic_tag = SIA_thailand } } ai_will_do = { base = 300 } } SIA_mandate_2 = { icon = GFX_decision_generic_brainwash available = { } cost = var:SIA_thai_cultural_mandates_pp_cost fire_only_once = yes complete_effect = { SIA_add_cultural_mandate_modifier_if_i_dont_have_it = yes if = { limit = { has_dlc = "La Resistance" } if = { limit = { has_intelligence_agency = no } create_intelligence_agency = yes } custom_effect_tooltip = SIA_modify_cultural_mandates set_variable = { SIA_cultural_mandates_army_intel_to_others = -15 tooltip = army_intel_to_others_tt } set_variable = { SIA_cultural_mandates_civilian_intel_to_others = -15 tooltip = civilian_intel_to_others_tt } set_variable = { SIA_cultural_mandates_intelligence_agency_defense = 0.05 tooltip = intelligence_agency_defense_tt } } else = { add_tech_bonus = { name = SIA_mandate_2 bonus = 0.5 uses = 2 category = encryption_tech } } } ai_will_do = { base = 2 modifier = { has_intelligence_agency = no factor = 3 } } } SIA_mandate_3 = { icon = GFX_decision_SWE_set_army_budget available = { } cost = var:SIA_thai_cultural_mandates_pp_cost fire_only_once = yes complete_effect = { SIA_add_cultural_mandate_modifier_if_i_dont_have_it = yes custom_effect_tooltip = SIA_modify_cultural_mandates set_variable = { SIA_cultural_mandates_recruitable_population_factor = 0.1 tooltip = conscription_factor_tt } } ai_will_do = { base = 0 modifier = { add = 80 has_manpower < 50000 } modifier = { add = 140 has_manpower < 10000 } } } SIA_mandate_4 = { icon = GFX_decision_eng_support_imperialist_coup available = { } cost = var:SIA_thai_cultural_mandates_pp_cost fire_only_once = yes complete_effect = { SIA_add_cultural_mandate_modifier_if_i_dont_have_it = yes custom_effect_tooltip = SIA_modify_cultural_mandates set_variable = { SIA_cultural_mandates_army_morale_factor = 0.1 tooltip = army_morale_factor_tt } set_variable = { SIA_cultural_mandates_land_reinforce_rate = 0.1 tooltip = land_reinforce_rate_tt } } ai_will_do = { base = 1 modifier = { has_war = yes add = 100 } } } SIA_mandate_5 = { icon = GFX_decision_generic_wreckers available = { } cost = var:SIA_thai_cultural_mandates_pp_cost fire_only_once = yes complete_effect = { SIA_add_cultural_mandate_modifier_if_i_dont_have_it = yes custom_effect_tooltip = SIA_modify_cultural_mandates set_variable = { SIA_cultural_mandates_industrial_capacity_dockyard = 0.05 tooltip = industrial_capacity_dockyard_tt } set_variable = { SIA_cultural_mandates_industrial_capacity_factory = 0.05 tooltip = industrial_capacity_factory_tt } } } SIA_mandate_6 = { icon = GFX_decision_generic_speech available = { } cost = var:SIA_thai_cultural_mandates_pp_cost fire_only_once = yes complete_effect = { SIA_add_cultural_mandate_modifier_if_i_dont_have_it = yes custom_effect_tooltip = SIA_modify_cultural_mandates add_to_variable = { SIA_cultural_mandates_political_power_factor = 0.05 tooltip = political_power_factor_tt } } } SIA_mandate_7 = { icon = GFX_decision_generic_construction available = { } cost = var:SIA_thai_cultural_mandates_pp_cost fire_only_once = yes complete_effect = { SIA_add_cultural_mandate_modifier_if_i_dont_have_it = yes custom_effect_tooltip = SIA_modify_cultural_mandates set_variable = { SIA_cultural_mandates_production_speed_buildings_factor = 0.05 tooltip = production_speed_buildings_factor_tt } } } SIA_mandate_8 = { icon = generic_civil_support available = { } cost = var:SIA_thai_cultural_mandates_pp_cost fire_only_once = yes complete_effect = { SIA_add_cultural_mandate_modifier_if_i_dont_have_it = yes custom_effect_tooltip = SIA_modify_cultural_mandates add_to_variable = { SIA_cultural_mandates_political_power_factor = 0.05 tooltip = political_power_factor_tt } } } SIA_mandate_9 = { icon = GFX_decision_hol_radio_oranje available = { } cost = var:SIA_thai_cultural_mandates_pp_cost fire_only_once = yes complete_effect = { SIA_add_cultural_mandate_modifier_if_i_dont_have_it = yes custom_effect_tooltip = SIA_modify_cultural_mandates set_variable = { SIA_cultural_mandates_compliance_growth = 0.15 tooltip = compliance_growth_tt} } } SIA_mandate_10 = { icon = generic_civil_support available = { } cost = var:SIA_thai_cultural_mandates_pp_cost fire_only_once = yes complete_effect = { SIA_add_cultural_mandate_modifier_if_i_dont_have_it = yes custom_effect_tooltip = SIA_modify_cultural_mandates add_to_variable = { SIA_cultural_mandates_political_power_factor = 0.05 tooltip = political_power_factor_tt } } } SIA_mandate_11 = { icon = GFX_decision_generic_consumer_goods available = { } cost = var:SIA_thai_cultural_mandates_pp_cost fire_only_once = yes complete_effect = { SIA_add_cultural_mandate_modifier_if_i_dont_have_it = yes custom_effect_tooltip = SIA_modify_cultural_mandates set_variable = { SIA_cultural_mandates_production_factory_efficiency_gain_factor = 0.03 tooltip = production_factory_efficiency_gain_factor_tt } } } SIA_mandate_12 = { icon = GFX_decision_eng_trade_unions_demand available = { } cost = var:SIA_thai_cultural_mandates_pp_cost fire_only_once = yes complete_effect = { SIA_add_cultural_mandate_modifier_if_i_dont_have_it = yes custom_effect_tooltip = SIA_modify_cultural_mandates add_to_variable = { SIA_cultural_mandates_stability_factor = 0.05 tooltip = stability_factor_tt } } } } SIA_movie_theater_cat = { SIA_celebrating_the_constitution = { icon = GFX_decision_SWI_no_elected_president available = { SIA_propaganda_poster_slot_available = yes } days_remove = constant:propaganda.SIA.default_propaganda_campaign_duration days_re_enable = constant:propaganda.SIA.default_propaganda_campaign_cooldown cost = SIA_propaganda_celebrating_the_constitution_cost modifier = { party_popularity_stability_factor = 0.2 fascism_drift = 0.03 } complete_effect = { set_variable = { SIA_new_propaganda_campaign = 7 } set_variable = { SIA_new_propaganda_campaign_duration = constant:propaganda.SIA.default_propaganda_campaign_duration } SIA_pick_propaganda_campaign_slot_effect = yes } remove_effect = { set_variable = { SIA_propaganda_campaign_to_remove = 7 } SIA_reset_propaganda_campaign_slot_effect = yes set_variable = { SIA_propaganda_cost = SIA_propaganda_celebrating_the_constitution_cost } set_variable = { SIA_propaganda_celebrating_the_constitution_cost = SIA_propaganda_cost } clear_variable = SIA_propaganda_cost custom_effect_tooltip = SIA_propaganda_campaign_cooldown_tt } } SIA_the_revolution_of_24th_june = { icon = GFX_decision_SWE_set_army_budget available = { SIA_propaganda_poster_slot_available = yes } days_remove = constant:propaganda.SIA.default_propaganda_campaign_duration_long days_re_enable = constant:propaganda.SIA.default_propaganda_campaign_cooldown cost = SIA_propaganda_the_revolution_of_24th_june_cost modifier = { resistance_growth_on_our_occupied_states = 0.25 resistance_target_on_our_occupied_states = 0.1 resistance_damage_to_garrison_on_our_occupied_states = 0.1 } complete_effect = { set_variable = { SIA_new_propaganda_campaign = 6 } set_variable = { SIA_new_propaganda_campaign_duration = constant:propaganda.SIA.default_propaganda_campaign_duration_long } SIA_pick_propaganda_campaign_slot_effect = yes } remove_effect = { set_variable = { SIA_propaganda_campaign_to_remove = 6 } SIA_reset_propaganda_campaign_slot_effect = yes set_variable = { SIA_propaganda_cost = SIA_propaganda_the_revolution_of_24th_june_cost } set_variable = { SIA_propaganda_the_revolution_of_24th_june_cost = SIA_propaganda_cost } clear_variable = SIA_propaganda_cost custom_effect_tooltip = SIA_propaganda_campaign_cooldown_tt } } SIA_suppressing_the_rebellion_of_1933 = { icon = GFX_decision_SWI_consolidate_council_power available = { SIA_propaganda_poster_slot_available = yes } days_remove = constant:propaganda.SIA.default_propaganda_campaign_duration days_re_enable = constant:propaganda.SIA.default_propaganda_campaign_cooldown cost = SIA_propaganda_suppressing_the_rebellion_of_1933_cost modifier = { neutrality_drift = -0.03 resistance_target = -0.06 } complete_effect = { set_variable = { SIA_new_propaganda_campaign = 8 } set_variable = { SIA_new_propaganda_campaign_duration = constant:propaganda.SIA.default_propaganda_campaign_duration } SIA_pick_propaganda_campaign_slot_effect = yes } remove_effect = { set_variable = { SIA_propaganda_campaign_to_remove = 8 } SIA_reset_propaganda_campaign_slot_effect = yes set_variable = { SIA_propaganda_cost = SIA_propaganda_suppressing_the_rebellion_of_1933_cost } set_variable = { SIA_propaganda_suppressing_the_rebellion_of_1933_cost = SIA_propaganda_cost } clear_variable = SIA_propaganda_cost custom_effect_tooltip = SIA_propaganda_campaign_cooldown_tt } } SIA_the_king_of_krung_thon = { icon = GFX_decision_eng_trade_unions_support available = { SIA_propaganda_poster_slot_available = yes } days_remove = constant:propaganda.SIA.default_propaganda_campaign_duration_short days_re_enable = constant:propaganda.SIA.default_propaganda_campaign_cooldown cost = SIA_propaganda_the_king_of_krung_thon_cost visible = { BRM = { exists = yes NOT = { is_subject_of = ROOT } } } targeted_modifier = { tag = BRM attack_bonus_against = 0.15 breakthrough_bonus_against = 0.15 } targeted_modifier = { tag = ENG attack_bonus_against = 0.05 breakthrough_bonus_against = 0.05 } targeted_modifier = { tag = RAJ attack_bonus_against = 0.05 breakthrough_bonus_against = 0.05 } complete_effect = { set_variable = { SIA_new_propaganda_campaign = 5 } set_variable = { SIA_new_propaganda_campaign_duration = constant:propaganda.SIA.default_propaganda_campaign_duration_short } SIA_pick_propaganda_campaign_slot_effect = yes } remove_effect = { set_variable = { SIA_propaganda_campaign_to_remove = 5 } SIA_reset_propaganda_campaign_slot_effect = yes set_variable = { SIA_propaganda_cost = SIA_propaganda_the_king_of_krung_thon_cost } set_variable = { SIA_propaganda_the_king_of_krung_thon_cost = SIA_propaganda_cost } clear_variable = SIA_propaganda_cost custom_effect_tooltip = SIA_propaganda_campaign_cooldown_tt } } SIA_blood_of_suphan = { icon = GFX_decision_eng_puppet_usa available = { SIA_propaganda_poster_slot_available = yes } days_remove = constant:propaganda.SIA.default_propaganda_campaign_duration_short days_re_enable = constant:propaganda.SIA.default_propaganda_campaign_cooldown cost = SIA_propaganda_blood_of_suphan_cost modifier = { army_core_attack_factor = 0.1 army_core_defence_factor = 0.15 } complete_effect = { set_variable = { SIA_new_propaganda_campaign = 2 } set_variable = { SIA_new_propaganda_campaign_duration = constant:propaganda.SIA.default_propaganda_campaign_duration_short } SIA_pick_propaganda_campaign_slot_effect = yes } remove_effect = { set_variable = { SIA_propaganda_campaign_to_remove = 2 } SIA_reset_propaganda_campaign_slot_effect = yes set_variable = { SIA_propaganda_cost = SIA_propaganda_blood_of_suphan_cost } set_variable = { SIA_propaganda_blood_of_suphan_cost = SIA_propaganda_cost } clear_variable = SIA_propaganda_cost custom_effect_tooltip = SIA_propaganda_campaign_cooldown_tt } } SIA_thai_soldiers_blood = { icon = GFX_decision_eng_blackshirt_march available = { SIA_propaganda_poster_slot_available = yes } days_remove = constant:propaganda.SIA.default_propaganda_campaign_duration days_re_enable = constant:propaganda.SIA.default_propaganda_campaign_cooldown cost = SIA_propaganda_thai_soldiers_blood_cost modifier = { consumer_goods_factor = 0.1 army_org_factor = 0.08 attrition = -0.04 breakthrough_factor = 0.08 } complete_effect = { set_variable = { SIA_new_propaganda_campaign = 3 } set_variable = { SIA_new_propaganda_campaign_duration = constant:propaganda.SIA.default_propaganda_campaign_duration } SIA_pick_propaganda_campaign_slot_effect = yes } remove_effect = { set_variable = { SIA_propaganda_campaign_to_remove = 3 } SIA_reset_propaganda_campaign_slot_effect = yes set_variable = { SIA_propaganda_cost = SIA_propaganda_thai_soldiers_blood_cost } set_variable = { SIA_propaganda_thai_soldiers_blood_cost = SIA_propaganda_cost } clear_variable = SIA_propaganda_cost custom_effect_tooltip = SIA_propaganda_campaign_cooldown_tt } } SIA_the_king_of_the_white_elephant_decision = { name = SIA_the_king_of_the_white_elephant icon = GFX_decision_SWI_no_elected_president available = { SIA_propaganda_poster_slot_available = yes has_completed_focus = SIA_the_king_of_the_white_elephant } days_remove = constant:propaganda.SIA.default_propaganda_campaign_duration days_re_enable = constant:propaganda.SIA.default_propaganda_campaign_cooldown cost = SIA_the_king_of_the_white_elephant_decision_cost modifier = { stability_weekly = 0.045 } complete_effect = { set_variable = { SIA_new_propaganda_campaign = 1 } set_variable = { SIA_new_propaganda_campaign_duration = constant:propaganda.SIA.default_propaganda_campaign_duration } SIA_pick_propaganda_campaign_slot_effect = yes } remove_effect = { set_variable = { SIA_propaganda_campaign_to_remove = 1 } SIA_reset_propaganda_campaign_slot_effect = yes set_variable = { SIA_propaganda_cost = SIA_the_king_of_the_white_elephant_decision_cost } set_variable = { SIA_the_king_of_the_white_elephant_decision_cost = SIA_propaganda_cost } clear_variable = SIA_propaganda_cost custom_effect_tooltip = SIA_propaganda_campaign_cooldown_tt } } SIA_undauntedly_love_nation = { icon = GFX_decision_BOL_reintegrate_litoral_department available = { SIA_propaganda_poster_slot_available = yes } days_remove = constant:propaganda.SIA.default_propaganda_campaign_duration days_re_enable = constant:propaganda.SIA.default_propaganda_campaign_cooldown cost = SIA_propaganda_undauntedly_love_nation_cost modifier = { experience_gain_navy = 0.2 experience_gain_navy_unit_factor = 0.2 extra_marine_supply_grace = 0.2 special_forces_attack_factor = 0.15 compliance_growth = 0.05 } complete_effect = { set_variable = { SIA_new_propaganda_campaign = 4 } set_variable = { SIA_new_propaganda_campaign_duration = constant:propaganda.SIA.default_propaganda_campaign_duration } SIA_pick_propaganda_campaign_slot_effect = yes } remove_effect = { set_variable = { SIA_propaganda_campaign_to_remove = 4 } SIA_reset_propaganda_campaign_slot_effect = yes set_variable = { SIA_propaganda_cost = SIA_propaganda_undauntedly_love_nation_cost } set_variable = { SIA_propaganda_undauntedly_love_nation_cost = SIA_propaganda_cost } clear_variable = SIA_propaganda_cost custom_effect_tooltip = SIA_propaganda_campaign_cooldown_tt } } } SIA_limited_war_cat = { SIA_start_limited_war_indochina = { target_root_trigger = { original_tag = SIA } visible = { has_completed_focus = SIA_recover_indochina } target_array = ROOT.indochina_controllers target_trigger = { NOT = { is_in_array = { array = previous_limited_war_targets value = FROM } } is_in_array = { array = ROOT.indochina_controllers value = FROM } any_of_scopes = { array = ROOT.indochina_states is_controlled_by = FROM } } available = { NOT = { is_ally_with = FROM has_war_with = FROM has_non_aggression_pact_with = FROM FROM = { is_guaranteed_by = ROOT } } custom_trigger_tooltip = { tooltip = is_not_engaged_in_a_limited_war NOT = { has_variable = limited_war_target } } } highlight_states = { highlight_states_trigger = { is_in_array = { array = ROOT.indochina_states value = THIS } is_controlled_by = FROM } } cost = 20 complete_effect = { custom_effect_tooltip = SIA_start_limited_war_indochina_tt_main clear_variable = pre_limited_war_faction_leader if = { limit = { is_in_faction = yes is_faction_leader = no } faction_leader = { set_variable = { ROOT.pre_limited_war_faction_leader = THIS } } leave_faction = yes custom_effect_tooltip = SIA_start_limited_war_rejoin_faction custom_effect_tooltip = newline_tt } custom_effect_tooltip = newline_tt set_rule = { can_join_factions = no } custom_effect_tooltip = SIA_start_limited_war_can_join_faction #General cleanup clear_array = limited_war_states clear_variable = limited_war_target clear_array = limited_war_target_allies #Save all states that is included in the limited war for_each_scope_loop = { array = indochina_states if = { limit = { is_controlled_by = FROM } add_to_array = { array = ROOT.limited_war_states value = THIS } } } set_variable = { limited_war_target = FROM } #is_target_of_limited_war if = { #overlord will always be called if target is a subject limit = { var:limited_war_target = { is_subject = yes } } var:limited_war_target = { overlord = { add_to_array = { array = ROOT.limited_war_target_allies value = THIS } } } } hidden_effect = { var:limited_war_target = { if = { limit = { is_in_faction = yes } every_allied_country = { limit = { NOT = { is_in_array = { array = ROOT.limited_war_target_allies value = THIS } } } add_to_array = { array = ROOT.limited_war_target_allies value = THIS } } } } } every_country = { limit = { has_guaranteed = FROM } FROM = { clear_array = countries_that_guaranteed_me_pre_limited_war } add_to_array = { array = FROM.countries_that_guaranteed_me_pre_limited_war value = THIS } diplomatic_relation = { country = FROM relation = guarantee active = no } } declare_war_on = { target = FROM type = annex_everything } activate_mission = SIA_limited_war_indochina add_to_array = { previous_limited_war_targets = FROM } FROM = { if = { limit = { is_in_faction = no } if = { limit = { has_rule = can_join_factions } set_country_flag = SIA_limited_war_could_join_factions } set_rule = { can_join_factions = no } } } } ai_will_do = { base = 0 modifier = { is_historical_focus_on = yes date > 1940.10.28 add = 500 } modifier = { VIC = { exists = yes } any_of_scopes = { array = indochina_controllers tag = VIC } FROM = { tag = VIC is_in_faction = no } add = 100 } modifier = { fighting_army_strength_ratio = { tag = FROM ratio > 0.3 } add = 20 } modifier = { fighting_army_strength_ratio = { tag = FROM ratio > 0.6 } add = 30 } modifier = { fighting_army_strength_ratio = { tag = FROM ratio > 0.9 } add = 70 } modifier = { FROM = { original_tag = JAP } factor = 0 } } } SIA_start_limited_war_malaysia_burma = { target_root_trigger = { original_tag = SIA } target_array = ROOT.malaysia_burma_controllers target_trigger = { NOT = { is_in_array = { array = previous_limited_war_targets value = FROM } } is_in_array = { array = ROOT.malaysia_burma_controllers value = FROM } any_of_scopes = { array = ROOT.malaysia_burma_states is_controlled_by = FROM } } visible = { has_completed_focus = SIA_retake_lost_british_states } available = { NOT = { is_ally_with = FROM has_war_with = FROM has_non_aggression_pact_with = FROM FROM = { is_guaranteed_by = ROOT } } custom_trigger_tooltip = { tooltip = is_not_engaged_in_a_limited_war NOT = { has_variable = limited_war_target } } FROM = { is_neighbor_of = ROOT } } highlight_states = { highlight_states_trigger = { is_in_array = { array = ROOT.malaysia_burma_states value = THIS } is_controlled_by = FROM } } cost = 20 complete_effect = { custom_effect_tooltip = SIA_start_limited_war_indochina_tt_main clear_variable = pre_limited_war_faction_leader if = { limit = { is_in_faction = yes is_faction_leader = no } faction_leader = { set_variable = { ROOT.pre_limited_war_faction_leader = THIS } } leave_faction = yes custom_effect_tooltip = SIA_start_limited_war_rejoin_faction custom_effect_tooltip = newline_tt } custom_effect_tooltip = newline_tt set_rule = { can_join_factions = no } custom_effect_tooltip = SIA_start_limited_war_can_join_faction #General cleanup clear_array = limited_war_states clear_variable = limited_war_target clear_array = limited_war_target_allies #Save all states that is included in the limited war for_each_scope_loop = { array = malaysia_burma_states if = { limit = { is_controlled_by = FROM } add_to_array = { array = ROOT.limited_war_states value = THIS } } } set_variable = { limited_war_target = FROM } #is_target_of_limited_war if = { #overlord will always be called if target is a subject limit = { var:limited_war_target = { is_subject = yes } } var:limited_war_target = { overlord = { add_to_array = { array = ROOT.limited_war_target_allies value = THIS } } } } hidden_effect = { var:limited_war_target = { if = { limit = { is_in_faction = yes } every_allied_country = { limit = { NOT = { is_in_array = { array = ROOT.limited_war_target_allies value = THIS } } } add_to_array = { array = ROOT.limited_war_target_allies value = THIS } } } } } every_country = { limit = { has_guaranteed = FROM } FROM = { clear_array = countries_that_guaranteed_me_pre_limited_war } add_to_array = { array = FROM.countries_that_guaranteed_me_pre_limited_war value = THIS } diplomatic_relation = { country = FROM relation = guarantee active = no } } declare_war_on = { target = FROM type = annex_everything } activate_mission = SIA_limited_war_indochina add_to_array = { previous_limited_war_targets = FROM } FROM = { if = { limit = { is_in_faction = no } if = { limit = { has_rule = can_join_factions } set_country_flag = SIA_limited_war_could_join_factions } set_rule = { can_join_factions = no } } } } } SIA_limited_war_indochina = { visible = { always = yes } is_good = no highlight_states = { highlight_states_trigger = { is_in_array = { array = ROOT.limited_war_states value = THIS } NOT = { is_controlled_by = ROOT } } } available = { all_of_scopes = { array = ROOT.limited_war_states is_controlled_by = ROOT } } activation = { always = no } cancel_trigger = { OR = { exists = no has_capitulated = yes surrender_progress > var:global.limited_war_surrender_threshold var:limited_war_target = { has_capitulated = yes NOT = { original_tag = FRA } } # Fallback: target was defeated by someone else, so neither win nor loss exit can fire var:limited_war_target = { exists = no } } } days_mission_timeout = 120 complete_effect = { country_event = { id = siam.10 hours = 2 } } cancel_effect = { if = { limit = { has_variable = var:limited_war_target var:limited_war_target = { OR = { has_capitulated = yes exists = no } NOT = { original_tag = FRA } } } SIA_peace_out = yes set_rule = { can_join_factions = yes } SIA_re_add_to_old_faction = yes SIA_clear_limited_war_variables = yes } if = { limit = { surrender_progress > var:global.limited_war_surrender_threshold } var:limited_war_target = { country_event = { id = siam.15 hours = 2 } } } } timeout_effect = { var:limited_war_target = { country_event = { id = siam.15 hours = 2 } } } } } SIA_new_territories_administration_cat = { SIA_develop_phibunsongkhram = { icon = GFX_decision_generic_factory available = { controls_state = 1067 num_of_civilian_factories_available_for_projects > 1 } cost = 60 fire_only_once = yes modifier = { civilian_factory_use = 2 } highlight_states = { highlight_state_targets = { state = 1067 } } days_remove = 180 complete_effect = { 1067 = { add_dynamic_modifier = { modifier = idea_SIA_unity_propaganda days = 180 } } } remove_effect = { 1067 = { if = { limit = { ROOT = { has_country_leader = { character = SIA_plaek_phibunsongkhram } } } set_state_name = SIA_STATE_1067 } else = { set_state_name = SIA_STATE_1067_ALT } add_extra_state_shared_building_slots = 2 if = { limit = { free_building_slots = { building = industrial_complex size > 0 include_locked = yes } } add_building_construction = { type = industrial_complex level = 1 instant_build = yes } } } } } SIA_develop_southern_indochina = { icon = GFX_decision_generic_factory available = { controls_state = 741 controls_state = 1066 controls_state = 286 controls_state = 1068 num_of_civilian_factories_available_for_projects > 3 } cost = 60 fire_only_once = yes modifier = { civilian_factory_use = 4 } highlight_states = { highlight_state_targets = { state = 741 state = 1066 state = 286 state = 1068 } } days_remove = 180 complete_effect = { 741 = { add_dynamic_modifier = { modifier = idea_SIA_unity_propaganda days = 180 } } 1066 = { add_dynamic_modifier = { modifier = idea_SIA_unity_propaganda days = 180 } } 286 = { add_dynamic_modifier = { modifier = idea_SIA_unity_propaganda days = 180 } } 1068 = { add_dynamic_modifier = { modifier = idea_SIA_unity_propaganda days = 180 } } } remove_effect = { 1068 = { set_state_name = SIA_STATE_1068 add_extra_state_shared_building_slots = 1 if = { limit = { infrastructure < 5 } add_building_construction = { type = infrastructure level = 1 instant_build = yes } } } 741 = { add_extra_state_shared_building_slots = 1 if = { limit = { free_building_slots = { building = industrial_complex size > 0 include_locked = yes } } add_building_construction = { type = industrial_complex level = 1 instant_build = yes } } } 286 = { add_extra_state_shared_building_slots = 1 if = { limit = { free_building_slots = { building = arms_factory size > 0 include_locked = yes } } add_building_construction = { type = arms_factory level = 1 instant_build = yes } } } 1066 = { add_extra_state_shared_building_slots = 1 if = { limit = { free_building_slots = { building = dockyard size > 0 include_locked = yes } } add_building_construction = { type = dockyard level = 1 instant_build = yes } } } } } SIA_develop_northern_indochina = { icon = GFX_decision_generic_factory available = { controls_state = 670 controls_state = 1017 controls_state = 1069 controls_state = 671 num_of_civilian_factories_available_for_projects > 3 } cost = 60 fire_only_once = yes modifier = { civilian_factory_use = 4 } highlight_states = { highlight_state_targets = { state = 670 state = 1017 state = 1069 state = 671 } } days_remove = 180 complete_effect = { 670 = { add_dynamic_modifier = { modifier = idea_SIA_unity_propaganda days = 180 } } 1017 = { add_dynamic_modifier = { modifier = idea_SIA_unity_propaganda days = 180 } } 1069 = { add_dynamic_modifier = { modifier = idea_SIA_unity_propaganda days = 180 } } 671 = { add_dynamic_modifier = { modifier = idea_SIA_unity_propaganda days = 180 } } } remove_effect = { 670 = { add_extra_state_shared_building_slots = 1 if = { limit = { free_building_slots = { building = arms_factory size > 0 include_locked = yes } } add_building_construction = { type = arms_factory level = 1 instant_build = yes } } } 1017 = { add_extra_state_shared_building_slots = 1 if = { limit = { free_building_slots = { building = dockyard size > 0 include_locked = yes } } add_building_construction = { type = dockyard level = 1 instant_build = yes } } } 1069 = { add_extra_state_shared_building_slots = 1 if = { limit = { infrastructure < 5 } add_building_construction = { type = infrastructure level = 1 instant_build = yes } } } 671 = { add_extra_state_shared_building_slots = 1 if = { limit = { free_building_slots = { building = industrial_complex size > 0 include_locked = yes } } add_building_construction = { type = industrial_complex level = 1 instant_build = yes } } } } } SIA_develop_northern_malaya = { icon = GFX_decision_generic_factory available = { controls_state = 1062 controls_state = 1064 controls_state = 1061 controls_state = 1065 num_of_civilian_factories_available_for_projects > 3 } cost = 60 fire_only_once = yes modifier = { civilian_factory_use = 4 } highlight_states = { highlight_state_targets = { state = 1062 state = 1064 state = 1061 state = 1065 } } days_remove = 180 complete_effect = { 1062 = { add_dynamic_modifier = { modifier = idea_SIA_unity_propaganda days = 180 } } 1064 = { add_dynamic_modifier = { modifier = idea_SIA_unity_propaganda days = 180 } } 1061 = { add_dynamic_modifier = { modifier = idea_SIA_unity_propaganda days = 180 } } 1065 = { add_dynamic_modifier = { modifier = idea_SIA_unity_propaganda days = 180 } } } remove_effect = { 1062 = { add_extra_state_shared_building_slots = 1 if = { limit = { free_building_slots = { building = industrial_complex size > 0 include_locked = yes } } add_building_construction = { type = industrial_complex level = 1 instant_build = yes } } } 1064 = { add_extra_state_shared_building_slots = 1 if = { limit = { free_building_slots = { building = industrial_complex size > 0 include_locked = yes } } add_building_construction = { type = industrial_complex level = 1 instant_build = yes } } } 1061 = { add_extra_state_shared_building_slots = 1 if = { limit = { infrastructure < 5 } add_building_construction = { type = infrastructure level = 1 instant_build = yes } } } 1065 = { add_extra_state_shared_building_slots = 1 if = { limit = { free_building_slots = { building = industrial_complex size > 0 include_locked = yes } } add_building_construction = { type = industrial_complex level = 1 instant_build = yes } } } } } SIA_develop_eastern_burma = { icon = GFX_decision_generic_factory available = { controls_state = 994 controls_state = 999 controls_state = 993 num_of_civilian_factories_available_for_projects > 2 } cost = 60 fire_only_once = yes modifier = { civilian_factory_use = 3 } highlight_states = { highlight_state_targets = { state = 994 state = 999 state = 993 } } days_remove = 180 complete_effect = { 994 = { add_dynamic_modifier = { modifier = idea_SIA_unity_propaganda days = 180 } } 999 = { add_dynamic_modifier = { modifier = idea_SIA_unity_propaganda days = 180 } } 993 = { add_dynamic_modifier = { modifier = idea_SIA_unity_propaganda days = 180 } } } remove_effect = { 994 = { add_extra_state_shared_building_slots = 1 if = { limit = { free_building_slots = { building = industrial_complex size > 0 include_locked = yes } } add_building_construction = { type = industrial_complex level = 1 instant_build = yes } } } 999 = { add_extra_state_shared_building_slots = 1 if = { limit = { infrastructure < 5 } add_building_construction = { type = infrastructure level = 1 instant_build = yes } } } 993 = { add_extra_state_shared_building_slots = 1 if = { limit = { free_building_slots = { building = industrial_complex size > 0 include_locked = yes } } add_building_construction = { type = industrial_complex level = 1 instant_build = yes } } } } } SIA_fortress_saigon = { icon = GFX_decision_generic_fortification available = { controls_province = 4401 } cost = 60 fire_only_once = yes modifier = { civilian_factory_use = 4 } highlight_states = { highlight_state_targets = { state = 1066 } } days_remove = 180 remove_effect = { hidden_effect = { set_country_flag = has_built_fortress_saigon } if = { limit = { has_dlc = "Gotterdammerung" } if = { limit = { NOT = { is_special_project_completed = sp:sp_land_stronghold_network } } complete_special_project = sp:sp_land_stronghold_network } 1066 = { add_building_construction = { type = stronghold_network level = 1 instant_build = yes } add_building_construction = { type = bunker level = 3 instant_build = yes province = 4401 } add_building_construction = { type = coastal_bunker level = 3 instant_build = yes province = 4401 } add_building_construction = { type = anti_air_building level = 2 instant_build = yes } } } else = { 1066 = { add_building_construction = { type = bunker level = 5 instant_build = yes province = 4401 } add_building_construction = { type = coastal_bunker level = 5 instant_build = yes province = 4401 } add_building_construction = { type = anti_air_building level = 3 instant_build = yes } } } } } SIA_fortress_hanoi = { icon = GFX_decision_generic_fortification available = { controls_province = 4075 } cost = 60 fire_only_once = yes modifier = { civilian_factory_use = 4 } highlight_states = { highlight_state_targets = { state = 671 } } days_remove = 180 remove_effect = { hidden_effect = { set_country_flag = has_built_fortress_hanoi } if = { limit = { has_dlc = "Gotterdammerung" } if = { limit = { NOT = { is_special_project_completed = sp:sp_land_stronghold_network } } complete_special_project = sp:sp_land_stronghold_network } 671 = { add_building_construction = { type = stronghold_network level = 1 instant_build = yes } add_building_construction = { type = bunker level = 3 instant_build = yes province = 4075 } add_building_construction = { type = coastal_bunker level = 3 instant_build = yes province = 4119 } add_building_construction = { type = anti_air_building level = 2 instant_build = yes } } } else = { 671 = { add_building_construction = { type = bunker level = 5 instant_build = yes province = 4401 } add_building_construction = { type = coastal_bunker level = 5 instant_build = yes province = 4401 } add_building_construction = { type = anti_air_building level = 3 instant_build = yes } } } } } SIA_finish_the_triangular_defense_network = { icon = GFX_decision_generic_fortification available = { controls_province = 7408 controls_province = 4075 controls_province = 4401 has_country_flag = has_built_fortress_saigon has_country_flag = has_built_fortress_hanoi } cost = 60 fire_only_once = yes modifier = { civilian_factory_use = 4 } highlight_states = { highlight_state_targets = { state = 1076 } } days_remove = 180 remove_effect = { every_controlled_state = { limit = { has_resistance = yes } add_compliance = 10 } build_railway = { start_province = 7408 target_province = 7218 build_only_on_allied = yes level = 2 } build_railway = { start_province = 7218 target_province = 4075 build_only_on_allied = yes level = 2 } build_railway = { path = { 4075 10129 9961 4339 12332 7516 4511 1535 1548 12417 1592 12447 12475 4639 7376 10317 4223 12133 1423 1396 4401 } build_only_on_allied = yes level = 2 } build_railway = { path = { 4401 1396 1423 12133 4223 10317 7376 10289 12191 10177 10134 10293 12224 7408 } build_only_on_allied = yes level = 2 } add_victory_points = { province = 4075 value = 25 } add_victory_points = { province = 4401 value = 25 } add_victory_points = { province = 7408 value = 5 } 868 = { add_building_construction = { type = supply_node level = 1 instant_build = yes province = 7516 } add_building_construction = { type = supply_node level = 1 instant_build = yes province = 12417 } } if = { limit = { has_dlc = "Gotterdammerung" } if = { limit = { NOT = { is_special_project_completed = sp:sp_land_stronghold_network } } complete_special_project = sp:sp_land_stronghold_network } 1076 = { add_building_construction = { type = stronghold_network level = 1 instant_build = yes } add_building_construction = { type = bunker level = 3 instant_build = yes province = 7408 } add_building_construction = { type = coastal_bunker level = 3 instant_build = yes province = 7408 } add_building_construction = { type = anti_air_building level = 2 instant_build = yes } } } else = { 671 = { add_building_construction = { type = bunker level = 5 instant_build = yes province = 7408 } add_building_construction = { type = coastal_bunker level = 5 instant_build = yes province = 7408 } add_building_construction = { type = anti_air_building level = 3 instant_build = yes } } } } } SIA_use_abandoned_french_tools = { icon = GFX_decision_generic_confiscation available = { } cost = 0 fire_only_once = yes complete_effect = { add_tech_bonus = { name = SIA_use_abandoned_french_tools ahead_reduction = 1 uses = 1 category = cat_production # optional # technology = technology_id # optional } } } } political_actions = { SIA_release_contigency_funds = { #icon = aluminium allowed = { original_tag = SIA } available = { has_war = yes } visible = { check_variable = { SIA_contingency_funds > 0 } has_dynamic_modifier = { modifier = idea_SIA_contingency_funds } NOT = { has_country_flag = has_released_contingency_funds } } cost = 0 complete_effect = { set_country_flag = has_released_contingency_funds custom_effect_tooltip = SIA_release_contigency_funds_tt add_to_variable = { SIA_contingency_funds_industrial_capacity_factory = 0.1 tooltip = industrial_capacity_factory_tt } add_to_variable = { SIA_contingency_funds_industrial_capacity_dockyard = 0.1 tooltip = industrial_capacity_dockyard_tt } add_to_variable = { SIA_contingency_funds_production_speed_buildings_factor = 0.1 tooltip = production_speed_buildings_factor_tt } add_to_variable = { SIA_contingency_funds_local_resources_factor = 0.25 tooltip = local_resources_factor_tt } add_to_variable = { SIA_contingency_funds_cg = -0.08 tooltip = consumer_goods_factor_tt } custom_effect_tooltip = SIA_release_contigency_funds_tt2 } ai_will_do = { base = 0 modifier = { any_enemy_country = { is_major = yes } add = 10 } } } SIA_public_credit_repayment = { allowed = { original_tag = SIA } available = { } visible = { has_completed_focus = SIA_public_credit has_idea = idea_SIA_public_credit_debt } fire_only_once = yes cost = 0 complete_effect = { custom_effect_tooltip = SIA_public_credit_repayment_tt custom_effect_tooltip = newline_tt remove_ideas = idea_SIA_public_credit_debt add_timed_idea = { idea = idea_SIA_public_credit_debt_2 days = 270 } } } SIA_print_additional_money = { allowed = { original_tag = SIA } available = { has_dynamic_modifier = { modifier = idea_SIA_printing_money } } visible = { has_dynamic_modifier = { modifier = idea_SIA_printing_money } } fire_only_once = yes cost = 0 complete_effect = { JAP = { add_to_variable = { SIA_printing_money_JAP_industrial_capacity_factory = 0.05 tooltip = industrial_capacity_factory_tt } } hidden_effect = { add_to_variable = { var = idea_SIA_printing_money_monthly_change value = 0.0025 } } custom_effect_tooltip = { localization_key = SIA_printing_money_monthly_increase_increase VALUE = 0.0025 } } } SIA_standing_our_ground_mission = { activation = { always = no } available = { hidden_trigger = { always = no } } cancel_trigger = { has_war = no } icon = GFX_decision_generic_political_discourse is_good = yes days_mission_timeout = 90 timeout_effect = { remove_ideas = idea_SIA_standing_our_ground_mission_temp_buff } } SIA_sway_luang_chawengsaksongkhram_to_seri_thai = { allowed = { original_tag = SIA } available = { has_completed_focus = SIA_seri_thai } visible = { has_completed_focus = SIA_seri_thai has_character = SIA_luang_chawengsaksongkhram } fire_only_once = yes cost = 20 days_remove = 30 icon = GFX_decision_generic_political_discourse remove_effect = { custom_effect_tooltip = SIA_sway_generals_to_seri_thai_tt SIA_luang_chawengsaksongkhram = { set_character_flag = SIA_seri_thai_swayed } custom_effect_tooltip = SIA_sway_general_cw_scale_tt add_to_variable = { SIA_seri_thai_cw_scale = 0.05 } } } SIA_sway_aditya_dibabha_to_seri_thai = { allowed = { original_tag = SIA } available = { has_completed_focus = SIA_seri_thai } visible = { has_completed_focus = SIA_seri_thai has_character = SIA_aditya_dibabha } fire_only_once = yes cost = 20 days_remove = 30 icon = GFX_decision_generic_political_discourse remove_effect = { custom_effect_tooltip = SIA_sway_generals_to_seri_thai_tt SIA_aditya_dibabha = { set_character_flag = SIA_seri_thai_swayed } custom_effect_tooltip = SIA_sway_general_cw_scale_tt add_to_variable = { SIA_seri_thai_cw_scale = 0.05 } } } SIA_sway_mangkorn_phromyothi_to_seri_thai = { allowed = { original_tag = SIA } available = { has_completed_focus = SIA_seri_thai } visible = { has_completed_focus = SIA_seri_thai has_character = SIA_mangkorn_phromyothi } fire_only_once = yes cost = 20 days_remove = 30 icon = GFX_decision_generic_political_discourse remove_effect = { custom_effect_tooltip = SIA_sway_generals_to_seri_thai_tt SIA_mangkorn_phromyothi = { set_character_flag = SIA_seri_thai_swayed } custom_effect_tooltip = SIA_sway_general_cw_scale_tt add_to_variable = { SIA_seri_thai_cw_scale = 0.05 } } } SIA_sway_luang_haansongkhram_to_seri_thai = { allowed = { original_tag = SIA } available = { has_completed_focus = SIA_seri_thai } visible = { has_completed_focus = SIA_seri_thai has_character = SIA_luang_haansongkhram } fire_only_once = yes cost = 20 days_remove = 30 icon = GFX_decision_generic_political_discourse remove_effect = { custom_effect_tooltip = SIA_sway_generals_to_seri_thai_tt SIA_luang_haansongkhram = { set_character_flag = SIA_seri_thai_swayed } custom_effect_tooltip = SIA_sway_general_cw_scale_tt add_to_variable = { SIA_seri_thai_cw_scale = 0.05 } } } SIA_sway_charun_rattanakun_seriroengrit_to_seri_thai = { allowed = { original_tag = SIA } available = { has_completed_focus = SIA_seri_thai } visible = { has_completed_focus = SIA_seri_thai has_character = SIA_charun_rattanakun_seriroengrit } fire_only_once = yes cost = 20 days_remove = 30 icon = GFX_decision_generic_political_discourse remove_effect = { custom_effect_tooltip = SIA_sway_generals_to_seri_thai_tt SIA_charun_rattanakun_seriroengrit = { set_character_flag = SIA_seri_thai_swayed } custom_effect_tooltip = SIA_sway_general_cw_scale_tt add_to_variable = { SIA_seri_thai_cw_scale = 0.05 } } } SIA_sway_phichit_kriangsakphichit_to_seri_thai = { allowed = { original_tag = SIA } available = { has_completed_focus = SIA_seri_thai } visible = { has_completed_focus = SIA_seri_thai has_character = SIA_phichit_kriangsakphichit } fire_only_once = yes cost = 20 days_remove = 30 icon = GFX_decision_generic_political_discourse remove_effect = { custom_effect_tooltip = SIA_sway_generals_to_seri_thai_tt SIA_phichit_kriangsakphichit = { set_character_flag = SIA_seri_thai_swayed } custom_effect_tooltip = SIA_sway_general_cw_scale_tt add_to_variable = { SIA_seri_thai_cw_scale = 0.05 } } } SIA_sway_jira_wichitsongkhram_to_seri_thai = { allowed = { original_tag = SIA } available = { has_completed_focus = SIA_seri_thai } visible = { has_completed_focus = SIA_seri_thai has_character = SIA_jira_wichitsongkhram } fire_only_once = yes cost = 20 days_remove = 30 icon = GFX_decision_generic_political_discourse remove_effect = { custom_effect_tooltip = SIA_sway_generals_to_seri_thai_tt SIA_jira_wichitsongkhram = { set_character_flag = SIA_seri_thai_swayed } custom_effect_tooltip = SIA_sway_general_cw_scale_tt add_to_variable = { SIA_seri_thai_cw_scale = 0.05 } } } SIA_sway_phin_choonhavan_to_seri_thai = { allowed = { original_tag = SIA } available = { has_completed_focus = SIA_seri_thai } visible = { has_completed_focus = SIA_seri_thai has_character = SIA_phin_choonhavan } fire_only_once = yes cost = 20 days_remove = 30 icon = GFX_decision_generic_political_discourse remove_effect = { custom_effect_tooltip = SIA_sway_generals_to_seri_thai_tt SIA_phin_choonhavan = { set_character_flag = SIA_seri_thai_swayed } custom_effect_tooltip = SIA_sway_general_cw_scale_tt add_to_variable = { SIA_seri_thai_cw_scale = 0.05 } } } SIA_sway_tiang_sirikhan_to_seri_thai = { allowed = { original_tag = SIA } available = { has_completed_focus = SIA_seri_thai } visible = { has_completed_focus = SIA_seri_thai has_character = SIA_tiang_sirikhan } fire_only_once = yes cost = 20 days_remove = 30 icon = GFX_decision_generic_political_discourse remove_effect = { custom_effect_tooltip = SIA_sway_generals_to_seri_thai_tt SIA_tiang_sirikhan = { set_character_flag = SIA_seri_thai_swayed } custom_effect_tooltip = SIA_sway_general_cw_scale_tt add_to_variable = { SIA_seri_thai_cw_scale = 0.05 } } } } SIA_appeal_for_support_cat = { SIA_seek_support_from_constitutional_monarchists = { visible = { NOT = { has_country_flag = SIA_support_from_constitutional_monarchists } } available = { } cost = 0 icon = GFX_decision_generic_political_discourse days_remove = 14 complete_effect = { } remove_effect = { add_popularity = { ideology = neutrality popularity = 0.05 } set_country_flag = SIA_support_from_constitutional_monarchists custom_effect_tooltip = SIA_seek_support_from_constitutional_monarchists_tt add_to_variable = { additional_support_monarchist_cw = 0.05 } } ai_will_do = { base = 0 modifier = { has_country_flag = SIA_ai_going_constitutional add = 1 } } } SIA_seek_support_from_absolutists_monarchists = { visible = { NOT = { has_country_flag = SIA_support_from_absolutist_monarchists } } available = { } cost = 0 icon = GFX_decision_generic_political_discourse days_remove = 14 complete_effect = { } remove_effect = { add_popularity = { ideology = neutrality popularity = 0.05 } set_country_flag = SIA_support_from_absolutist_monarchists custom_effect_tooltip = SIA_seek_support_from_absolutists_monarchists_tt add_to_variable = { additional_support_monarchist_cw = 0.05 } } ai_will_do = { base = 1 modifier = { has_country_flag = SIA_ai_going_constitutional factor = 0 } } } SIA_appeal_to_industrialists = { visible = { NOT = { has_country_flag = SIA_appeal_to_industrialists_flag } } available = { } cost = 0 icon = GFX_decision_category_gre_investment_decisions days_remove = 14 complete_effect = { } remove_effect = { add_popularity = { ideology = neutrality popularity = 0.05 } set_country_flag = SIA_appeal_to_industrialists_flag custom_effect_tooltip = SIA_appeal_to_industrialists_tt effect_tooltip = { add_equipment_to_stockpile = { type = artillery_equipment_1 amount = 150 producer = SIA } add_equipment_to_stockpile = { type = infantry_equipment_0 amount = 1700 producer = SIA } add_equipment_to_stockpile = { type = support_equipment amount = 150 producer = SIA } } add_to_variable = { additional_support_monarchist_cw = 0.05 } } ai_will_do = { base = 1 } } SIA_appeal_to_rural_people = { visible = { NOT = { has_country_flag = SIA_appeal_to_rural_flag } } available = { } cost = 0 icon = GFX_decision_POL_looming_peasants_strike days_remove = 14 remove_effect = { add_popularity = { ideology = neutrality popularity = 0.05 } set_country_flag = SIA_appeal_to_rural_flag custom_effect_tooltip = SIA_appeal_to_rural_people_tt effect_tooltip = { add_timed_idea = { idea = idea_SIA_rural_support days = 40 } } add_to_variable = { additional_support_monarchist_cw = 0.05 } } ai_will_do = { base = 1 } } SIA_appeal_to_navy_clique = { visible = { NOT = { has_country_flag = SIA_appeal_to_navy_clique_flag } } available = { } cost = 0 icon = GFX_decision_POL_looming_peasants_strike days_remove = 14 remove_effect = { add_popularity = { ideology = neutrality popularity = 0.05 } set_country_flag = SIA_appeal_to_navy_clique_flag custom_effect_tooltip = SIA_appeal_to_navy_clique_tt add_to_variable = { additional_support_monarchist_cw = 0.05 } } ai_will_do = { base = 1 } } SIA_appeal_to_navy_clique_countdown = { icon = GFX_decision_generic_political_discourse selectable_mission = no cancel_trigger = { has_completed_focus = SIA_thonburi_class_coastal_defense_ship } available = { hidden_trigger = { always = no } } visible = { has_country_flag = SIA_appeal_to_navy_clique_flag has_completed_focus = SIA_the_kings_gambit has_civil_war = no } activation = { has_country_flag = SIA_appeal_to_navy_clique_flag has_completed_focus = SIA_the_kings_gambit has_civil_war = no } is_good = no days_mission_timeout = 720 fire_only_once = yes timeout_effect = { add_stability = -0.1 add_war_support = -0.05 add_popularity = { ideology = neutrality popularity = -0.1 } } } SIA_implement_constitutionalist_reforms_countdown = { icon = GFX_decision_generic_political_discourse selectable_mission = no cancel_trigger = { OR = { has_completed_focus = SIA_a_constitutional_monarchy has_completed_focus = SIA_an_absolute_monarchy } } available = { hidden_trigger = { always = no } } visible = { has_country_flag = SIA_support_from_constitutional_monarchists has_completed_focus = SIA_the_kings_gambit has_civil_war = no } activation = { has_country_flag = SIA_support_from_constitutional_monarchists has_completed_focus = SIA_the_kings_gambit has_civil_war = no } is_good = no days_mission_timeout = 720 fire_only_once = yes timeout_effect = { add_stability = -0.1 add_war_support = -0.05 add_popularity = { ideology = neutrality popularity = -0.1 } } } SIA_implement_rural_reforms_countdown = { icon = GFX_decision_generic_political_discourse selectable_mission = no cancel_trigger = { OR = { has_completed_focus = SIA_reduction_of_agricultural_yield_taxes has_completed_focus = SIA_mechanization_of_agriculture } } available = { hidden_trigger = { always = no } } visible = { has_country_flag = SIA_appeal_to_rural_flag has_completed_focus = SIA_the_kings_gambit has_civil_war = no } activation = { has_country_flag = SIA_appeal_to_rural_flag has_completed_focus = SIA_the_kings_gambit has_civil_war = no } is_good = no days_mission_timeout = 720 fire_only_once = yes timeout_effect = { add_stability = -0.1 add_war_support = -0.05 add_popularity = { ideology = neutrality popularity = -0.1 } } } SIA_implement_absolutist_reforms_countdown = { icon = GFX_decision_generic_political_discourse selectable_mission = no cancel_trigger = { OR = { has_completed_focus = SIA_an_absolute_monarchy has_completed_focus = SIA_a_constitutional_monarchy } } available = { hidden_trigger = { always = no } } visible = { has_country_flag = SIA_support_from_absolutist_monarchists has_completed_focus = SIA_the_kings_gambit has_civil_war = no } activation = { has_country_flag = SIA_support_from_absolutist_monarchists has_completed_focus = SIA_the_kings_gambit has_civil_war = no } is_good = no days_mission_timeout = 720 fire_only_once = yes timeout_effect = { add_stability = -0.1 add_war_support = -0.05 add_popularity = { ideology = neutrality popularity = -0.15 } } } SIA_implement_industrialists_reforms_countdown = { icon = GFX_decision_generic_political_discourse selectable_mission = no cancel_trigger = { custom_trigger_tooltip = { tooltip = SIA_implement_industrialists_reforms_countdown_trigger check_variable = { var = total_constructed_civilian_factory value = total_constructed_civilian_factory_target compare = greater_than_or_equals } } } available = { hidden_trigger = { always = no } } visible = { has_country_flag = SIA_appeal_to_industrialists_flag has_completed_focus = SIA_the_kings_gambit has_civil_war = no } activation = { has_country_flag = SIA_appeal_to_industrialists_flag has_completed_focus = SIA_the_kings_gambit has_civil_war = no } is_good = no days_mission_timeout = 720 fire_only_once = yes timeout_effect = { add_stability = -0.1 add_war_support = -0.05 add_popularity = { ideology = neutrality popularity = -0.15 } } } } SIA_army_navy_reform_cat = { SIA_divert_army_funds_to_navy_toggle = { visible = { has_completed_focus = SIA_direct_army_fundings_towards_the_navy } available = { } cost = 50 icon = GFX_decision_generic_political_discourse days_re_enable = 190 days_remove = 30 complete_effect = { } remove_effect = { if = { limit = { has_idea = idea_SIA_diverting_army_funds_to_navy } remove_ideas = idea_SIA_diverting_army_funds_to_navy SIA_increase_military_approval = yes SIA_decrease_civilian_approval = yes } else = { add_ideas = idea_SIA_diverting_army_funds_to_navy SIA_increase_civilian_approval = yes SIA_decrease_military_approval = yes } } } } SIA_asian_democratic_compact_cat = { SIA_demand_independence = { icon = generic_civil_support #target_array = ROOT.adc_possible_countries_non_existing target_trigger = { FROM = { is_subject = yes exists = yes capital_scope = { OR = { is_on_continent = asia is_on_continent = australia is_on_continent = middle_east } } NOT = { has_war_with = ROOT } } } targets = { YUN MAL LAO BRM INS AST GXC GDC TIB BHU NEP KHM PHI SIC XSM } fire_only_once = yes available = { hidden_trigger = { NOT = { has_country_flag = demand_release_cooldown } } } cost = 20 complete_effect = { set_country_flag = { flag = demand_release_cooldown value = 1 days = 5 } FROM = { overlord = { set_variable = { SIA_adc_demand_country_to_be_released = PREV } country_event = { id = siam_adc.1 hours = 2 } } } } } #These are special snowflakes because they never exists at game start (LAO CAM AND VIN) SIA_demand_independence_LAO = { icon = generic_civil_support visible = { OR = { 1068 = { controller = { NOT = { original_tag = LAO } NOT = { tag = ROOT } NOT = { has_war_with = ROOT } } } 1069 = { controller = { NOT = { original_tag = LAO } NOT = { tag = ROOT } NOT = { has_war_with = ROOT } } } 670 = { controller = { NOT = { original_tag = LAO } NOT = { tag = ROOT } NOT = { has_war_with = ROOT } } } } } fire_only_once = yes available = { hidden_trigger = { NOT = { has_country_flag = demand_release_cooldown } } } cost = 20 complete_effect = { clear_array = SIA_lao_owners every_state = { limit = { OR = { state = 1068 state = 1069 state = 670 } NOT = { is_controlled_by = ROOT } controller = { NOT = { original_tag = LAO } } } if = { limit = { NOT = { is_in_array = { array = ROOT.SIA_lao_owners value = THIS.controller } } } add_to_array = { array = ROOT.SIA_lao_owners value = THIS.controller } } } custom_effect_tooltip = SIA_demand_independence_LAO_tt hidden_effect = { for_each_scope_loop = { array = SIA_lao_owners set_variable = { SIA_adc_demand_country_to_be_released = LAO } country_event = { id = siam_adc.1 hours = 2 } } } set_country_flag = { flag = demand_release_cooldown value = 1 days = 5 } } } SIA_demand_independence_CAM = { icon = generic_civil_support visible = { OR = { 1067 = { controller = { NOT = { tag = ROOT } NOT = { original_tag = CAM has_war_with = ROOT } } } 741 = { controller = { NOT = { tag = ROOT } NOT = { original_tag = CAM has_war_with = ROOT } } } } } fire_only_once = yes available = { hidden_trigger = { NOT = { has_country_flag = demand_release_cooldown } } } cost = 20 complete_effect = { clear_array = SIA_cam_owners every_state = { limit = { OR = { state = 1067 state = 741 } NOT = { is_controlled_by = ROOT } controller = { NOT = { original_tag = CAM } } } if = { limit = { NOT = { is_in_array = { array = ROOT.SIA_cam_owners value = THIS.controller } } } add_to_array = { array = ROOT.SIA_cam_owners value = THIS.controller } } } custom_effect_tooltip = SIA_demand_independence_CAM_tt for_each_scope_loop = { array = SIA_cam_owners set_variable = { SIA_adc_demand_country_to_be_released = CAM } country_event = { id = siam_adc.1 hours = 2 } } set_country_flag = { flag = demand_release_cooldown value = 1 days = 5 } } } SIA_demand_independence_VIN = { icon = generic_civil_support visible = { OR = { 671 = { controller = { NOT = { tag = ROOT } NOT = { original_tag = VIN has_war_with = ROOT } } } 286 = { controller = { NOT = { tag = ROOT } NOT = { original_tag = VIN has_war_with = ROOT } } } 1066 = { controller = { NOT = { tag = ROOT } NOT = { original_tag = VIN has_war_with = ROOT } } } 1017 = { controller = { NOT = { tag = ROOT } NOT = { original_tag = VIN has_war_with = ROOT } } } } } available = { hidden_trigger = { NOT = { has_country_flag = demand_release_cooldown } } } fire_only_once = yes cost = 20 complete_effect = { clear_array = SIA_vin_owners every_state = { limit = { OR = { state = 671 state = 1017 state = 286 state = 1066 } controller = { NOT = { original_tag = VIN } } NOT = { is_controlled_by = ROOT } } if = { limit = { NOT = { is_in_array = { array = ROOT.SIA_vin_owners value = THIS.controller } } } add_to_array = { array = ROOT.SIA_vin_owners value = THIS.controller } } } custom_effect_tooltip = SIA_demand_independence_VIN_tt hidden_effect = { for_each_scope_loop = { array = SIA_vin_owners set_variable = { SIA_adc_demand_country_to_be_released = VIN } country_event = { id = siam_adc.1 hours = 2 } } set_country_flag = { flag = demand_release_cooldown value = 1 days = 5 } } } } SIA_invite_to_adc = { #target_array = ROOT.adc_possible_countries_non_existing target_trigger = { FROM = { is_subject = no is_in_faction = no NOT = { has_war_with = ROOT } has_offensive_war = no capital_scope = { OR = { is_on_continent = asia is_on_continent = australia is_on_continent = middle_east } } } } days_re_enable = 365 targets = { YUN MAL LAO BRM RAJ INS AST GXC GDC TIB BHU NEP KHM PHI SIC XSM CAM LAO VIN } targets_dynamic = yes available = { all_allied_country = { is_in_faction_with = SIA NOT = { has_war_with = FROM } } } cost = 20 complete_effect = { FROM = { set_country_flag = SIA_weight_towards_accepting_invite_to_alliance country_event = { id = generic.5 } #set_country_flag = SIA_has_invited_to_adc } } } } SIA_khana_ratsadon_cat = { SIA_promote_civilian_wing = { icon = GFX_decision_generic_political_discourse allowed = { original_tag = SIA } available = { has_idea = idea_SIA_civilian_rebellious NOT = { has_idea = idea_SIA_wing_promotion_disruption } } visible = { has_completed_focus = SIA_the_khana_ratsadon NOT = { has_country_flag = SIA_turn_off_the_khana_ratsadon } } cost = 50 days_re_enable = 180 complete_effect = { custom_effect_tooltip = SIA_increase_civilian_approval_tt SIA_increase_civilian_approval = yes add_timed_idea = { idea = idea_SIA_wing_promotion_disruption days = 180 } } ai_will_do = { base = 0 } } SIA_promote_military_wing = { icon = GFX_decision_SWE_set_army_budget allowed = { original_tag = SIA } available = { has_idea = idea_SIA_military_rebellious NOT = { has_idea = idea_SIA_wing_promotion_disruption } } visible = { has_completed_focus = SIA_the_khana_ratsadon NOT = { has_country_flag = SIA_turn_off_the_khana_ratsadon } } cost = 50 days_re_enable = 180 complete_effect = { custom_effect_tooltip = SIA_increase_military_approval_tt SIA_increase_military_approval = yes add_timed_idea = { idea = idea_SIA_wing_promotion_disruption days = 180 } } ai_will_do = { base = 0 } } SIA_cultivate_civilian_wing = { icon = GFX_decision_generic_political_discourse allowed = { original_tag = SIA } available = { NOT = { has_idea = idea_SIA_civilian_full_support } } visible = { has_completed_focus = SIA_royal_palace_bureau_directive_no_1523 NOT = { has_country_flag = SIA_turn_off_the_khana_ratsadon } } cost = 50 days_remove = 365 remove_effect = { custom_effect_tooltip = SIA_increase_civilian_approval_tt SIA_increase_civilian_approval = yes } ai_will_do = { base = 1 } } SIA_cultivate_military_wing = { icon = GFX_decision_SWE_set_army_budget allowed = { original_tag = SIA } available = { NOT = { has_idea = idea_SIA_military_full_support } } visible = { has_completed_focus = SIA_royal_palace_bureau_directive_no_1523 NOT = { has_country_flag = SIA_turn_off_the_khana_ratsadon } } cost = 50 days_remove = 365 remove_effect = { custom_effect_tooltip = SIA_increase_military_approval_tt SIA_increase_military_approval = yes } ai_will_do = { base = 1 } } SIA_end_factionalism_mission = { icon = GFX_decision_generic_political_discourse allowed = { original_tag = SIA } available = { hidden_trigger = { always = no } } days_mission_timeout = 270 activation = { has_completed_focus = SIA_royal_palace_bureau_directive_no_1523 has_idea = idea_SIA_civilian_full_support has_idea = idea_SIA_military_full_support NOT = { has_country_flag = SIA_factionalism_overcome } NOT = { has_country_flag = SIA_turn_off_the_khana_ratsadon } } cancel_trigger = { OR = { NOT = { has_idea = idea_SIA_civilian_full_support } NOT = { has_idea = idea_SIA_military_full_support } has_country_flag = SIA_factionalism_overcome has_country_flag = SIA_turn_off_the_khana_ratsadon } } fire_only_once = no is_good = yes timeout_effect = { set_country_flag = SIA_factionalism_overcome } } SIA_khana_ratsadon_dummy_military = { #To warn icon = generic_civil_support available = { has_idea = idea_SIA_military_rebellious has_civil_war = no hidden_trigger = { always = no } } days_remove = 150 allowed = { original_tag = SIA } visible = { has_completed_focus = SIA_the_khana_ratsadon NOT = { has_active_mission = SIA_khana_ratsadon_military_coup_mission } } fire_only_once = no is_good = no remove_effect = { custom_effect_tooltip = SIA_khana_ratsadon_dummy_military_tt } } SIA_khana_ratsadon_military_coup_mission = { icon = generic_civil_support allowed = { original_tag = SIA } available = { hidden_trigger = { always = no } } days_mission_timeout = 150 #days_remove = 1 activation = { has_idea = idea_SIA_military_rebellious has_civil_war = no NOT = { has_country_flag = SIA_turn_off_the_khana_ratsadon } } cancel_trigger = { OR = { NOT = { has_idea = idea_SIA_military_rebellious } has_civil_war = yes has_country_flag = SIA_turn_off_the_khana_ratsadon } } fire_only_once = no is_good = no timeout_effect = { if = { limit = { has_idea = idea_SIA_military_rebellious } swap_ideas = { remove_idea = idea_SIA_military_rebellious add_idea = idea_SIA_military_opposition } } if = { limit = { NOT = { has_country_flag = SIA_khana_ratsadon_has_couped } } set_country_flag = SIA_khana_ratsadon_has_couped SIA_military_coup = yes } else = { add_timed_idea = { idea = idea_SIA_military_wing_unrest days = 200 } } } } SIA_khana_ratsadon_dummy_civilian = { #To warn icon = generic_civil_support available = { has_idea = idea_SIA_civilian_rebellious has_civil_war = no hidden_trigger = { always = no } } days_remove = 150 allowed = { original_tag = SIA } visible = { has_completed_focus = SIA_the_khana_ratsadon NOT = { has_active_mission = SIA_khana_ratsadon_civilian_coup_mission } } fire_only_once = no is_good = no remove_effect = { custom_effect_tooltip = SIA_khana_ratsadon_dummy_civilian_tt } } SIA_khana_ratsadon_civilian_coup_mission = { icon = generic_civil_support allowed = { original_tag = SIA } available = { hidden_trigger = { always = no } } days_mission_timeout = 150 #days_remove = 1 activation = { has_idea = idea_SIA_civilian_rebellious has_civil_war = no NOT = { has_country_flag = SIA_turn_off_the_khana_ratsadon } } cancel_trigger = { OR = { NOT = { has_idea = idea_SIA_civilian_rebellious } has_civil_war = yes has_country_flag = SIA_turn_off_the_khana_ratsadon } } fire_only_once = no is_good = no timeout_effect = { if = { limit = { has_idea = idea_SIA_civilian_rebellious } swap_ideas = { remove_idea = idea_SIA_civilian_rebellious add_idea = idea_SIA_civilian_opposition } } if = { limit = { NOT = { has_country_flag = SIA_khana_ratsadon_has_couped } } set_country_flag = SIA_khana_ratsadon_has_couped SIA_civilian_coup = yes } else = { add_timed_idea = { idea = idea_SIA_civilian_wing_unrest days = 200 } } } } }