
Country InteractionChanged this version
Take over Loan
This allows us to send a Diplomat to a Country and then become the Lender of one of their Loans, forcing them to pay Interest to us instead.
Definitionin_game/common/country_interactions/take_over_loan.txt:1
2category = CATEGORY_ECONOMY_ACTIONS
3type = diplomacy
4is_take_over_loan = yes
6potential = {
}
9ai_tick = monthly
10ai_tick_frequency = 6
12allow = {
}
15select_trigger = {
16looking_for_a = country
17target_flag = recipient
18name = "choose_country" Choose the Country:
19column = {
20data = name
}
22visible = {
23num_loans > 0
}
25enabled = {
26any_loan = {
27is_bond = no
28NOT = {
28exists = owner
}
29months_left > 40
30loan_interest > scope:actor.modifier:bank_interest
31scope:actor.gold > remaining_debt
}
}
}
36effect = {
37scope:recipient = {
38ordered_loan = {
39limit = {
40is_bond = no
41NOT = {
41exists = owner
}
42months_left > 40
43loan_interest > scope:actor.modifier:bank_interest
44scope:actor.gold > remaining_debt
}
46order_by = remaining_debt
47max = 1
49custom_description = {
50text = pay_off_their_debt
52scope:actor = {
53add_gold = {
54value = prev.bank_loan_takeover_cost
55multiply = -1
}
}
58scope:recipient = {
59distribute_gold_to_banking_estates = prev.bank_loan_takeover_cost
}
}
63change_loan_owner = scope:actor
}
}
}
68ai_will_do = {
70add = -20
71add = scope:recipient.country_tax_base
}