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

Scripted effect

loan_interest_open_message_effect

loan_interest_open_message_effect = { AMOUNT = … DEBTOR = … LENDER = … OWED = … }

game/common/scripted_effects/00_scripted_effects.txt, line 586 (33 lines). Parameters: $AMOUNT$, $DEBTOR$, $LENDER$, $OWED$.

loan_interest_open_message_effect is a scripted effect in Crusader Kings III, written at line 586 of its file. A call passes 4 parameters: AMOUNT, DEBTOR, LENDER and OWED. The game's script calls it in 2 places, among them increase_existing_loan_effect (scripted effect) and loan_open_interest_effect (scripted effect). Its body carries 1 text of the game's own for the player. Patch 1.21.0, from game/common/scripted_effects/00_scripted_effects.txt.

What it does

Every line of it is script with no tooltip text: the script is below.

The script as written (33 lines of game script)
loan_interest_open_message_effect = {
	$LENDER$ = { save_temporary_scope_as = lender_temp }
	$DEBTOR$ = { save_temporary_scope_as = debtor_temp }
	hidden_effect = {
		scope:debtor_temp ?= {
			send_interface_toast = {
				type = event_toast_effect_good
				title = gdp_purpose_events.0002_notification
				right_icon = scope:lender_temp
				scope:lender_temp ?= {
					send_interface_toast = {
						type = event_toast_effect_neutral
						title = gdp_purpose_events.0002_notification
						right_icon = scope:debtor_temp
						show_as_tooltip = {
							# Send the dosh
							pay_short_term_gold = {
								target = scope:debtor_temp
								gold = $AMOUNT$
							}
							custom_description = {
								text = gdp_loan_owed_open_interest_tt
								subject = scope:debtor_temp
								object = scope:lender_temp
								value = $OWED$
							}
						}
					}
				}
			}
		}
	}
}

As written in game/common/scripted_effects/00_scripted_effects.txt.

Where it is used

Every place in common/, events/ and history/ that calls loan_interest_open_message_effect.

Source: game/common/scripted_effects/00_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.21.0.

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