
Country Interaction
Transfer Location to other Subject
We will reorganise our subjects' lands.
TǔsīSubject Typeselect trigger 2Definitionin_game/common/country_interactions/give_subject_location_to_other_subject.txt:1
2type = subject
3category = CATEGORY_SUBJECT_ACTIONS
5ai_tick = never
7use_enroute = no
9potential = {
}
12allow = {
}
15select_trigger = {
16looking_for_a = country
17interaction_source_list = {
18scope:actor = {
19every_subject = {
20add_to_list = source
}
}
}
24target_flag = recipient
25name = "choose_country" Choose the Country:
26column = {
27data = name
}
29visible = {
30NOR = {
31country_type = building
32country_type = pop
}
}
35enabled = {
36num_locations > 1
37at_war = no
}
}
41select_trigger = {
42looking_for_a = country
43interaction_source_list = {
44scope:actor = {
45every_subject = {
46add_to_list = source
}
}
}
50target_flag = country_that_gets_the_location
51name = "select_a_subject_to_receive_a_location" Select a subject to transfer land to:
52column = {
53data = name
}
55visible = {
56is_neighbor_of = scope:recipient
57NOR = {
58country_type = building
59country_type = pop
}
}
62enabled = {
63at_war = no
}
}
73select_trigger = {
74looking_for_a = location
75source = recipient
76target_flag = target_location
77source_flags = only_actual_locations
78name = "select_a_location_to_give_to_other_subject" Select a location that we should transfer:
79none_available_msg_key = "give_location_to_subject_no_locations"
80column = {
81data = name
}
83column = {
84data = population
}
86visible = {
87is_capital = no
88OR = {
89any_coast_border_location = {
90owner ?= scope:country_that_gets_the_location
}
92area = scope:country_that_gets_the_location.capital.area
}
}
}
97effect = {
99if = {
100limit = {
101exists = scope:recipient
}
103scope:recipient = {
104add_opinion = {
105target = scope:actor
106modifier = opinion_gave_away_our_lands
107scale = {
108value = 1
109divide = num_locations
}
}
}
}
115if = {
116limit = {
117exists = scope:country_that_gets_the_location
118exists = scope:target_location
}
120scope:target_location = {
121change_location_owner = scope:country_that_gets_the_location
}
}
124else = {
125custom_tooltip = select_a_location_to_give_to_other_subject Select a location that we should transfer:
}
}