CK3 DatabaseCrusader Kings III · 1.21.0 “Florin” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →Merch→

Interaction · Diplomatic actions

Loan Gold

No costThe AI weighs it

Offer the recipient a Loan of Gold in exchange for a Strong Hook, or a Weak Hook if the Loan does not clear their Debt

What you need

You

To send it

  • … Capital is in range of their Company.
  • If

    • You: Is played by the AI

    Then

    • root.gold >= scope:recipient.gdp_loan_money_full_gold_value

    Otherwise

    • root.gold >= scope:recipient.gdp_loan_money_gold_value

To see it in the menu

The character you target

To send it

  • … must have less than -25
  • One of these

    • Is landed
    • or

      All of these

      • they has administrative government mechanic
      • Is not landed
      • Has a Domicile
      • If

        a check the game hides

        Then

        • Their house: Has the house check as house head
    • or

      All of these

  • None of these

    • Is at war with you
    • Has you as rival
    • Has the opinion “Released from Prison” of you
    • Has the opinion “Ignored Expulsion” of you
    • All of these

      • exists = scope:actor.house
      • Their house:
        • NOT = { this = scope:actor.house }
      • Your House Relation is Feuding
  • One of these

    • Is landed
    • or

      All of these

      • they has administrative government mechanic
      • Is not landed
      • Has a Domicile
      • If

        a check the game hides

        Then

        • Their house: Has the house check as house head
    • or

      All of these

  • Gold at most -25
  • Also needed: available (an adult, not imprisoned)

To see it in the menu

  • One of these

    • Is landed
    • or

      All of these

      • they has administrative government mechanic
      • Is not landed
      • Has a Domicile
      • If

        a check the game hides

        Then

        • Their house: Has the house check as house head
    • or

      All of these

Loan Gold is a diplomatic character interaction in Crusader Kings III. The character you target needs: Is available (an adult, not imprisoned) and Gold at most -25. The AI weighs it. Reasons the AI weighs include They is slightly in Debt (+15), They is 1 year in Debt (+30), They is 2 years in Debt (+45) and 16 more. Patch 1.21.0, from game/common/character_interactions/11_gdp_merchant_interactions.txt.

for a guide, post or blog
Quick answers (2)
What are the requirements for Loan Gold in CK3?
The character you target: Is available (an adult, not imprisoned) and Gold at most -25. (patch 1.21.0)
How do I get the AI to accept Loan Gold?
The AI weighs it. Its reasons: Their total Debt, The recipient already has other Loans, The recipient already owes you a Loan, They is slightly in Debt +15, They is 1 year in Debt +30, They is 2 years in Debt +45, They is 3 years in Debt +75, They is 4 years in Debt +100, They is over 5 years in Debt +200, The recipient's is Paranoid -20, The recipient's is Arrogant -15, The recipient's is Stubborn -10, The recipient's is Trusting +20, The recipient's is Greedy +15, The recipient's is Humble +10, They considers … Astray -10, They considers … Hostile -25, They considers … Evil -50, You … a Dealbreaker -100, The Loan expects no Interest +25, The Loan expects Interest -15 and They would be party to Sinful Usury -40.

Will they accept?

The AI adds these up and accepts above zero. Reasons in italics are the script's, with no label in the game.

ReasonAmount
Base-50
Their opinion of you × 0.25varies
Their total Debtvaries
The recipient already has other Loans
when
  • Any owned story:
    • story_type = story_cycle_loan
    • Lender is not scope:actor
varies
The recipient already owes you a Loan
when
  • Any owned story:
    • story_type = story_cycle_loan
    • Lender is scope:actor
varies
They is slightly in Debt
when
  • The character you target:
    • debt_level = 1
+15
They is 1 year in Debt
when
  • The character you target:
    • debt_level = 2
+30
They is 2 years in Debt
when
  • The character you target:
    • debt_level = 3
+45
They is 3 years in Debt
when
  • The character you target:
    • debt_level = 4
+75
They is 4 years in Debt
when
  • The character you target:
    • debt_level = 5
+100
They is over 5 years in Debt
when
  • The character you target: Debt level at least 6
+200
The recipient's is Paranoid
when
-20
The recipient's is Arrogant
when
-15
The recipient's is Stubborn
when
-10
The recipient's is Trusting
when
+20
The recipient's is Greedy
when
+15
The recipient's is Humble
when
+10
They considers … Astray
when
  • Your faith:
    • faith_hostility_level = { target = scope:actor.faith value = faith_astray_level }
-10
They considers … Hostile
when
  • Your faith:
    • faith_hostility_level = { target = scope:actor.faith value = faith_hostile_level }
-25
They considers … Evil
when
  • Your faith:
    • faith_hostility_level = { target = scope:actor.faith value = faith_evil_level }
-50
You … a Dealbreaker
when
  • One of these

-100
The Loan expects no Interest
when
  • The option “free” is chosen
+25
The Loan expects Interest
when
  • The option “open” is chosen
-15
They would be party to Sinful Usury
when
-40
Acceptance (ai_accept) (202 lines of game script)
base = -50
opinion_modifier = {
	opinion_target = scope:actor
	multiplier = 0.25
}
modifier = {
	add = {
		value = scope:recipient.gold
		multiply = -1
		divide = 20
		max = 100
	}
	desc = LEND_MONEY_ACCRUED_DEBT
}
modifier = {
	any_owned_story = {
		story_type = story_cycle_loan
		NOT = {
			var:lender ?= scope:actor
		}
	}
	add = {
		value = 0
		every_owned_story = {
			limit = {
				story_type = story_cycle_loan
				NOT = {
					var:lender ?= scope:actor
				}
			}
			add = -25
		}
	}
	desc = LEND_MONEY_HAS_LOANS_REASON
}
modifier = {
	any_owned_story = {
		story_type = story_cycle_loan
		var:lender ?= scope:actor
	}
	add = {
		value = 0
		every_owned_story = {
			limit = {
				story_type = story_cycle_loan
				var:lender ?= scope:actor
			}
			add = -50
		}
	}
	desc = LEND_MONEY_HAS_LOANS_FROM_ACTOR_REASON
}
modifier = {
	add = 15
	trigger = {
		scope:recipient = {
			debt_level = 1
		}
	}
	desc = LEND_MONEY_IS_IN_DEBT_REASON_1
}
modifier = {
	add = 30
	trigger = {
		scope:recipient = {
			debt_level = 2
		}
	}
	desc = LEND_MONEY_IS_IN_DEBT_REASON_2
}
modifier = {
	add = 45
	trigger = {
		scope:recipient = {
			debt_level = 3
		}
	}
	desc = LEND_MONEY_IS_IN_DEBT_REASON_3
}
modifier = {
	add = 75
	trigger = {
		scope:recipient = {
			debt_level = 4
		}
	}
	desc = LEND_MONEY_IS_IN_DEBT_REASON_4
}
modifier = {
	add = 100
	trigger = {
		scope:recipient = {
			debt_level = 5
		}
	}
	desc = LEND_MONEY_IS_IN_DEBT_REASON_5
}
modifier = {
	add = 200
	trigger = {
		scope:recipient = {
			debt_level >= 6
		}
	}
	desc = LEND_MONEY_IS_IN_DEBT_REASON_6
}
modifier = {
	add = -20
	has_trait = paranoid
	desc = INTERACTION_PARANOID
}
modifier = {
	add = -15
	has_trait = arrogant
	desc = INTERACTION_ARROGANT
}
modifier = {
	add = -10
	has_trait = stubborn
	desc = INTERACTION_STUBBORN
}
modifier = {
	add = 20
	has_trait = trusting
	desc = INTERACTION_TRUSTING
}
modifier = {
	add = 15
	has_trait = greedy
	desc = INTERACTION_GREEDY
}
modifier = {
	add = 10
	has_trait = humble
	desc = INTERACTION_HUMBLE
}
modifier = {
	add = -10
	faith = {
		faith_hostility_level = {
			target = scope:actor.faith
			value = faith_astray_level
		}
	}
	desc = AI_OPINION_FAITH_ASTRAY_ACTOR
}
modifier = {
	add = -25
	faith = {
		faith_hostility_level = {
			target = scope:actor.faith
			value = faith_hostile_level
		}
	}
	desc = AI_OPINION_FAITH_HOSTILE_ACTOR
}
modifier = {
	add = -50
	faith = {
		faith_hostility_level = {
			target = scope:actor.faith
			value = faith_evil_level
		}
	}
	desc = AI_OPINION_FAITH_EVIL_ACTOR
}
modifier = {
	add = -100
	desc = AI_OPINION_DEALBREAKER_ACTOR
	scope:actor = {
		is_known_dealbreaker_trigger = {
			KNOWER = scope:recipient
		}
	}
}
modifier = {
	add = 25
	trigger = {
		scope:free = yes
	}
	desc = LEND_MONEY_INTEREST_FREE_REASON
}
modifier = {
	add = -15
	trigger = {
		scope:open = yes
	}
	desc = LEND_MONEY_OPEN_INTEREST_REASON
}
modifier = {
	add = -40
	trigger = {
		scope:open = yes
		scope:recipient = {
			gdp_usury_borrower_condemns_loan_trigger = {
				LENDER = scope:actor
			}
			gdp_usury_untroubled_by_sin_trigger = no
		}
	}
	desc = LEND_MONEY_USURY_SIN_REASON
}

As written in game/common/character_interactions/11_gdp_merchant_interactions.txt.

What happens

If they accept

  • If

    a check the game hides

    Then

    • The character you target:
      • If

        • None of these

          • Any owned story:
            • story_type = story_cycle_loan
            • Lender is scope:actor
            • Instrument is scope:instrument

        Then

        • If

          • The lender temp is not the debtor temp

          Then

          • create_story = { type = story_cycle_loan save_scope_as = new_loan }
          • If

            • scope:instrument = flag:free

            Then

            • loan_free_interest_effect = { DEBTOR = scope:debtor_temp LENDER = scope:lender_temp AMOUNT = scope:amount_owed_temp }

            Else if

            • scope:instrument = flag:disguised

            Then

            • loan_disguised_interest_effect = { DEBTOR = scope:debtor_temp LENDER = scope:lender_temp AMOUNT = scope:amount_owed_temp }

            Else if

            • scope:instrument = flag:open

            Then

            • loan_open_interest_effect = { DEBTOR = scope:debtor_temp LENDER = scope:lender_temp AMOUNT = scope:amount_owed_temp }

            Otherwise

            • If

              Then

              • loan_free_interest_effect = { DEBTOR = scope:debtor_temp LENDER = scope:lender_temp AMOUNT = scope:amount_owed_temp }

              Else if

              • The lender temp:
                • gdp_usury_condemns_loan_trigger = { BORROWER = scope:debtor_temp }
                • NOT = { gdp_usury_untroubled_by_sin_trigger = { } }

              Then

              • loan_disguised_interest_effect = { DEBTOR = scope:debtor_temp LENDER = scope:lender_temp AMOUNT = scope:amount_owed_temp }

              Otherwise

              • loan_open_interest_effect = { DEBTOR = scope:debtor_temp LENDER = scope:lender_temp AMOUNT = scope:amount_owed_temp }
          • The lender temp:
            • If

              • One of these

                • exists = scope:open
                • or

                  exists = scope:disguised
                • or

                  exists = scope:free
              • scope:loan_debt_temp > scope:amount_owed_temp

              Then

              • If

                • NOT = { has_hook_of_type = { target = scope:debtor_temp type = strong_loan_hook } }
                • can_add_hook = { target = scope:debtor_temp type = weak_loan_hook }

                Then

                • Gain a Outstanding Loan on the debtor temp

              Else if

              • can_add_hook = { target = scope:debtor_temp type = strong_loan_hook }

              Then

              • Gain a Outstanding Loan on the debtor temp
            • If

              • is_landless_merchant = { }

              Then

              • Merchant (creditor) experience changes
              • merchant_creditor_capstone_prestige_effect = { }

        Otherwise

        • One random owned story:
          • Where:
            • story_type = story_cycle_loan
            • Lender is scope:lender temp
            • Instrument is scope:instrument
          • If

            • scope:instrument = flag:open

            Then

            • They will owe … … in return (Open Interest)
            • The lender temp:
              • gdp_usury_lend_at_interest_effect = { BORROWER = scope:debtor_temp }
              • gdp_update_usury_reputation_effect = { }

            Else if

            • scope:instrument = flag:disguised

            Then

            • They will owe … … in return
            • The lender temp:
              • add_disguised_usury_secret_effect = { DEBTOR = scope:debtor_temp }

            Otherwise

            • They will owe … … in return (Interest Free)
        • The lender temp:
          • If

            • One of these

              • exists = scope:open
              • or

                exists = scope:disguised
              • or

                exists = scope:free
            • scope:loan_debt_temp > scope:loan_principal_temp

            Then

            • If

              • NOT = { has_hook_of_type = { target = scope:debtor_temp type = strong_loan_hook } }
              • can_add_hook = { target = scope:debtor_temp type = weak_loan_hook }

              Then

              • Gain a Outstanding Loan on the debtor temp

            Else if

            • can_add_hook = { target = scope:debtor_temp type = strong_loan_hook }

            Then

            • Gain a Outstanding Loan on the debtor temp
          • If

            • is_landless_merchant = { }

            Then

            • Merchant (creditor) experience changes
            • merchant_creditor_capstone_prestige_effect = { }
  • The character you target:
    • If monthly character income less than 1.2: Debtor's Income is low
    • If

      Then

    • If debt level at least 3: Debtor is 3 or more years in Debt
    • If

      • One of these

        • Has you as rival
        • or

          All of these

          • You: … (more in the script below)
          • … (more in the script below)
    • … (more in the script below)

Options when sending

  • Lend at Open InterestLend the recipient Gold at openly stated Interest, leaving them owing 25% more than they receive
  • Disguise the InterestLend the recipient Gold at Interest hidden among fees and gifts, leaving them owing 15% more than they receive. You gain the Disguised Usury Secret. Your Clergy finds no Usury in it unless that Secret is exposed
  • Lend Without InterestLoan the recipient Gold with no Interest at all, gaining +20 Opinion from the debtor

• 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
trigger_if = {
	limit = {
		is_ai = yes
	}
	gold > 1000
}
is_shown = scope:recipient = {
	is_landed_or_landless_administrative = yes
}

As written in game/common/character_interactions/11_gdp_merchant_interactions.txt.

Can be sent when (is_valid…) (45 lines of game script)
gdp_merchant_diplo_range_trigger = {
	TARGET = scope:recipient
	MERCHANT = scope:actor
}
trigger_if = {
	limit = {
		scope:actor = {
			is_ai = yes
		}
	}
	scope:actor.gold >= scope:recipient.gdp_loan_money_full_gold_value
}
trigger_else = {
	scope:actor.gold >= scope:recipient.gdp_loan_money_gold_value
}
scope:recipient = {
	is_available_quick = {
		adult = yes
		imprisoned = no
	}
	custom_tooltip = {
		text = loan_money_interaction_gold_trigger_tt
		gold <= gdp_loan_money_debt_threshold_value
	}
	is_landed_or_landless_administrative = yes
	NOR = {
		is_at_war_with = scope:actor
		has_relation_rival = scope:actor
		has_opinion_modifier = {
			target = scope:actor
			modifier = released_from_prison
		}
		has_opinion_modifier = {
			target = scope:actor
			modifier = eviction_ignored_opinion
		}
		house_has_feud_relation_with_trigger = {
			TARGET = scope:actor
		}
	}
}
scope:recipient = {
	is_landed_or_landless_administrative = yes
	gold <= gdp_loan_money_debt_threshold_value
}

As written in game/common/character_interactions/11_gdp_merchant_interactions.txt.

Effects (on_send, on_accept, on_decline) (176 lines of game script)
on_accept = if = {
	limit = {
		scope:free = yes
	}
	save_scope_value_as = {
		name = instrument
		value = flag:free
	}
}
else_if = {
	limit = {
		scope:disguised = yes
	}
	save_scope_value_as = {
		name = instrument
		value = flag:disguised
	}
}
else = {
	save_scope_value_as = {
		name = instrument
		value = flag:open
	}
}
if = {
	limit = {
		exists = scope:instrument
	}
	scope:recipient = {
		if = {
			limit = {
				NOT = {
					has_existing_loan_from_with_instrument_trigger = {
						LENDER = scope:actor
						INSTRUMENT = scope:instrument
					}
				}
			}
			set_up_new_loan_effect = {
				LENDER = scope:actor
				AMOUNT = scope:recipient.gdp_loan_principal_value
				INSTRUMENT = scope:instrument
			}
		}
		else = {
			increase_existing_loan_effect = {
				LENDER = scope:actor
				INSTRUMENT = scope:instrument
			}
		}
	}
}
scope:recipient = {
	if = {
		limit = {
			monthly_character_income < tiny_income_multiplier_value
		}
		custom_tooltip = loan_money_interaction_income_risk_tt
	}
	if = {
		limit = {
			OR = {
				has_trait = deceitful
				has_trait = arbitrary
				has_trait = greedy
			}
		}
		custom_tooltip = loan_money_interaction_personality_risk_tt
	}
	if = {
		limit = {
			debt_level >= 3
		}
		custom_tooltip = loan_money_interaction_big_debt_risk_tt
	}
	if = {
		limit = {
			OR = {
				has_relation_rival = scope:actor
				has_minor_negative_or_below_house_relations_with_target_trigger = {
					FIRST = scope:actor
					SECOND = this
				}
			}
		}
		custom_tooltip = loan_money_interaction_enmity_risk_tt
	}
	if = {
		limit = {
			any_owned_story = {
				story_type = story_cycle_loan
				var:lender != scope:actor
			}
		}
		custom_tooltip = loan_money_interaction_other_loans_risk_tt
	}
	if = {
		limit = {
			OR = {
				any_targeting_faction = {
					faction_type = claimant_faction
					faction_power > 50
				}
				any_character_war = {
					primary_defender = scope:recipient
					OR = {
						using_cb = depose_war
						using_cb = claimant_faction_war
						casus_belli = {
							any_target_title = {
								this = scope:recipient.primary_title
							}
						}
					}
				}
			}
		}
		custom_tooltip = loan_money_interaction_depose_risk_tt
	}
	if = {
		limit = {
			OR = {
				any_targeting_faction = {
					faction_type = nation_fracturing_faction
					faction_power > 50
				}
				any_character_war = {
					primary_defender = scope:recipient
					OR = {
						using_cb = nation_fracturing_faction_war
						casus_belli = {
							any_target_title = {
								is_landless_type_title = no
								tier >= scope:recipient.highest_held_title_tier_minus_one
							}
						}
					}
				}
			}
		}
		custom_tooltip = loan_money_interaction_dissolution_risk_tt
	}
	if = {
		limit = {
			faith = {
				faith_hostility_level = {
					target = scope:actor.faith
					value = faith_astray_level
				}
			}
		}
		custom_tooltip = loan_money_interaction_faith_astray_risk_tt
	}
	else_if = {
		limit = {
			faith = {
				faith_hostility_level = {
					target = scope:actor.faith
					value = faith_hostile_level
				}
			}
		}
		custom_tooltip = loan_money_interaction_faith_hostile_risk_tt
	}
	else_if = {
		limit = {
			faith = {
				faith_hostility_level = {
					target = scope:actor.faith
					value = faith_evil_level
				}
			}
		}
		custom_tooltip = loan_money_interaction_faith_evil_risk_tt
	}
}

As written in game/common/character_interactions/11_gdp_merchant_interactions.txt.

Category
Diplomatic actions
Again on the same character
after 10 years
In the menu
main list
ID
loan_money_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.

Spotted a mistake on this page, or have an idea for the site?