CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted trigger

diarch_swing_scales_valid_shared_hof_trigger

diarch_swing_scales_valid_shared_hof_trigger = yes

game/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
  • If

    a check the game hides

    Then

    • ⟨faith⟩ has less than 60 Opinion of you
    • ⟨faith⟩ has more than 40 Opinion of …
    • ⟨faith⟩ refuses to cross …

• 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)

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.

Spotted a mistake on this page?