add_namespace = brics_join # Leader receives a membership application. ROOT = BRICS leader, FROM = applicant. country_event = { id = brics_join.1 title = brics_join.1.t desc = brics_join.1.d picture = GFX_pol_election_event is_triggered_only = yes # Accept option = { name = brics_join.1.a log = "[GetDateText]: [This.GetName]: brics_join.1.a executed" FROM = { country_event = { id = brics_join.2 days = 2 } } custom_effect_tooltip = TT_IF_THEY_ACCEPT effect_tooltip = { FROM = { BRICS_join = yes } } ai_chance = { base = 80 modifier = { factor = 0 FROM = { has_government = fascism } } modifier = { factor = 0 any_of_scopes = { array = global.BRICS_full_members has_war_with = FROM } } modifier = { add = 20 has_opinion = { target = FROM value > 25 } } modifier = { factor = 0.2 has_opinion = { target = FROM value < 0 } } } } # Reject option = { name = brics_join.1.b log = "[GetDateText]: [This.GetName]: brics_join.1.b executed" FROM = { country_event = { id = brics_join.3 days = 2 } } ai_chance = { base = 10 modifier = { add = 100 FROM = { has_government = fascism } } modifier = { add = 100 any_of_scopes = { array = global.BRICS_full_members has_war_with = FROM } } modifier = { add = 30 has_opinion = { target = FROM value < 0 } } } } } # Application accepted. ROOT = applicant. country_event = { id = brics_join.2 title = brics_join.2.t desc = brics_join.2.d picture = GFX_pol_election_event is_triggered_only = yes option = { name = brics_join.2.a log = "[GetDateText]: [This.GetName]: brics_join.2.a executed" BRICS_join = yes } } # Application rejected. ROOT = applicant. Offers a delayed retry. country_event = { id = brics_join.3 title = brics_join.3.t desc = brics_join.3.d picture = GFX_pol_election_event is_triggered_only = yes # Try again later option = { name = brics_join.3.a log = "[GetDateText]: [This.GetName]: brics_join.3.a executed" country_event = { id = brics_join.5 days = 180 } } # Abandon the effort option = { name = brics_join.3.b log = "[GetDateText]: [This.GetName]: brics_join.3.b executed" clr_country_flag = BRICS_application_pending } } # A nation joins BRICS. ROOT = the new member. Broadcast to everyone. news_event = { id = brics_join.4 title = brics_join.4.t desc = brics_join.4.d picture = GFX_news_trade_agreement is_triggered_only = yes major = yes option = { name = brics_join.4.a } } # Founding invitation. India forms BRICS and asks the historical founders to join at its creation. # ROOT = the invited founder, FROM = India (the forming leader). On accept the invitee joins as a full member. country_event = { id = brics_join.6 title = brics_join.6.t desc = brics_join.6.d picture = GFX_pol_election_event is_triggered_only = yes trigger = { NOT = { has_idea = RAJ_BRICS } } # Join as a founding member option = { name = brics_join.6.a log = "[GetDateText]: [This.GetName]: brics_join.6.a executed" BRICS_join = yes ai_chance = { base = 20 modifier = { factor = 0 has_government = fascism } modifier = { factor = 0 has_government = nationalist } modifier = { factor = 0 has_war_with = FROM } modifier = { add = 40 OR = { original_tag = CHI original_tag = SOV original_tag = SAF original_tag = BRA } } modifier = { add = 50 has_government = FROM } modifier = { add = 30 has_opinion = { target = FROM value > 25 } } modifier = { factor = 0.25 has_opinion = { target = FROM value < 0 } } } } # Decline the invitation option = { name = brics_join.6.b log = "[GetDateText]: [This.GetName]: brics_join.6.b executed" set_country_flag = brics_declined_membership ai_chance = { base = 20 modifier = { add = 100 has_government = fascism } modifier = { add = 100 has_government = nationalist } modifier = { add = 100 has_war_with = FROM } modifier = { factor = 0.4 OR = { original_tag = CHI original_tag = SOV original_tag = SAF original_tag = BRA } } modifier = { factor = 0.5 has_government = FROM } } } } # Retry window has opened. ROOT = applicant. Resubmit the application. country_event = { id = brics_join.5 title = brics_join.5.t desc = brics_join.5.d picture = GFX_pol_election_event is_triggered_only = yes trigger = { NOT = { has_idea = RAJ_BRICS } } # Resubmit option = { name = brics_join.5.a log = "[GetDateText]: [This.GetName]: brics_join.5.a executed" BRICS_join_via_event = yes } # Not now option = { name = brics_join.5.b log = "[GetDateText]: [This.GetName]: brics_join.5.b executed" clr_country_flag = BRICS_application_pending } }