
アクション
宗教連盟への加入
局面「宗教戦争」に備え、宗教連盟に加わる
宗教覇権開戦事由allow
カトリック連盟国際組織potential, select trigger 2
プロテスタント同盟国際組織potential, select trigger 2
宗教戦争局面allow, select trigger 1定義in_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" 局面を選択:
134column = {
135data = name
}
}
143select_trigger = {
144looking_for_a = international_organization
145target_flag = target
146name = "join_religious_league_choose_faction" 加入する宗教連盟を選択
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 宗教戦争の対象となる宗教連盟に加入する
}
}
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
}
}
}
}