Scripted Effect

leave_situation_faction

  • If
    $target$Is a member of international organization
    Then$international_organization$
    • If
      • Has a leader
      • leader_country exists
      • Leader country: target
      ThenSet local variable: io_revote
    • target leaves
    • If
      Has local variable: io_revote
      Then
      • update_leader_country
        Not shown in the game's tooltip
        If
        Has a total of > 0 members
        Then
        • Ordered international organization member (up to 1, highest country_economical_base first)where
          Can lead Previous
          • If
            Has NOT a leader
            ThenSet leader country: Potential new leader
            Else if
            Leader countryThis: NotPotential new leader
            ThenSet leader country: Potential new leader
          ↗
        • Remove local variable: io_revote
    • 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
    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
    Scripting 1

    © 2026 Soft Santa Cruz, S.L.U. All rights reserved. Unofficial fan project, not affiliated with Paradox Interactive. Game content © Paradox Interactive. · About · Privacy · Legal notice