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

Scripted trigger

spymaster_task_courtier_valid_for_hook_fabrication_trigger

spymaster_task_courtier_valid_for_hook_fabrication_trigger = yes

game/common/scripted_triggers/00_secret_triggers.txt, line 574 (22 lines). No parameters.

spymaster_task_courtier_valid_for_hook_fabrication_trigger is a scripted trigger in Crusader Kings III, written at line 574 of its file. It takes no parameters: spymaster_task_courtier_valid_for_hook_fabrication_trigger = yes (or no). The game's script calls it in 3 places, among them Contract: Eyes in the Shadows (event laamp_extra_contract_schemes.0022), Find Secrets — Hook Opportunity (event scheme_critical_moments.8070) and spymaster_task.0381 (event). Patch 1.20.1.2, from game/common/scripted_triggers/00_secret_triggers.txt.

The comment above it in the file

If during the council task find secret's the spymaster can fabricate a hook on the target

What it checks

  • is_available_ai_adult = yes
  • None of these

    • this = scope:councillor
    • You:
      • has_hook = scope:target_check
    • You › Any scheme:
      • One of these

        • scheme_target_character ?= scope:target_character
        • or

          scheme_target_title ?= scope:target_character.primary_title
      • scheme_is_character_agent = scope:target_check
    • Any secret:
      • is_known_by = root

• 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 (22 lines of game script)
spymaster_task_courtier_valid_for_hook_fabrication_trigger = {
	is_available_ai_adult = yes
	save_temporary_scope_as = target_check
	NOR = {
		this = scope:councillor
		root = {
			has_hook = scope:target_check
		}
		root = {
			any_scheme = {
				OR = {
					scheme_target_character ?= scope:target_character
					scheme_target_title ?= scope:target_character.primary_title
				}
				scheme_is_character_agent = scope:target_check
			}
		}
		any_secret = { # Should prioritise actually finding Secrets
			is_known_by = root
		}
	}
}

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

Where it is used

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

Events (3)

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