
International Organization
Protestant Union
The Protestant Union is a defensive alliance of countries of the Reformation which want to protect themselves from the growing hostilities of the Catholic states of the Holy Roman Empire. Although founded by states of the Lutheran and Calvinist faiths, every member of the Empire who feels threatened by the overzealous counter-reformers may join this International Organization.
Religious SuperiorityCasus Bellion left
Catholic LeagueInternational Organizationai desire to join, can lead trigger
CatholicismReligionai desire to join
War of ReligionsSituationcan leave triggerio_join_staggerVariableai desire to joinModifiers
Definitionin_game/common/international_organizations/religious_leagues.txt:2
4leader_type = country
5unique = yes
6show_on_diplomatic_map = yes
7expel_members_who_are_targets_of_other_members = no
9leader_color = define:NMapColors|INTERNATIONAL_ORGANIZATION_LEADER_COLOR
10has_leader_country = yes
11disband_if_no_leader = no
12can_declare_war = {
13trigger_if = {
14limit = {
14scope:attacker ?= {
14is_member_of_international_organization = scope:recipient
}
}
15scope:defender ?= {
15NOT = {
15is_member_of_international_organization = scope:recipient
}
}
}
17trigger_else = {
18always = yes
}
}
22create_visible_trigger = {
}
31invite_visible_trigger = {
}
40can_join_trigger = {
41OR = {
}
45is_rebel_country = no
51NOT = {
}
}
58NOT = {
}
}
65NOT = {
66has_cooldown = blocked_from_joining_protestant_union
}
}
69can_leave_trigger = {
70trigger_if = {
71limit = {
71exists = root
}
72NOT = {
}
}
79NOT = {
}
}
86scope:recipient.total_members > 1
}
88trigger_else = {
88always = no
}
}
90can_lead_trigger = {
92is_subject = no
94trigger_if = {
95limit = {
95exists = union
}
96any_union_partner = {
}
}
}
101auto_leave_trigger = {
102NOR = {
}
}
107join_offensive_wars_always = {
108custom_tooltip = {
109text = religious_leagues_join_offensive_war.tt They are the leader of their religious league, OR the target is the leader of the opposing religious league.
110scope:actor = {
110is_leader_of_international_organization = root
}
111scope:target ?= {
}
}
}
114join_defensive_wars_always = {
114always = yes
}
116auto_disband_trigger = {
116always = no
}
120modifier = {
}
125on_joined = {
126hidden_effect = {
127if = {
128limit = {
128current_year < 1610
}
129random = {
130chance = {
131value = 1610
132subtract = current_year
}
134set_variable = {
136value = {
137value = 1610
138subtract = current_year
139divide = 100
}
141months = 1
}
}
}
}
}
147on_left = {
148hidden_effect = {
149every_casus_belli_target = {
150limit = {
150root = {
}
}
151root = {
}
}
}
}
155ai_desire_to_join = {
156value = -40
157if = {
159add = {
160desc = "WE_ARE_PROTESTANT" We follow a Religion of the Reformation
161value = 40
}
}
164else_if = {
166add = {
167desc = "WE_ARE_CATHOLIC" We are Catholic
168value = -40
}
}
177if = {
178limit = {
}
182add = {
183desc = "OPINION_OF_RELIGIOUS_LEAGUE_LEADER" Opinion
184value = {
186leader_country = {
187root = {
188value = this_opinion_of_prev
189multiply = 0.2
}
}
}
}
}
}
196add = {
197desc = "OPINION_OF_RELIGIOUS_LEAGUE_LEADER" Opinion
198value = {
200leader_country = {
201root = {
202value = this_opinion_of_prev
203multiply = -0.4
}
}
}
}
}
209if = {
216multiply = {
217desc = "ESTIMATE_IO_SITUATION_FIRST" Wants to estimate the political situation first
218value = scope:recipient.var:io_join_stagger
}
}
221if = {
222limit = {
223exists = scope:recipient
224any_union_partner = {
225is_member_of_international_organization = scope:recipient
}
}
228add = {
229desc = "DIPLOREASON_UNION_SUPPORTS_ORGANIZATION" Any Union member is in the Organization
230value = 500
}
}
233if = {
234limit = {
236any_union_partner = {
}
}
240subtract = {
241desc = "DIPLOREASON_UNION_OPPOSES_ORGANIZATION" Any Union member is in the opposing Organization
242value = 1000
}
}
}
246ai_desire_to_allow_new_member = {
247add = {
248desc = "WE_WANT_THE_ORGANIZATION_TO_GROW" We want the International Organization to grow
249value = 20
}
}

