On actionZmienione w tej wersji
on_international_organization_changed_leader
root = new_ruler. target = org. scope:old_ruler = previous leader
Religijna wyższośćCasus bellieffect
AustriaKrajeffect
Patriarchat autokefalicznyOrganizacja międzynarodowaeffect
Liga KatolickaOrganizacja międzynarodowaeffect
GibeliniOrganizacja międzynarodowaeffect
Święte Cesarstwo RzymskieOrganizacja międzynarodowaeffect
Państwo ŚrodkaOrganizacja międzynarodowaeffect
Unia ProtestanckaOrganizacja międzynarodowaeffect
Książę elektorStatus specjalnyeffect
Wolne miasto RzeszyStatus specjalnyeffect
Złota bullaPrawoeffect
Wykluczenie z elektoratuTyp modyfikatoraeffectDefinicjain_game/common/on_action/_hardcoded.txt:4719
4720effect = {
4721save_scope_as = new_ruler
4723if = {
4724limit = {
}
4729if = {
4730limit = {
4731exists = scope:old_ruler
4732scope:old_ruler = ROOT
4733has_ruler = yes
}
}
4737if = {
4738limit = {
4739OR = {
4740work_of_art = work_of_art:imperial_crown_hre
4740country = root
4740international_organization = scope:target
}
4741work_of_art = work_of_art:imperial_orb_hre
4741country = root
4741international_organization = scope:target
}
4742work_of_art = work_of_art:saint_stephans_purse
4742country = root
4742international_organization = scope:target
}
4743work_of_art = work_of_art:coronation_gospel_hre
4743country = root
4743international_organization = scope:target
}
}
}
}
4749if = {
4750limit = {
4751OR = {
4752NOT = {
4752exists = scope:old_ruler
}
4753AND = {
4754exists = scope:old_ruler
4755NOT = {
4755scope:old_ruler = ROOT
}
}
}
}
4759if = {
4760limit = {
4760exists = scope:old_ruler
}
}
4765if = {
4766limit = {
4767exists = scope:old_ruler
4768scope:old_ruler = {
4770NOT = {
4770has_presence_in = region:italy_region
}
}
}
4774remove_country_from_international_organization = scope:old_ruler
}
}
4777if = {
4779if = {
4780limit = {
}
4781add_country_to_international_organization = ROOT
}
}
}
}
4786if = {
4787limit = {
4788exists = scope:old_ruler
4789NOT = {
4789scope:old_ruler = root
}
4790scope:old_ruler = {
4791num_subjects > 0
4792any_subject = {
}
}
}
4800scope:old_ruler ?= {
4801every_subject = {
4802limit = {
}
4808overlord = {
4808cancel_subject = prev
}
}
}
4811if = {
4812limit = {
4813exists = scope:new_ruler
4814scope:target = {
}
}
4821scope:target = {
4822every_international_organization_member = {
4823limit = {
4824has_special_status_in_international_organization = {
4826international_organization = scope:target
}
4828NOT = {
4828this = scope:new_ruler
}
}
4830if = {
4832make_subject_of = {
4833target = scope:new_ruler
}
}
4837else = {
}
}
}
}
}
4847if = {
4848limit = {
4849OR = {
4850scope:target = {
4851OR = {
}
}
}
4858has_special_status_in_international_organization = {
}
}
4863scope:target = {
4864international_organization_remove_special_status = {
4866country = root
}
}
}
4870if = {
4871limit = {
}
}
4881if = {
4882limit = {
4883scope:target = {
4883circles_are_active = yes
}
4884is_imperial_circle_leader = yes
}
}
}
4890if = {
4891limit = {
4892scope:target = {
4893OR = {
}
}
4898exists = scope:old_ruler
}
4900scope:old_ruler ?= {
4901if = {
4902limit = {
4903any_casus_belli_target = {
4904scope:old_ruler = {
}
}
}
4909random_casus_belli_target = {
4910limit = {
4911scope:old_ruler = {
}
}
4915save_scope_as = current_religious_enemy_leader
}
}
}
4919if = {
4920limit = {
4920exists = scope:current_religious_enemy_leader
}
4921scope:current_religious_enemy_leader = {
4922if = {
4923limit = {
4923exists = scope:old_ruler
}
4925target = scope:old_ruler
}
}
4929if = {
4930limit = {
4930scope:current_religious_enemy_leader != root
}
4932target = root
}
}
}
}
}
4940if = {
4941limit = {
4942scope:target = {
}
4944exists = scope:old_ruler
}
4946scope:old_ruler = {
4947every_subject = {
4948limit = {
}
4955subject_type = {
4956save_scope_as = type
}
4958scope:old_ruler = {
4958cancel_subject = prev
}
4959make_subject_of = {
4960target = scope:new_ruler
4961type = scope:type
}
}
}
}
4967if = {
4968limit = {
4969scope:target = {
}
}
4971scope:target = {
}
}
}