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_disposition_hostile_trigger

petition_head_of_faith_disposition_hostile_trigger = yes

game/common/scripted_triggers/11_petition_head_of_faith_triggers.txt, line 249 (22 lines). No parameters.

petition_head_of_faith_disposition_hostile_trigger is a scripted trigger in Crusader Kings III, written at line 249 of its file. It takes no parameters: petition_head_of_faith_disposition_hostile_trigger = yes (or no). The game's script calls it in 11 places, among them Petition: … Excommunication (event petition_head_of_faith.1320), Petition: … Repentance (event petition_head_of_faith.1310) and Petition: Repentance (event petition_head_of_faith.1000). Patch 1.20.1.2, from game/common/scripted_triggers/11_petition_head_of_faith_triggers.txt.

What it checks

  • One of these

    • var:petition_head_of_faith_recipient:
      • has_relation_rival = prev
    • or

      All of these

      • exists = var:petition_head_of_faith_target_character
      • var:petition_head_of_faith_recipient: Opinion of prev.var:petition_head_of_faith_target_character at least 50
    • or

      var:petition_head_of_faith_recipient: Opinion of prev at most -50

• 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 (22 lines of game script)
petition_head_of_faith_disposition_hostile_trigger = {
	OR = {
		var:petition_head_of_faith_recipient = {
			has_relation_rival = prev
		}
		AND = {
			exists = var:petition_head_of_faith_target_character
			var:petition_head_of_faith_recipient = {
				opinion = {
					target = prev.var:petition_head_of_faith_target_character
					value >= 50
				}
			}
		}
		var:petition_head_of_faith_recipient = {
			opinion = {
				target = prev
				value <= petition_head_of_faith_hostile_opinion_threshold_value
			}
		}
	}
}

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_disposition_hostile_trigger.

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?