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

Scripted trigger

common_character_validity_trigger

common_character_validity_trigger = { FACTION_TARGET = … }

game/common/scripted_triggers/00_faction_triggers.txt, line 30 (47 lines). Parameters: $FACTION_TARGET$.

common_character_validity_trigger is a scripted trigger in Crusader Kings III, written at line 30 of its file. A call passes 1 parameter: FACTION_TARGET. The game's script calls it in 10 places, among them common_can_character_create_trigger (scripted trigger), common_can_character_join_trigger (scripted trigger) and Ceremonial Claimant Faction (factions). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_triggers/00_faction_triggers.txt.

What it checks

  • One of these

    • $FACTION_TARGET$ = liege
    • or

      Any character active contract:
      • task_contract_target = $FACTION_TARGET$
  • Highest held Title is more than Barony Rank
  • Was forbidden to join factions until …
  • If

    Then

  • NOT = { has_relation_blood_brother = $FACTION_TARGET$ }

• 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 (47 lines of game script)
common_character_validity_trigger = {
	custom_description = {
		text = "FACTION_CANT_JOIN_CREATE_IMPRISONED"
		trigger_if = {
			limit = {
				joined_faction ?= {
					faction_is_at_war = yes
				}
			}
		}
		trigger_else = {
			is_imprisoned = no
		}
	}

	OR = {
		$FACTION_TARGET$ = liege
		any_character_active_contract = {
			task_contract_target = $FACTION_TARGET$
		}
	}
	highest_held_title_tier > tier_barony

	#Not blocked through events
	custom_description = {
		text = character_blocked_from_joining
		NOT = {
			has_character_flag = joining_faction_block
		}
	}
	
	# You cannot start a faction against your bloc members
	trigger_if = {
		limit = {
			government_is_japanese_trigger = yes
			$FACTION_TARGET$ = { government_is_japanese_trigger = yes }
			exists = house.house_confederation
			exists = $FACTION_TARGET$.house.house_confederation
		}
		custom_tooltip = {
			text = house_confederation_faction_blocker_tt
			house.house_confederation != $FACTION_TARGET$.house.house_confederation
		}
	}
	
	NOT = { has_relation_blood_brother = $FACTION_TARGET$ }
}

As written in game/common/scripted_triggers/00_faction_triggers.txt.

Where it is used

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

Factions (8)

  • Ceremonial Claimant Faction
  • Claimant Faction
  • Dissolution Faction
  • Imperial Policy Faction
  • Independence Faction
  • Install Ruling Regent Faction
2 more
  • Liberty Faction
  • Restore Ceremonial Monarch Faction

Source: game/common/scripted_triggers/00_faction_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?