Scripted effect
stewardship_domain_special_1500_apply_domesday_effects_2
stewardship_domain_special_1500_apply_domesday_effects_2 = { CUSTOM_TEXT = … }game/common/scripted_effects/00_stewardship_lifestyle_effects.txt, line 460 (33 lines). Parameters: $CUSTOM_TEXT$.
stewardship_domain_special_1500_apply_domesday_effects_2 is a scripted effect in Crusader Kings III, written at line 460 of its file. A call passes 1 parameter: CUSTOM_TEXT. The game's script calls it in 1 place, among them stewardship_domain_special_1500_apply_domesday_effects (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_stewardship_lifestyle_effects.txt.
The comment above it in the file
Determine which modifier we will apply to our counties, based on the total quality score accumulated during the event chain.
What it does
If
- Stewardship domain special 1500 domesday quality at least stewardship domain special 1500 domesday excellent quality
Then
stewardship_domain_special_1500_apply_domesday_effects_3 = { CUSTOM_TEXT = $CUSTOM_TEXT$ DOMESDAY_ASSESSMENT = stewardship_domain_special_1500_excellent_quality_assessment INCREASE_CONTROL = 20 }
Else if
- Stewardship domain special 1500 domesday quality at least stewardship domain special 1500 domesday high quality
Then
stewardship_domain_special_1500_apply_domesday_effects_3 = { CUSTOM_TEXT = $CUSTOM_TEXT$ DOMESDAY_ASSESSMENT = stewardship_domain_special_1500_high_quality_assessment INCREASE_CONTROL = 15 }
Otherwise
stewardship_domain_special_1500_apply_domesday_effects_3 = { CUSTOM_TEXT = $CUSTOM_TEXT$ DOMESDAY_ASSESSMENT = stewardship_domain_special_1500_mediocre_quality_assessment INCREASE_CONTROL = 10 }
• 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)
stewardship_domain_special_1500_apply_domesday_effects_2 = {
#All non-excluded counties receive the excellent quality modifier.
if = {
limit = {
var:stewardship_domain_special_1500_domesday_quality >= stewardship_domain_special_1500_domesday_excellent_quality
}
stewardship_domain_special_1500_apply_domesday_effects_3 = {
CUSTOM_TEXT = $CUSTOM_TEXT$
DOMESDAY_ASSESSMENT = stewardship_domain_special_1500_excellent_quality_assessment
INCREASE_CONTROL = 20
}
}
#All non-excluded counties receive the high quality modifier.
else_if = {
limit = {
var:stewardship_domain_special_1500_domesday_quality >= stewardship_domain_special_1500_domesday_high_quality
}
stewardship_domain_special_1500_apply_domesday_effects_3 = {
CUSTOM_TEXT = $CUSTOM_TEXT$
DOMESDAY_ASSESSMENT = stewardship_domain_special_1500_high_quality_assessment
INCREASE_CONTROL = 15
}
}
#All non-excluded-counties receive the mediocre quality modifier.
else = {
stewardship_domain_special_1500_apply_domesday_effects_3 = {
CUSTOM_TEXT = $CUSTOM_TEXT$
DOMESDAY_ASSESSMENT = stewardship_domain_special_1500_mediocre_quality_assessment
INCREASE_CONTROL = 10
}
}
#If the quality level of the survey is poor, no counties will receive any modifier.
}As written in game/common/scripted_effects/00_stewardship_lifestyle_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls stewardship_domain_special_1500_apply_domesday_effects_2.
Scripted effects (1)
Source: game/common/scripted_effects/00_stewardship_lifestyle_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.