Scripted effect
loan_repayment_refusal_effect
loan_repayment_refusal_effect = yesgame/common/scripted_effects/00_scripted_effects.txt, line 734 (94 lines). No parameters.
loan_repayment_refusal_effect is a scripted effect in Crusader Kings III, written at line 734 of its file. It takes no parameters: loan_repayment_refusal_effect = yes. The game's script calls it in 1 place, among them Monetary Ministrations (event vassal.2205). 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
scope:loan_temp:- If reminders less than 4:
story_owner = { custom_tooltip = demand_repayment_refusal_warning_tt }
- If reminders is 2:
story_owner = { add_prestige = medium_prestige_loss }- var:lender › If played by the AI: Opinion: Respect (-40)
- Else, if reminders is 3:
story_owner = { add_prestige = medium_prestige_loss }var:lender:- If played by the AI: Opinion: Respect (-40)
progress_towards_rival_effect = { REASON = rival_vassal_loan CHARACTER = scope:loan_temp.story_owner OPINION = 0 }
- Else, if reminders at least 4:
story_owner = { add_prestige = medium_prestige_loss add_prestige_level = -1 }var:lender:- If played by the AI: Opinion: Respect (-40)
progress_towards_rival_effect = { REASON = rival_vassal_loan CHARACTER = scope:loan_temp.story_owner OPINION = 0 }
end_loan_story_effect = yes
- Otherwise:
story_owner = { add_prestige = minor_prestige_loss }- var:lender › If played by the AI: Opinion: Respect (-20)
- If reminders less than 4:
• 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 (94 lines of game script)
loan_repayment_refusal_effect = {
save_temporary_scope_as = loan_temp
scope:loan_temp = {
if = {
limit = { exists = var:reminders }
change_variable = {
name = reminders
add = 1
}
}
else = {
set_variable = {
name = reminders
value = 1
}
}
if = {
limit = { var:reminders < 4 }
story_owner = { custom_tooltip = demand_repayment_refusal_warning_tt }
}
if = {
limit = { var:reminders ?= 2 }
story_owner = { add_prestige = medium_prestige_loss }
var:lender = {
if = {
limit = { is_ai = yes }
add_opinion = {
target = scope:loan_temp.story_owner
modifier = respect_opinion
opinion = medium_negative_opinion
}
}
}
}
else_if = {
limit = { var:reminders ?= 3 }
story_owner = { add_prestige = medium_prestige_loss }
var:lender = {
if = {
limit = { is_ai = yes }
add_opinion = {
target = scope:loan_temp.story_owner
modifier = respect_opinion
opinion = medium_negative_opinion
}
}
progress_towards_rival_effect = {
REASON = rival_vassal_loan
CHARACTER = scope:loan_temp.story_owner
OPINION = 0
}
}
}
else_if = {
limit = {
exists = var:reminders
var:reminders >= 4
}
story_owner = {
add_prestige = medium_prestige_loss
add_prestige_level = -1
}
var:lender = {
if = {
limit = { is_ai = yes }
add_opinion = {
target = scope:loan_temp.story_owner
modifier = respect_opinion
opinion = medium_negative_opinion
}
}
progress_towards_rival_effect = {
REASON = rival_vassal_loan
CHARACTER = scope:loan_temp.story_owner
OPINION = 0
}
}
end_loan_story_effect = yes
}
else = {
story_owner = { add_prestige = minor_prestige_loss }
var:lender = {
if = {
limit = { is_ai = yes }
add_opinion = {
target = scope:loan_temp.story_owner
modifier = respect_opinion
opinion = low_negative_opinion
}
}
}
}
}
}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_repayment_refusal_effect.
Events (1)
- Monetary Ministrations
vassal.2205
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.