Scripted effect · Silk and Silver files
add_disguised_usury_secret_effect
add_disguised_usury_secret_effect = { DEBTOR = … }game/common/scripted_effects/gdp_merchant_scripted_effects.txt, line 6130 (33 lines). Parameters: $DEBTOR$.
add_disguised_usury_secret_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 6130 of its file. A call passes 1 parameter: DEBTOR. The game's script calls it in 2 places, among them increase_existing_loan_effect (scripted effect) and loan_disguised_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/gdp_merchant_scripted_effects.txt.
The comment above it in the file
Lender is root.
What it does
If
gdp_usury_either_party_condemns_loan_trigger = { LENDER = scope:usury_lender_temp BORROWER = $DEBTOR$ }None of these
- Any secret:
secret_target = $DEBTOR$
- Any secret:
Then
• the game's own tooltip text · ◦ our reading of the script line · code the script where neither exists
“They” is whatever it runs on (the scope it is called in). The scripted triggers and effects it calls link to their own pages; $PARAMETERS$ stay as written: each call fills them in.
The script as written (33 lines of game script)
add_disguised_usury_secret_effect = {
save_temporary_scope_as = usury_lender_temp
if = {
limit = {
# Either the debtor or the creditor's rite discourages/shuns usury.
gdp_usury_either_party_condemns_loan_trigger = {
LENDER = scope:usury_lender_temp
BORROWER = $DEBTOR$
}
NOT = {
any_secret = {
type = secret_disguised_usury
secret_target = $DEBTOR$
}
}
}
if = {
limit = { is_ai = no }
custom_tooltip = gdp_usury_disguised_secret_gain_tt
}
hidden_effect = {
send_interface_toast = {
type = event_secret_bad
title = secret_disguised_usury
left_icon = $DEBTOR$
add_secret = {
type = secret_disguised_usury
target = $DEBTOR$
}
}
}
}
}As written in game/common/scripted_effects/gdp_merchant_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls add_disguised_usury_secret_effect.
Scripted effects (2)
Source: game/common/scripted_effects/gdp_merchant_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.21.0.