
Country InteractionNew this version
Sell Work of Art
Offer a Work of Art from our collection to another Country in exchange for gold.
Definitionin_game/common/country_interactions/sell_work_of_art.txt:1
2category = CATEGORY_ECONOMY_ACTIONS
3type = diplomacy
5ai_tick = daily
6ai_tick_frequency = 360
8ai_prerequisite = {
9exists = scope:actor
10scope:actor = {
11gold < {
11value = monthly_income_total
11multiply = 6
}
}
}
15price = price:sell_work_of_art
16price_modifier = {
17if = {
18limit = {
18exists = scope:target
}
19add = {
20desc = "ART_SALE_VALUE" Value of the Work of Art
21value = scope:target.art_price
}
}
24else = {
25value = 1
}
}
28payer = scope:recipient
29payee = scope:actor
31potential = {
32scope:actor = {
33has_sellable_art = yes
}
}
37allow = {
}
40select_trigger = {
41looking_for_a = country
42target_flag = recipient
43name = "choose_country" Choose the Country:
44column = {
45data = name
}
47visible = {
48NOT = {
48this = scope:actor
}
}
50enabled = {
51NOT = {
51is_enemy_of = scope:actor
}
52prestige >= scope:actor.prestige
}
}
56select_trigger = {
57looking_for_a = work_of_art
58source = actor
59cache_targets = yes
60target_flag = target
61name = "sell_work_of_art_select_art" Choose Work of Art
62none_available_msg_key = "sell_work_of_art_no_art"
63column = {
64data = name
}
66visible = {
67art_is_priceless = no
}
}
71effect = {
72custom_tooltip = {
73text = sell_work_of_art_move_art_tt The selected Work of Art will move to Recipient Capital
74hidden_effect = {
75scope:target = {
}
}
}
}
82ai_will_do = {
83add = -100
85if = {
86limit = {
87scope:actor = {
88gold < {
88value = monthly_income_total
88multiply = 6
}
}
}
91add = 100
}
93if = {
94limit = {
94scope:actor = {
94is_enemy_of = scope:recipient
}
}
95multiply = 0
}
}
99diplo_chance = {
100base = -30
}
103accept = {
104add = {
105desc = "OUR_OPINION_TOOLTIP" Our opinion of them
106value = "scope:recipient.opinion(scope:actor)"
107divide = 3
}
109if = {
110limit = {
110scope:recipient = {
110gold < {
110value = monthly_income_total
110multiply = 6
}
}
}
111add = {
112desc = "LOW_TREASURY" Low Treasury
113value = -60
}
}
116if = {
117limit = {
117scope:recipient = {
117gold > {
117value = monthly_income_total
117multiply = 24
}
}
}
118add = {
119desc = "WEALTHY_BUYER" Has plenty of Treasury
120value = 30
}
}
123if = {
124limit = {
124scope:target ?= {
124art_quality >= 70
}
}
125add = {
126desc = "HIGH_QUALITY_ART" High Art Quality
127value = 30
}
}
130if = {
131limit = {
131scope:target ?= {
131art_quality < 40
}
}
132add = {
133desc = "LOW_QUALITY_ART" Low Art Quality
134value = -50
}
}
137if = {
138limit = {
138scope:recipient = {
138is_rival_of = scope:actor
}
}
139add = {
140desc = "game_concept_rival" Rival
141value = -100
}
}
}