On ActionChanged this version
on_loan_repaid
root = country, scope:target = loan, scope:owner = lender (if existent, check with exists = scope:owner first before doing effects with it)
Definitionin_game/common/on_action/_hardcoded.txt:1112
1113effect = {
1114if = {
1115limit = {
1116exists = scope:owner
1117scope:target = {
1117has_loc_key = pawning_of_crown_jewels
}
}
}
}