On ActionChanged this version
on_union_formation
sent after the new union is setup root = new union IO, scope:ruler = ruling character or heir (optional) scope:first_leader = the leader country of the first union from the merge (optional) scope:second_leader = the leader country of the second union from the merge
Junior PartnerSpecial Statuseffect
Senior PartnerSpecial Statuseffecttemp_has_participated_in_parliamentVariableeffectDefinitionin_game/common/on_action/_hardcoded.txt:4122
4123effect = {
4124every_international_organization_member = {
4125if = {
4126limit = {
4126has_special_status_in_international_organization = {
4126international_organization = root
}
}
4127root = {
4127international_organization_remove_special_status = {
4127country = prev
}
}
}
4129if = {
4130limit = {
4130has_special_status_in_international_organization = {
4130international_organization = root
}
}
4131root = {
4131international_organization_remove_special_status = {
4131country = prev
}
}
}
}
4134if = {
4135limit = {
4135exists = scope:first_leader
}
4136if = {
4137limit = {
4138exists = scope:second_leader
4139scope:first_leader.country_economical_base < scope:second_leader.country_economical_base
}
4141scope:second_leader = {
4141save_scope_as = union_leader
}
}
4143else = {
4144scope:first_leader = {
4144save_scope_as = union_leader
}
}
4146set_leader_country = scope:union_leader
4147international_organization_add_special_status = {
4149country = scope:union_leader
}
4151if = {
4152limit = {
4153exists = scope:ruler
4154scope:ruler = {
4155NOT = {
4155owner = scope:union_leader
}
}
}
}
4162every_international_organization_member = {
4163limit = {
4163this != scope:union_leader
}
4164root = {
4165international_organization_add_special_status = {
4167country = prev
}
}
}
}
4172every_international_organization_member = {
4175set_participated_in_parliament = {
4175international_organization = prev
}
4176save_scope_as = union_parliament_participant
4177root = {
4178change_parliament_issue_support = {
4179add = {
4180desc = total_special_status_power_fraction
4181value = "special_status_power_fraction(scope:union_parliament_participant|special_status:junior_partner)"
}
}
}
}
}