Scripted effect · Legacy of Persia files
fp3_challenge_house_head_duel_challenger_loss_effect
fp3_challenge_house_head_duel_challenger_loss_effect = yesgame/common/scripted_effects/05_dlc_fp3_scripted_effects.txt, line 1215 (27 lines). No parameters.
fp3_challenge_house_head_duel_challenger_loss_effect is a scripted effect in Crusader Kings III, in the Legacy of Persia files, written at line 1215 of its file. It takes no parameters: fp3_challenge_house_head_duel_challenger_loss_effect = yes. The game's script calls it in 3 places, among them Challenge Met: House … (event fp3_misc_decisions.0020), Challenge Met: House … (event fp3_misc_decisions.0023) and fp3_misc_decisions.0021 (event). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/05_dlc_fp3_scripted_effects.txt.
What it does
scope:house_challenger:scope:house_head:- Gain +100 Prestige
If
a check the game hides
Then
add_hook_no_toast = { type = trial_by_combat_hook target = scope:house_challenger }
- Challenge House Head will be unavailable for 3 years
• 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 (27 lines of game script)
fp3_challenge_house_head_duel_challenger_loss_effect = {
scope:house_challenger = {
if = {
limit = { is_alive = yes }
add_prestige = medium_prestige_loss
}
}
scope:house_head = {
add_prestige = medium_piety_value
if = {
limit = {
scope:house_challenger = { is_alive = yes }
}
add_hook_no_toast = {
type = trial_by_combat_hook
target = scope:house_challenger
}
}
custom_tooltip = {
text = fp3_challenge_house_head_recent_cooldown_tt
add_character_flag = {
flag = fp3_challenge_house_head_recent_flag
years = 3
}
}
}
}As written in game/common/scripted_effects/05_dlc_fp3_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls fp3_challenge_house_head_duel_challenger_loss_effect.
Events (3)
- Challenge Met: House …
fp3_misc_decisions.0020 - Challenge Met: House …
fp3_misc_decisions.0023 - fp3_misc_decisions.0021
Source: game/common/scripted_effects/05_dlc_fp3_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.