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

Scripted effect · The Royal Court files

hold_court_queue_post_event_effect

hold_court_queue_post_event_effect = yes

game/common/scripted_effects/00_ep1_hold_court_effects.txt, line 1585 (32 lines). No parameters.

hold_court_queue_post_event_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 1585 of its file. It takes no parameters: hold_court_queue_post_event_effect = yes. The game's script calls it in 78 places, among them … Out of Control (event hold_court.5010), … Who Makes a Beast Out of …... (event hold_court.4600) and A … for … (event hold_court.8060). Patch 1.20.1.2, from game/common/scripted_effects/00_ep1_hold_court_effects.txt.

What it does

  • If petitioners dealt with count at least initial petitioners value: Event hold_court.0021

• 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 (32 lines of game script)
hold_court_queue_post_event_effect = {
	# Sort the ending counter.
	## If there's no ending counter, create one.
	if = {
		limit = {
			NOT = { has_variable = petitioners_dealt_with_count }
		}
		set_variable = {
			name = petitioners_dealt_with_count
			value = 1
		}
	}
	## Else if there is a counter below the total petitioner tally, increment it.
	else_if = {
		limit = { var:petitioners_dealt_with_count < initial_petitioners_value }
		change_variable = {
			name = petitioners_dealt_with_count
			add = 1
		}
	}
	## If appropriate, run the end stuff.
	if = {
		limit = {
			exists = var:petitioners_dealt_with_count
			var:petitioners_dealt_with_count >= initial_petitioners_value
		}
		# Remove the counter.
		remove_variable = petitioners_dealt_with_count
		# Launch into cleanup.
		trigger_event = hold_court.0021
	}
}

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

Where it is used

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

Events (78)

72 more

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