Scripted trigger
diarch_swing_scales_valid_shared_hof_trigger
diarch_swing_scales_valid_shared_hof_trigger = yesgame/common/scripted_triggers/00_diarchy_scripted_triggers.txt, line 312 (40 lines). No parameters.
diarch_swing_scales_valid_shared_hof_trigger is a scripted trigger in Crusader Kings III, written at line 312 of its file. It takes no parameters: diarch_swing_scales_valid_shared_hof_trigger = yes (or no). The game's script calls it in 2 places, among them diarch_swing_scales_currency_interaction (interaction) and Swing the Scales of Power (interaction). Its body carries 4 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_triggers/00_diarchy_scripted_triggers.txt.
What it checks
- You must share a Head of Faith
• 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 (40 lines of game script)
diarch_swing_scales_valid_shared_hof_trigger = {
# You must share a HoF to be able to petition one.
custom_tooltip = {
text = swing_scales_currency_interaction.tt.no_shared_hof
exists = scope:actor.religious_head_or_challenger
exists = scope:recipient.religious_head_or_challenger
scope:actor.religious_head_or_challenger = scope:recipient.religious_head_or_challenger
}
# And opinions've gotta line up.
trigger_if = {
limit = { exists = scope:actor.religious_head_or_challenger }
# They must like you.
custom_tooltip = {
text = swing_scales_currency_interaction.tt.hof_needs_to_like_you_more
scope:actor.religious_head_or_challenger = {
opinion = {
target = scope:actor
value >= high_positive_opinion
}
}
}
# And not like scope:recipient too much.
custom_tooltip = {
text = swing_scales_currency_interaction.tt.hof_needs_to_like_them_less
scope:actor.religious_head_or_challenger = {
opinion = {
target = scope:recipient
value <= medium_positive_opinion
}
}
}
# Plus scope:recipient can't have anything over them.
custom_tooltip = {
text = swing_scales_currency_interaction.tt.hof_refuses_to_cross_recipient
NOT = {
scope:recipient = { has_strong_hook = scope:actor.religious_head_or_challenger }
}
}
}
}As written in game/common/scripted_triggers/00_diarchy_scripted_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls diarch_swing_scales_valid_shared_hof_trigger.
Character interactions (2)
- diarch_swing_scales_currency_interaction
- Swing the Scales of Power
Source: game/common/scripted_triggers/00_diarchy_scripted_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.