
Action
Bribe a Garrison
Loyalties are strenuously tested during the course of a civil war, and instability roils throughout our Actor Flavor Rank. We should take advantage of this chaos by offering coin and guarantees to enemy strongholds, convincing their commanders to peacefully surrender rather than fall under our siege.
War of the RosesDisasterselect trigger 1wotr_bribe_garrison_variableVariablepotentialDefinitionin_game/common/generic_actions/war_of_the_roses_actions.txt:1
2type = disaster
8allow = {
9scope:actor = {
10in_civil_war = yes
11stability > 0
}
}
15automation_tick = never
16price = price:wotr_action_price
18cooldown = {
19type = wotr_bribe_garrison
20months = 6
}
23select_trigger = {
24looking_for_a = disaster
30name = "choose_disaster" Choose the Disaster:
31target_flag = recipient
32column = {
33data = name
}
}
41select_trigger = {
42looking_for_a = location
43interaction_source_list = {
44scope:actor = {
46every_fort_in_country = {
47limit = {
48controller = {
49this != scope:actor
50is_rebel_country = yes
}
}
53add_to_list = source
}
56random_country_at_war_with = {
57limit = {
57is_rebel_country = yes
}
58every_fort_in_country = {
59limit = {
59controller ?= prev
}
60add_to_list = source
}
}
}
}
65target_flag = target_siege
66name = "select_ongoing_siege_to_bribe" Select an ongoing Siege to bribe
67none_available_msg_key = "no_ongoing_siege_to_bribe"
68column = {
68data = name
}
69column = {
69data = population
}
70column = {
70data = rank
}
74enabled = {
75garrison_percentage > 0.1
76has_siege = yes
77siege = {
78any_besieging_unit = {
78owner = scope:actor
}
}
}
}
83effect = {
84if = {
85limit = {
85exists = scope:target_siege
}
86custom_tooltip = {
87text = chosen_siege_tt The garrison in Target Siege will surrender
}
}
91else = {
91custom_tooltip = no_chosen_siege_tt The garrison in the selected Location will surrender
}
}
94ai_will_do = {
95add = -20
96if = {
97limit = {
98scope:actor.gold <= {
99value = scope:actor.monthly_income_total
100multiply = 3
}
}
103subtract = 100
}
105if = {
106limit = {
107scope:actor = {
107is_during_bankruptcy = yes
}
}
109subtract = 1000
}
111add = scope:actor.stability
}