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

Scripted trigger

is_available_for_activity_trigger

is_available_for_activity_trigger = yes

game/common/scripted_triggers/00_activity_triggers.txt, line 1 (13 lines). No parameters.

is_available_for_activity_trigger is a scripted trigger in Crusader Kings III, written at line 1 of its file. It takes no parameters: is_available_for_activity_trigger = yes (or no). The game's script calls it in 15 places, among them A Special Dharma Talk (event devaraja.0003), A Tasteless Evening (event fp2_yearly.3003) and bp1_yearly.3201 (event). Patch 1.20.1.2, from game/common/scripted_triggers/00_activity_triggers.txt.

What it checks

  • Is available (an adult, not imprisoned)
  • is_healthy = 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 (13 lines of game script)
is_available_for_activity_trigger = {
	is_available_quick = {
		adult = yes
		at_war = no
		imprisoned = no
		activity = no
	}
	is_healthy = yes
	NOR = {
		exists = var:booked_for_a_party
		exists = var:engaged_in_single_combat
	}
}

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

Where it is used

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

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

  • on_building_completed

Scripted triggers (1)

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