
Action
Join Religious League
Join a Religious League for the War of Religions Situation
Religious SuperiorityCasus Belliallow
Catholic LeagueInternational Organizationpotential, select trigger 2
Protestant UnionInternational Organizationpotential, select trigger 2
War of ReligionsSituationallow, select trigger 1Definitionin_game/common/generic_actions/war_of_religions.txt:81
82type = situation
84potential = {
85scope:actor = {
}
}
90allow = {
91scope:actor = {
92NOT = {
}
}
99NOT = {
}
}
106NOT = {
107any_current_war = {
}
}
114is_subject = no
}
}
119ai_tick = daily
120ai_tick_frequency = 180
122automation_tick = never
123automation_tick_frequency = 12
125select_trigger = {
126looking_for_a = situation
132target_flag = recipient
133name = "choose_situation" Choose the Situation:
134column = {
135data = name
}
}
143select_trigger = {
144looking_for_a = international_organization
145target_flag = target
146name = "join_religious_league_choose_faction" Choose the Religious League to join
147none_available_msg_key = "no_valid_religious_faction"
148column = {
148data = name
}
149column = {
149data = members_size
}
150visible = {
151OR = {
}
155scope:actor = {
156not = {
156is_member_of_international_organization = root
}
157can_join_international_organization = root
}
}
}
161effect = {
162if = {
163limit = {
163exists = scope:target
}
165target = scope:actor
166international_organization = scope:target
167join_variable = war_of_religions_join_variable
168join_years = 5
169leave_variable = war_of_religions_left_variable
}
}
172else = {
172custom_tooltip = join_religious_league_effect_tt We will join the target Religious League of the War of Religions
}
}
174ai_will_do = {
175add = {
176value = "scope:target.modifier_utility(scope:actor)"
}
180scope:actor = {
182if = {
183limit = {
184not = {
184is_member_of_international_organization_of_type = {
184type = catholic_league
}
}
185not = {
185is_member_of_international_organization_of_type = {
185type = protestant_union
}
}
}
187add = "join_organization_ai_desire(scope:target)"
}
189every_international_organizations_member_of = {
190limit = {
191OR = {
}
}
196subtract = {
197value = "modifier_utility(scope:actor)"
199add = 1
}
}
}
}