
Country InteractionChanged this version
Enforce Subject Peace
We will demand that they leave a war
Definitionin_game/common/country_interactions/subject_enforce_peace.txt:1
2type = subject
3category = CATEGORY_SUBJECT_ACTIONS
5ai_tick = never
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 = {
30any_current_war = {
31not = {
31is_in_war = scope:actor
}
}
33is_subject_of = scope:actor
34subject_type ?= {
34overlord_can_enforce_peace_on_subject = yes
}
}
36enabled = {
}
}
42select_trigger = {
43looking_for_a = war
44source = recipient
45target_flag = target
46name = "subject_enforce_peace_select_title" Select a War for Recipient to Leave
47none_available_msg_key = "subject_enforce_peace_no_wars"
48default_sort = select_target_acceptance_total
49column = {
50data = name
}
52column = {
53data = select_target_acceptance_total
}
55visible = {
56defender_leader != scope:recipient
57NOT = {
58any_war_participant = {
59this = scope:actor
}
}
}
}
66effect = {
67if = {
68limit = {
68exists = scope:target
}
69scope:recipient = {
70leave_war = {
71war = scope:target
72actor = scope:actor
}
}
}
76else = {
77custom_tooltip = select_a_war_to_leave Select a war for them to leave
}
}
88accept = {
90add = {
91desc = "DIPLOREASON_OUR_SUBJECT" Have no say in the matter
92value = 1000
}
}