Scripted effect · Silk and Silver files
gdp_move_disguised_usury_secret_effect
gdp_move_disguised_usury_secret_effect = yesgame/common/scripted_effects/gdp_merchant_scripted_effects.txt, line 6165 (51 lines). No parameters.
gdp_move_disguised_usury_secret_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 6165 of its file. It takes no parameters: gdp_move_disguised_usury_secret_effect = yes. The game's script calls it in 1 place, among them transfer_loan_effect (scripted effect). Patch 1.21.0, from game/common/scripted_effects/gdp_merchant_scripted_effects.txt.
The comment above it in the file
Disguised loan secret is transferred with the loan.
What it does
If
One of these
scope:old_debtor_temp != scope:new_debtor_tempor
scope:old_lender_temp != scope:new_lender_temp
Then
scope:old_lender_temp:If
- Any secret:
secret_target = scope:old_debtor_temp
Then
- One random secret:
- Where:
secret_target = scope:old_debtor_temp
remove_secret = yes
- Where:
- Any secret:
• 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 (51 lines of game script)
gdp_move_disguised_usury_secret_effect = {
if = {
limit = {
exists = scope:old_debtor_temp
exists = scope:old_lender_temp
exists = scope:new_debtor_temp
exists = scope:new_lender_temp
OR = {
scope:old_debtor_temp != scope:new_debtor_temp
scope:old_lender_temp != scope:new_lender_temp
}
}
scope:old_lender_temp = {
if = {
limit = {
any_secret = {
type = secret_disguised_usury
secret_target = scope:old_debtor_temp
}
}
random_secret = {
type = secret_disguised_usury
limit = { secret_target = scope:old_debtor_temp }
remove_secret = yes
}
}
}
scope:new_lender_temp = {
if = {
limit = {
gdp_usury_either_party_condemns_loan_trigger = {
LENDER = scope:new_lender_temp
BORROWER = scope:new_debtor_temp
}
NOT = {
any_secret = {
type = secret_disguised_usury
secret_target = scope:new_debtor_temp
}
}
}
hidden_effect = {
add_secret = {
type = secret_disguised_usury
target = scope:new_debtor_temp
}
}
}
}
}
}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 gdp_move_disguised_usury_secret_effect.
Scripted effects (1)
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.