
ActionChanged this version
Loan Icon
Loan one Icon to another Country for a period of 10 years, and a fee depending on their Income and the Art Quality of the Work of Art. It will also improve Opinion and Trust between the two countries.
Fate of the PhoenixDLCpotential
OrthodoxyReligionpotential, select trigger 3Definitionin_game/common/generic_actions/D008_orthodox.txt:1
2type = religious
3ai_tick = monthly
4ai_tick_frequency = 6
5automation_tick = monthly
6automation_tick_frequency = 3
7player_automated_category = religiousdoctrines
14allow = {
15scope:actor = {
16at_war = no
17any_work_of_art = {
18work_of_art_type = work_of_art_type:icon
}
}
}
23price = price:loan_icon_price
25select_trigger = {
26looking_for_a = religion
27source = actor
28target_flag = recipient
29name = "choose_religion" Choose the Religion:
30column = {
31data = name
}
}
35select_trigger = {
36looking_for_a = work_of_art
37source = actor
38target_flag = target
39name = "loan_icon_choose_icon" Choose Icon to lend
40none_available_msg_key = "no_valid_works_of_art"
41column = {
42data = name
}
44visible = {
45work_of_art_type = work_of_art_type:icon
}
47enabled = {
48custom_tooltip = {
49text = icon_not_already_loaned_tt We must not currently be borrowing this Icon from another Country
50OR = {
51NOT = {
51scope:actor = {
51has_variable_map = lent_icon
}
}
52NOT = {
53scope:actor = {
54is_key_in_variable_map = {
55name = lent_icon
56target = root
}
}
}
}
}
}
}
65select_trigger = {
66looking_for_a = country
67target_flag = target_country
68interaction_source_list = {
}
75cache_targets = yes
76name = "choose_country" Choose the Country:
77column = {
78data = name
}
80column = {
81data = population
}
83visible = {
}
85enabled = {
86opinion = {
86target = scope:actor
86value > 0
}
87custom_tooltip = {
88text = not_already_receiving_icon_tt They must not have already been lent an Icon
89OR = {
90NOT = {
90has_variable_map = lent_icon
}
91NOT = {
92is_value_in_variable_map = {
93name = lent_icon
94target = scope:actor
}
}
}
}
}
}
102effect = {
103if = {
104limit = {
105exists = scope:target
106exists = scope:target_country
}
108save_temporary_scope_value_as = {
109name = icon_price_value
110value = {
111value = "scope:target_country.monthly_income_trade_and_tax"
112multiply = "scope:target.art_quality"
113divide = 1000
114min = "scope:target.art_quality"
}
}
117scope:target_country = {
}
123custom_tooltip = {
124text = loan_icon_tt They will get our offer of lending them Target in exchange for Icon Price ValueGold I
}
129if = {
130limit = {
131scope:target_country = {
132OR = {
133gold < scope:icon_price_value
134gold < 0
135num_loans > 0
}
}
}
139custom_tooltip = loan_icon_bad_economy_tt They seem to be in a bad economic situation, so they may not agree if they do not have enough good Opinion of us
}
}
142else = {
143custom_tooltip = loan_icon_tt_no_target We will send an offer of lending one of our Works of Art to the target Country in exchange for Ducats
}
}
146ai_will_do = {
147if = {
148limit = {
149scope:actor = {
150monthly_balance < 0
}
}
153add = {
154value = 10
}
}
157if = {
158limit = {
159scope:target_country = {
160OR = {
161gold < 0
162num_loans > 0
}
}
}
166add = -1000
}
168add = {
169desc = "OUR_OPINION_TOOLTIP"
170value = "scope:actor.opinion(scope:target_country)"
}
172add = {
173desc = "THEIR_OPINION_TOOLTIP"
174value = "scope:target_country.opinion(scope:actor)"
}
}