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

Scripted effect

pilgrimages_track_encountered_cultures_effect

pilgrimages_track_encountered_cultures_effect = yes

game/common/scripted_effects/00_pilgrimage_effects.txt, line 992 (31 lines). No parameters.

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

The comment above it in the file

Track how many cultures you've encountered on your pilgrimage - is saved on the current_travel_plan and destroyed with the travel plan

What it does

Every line of it is script with no tooltip text: the script is below.

The script as written (31 lines of game script)
pilgrimages_track_encountered_cultures_effect = {
	current_travel_plan = {
		if = {
			limit = {
				NOT = { 
					exists = var:visited_cultures_list
					root.location.culture = root.culture 
				}
			}
			add_to_variable_list = {
				name = visited_cultures_list
				target = root.location.culture
			}
		}
		else_if = {
			limit = {
				NOT = {
					any_in_list = {
						variable = visited_cultures_list
						this = root.location.culture
					}
					root.location.culture = root.culture
				}
			}
			add_to_variable_list = {
				name = visited_cultures_list
				target = root.location.culture
			}
		}
	}
}

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

Where it is used

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

On actions (the game's own hooks) (1)

  • on_travel_plan_movement

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