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

Scripted effect

petition_liege_0101_faction_dismantle_effect

petition_liege_0101_faction_dismantle_effect = yes

game/common/scripted_effects/00_petition_liege_effects.txt, line 463 (57 lines). No parameters.

petition_liege_0101_faction_dismantle_effect is a scripted effect in Crusader Kings III, written at line 463 of its file. It takes no parameters: petition_liege_0101_faction_dismantle_effect = yes. The game's script calls it in 1 place, among them petition_type_outcome_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_petition_liege_effects.txt.

The comment above it in the file

Faction War

What it does

  • scope:petition_liege: Stress and fulfillment impact: by trait: Shy +20, Diplomat -15
  • scope:vassal_faction:
    • faction_target = { … }
    • If

      • None of these

        • Any faction member:
          • THIS = scope:vassal_faction.special_character

      Then

      • special_character = { … }
    • If

      • faction_is_at_war = no

      Then

      • Every member of the … (…) targeting …:
      • destroy_faction = yes

      Otherwise

      • Every member of the … (…) targeting …:
      • faction_war = { end_war = defender }

• 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 (57 lines of game script)
petition_liege_0101_faction_dismantle_effect = {
	scope:petition_liege = {
		stress_and_fulfillment_impact = {
			shy = minor_stress_impact_gain
			diplomat = minor_stress_impact_loss
		}
	}
	scope:vassal_faction = {
		faction_target = {
			add_opinion = {
				target = ROOT
				modifier = grateful_opinion
				opinion = 10
			}
		}
		if = {
			limit = {
			 	exists = special_character
			 	NOT = {
			 		any_faction_member = { THIS = scope:vassal_faction.special_character }
			 	}
			}
			special_character = {
				add_opinion = {
					target = scope:petition_liege
					modifier = angry_opinion
					opinion = -10
				}
			}
		}
		if = {
			limit = { faction_is_at_war = no }
			every_faction_member = {
				custom = hold_court_8260_faction_member_tt
				add_faction_cooldown_effect = { YEARS = faction_war_white_peace_cooldown }
				add_opinion = {
					target = scope:petition_liege
					modifier = angry_opinion
					opinion = -10
				}
			}
			destroy_faction = yes
		}
		else = {
			every_faction_member = {
				custom = hold_court_8260_faction_member_tt
				add_faction_cooldown_effect = { YEARS = faction_war_defeat_cooldown }
				add_opinion = {
					target = scope:petition_liege
					modifier = angry_opinion
					opinion = -25
				}
			}
			faction_war = { end_war = defender }
		}
	}
}

As written in game/common/scripted_effects/00_petition_liege_effects.txt.

Where it is used

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

Scripted effects (1)

Source: game/common/scripted_effects/00_petition_liege_effects.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?