Scripted Effect

join_situation_faction

  • $international_organization$
    target joins
  • Not shown in the game's tooltip$target$
    • Set variable
      • Name: join variable
      • Value: international organization
      • Years: join years
    • If
      • Has Variable: leave variable
      • var:$leave_variable$: international organization
      ThenRemove variable: leave variable
Exact script

Script that calls it fills these in, as each caller in Connections shows.

  • $international_organization$
  • $target$
  • $join_variable$
  • $join_years$
  • $leave_variable$

Used by 5

Events
  • Gates Opened!international_organization = scope:guelphs_io · join_variable = gag_recently_joined_a_faction · join_years = 5 · leave_variable = gag_recently_left_a_faction · target = scope:target_countryOption
  • Fall of Paduainternational_organization = scope:guelphs_io · join_variable = gag_recently_joined_a_faction · join_years = 5 · leave_variable = gag_recently_left_a_faction · target = scope:target_countryOption
Actions
  • Join Factioninternational_organization = scope:target · join_variable = gag_recently_joined_a_faction · join_years = 5 · leave_variable = gag_recently_left_a_faction · target = scope:actorEffect
  • Join Religious Leagueinternational_organization = scope:target · join_variable = war_of_religions_join_variable · join_years = 5 · leave_variable = war_of_religions_left_variable · target = scope:actorEffect
Peace Treaties
  • Force Faction Changeinternational_organization = international_organization:ghibellines_io · join_variable = gag_recently_joined_a_faction · join_years = 5 · leave_variable = gag_recently_left_a_faction · target = scope:loser (+1)Effect

$international_organization$ = {
add_country_to_international_organization = $target$
}
hidden_effect = {
$target$ = {
set_variable = {
name = $join_variable$
value = $international_organization$
years = $join_years$
}
if = {
limit = {
has_variable = $leave_variable$
var:$leave_variable$ = $international_organization$
}
remove_variable = $leave_variable$
}
}
}

© 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