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

Scripted effect

add_to_court_and_entourage_effect

add_to_court_and_entourage_effect = yes

game/common/scripted_effects/00_activity_effects.txt, line 4432 (38 lines). No parameters.

add_to_court_and_entourage_effect is a scripted effect in Crusader Kings III, written at line 4432 of its file. It takes no parameters: add_to_court_and_entourage_effect = yes. The game's script calls it in 30 places, among them … Washed Up (event pilgrimage.2050), …: Be A …! (event tournament_events.7000) and A Band of Two (event travel_events_bp3.50). Patch 1.20.1.2, from game/common/scripted_effects/00_activity_effects.txt.

What it does

  • If

    • scope:companion:
      • NOT = { is_courtier_of = root }

    Then

    • You:
      • add_courtier = scope:companion
  • If

    • root.current_travel_plan ?= { … }

    Then

    • root.current_travel_plan = { add_companion = scope:companion }
  • If

    • scope:activity:
      • No attending character:
      • scope:companion:
        • can_join_activity = scope:activity

    Then

    • scope:companion:
      • add_to_activity = scope:activity

• 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 (38 lines of game script)
add_to_court_and_entourage_effect = {
	save_scope_as = companion
	if = {
		limit = {
			scope:companion = {
				NOT = {
					is_courtier_of = root
				}
			}
		}
		root = {
			add_courtier = scope:companion
		}
	}
	if = {
		limit = { 
			root.current_travel_plan ?= {
				NOT = {
					any_entourage_character = { this = scope:companion }
				}
			}
		}
		root.current_travel_plan = { add_companion = scope:companion }
	}
	if = {
		limit = { 
			scope:activity ?= {
				NOT = {
					any_attending_character = { this = scope:companion }
				}
				scope:companion = { can_join_activity = scope:activity }
			}
		}
		scope:companion = {
			add_to_activity = scope:activity
		}
	}
}

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

Where it is used

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

Events (24)

18 more

Scripted effects inside an event file (1)

  • runaway_found_effect

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