Scripted effect · Roads to Power files
ep3_decrease_resistance_effect
ep3_decrease_resistance_effect = yesgame/common/scripted_effects/07_dlc_ep3_scripted_effects.txt, line 12710 (78 lines). No parameters.
ep3_decrease_resistance_effect is a scripted effect in Crusader Kings III, in the Roads to Power files, written at line 12710 of its file. It takes no parameters: ep3_decrease_resistance_effect = yes. The game's script calls it in 6 places, among them A Traitor's Comfort (event ep3_story_cycle_harrying.3020), Confronting a Viper (event ep3_story_cycle_harrying.3021) and Crumbling Souls (event ep3_story_cycle_harrying.2000). Its body carries 2 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
The comment above it in the file
Decrease resistance
What it does
If
scope:story.var:resistance != 0
Then
- If their culture is Anglo-Saxon: Resistance decreases
- Otherwise: Resistance decreases
If
character:90028 = { … }
Then
character:90028 = { … }
• 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 (78 lines of game script)
ep3_decrease_resistance_effect = {
save_scope_as = origin_char
if = {
limit = { scope:story.var:resistance != 0 }
scope:story = {
change_variable = {
name = resistance
add = -1
}
}
set_variable = {
name = resistance_gui
value = scope:story.var:resistance
}
if = { #Display in red if Anglo-Saxon
limit = {
culture = culture:anglo_saxon
}
custom_tooltip = ep3_decrease_resistance_effect_tt_negative
}
else = { #Otherwise in green
custom_tooltip = ep3_decrease_resistance_effect_tt_positive
}
if = {
limit = {
exists = scope:story.var:ruler_england
}
scope:story.var:ruler_england = {
send_interface_message = {
type = msg_resistance_falls
title = harrying.notification_resistance_fall
desc = harrying_resistance_fall
}
}
}
if = {
limit = {
character:90028 = {
is_alive = yes
NOT = {
has_character_flag = hereward_settled_flag
}
}
}
character:90028 = {
send_interface_message = {
type = msg_resistance_falls
title = harrying.notification_resistance_fall
desc = harrying_resistance_fall
}
}
}
if = {
limit = {
scope:story.var:ruler_england = {
any_vassal = {
culture = culture:anglo_saxon
}
}
}
scope:story.var:ruler_england = {
every_vassal = {
limit = {
culture = culture:anglo_saxon
}
send_interface_message = {
type = msg_resistance_falls
title = harrying.notification_resistance_fall
desc = harrying_resistance_fall
}
}
}
}
}
}As written in game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls ep3_decrease_resistance_effect.
Events (6)
- A Traitor's Comfort
ep3_story_cycle_harrying.3020 - Confronting a Viper
ep3_story_cycle_harrying.3021 - Crumbling Souls
ep3_story_cycle_harrying.2000 - The Devil's Due
ep3_story_cycle_harrying.3054 - Thirty Pieces of Silver
ep3_story_cycle_harrying.3053 - War Effort
ep3_story_cycle_harrying.2010
Source: game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.