
ActionChanged this version
Pilgrimage
Visit a Holy Site to strengthen our ties with our faith.
Allow Mysticism vs JurisprudenceModifier Typeeffect
Mysticism vs JurisprudenceSocietal ValueeffectOn PilgrimageStatic ModifierallowDefinitionin_game/common/generic_actions/pilgrimage.txt:1
2type = religious
4sound = UI_action_religion_generic
6potential = {
7scope:actor.religion = {
8has_holy_sites = yes
}
}
12allow = {
13scope:actor = {
14has_ruler = yes
}
}
21cooldown = {
22type = pilgrimage_action
23years = 5
}
26ai_tick = monthly
27ai_tick_frequency = 24
29automation_tick = monthly
30automation_tick_frequency = 12
31player_automated_category = religiousdoctrines
33price = {
34if = {
35limit = {
36exists = scope:target
}
38value = price:pilgrimage_action
}
}
43price_modifier = {
44add = {
45desc = "DIPLOREASON_BASE" Base
46value = 1
}
48if = {
49limit = {
50exists = scope:target
}
52add = {
53desc = "game_concept_opinion" Opinion
54value = {
55scope:target.location.owner = {
56scope:actor = {
57value = prev_opinion_of_this
58divide = -400
}
}
}
}
63add = {
64desc = "DISTANCE_TO_TARGET" Distance
65value = "scope:actor.capital.distance_to_squared(scope:target.location)"
66multiply = 0.0001
}
}
}
71select_trigger = {
72looking_for_a = religion
73source = actor
74target_flag = recipient
75name = "choose_religion" Choose the Religion:
76column = {
76data = name
}
}
79select_trigger = {
80looking_for_a = holy_site
81source = recipient
82target_flag = target
83name = "pilgrimage_select_holy_site_title" Select a Holy Site to pay a visit to
84none_available_msg_key = "pilgrimage_no_holy_sites"
85column = {
86data = name
}
88column = {
88data = owner_flag
}
89column = {
89data = time
}
90column = {
90data = gold
}
91column = {
91data = influence
}
92interaction_source_list = {
93scope:recipient = {
94every_holy_site_in_religion = {
94add_to_list = source
}
}
}
97cache_interaction_source_list = yes
98pre_evaluation_sort_value = {
99value = "scope:actor.capital.distance_to_squared(root.location)"
100multiply = -1
}
102pre_evaluation_number_to_evaluate_fully = 3
103enabled = {
104location.owner ?= {
105OR = {
}
}
}
}
114effect = {
115scope:actor = {
116if = {
117limit = {
117exists = scope:target
}
121if = {
122limit = {
122religion = {
122has_yanantin = yes
}
}
123switch = {}
}
137if = {
139if = {
141change_societal_value = {
}
}
143else = {
144change_societal_value = {
}
}
}
147ruler ?= {
148add_character_modifier = {
150months = {
151value = 2
152add = {
153value = "scope:actor.capital.distance_to_squared(scope:target.location)"
154divide = 2
155multiply = 0.0001
}
}
158mode = add_and_extend
}
160hidden_effect = {
}
}
}
}
}
172ai_will_do = {
173add = "scope:actor.currency_utility(religious_influence|religious_influence_mild_bonus)"
174add = "scope:actor.currency_utility(purity|purity_mild_bonus)"
175add = "scope:actor.currency_utility(karma|karma_mild_bonus)"
176if = {
177limit = {
178scope:actor.religion = {
178has_yanantin = yes
}
}
180if = {
182add = "scope:actor.currency_utility(yanantin|-20)"
}
184else_if = {
186add = "scope:actor.currency_utility(yanantin|-20)"
}
188else_if = {
190add = "scope:actor.currency_utility(yanantin|-20)"
}
192else_if = {
194add = "scope:actor.currency_utility(yanantin|-20)"
}
197else_if = {
199add = "scope:actor.currency_utility(yanantin|20)"
}
201else_if = {
203add = "scope:actor.currency_utility(yanantin|20)"
}
205else_if = {
207add = "scope:actor.currency_utility(yanantin|20)"
}
209else_if = {
211add = "scope:actor.currency_utility(yanantin|20)"
}
}
}