Scripted Effect
leave_situation_faction
- If
$target$Is a member of international organizationThen$international_organization$- If
- Has a leader
- leader_country exists
- Leader country: target
ThenSet local variable:io_revote - target leaves
- IfHas local variable:
io_revoteThen- update_leader_countryNot shown in the game's tooltip↗IfHas a total of > 0 membersThen
- Ordered international organization member (up to 1, highest
country_economical_basefirst)whereCan lead Previous - IfHas NOT a leaderThenSet leader country: Potential new leaderElse ifLeader countryThis: NotPotential new leaderThenSet leader country: Potential new leader
- Ordered international organization member (up to 1, highest
- Remove local variable:
io_revote
- update_leader_country
- Not shown in the game's tooltip
$target$- Set variable
- Name: leave variable
- Value: international organization
- Years: leave years
- If
- Has Variable: join variable
var:$join_variable$: international organization
ThenRemove variable: join variable
- Set variable
Exact script
Script that calls it fills these in, as each caller in Connections shows.
$target$$international_organization$$leave_variable$$leave_years$$join_variable$
Used by 3
Actions
Leave the Factioninternational_organization = international_organization:ghibellines_io · join_variable = gag_recently_joined_a_faction · leave_variable = gag_recently_left_a_faction · leave_years = 2 · target = scope:actor (+1)Effect
Leave the Religious Leagueinternational_organization = international_organization:catholic_league · join_variable = war_of_religions_join_variable · leave_variable = war_of_religions_left_variable · leave_years = 2 · target = scope:actor (+1)Effect
Peace Treaties
Force Faction Changeinternational_organization = international_organization:ghibellines_io · join_variable = gag_recently_joined_a_faction · leave_variable = gag_recently_left_a_faction · leave_years = 2 · target = scope:loser (+1)Effect