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

Scripted trigger

petition_head_of_faith_target_has_grave_sins_trigger

petition_head_of_faith_target_has_grave_sins_trigger = yes

game/common/scripted_triggers/11_petition_head_of_faith_triggers.txt, line 340 (23 lines). No parameters.

petition_head_of_faith_target_has_grave_sins_trigger is a scripted trigger in Crusader Kings III, written at line 340 of its file. It takes no parameters: petition_head_of_faith_target_has_grave_sins_trigger = yes (or no). The game's script calls it in 3 places, among them petition_head_of_faith_save_gravest_sin_effect (scripted effect), petition_head_of_faith_target_cite_sins_available_trigger (scripted trigger) and petition_head_of_faith_cite_sins_chance_value (script value). Patch 1.20.1.2, from game/common/scripted_triggers/11_petition_head_of_faith_triggers.txt.

The comment above it in the file

Target has grave sins (VERY_SINFUL_TRAITS bar: criminal traits, murderer, despoiler). Guarantees Cite Sins success.

What it checks

• 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 (23 lines of game script)
petition_head_of_faith_target_has_grave_sins_trigger = {
	exists = scope:petition_target
	exists = scope:recipient
	OR = {
		has_any_criminal_trait_in_rite_trigger = {
			CHARACTER = scope:petition_target
			RITE = scope:recipient.rite
		}
		scope:petition_target = {
			AND = {
				has_trait = murderer
				NOT = {
					scope:recipient.rite = {
						trait_is_virtue_rite = murderer
					}
				}
			}
		}
		scope:petition_target = {
			has_trait = despoiler_of_byzantium
		}
	}
}

As written in game/common/scripted_triggers/11_petition_head_of_faith_triggers.txt.

Where it is used

Every place in common/, events/ and history/ that calls petition_head_of_faith_target_has_grave_sins_trigger.

Script values (1)

  • petition_head_of_faith_cite_sins_chance_value

Source: game/common/scripted_triggers/11_petition_head_of_faith_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?