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

Scripted effect · By God Alone files

pam_investiture_free_for_council_effect

pam_investiture_free_for_council_effect = yes

game/common/scripted_effects/pam_investiture_council_effects.txt, line 489 (21 lines). No parameters.

pam_investiture_free_for_council_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 489 of its file. It takes no parameters: pam_investiture_free_for_council_effect = yes. The game's script calls it in 4 places, among them The Council Summons You (event pam_investiture_council_events.0004), pam_investiture_council_force_gather_effect (scripted effect) and pam_investiture_prepare_voters_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/pam_investiture_council_effects.txt.

The comment above it in the file

Pulls the character off another activity without cancelling it

What it does

  • If

    • None of these

      • Their activity:
        • has_activity_type = activity_investiture_council
    • None of these

      • Their activity:
        • activity_host = scope:investiture_free_char

    Then

    • remove_from_activity = involved_activity
  • If

    • Is traveling
    • current_travel_plan ?= { can_cancel = yes }

    Then

    • current_travel_plan = { cancel_travel_plan = yes }

• 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 (21 lines of game script)
pam_investiture_free_for_council_effect = {
	save_temporary_scope_as = investiture_free_char
	# remove_from_activity only works on attendees
	# Hosts are skipped because their activity is invalidated separately
	if = {
		limit = {
			exists = involved_activity
			NOT = { involved_activity = { has_activity_type = activity_investiture_council } }
			NOT = { involved_activity = { activity_host = scope:investiture_free_char } }
		}
		remove_from_activity = involved_activity
	}
	# can_cancel skips plans that cannot be cancelled, already cancelled or hosting the destination
	if = {
		limit = {
			is_travelling = yes
			current_travel_plan ?= { can_cancel = yes }
		}
		current_travel_plan = { cancel_travel_plan = yes }
	}
}

As written in game/common/scripted_effects/pam_investiture_council_effects.txt.

Where it is used

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

Source: game/common/scripted_effects/pam_investiture_council_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?