
Action
Invite Foreign Cleric
We will be sent an experienced clergyman from another country. It will anger our local Clergy, but the expertise of this foreign cleric may be invaluable.
ClergyEstateallowDefinitionin_game/common/generic_actions/invite_foreign_cleric.txt:2
3type = religious
5sound = UI_action_religion_generic
7ai_tick = monthly
8ai_tick_frequency = 24
9automation_tick = monthly
10automation_tick_frequency = 6
12automation_tick = monthly
13automation_tick_frequency = 12
14player_automated_category = religiousdoctrines
17potential = {
}
20allow = {
21scope:actor = {
24estate_satisfaction:clergy_estate >= {
26multiply = -1
}
}
29custom_tooltip = {
30text = invite_foreign_cleric_no_countries_tt Another Recipient Adjective Country in Diplomatic Range
31scope:recipient = {
32any_country_in_religion = {
33NOT = {
33this = scope:actor
}
34scope:actor = {
34within_diplomatic_range = prev
}
35capital ?= {
35is_discovered_by = scope:actor
}
36has_discovered = scope:actor.capital
}
}
}
}
42price = price:invite_foreign_cleric
44select_trigger = {
45looking_for_a = religion
46source = actor
47target_flag = recipient
48name = "choose_religion" Choose the Religion:
49column = {
50data = name
}
52visible = {
53has_religious_influence = yes
}
}
57effect = {
58custom_tooltip = {
59text = invite_foreign_cleric_tt A foreign Actor Adjective Character of the Clergy with high Administrative Ability, medium Diplomatic Ability and low Military Ability will arrive in our Country.
60scope:recipient = {
61random_country_in_religion = {
62limit = {
63NOT = {
63this = scope:actor
}
64capital ?= {
64is_discovered_by = scope:actor
}
65has_discovered = scope:actor.capital
66scope:actor = {
67within_diplomatic_range = prev
}
}
71weight = {
72factor = 1
73modifier = {
74factor = {
75value = total_population
}
}
}
80create_character = {}
}
}
}
96scope:actor = {
97add_estate_satisfaction = {
}
98change_societal_value = {
}
}
}
102ai_will_do = {
103add = -100
105add = {
106if = {
107limit = {
108scope:actor = {
109any_character = {
110religion = scope:recipient
111is_ruler = no
112is_adult = yes
114religion = scope:actor.religion
115count = 0
}
}
}
119value = 100
}
}
123add = {
124if = {
125limit = {
126scope:actor = {
127NOT = {
128any_character = {
129is_ruler = no
130is_adult = yes
131adm >= 60
}
}
}
}
136value = 100
}
}
140add = {
141if = {
142limit = {
143scope:actor = {
144any_character = {
145is_ruler = no
146is_adult = yes
147count = 0
}
}
}
151value = 100
}
}
}