Interaction · Diplomatic actions
Demand Repayment
Call on the recipient to repay an outstanding Loan of Gold
What you need
You
- Your Government is Merchant
- Any in list:
- Any in list:
Demand Repayment is a diplomatic character interaction in Crusader Kings III. The character you target needs: Is available (an adult, not imprisoned), You cannot demand repayment of a Loan until at least 2 years have passed (…) and Is not at war with you. The AI weighs it (the answer is partly random). Reasons the AI weighs include The recipient's cannot afford to repay (-25), The recipient's Gold (-25), The recipient is at War (-25) and 11 more. Patch 1.21.0, from game/common/character_interactions/11_gdp_merchant_interactions.txt.
Quick answers (2)
- What are the requirements for Demand Repayment in CK3?
- The character you target: Is available (an adult, not imprisoned), You cannot demand repayment of a Loan until at least 2 years have passed (…) and Is not at war with you. (patch 1.21.0)
- How do I get the AI to accept Demand Repayment?
- The AI weighs it (the answer is partly random). Its reasons: The recipient's cannot afford to repay -25, The recipient … eager to dispense of inherited Loan, The recipient's Loan is long-standing, Your Loan reminders, The recipient's Gold -25, The recipient is at War -25, The recipient's Faith may repudiate Usury -25, They considers … Astray -10, They considers … Hostile -20, They considers … Evil -30, The recipient's Gold, The recipient's is Honest +20, The recipient's is Deceitful -20, The recipient's is Just +15, The recipient's is Arbitrary -15, The recipient's is Greedy -20, The recipient's is Generous +10 and You … a Dealbreaker -100.
Will they accept?
The AI adds these up and accepts above zero; near zero the answer is partly random (ai_maybe). Reasons in italics are the script's, with no label in the game.
| Reason | Amount |
|---|---|
| Base | +25 |
| Their opinion of you × 0.5 | varies |
The recipient's cannot afford to repaywhen
| -25 |
The recipient … eager to dispense of inherited Loanwhen
| varies |
The recipient's Loan is long-standingwhen
| varies |
Your Loan reminderswhen
| varies |
The recipient's Goldwhen
| -25 |
The recipient is at Warwhen
| -25 |
The recipient's Faith may repudiate Usurywhen
| -25 |
They considers … Astraywhen
| -10 |
They considers … Hostilewhen
| -20 |
They considers … Evilwhen
| -30 |
The recipient's Goldwhen
| varies |
| The recipient's is Honest | +20 |
| The recipient's is Deceitful | -20 |
| The recipient's is Just | +15 |
| The recipient's is Arbitrary | -15 |
| The recipient's is Greedy | -20 |
| The recipient's is Generous | +10 |
You … a Dealbreakerwhen
| -100 |
Acceptance (ai_accept) (203 lines of game script)
base = 25
opinion_modifier = {
opinion_target = scope:actor
multiplier = 0.5
}
modifier = {
NOT = {
any_owned_story = {
story_type = story_cycle_loan
var:lender = scope:actor
var:amount_owed < scope:recipient.gold
}
}
add = -25
desc = AI_RECIPIENT_AFFORD_ACTOR_LOAN_REASON
}
modifier = {
any_owned_story = {
story_type = story_cycle_loan
var:lender = scope:actor
var:original_debtor != story_owner
}
add = {
value = 15
if = {
limit = {
any_owned_story = {
story_type = story_cycle_loan
var:lender = scope:actor
var:amount_owed < scope:recipient.gold
var:original_debtor != story_owner
}
}
multiply = 2
}
}
desc = AI_RECIPIENT_INHERITED_LOAN_REASON
}
modifier = {
any_owned_story = {
story_type = story_cycle_loan
var:lender = scope:actor
var:years_since >= 5
}
add = {
value = 0
ordered_owned_story = {
limit = {
story_type = story_cycle_loan
var:lender = scope:actor
var:years_since >= 5
}
order_by = var:years_since
add = var:years_since
if = {
limit = {
var:amount_owed < scope:recipient.gold
}
multiply = 2
}
}
}
desc = AI_RECIPIENT_LOAN_DURATION_REASON
}
modifier = {
any_owned_story = {
story_type = story_cycle_loan
var:lender = scope:actor
var:reminders > 0
}
add = {
value = 0
every_owned_story = {
limit = {
story_type = story_cycle_loan
var:lender = scope:actor
var:reminders > 0
}
add = var:reminders
if = {
limit = {
var:amount_owed < scope:recipient.gold
}
multiply = 2
}
}
multiply = 5
}
desc = AI_RECIPIENT_LOAN_REMINDERS_REASON
}
modifier = {
gold < 0
add = -25
desc = AI_RECIPIENT_GOLD_REASON
}
modifier = {
is_at_war = yes
add = -25
desc = RECIPIENT_AT_WAR_REASON
}
modifier = {
gdp_usury_rite_voids_debts_trigger = yes
culture = {
NOT = {
has_cultural_parameter = binding_oaths_harsh_break_penalties
}
}
any_owned_story = {
story_type = story_cycle_loan
var:lender = scope:actor
var:instrument = flag:open
}
add = -25
desc = AI_RECIPIENT_CAN_REPUDIATE_LOAN_REASON
}
modifier = {
add = -10
faith = {
faith_hostility_level = {
target = scope:actor.faith
value = faith_astray_level
}
}
desc = AI_OPINION_FAITH_ASTRAY_ACTOR
}
modifier = {
add = -20
faith = {
faith_hostility_level = {
target = scope:actor.faith
value = faith_hostile_level
}
}
desc = AI_OPINION_FAITH_HOSTILE_ACTOR
}
modifier = {
add = -30
faith = {
faith_hostility_level = {
target = scope:actor.faith
value = faith_evil_level
}
}
desc = AI_OPINION_FAITH_EVIL_ACTOR
}
modifier = {
scope:recipient.gold >= scope:recipient.major_gold_value
add = {
value = 10
if = {
limit = {
scope:recipient.gold >= scope:recipient.massive_gold_value
}
add = 25
}
if = {
limit = {
scope:recipient.gold >= scope:recipient.monumental_gold_value
}
add = 25
}
}
desc = AI_RECIPIENT_GOLD_REASON
}
modifier = {
add = 20
has_trait = honest
desc = INTERACTION_HONEST
}
modifier = {
add = -20
has_trait = deceitful
desc = INTERACTION_DECEITFUL
}
modifier = {
add = 15
has_trait = just
desc = INTERACTION_JUST
}
modifier = {
add = -15
has_trait = arbitrary
desc = INTERACTION_ARBITRARY
}
modifier = {
add = -20
has_trait = greedy
desc = INTERACTION_GREEDY
}
modifier = {
add = 10
has_trait = generous
desc = INTERACTION_GENEROUS
}
modifier = {
add = -100
desc = AI_OPINION_DEALBREAKER_ACTOR
scope:actor = {
is_known_dealbreaker_trigger = {
KNOWER = scope:recipient
}
}
}As written in game/common/character_interactions/11_gdp_merchant_interactions.txt.
What happens
If they accept
- The loan:
- The lender temp:
- The debtor temp: Pay gold to the lender temp
- If a Merchant:
- Merchant (creditor) experience changes
If
- Their domicile:
has_domicile_parameter = company_prestige_from_creditor_actions
Then
- Due to having the Credit Network Internal Upgrade:
- Gain +150 Prestige
- Their domicile:
- If has the Creditor Law:
- Their domicile:
add_acumen = scope:loan_temp.var:amount_owed
- Their domicile:
var:lender:If
None of these
- The debtor temp › Any owned story:
story_type = story_cycle_loan- Lender is scope:lender temp
- Is not the loan temp
- The debtor temp › Any owned story:
One of these
has_hook_of_type = { target = scope:debtor_temp type = strong_loan_hook }or
has_hook_of_type = { target = scope:debtor_temp type = weak_loan_hook }
Then
If
has_hook_of_type = { target = scope:debtor_temp type = strong_loan_hook }
Then
remove_hook = { target = scope:debtor_temp type = strong_loan_hook }
Otherwise
remove_hook = { target = scope:debtor_temp type = weak_loan_hook }
end_story = yes
- The lender temp:
If they refuse
- The character you target:
If
scope:loan.var:reminders = 1
Then
- Gain -75 Prestige
- You › If played by the AI: Opinion: Respect (-20)
Else if
scope:loan.var:reminders = 2
Then
- Gain -150 Prestige
- You › If played by the AI: Opinion: Respect (-40)
Else if
scope:loan.var:reminders = 3
Then
- Gain -150 Prestige
- You:
- If played by the AI: Opinion: Respect (-40)
If
Then
- Else, if played by the AI: Opinion: Grudge Exacerbated (-20)
Else if
- Has the target char as potential rival
can_set_relation_rival_trigger = { CHARACTER = scope:target_char }
Then
gg_relation_catalyst_effect = { ACTOR = scope:ptre_root_scope RECIPIENT = scope:target_char CATALYST = catalyst_rival_hre_pope }
Otherwise
If
can_set_relation_potential_rival_trigger = { CHARACTER = scope:target_char }
Then
set_relation_potential_rival = scope:target_char
If
NOT = { scope:rival_opinion = 0 }
Then
If
- The target char: Is played by the AI
Then
- The target char gains the opinion “Hatred” of them
- If played by the AI: Opinion: Hatred
Otherwise
- Gain -150 Prestige
- You:
- If played by the AI: Opinion: Respect (-40)
If
Then
- Else, if played by the AI: Opinion: Grudge Exacerbated (-20)
Else if
- Has the target char as potential rival
can_set_relation_rival_trigger = { CHARACTER = scope:target_char }
Then
gg_relation_catalyst_effect = { ACTOR = scope:ptre_root_scope RECIPIENT = scope:target_char CATALYST = catalyst_rival_hre_pope }
Otherwise
If
can_set_relation_potential_rival_trigger = { CHARACTER = scope:target_char }
Then
set_relation_potential_rival = scope:target_char
If
NOT = { scope:rival_opinion = 0 }
Then
- … (more in the script below)
- … (more in the script below)
• the game's own tooltip text · ◦ our reading of the script line · code the script where neither exists
Who can use it and sees it (is_available, is_shown) (10 lines of game script)
is_available = government_has_flag = government_is_merchant
any_in_list = {
variable = owes_me_money
}
is_shown = scope:actor = {
any_in_list = {
variable = owes_me_money
this = scope:recipient
}
}As written in game/common/character_interactions/11_gdp_merchant_interactions.txt.
Can be sent when (is_valid…) (32 lines of game script)
scope:recipient = {
any_owned_story = {
story_type = story_cycle_loan
var:lender = scope:actor
save_temporary_scope_as = loan_temp
}
}
scope:recipient = {
is_available_quick = {
adult = yes
imprisoned = no
}
custom_tooltip = {
text = demand_repayment_interaction_afford_tt
any_owned_story = {
story_type = story_cycle_loan
var:lender = scope:actor
var:amount_owed <= scope:recipient.gold
}
}
custom_tooltip = {
text = demand_repayment_interaction_duration_tt
any_owned_story = {
story_type = story_cycle_loan
var:lender = scope:actor
var:years_since >= 2
}
}
NOT = {
is_at_war_with = scope:actor
}
}As written in game/common/character_interactions/11_gdp_merchant_interactions.txt.
Effects (on_send, on_accept, on_decline) (184 lines of game script)
on_accept = scope:recipient = {
ordered_owned_story = {
limit = {
story_type = story_cycle_loan
var:lender = scope:actor
var:amount_owed <= scope:recipient.gold
var:years_since >= 2
}
order_by = var:years_since
save_scope_as = loan
}
if = {
limit = {
NOT = {
exists = scope:loan
}
}
ordered_owned_story = {
limit = {
story_type = story_cycle_loan
var:lender = scope:actor
var:years_since >= 2
}
order_by = var:years_since
save_scope_as = loan
}
}
}
scope:loan = {
repay_and_end_loan_story_effect = yes
}
on_decline = scope:recipient = {
ordered_owned_story = {
limit = {
story_type = story_cycle_loan
var:lender = scope:actor
var:amount_owed <= scope:recipient.gold
var:years_since >= 2
}
order_by = var:years_since
save_scope_as = loan
}
if = {
limit = {
NOT = {
exists = scope:loan
}
}
ordered_owned_story = {
limit = {
story_type = story_cycle_loan
var:lender = scope:actor
var:years_since >= 2
}
order_by = var:years_since
save_scope_as = loan
}
}
}
scope:loan = {
if = {
limit = {
NOT = {
exists = var:reminders
}
}
set_variable = {
name = reminders
value = 1
}
}
else = {
change_variable = {
name = reminders
add = 1
}
}
}
scope:actor = {
send_interface_toast = {
type = event_toast_effect_bad
title = ho_loan_demand_refused_title
right_icon = scope:recipient
scope:recipient = {
send_interface_toast = {
type = event_toast_effect_bad
title = ho_loan_demand_refused_title
right_icon = scope:actor
if = {
limit = {
scope:loan.var:reminders = 1
}
add_prestige = minor_prestige_loss
scope:actor = {
if = {
limit = {
is_ai = yes
}
add_opinion = {
target = scope:recipient
modifier = respect_opinion
opinion = low_negative_opinion
}
}
}
}
else_if = {
limit = {
scope:loan.var:reminders = 2
}
add_prestige = medium_prestige_loss
scope:actor = {
if = {
limit = {
is_ai = yes
}
add_opinion = {
target = scope:recipient
modifier = respect_opinion
opinion = medium_negative_opinion
}
}
}
}
else_if = {
limit = {
scope:loan.var:reminders = 3
}
add_prestige = medium_prestige_loss
scope:actor = {
if = {
limit = {
is_ai = yes
}
add_opinion = {
target = scope:recipient
modifier = respect_opinion
opinion = medium_negative_opinion
}
}
progress_towards_rival_effect = {
REASON = rival_vassal_loan
CHARACTER = scope:recipient
OPINION = 0
}
}
}
else = {
add_prestige = medium_prestige_loss
scope:actor = {
if = {
limit = {
is_ai = yes
}
add_opinion = {
target = scope:recipient
modifier = respect_opinion
opinion = medium_negative_opinion
}
}
progress_towards_rival_effect = {
REASON = rival_vassal_loan
CHARACTER = scope:recipient
OPINION = 0
}
}
}
}
}
}
house = {
change_house_relation_effect = {
HOUSE = scope:recipient.house
VALUE = house_relation_damage_minor_value
REASON = loan_unrepaid
CHAR = root
TARGET_CHAR = scope:recipient
TITLE = scope:dummy_gender
}
}
}
scope:recipient = {
custom_tooltip = demand_repayment_refusal_warning_tt
}As written in game/common/character_interactions/11_gdp_merchant_interactions.txt.
- Category
- Diplomatic actions
- Again on the same character
- after 2 years
- In the menu
- main list
- ID
demand_repayment_interaction
Source: game/common/character_interactions/11_gdp_merchant_interactions.txt and the English localisation, Crusader Kings III 1.21.0. “You” is the character who sends it (scope:actor, or a puppet acting for you); “the character you target” is the recipient.