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

Scripted effect

activity_try_find_new_host_effect

activity_try_find_new_host_effect = yes

game/common/scripted_effects/00_activity_effects.txt, line 4747 (23 lines). No parameters.

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

What it does

  • If

    a check the game hides

    Then

    • If

      • scope:host.current_travel_plan: Any entourage character:

      Then

      • scope:host.current_travel_plan:
        • set_travel_plan_owner = scope:new_host

• 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 (23 lines of game script)
activity_try_find_new_host_effect = {
	# Make the title heir the new host
	if = {
		limit = { exists = scope:host.primary_title.current_heir }
		scope:host.primary_title.current_heir = { save_scope_as = new_host }
	}
	# Otherwise pass to primary heir
	else = {
		scope:host.primary_heir ?= { save_scope_as = new_host }
	}
	if = {
		limit = { exists = scope:new_host }
		#Also inherit the travel plan
		if = {
			limit = {
				scope:host.current_travel_plan ?= {
					any_entourage_character = { this = scope:new_host }
				}
			}
			scope:host.current_travel_plan = { set_travel_plan_owner = scope:new_host }
		}
	}
}

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

Where it is used

Every place in common/, events/ and history/ that calls activity_try_find_new_host_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?