Scripted effect
forgive_loan_effect
forgive_loan_effect = yesgame/common/scripted_effects/00_scripted_effects.txt, line 829 (43 lines). No parameters.
forgive_loan_effect is a scripted effect in Crusader Kings III, written at line 829 of its file. It takes no parameters: forgive_loan_effect = yes. The game's script calls it in 6 places, among them Monopolize Trade (interaction), Request Merchant Charter (interaction) and Exposed Interest (event gdp_merchant.5000). Its body carries 3 texts of the game's own for the player. Patch 1.21.0, from game/common/scripted_effects/00_scripted_effects.txt.
What it does
- They will forgive … Loan (…)
end_loan_story_effect = yes
• 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 (43 lines of game script)
forgive_loan_effect = {
story_owner = { save_scope_as = debtor }
save_temporary_scope_value_as = {
name = amount_owed_temp
value = var:amount_owed
}
custom_description = {
text = forgive_loan_tt
subject = var:lender
object = story_owner
value = scope:amount_owed_temp
}
hidden_effect = {
var:lender = {
save_scope_as = lender
send_interface_toast = {
type = event_toast_effect_neutral
title = ho_loan_forgiven_title
right_icon = scope:debtor
custom_description = {
text = ho_loan_forgiven_lender_tt
subject = scope:debtor
object = scope:lender
value = scope:amount_owed_temp
}
}
}
story_owner = {
send_interface_toast = {
type = event_toast_effect_good
title = ho_debt_forgiven_title
right_icon = scope:lender
custom_description = {
text = ho_debt_forgiven_debtor_tt
subject = scope:debtor
object = scope:lender
value = scope:amount_owed_temp
}
}
}
}
end_loan_story_effect = yes
}As written in game/common/scripted_effects/00_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls forgive_loan_effect.
Character interactions (2)
Events (1)
- Exposed Interest
gdp_merchant.5000
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.