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

Scripted trigger · Silk and Silver files

gdp_can_get_patrician_house_support_trigger

gdp_can_get_patrician_house_support_trigger = { TARGET_CHAR = … }

game/common/scripted_triggers/gdp_republic_triggers.txt, line 530 (24 lines). Parameters: $TARGET_CHAR$.

gdp_can_get_patrician_house_support_trigger is a scripted trigger in Crusader Kings III, in the Silk and Silver files, written at line 530 of its file. A call passes 1 parameter: TARGET_CHAR. The game's script calls it in 4 places, among them Negotiate Release (interaction), Request Patrician Support (interaction) and Secure Assembly Vote (interaction). Its body carries 1 text of the game's own for the player. Patch 1.21.0, from game/common/scripted_triggers/gdp_republic_triggers.txt.

The comment above it in the file

Trigger for checking if the target char/patrician is supporting the scoped character's house

What it checks

  • Their house:
    • If

      • variable_list_size = { name = patrician_house_support_gained value > 0 }

      Then

      • $TARGET_CHAR$ = { save_temporary_scope_as = patrician_providing_support }
      • … is already providing support to … Family

• 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 (24 lines of game script)
gdp_can_get_patrician_house_support_trigger = {
	save_temporary_scope_as = patrician_wanting_support
	house ?= {
		trigger_if = {
			limit = {
				has_variable_list = patrician_house_support_gained
				variable_list_size = {
					name = patrician_house_support_gained
					value > 0
				}
			}
			$TARGET_CHAR$ = { save_temporary_scope_as = patrician_providing_support }
			custom_tooltip = {
				text = already_providing_support_desc
				NOT = {
					any_in_list = {
						variable = patrician_house_support_gained
						this = scope:patrician_providing_support
					}
				}
			}
		}
	}
}

As written in game/common/scripted_triggers/gdp_republic_triggers.txt.

Where it is used

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

Source: game/common/scripted_triggers/gdp_republic_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.21.0.

Spotted a mistake on this page, or have an idea for the site?