
Country Interaction
Sell Corsica
Corsica has caused nothing but troubles for our state. The time has come to depart from this island once and for all.
Definitionin_game/common/country_interactions/sell_corsica.txt:1
2type = diplomacy
3category = CATEGORY_ECONOMY_ACTIONS
4show_message = no
5show_message_to_target = no
6potential = {
7OR = {
8province_definition:cismonte_province = {
9any_location_in_province_definition = {
10owner = scope:actor
}
}
13province_definition:pumonte_province = {
14any_location_in_province_definition = {
15owner = scope:actor
}
}
}
}
24allow = {
25scope:actor = {
26at_war = no
}
}
30select_trigger = {
31looking_for_a = country
32target_flag = recipient
33name = "choose_country" Choose the Country:
34column = {
35data = name
}
37visible = {
38is_subject = no
}
40enabled = {
41at_war = no
42num_of_ports >= 1
}
}
46ai_will_do = {
48add = 50
}
51effect = {
52custom_tooltip = {
53text = sell_corsica_tt We will sell the accursed island of Corsica to them. We gain 3 years worth of their income in exchange.
54province_definition:cismonte_province = {
55every_location_in_province_definition = {
56limit = {
57owner = scope:actor
}
59if = {
60limit = {
60is_core_of = scope:actor
}
61remove_core = scope:actor
}
63if = {
64limit = {
64NOT = {
64is_core_of = scope:recipient
}
}
65add_core = scope:recipient
}
67change_location_owner = scope:recipient
}
}
70province_definition:pumonte_province = {
71every_location_in_province_definition = {
72limit = {
73owner = scope:actor
}
75if = {
76limit = {
76is_core_of = scope:actor
}
77remove_core = scope:actor
}
79if = {
80limit = {
80NOT = {
80is_core_of = scope:recipient
}
}
81add_core = scope:recipient
}
83change_location_owner = scope:recipient
}
}
86scope:recipient = {
87save_scope_as = corsica_buyer
}
89scope:actor = {
}
}
}
99diplo_chance = {
100base = 10
}
102accept = {
103add = {
105desc = "THEIR_OPINION_TOOLTIP" Their opinion of us
106value = "scope:recipient.opinion(scope:actor)"
107if = {
108limit = {
109scope:recipient = {
110opinion(scope:actor) > 0
}
}
113divide = 10
}
115else = {
116divide = 5
}
}
119add = {
120scope:recipient = {
121value = "trust(scope:actor)"
122divide = 5
}
}
125add = {
126if = {
127limit = {
128scope:recipient = {
129gold < {
129value = monthly_income_trade_and_tax
129multiply = 36
}
}
}
}
}
134add = {
135value = scope:recipient.total_population
}
}