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

Scripted effect · Silk and Silver files

burgher_grant_privilege_tier_effect

burgher_grant_privilege_tier_effect = { COUNTY = … PRIVILEGE = … }

game/common/scripted_effects/gdp_burgher_scripted_effects.txt, line 361 (59 lines). Parameters: $COUNTY$, $PRIVILEGE$.

burgher_grant_privilege_tier_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 361 of its file. A call passes 2 parameters: COUNTY and PRIVILEGE. The game's script calls it in 1 place, among them burgher_bestow_named_privilege_effect (scripted effect). Patch 1.21.0, from game/common/scripted_effects/gdp_burgher_scripted_effects.txt.

What it does

• 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 (59 lines of game script)
burgher_grant_privilege_tier_effect = {
	if = {
		limit = {
			$COUNTY$ = {
				burgher_lacks_privilege_tier_trigger = { PRIVILEGE = $PRIVILEGE$ }
			}
		}

		$COUNTY$ = {
			if = {
				limit = { has_county_modifier = civic_privilege_$PRIVILEGE$_2_county_modifier }
				save_scope_value_as = {
					name = burgher_grant_tier
					value = 3
				}
			}
			else_if = {
				limit = { has_county_modifier = civic_privilege_$PRIVILEGE$_1_county_modifier }
				save_scope_value_as = {
					name = burgher_grant_tier
					value = 2
				}
			}
			else = {
				save_scope_value_as = {
					name = burgher_grant_tier
					value = 1
				}
			}
		}

		burgher_remove_privilege_tiers_effect = {
			COUNTY = $COUNTY$
			PRIVILEGE = $PRIVILEGE$
		}

		$COUNTY$ = {
			if = {
				limit = { scope:burgher_grant_tier >= 3 }
				add_county_modifier = {
					modifier = civic_privilege_$PRIVILEGE$_3_county_modifier
				}
			}
			else_if = {
				limit = { scope:burgher_grant_tier >= 2 }
				add_county_modifier = {
					modifier = civic_privilege_$PRIVILEGE$_2_county_modifier
				}
			}
			else = {
				add_county_modifier = {
					modifier = civic_privilege_$PRIVILEGE$_1_county_modifier
				}
			}
		}

		burgher_advance_privilege_level_effect = { COUNTY = $COUNTY$ }
	}
}

As written in game/common/scripted_effects/gdp_burgher_scripted_effects.txt.

Where it is used

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

Source: game/common/scripted_effects/gdp_burgher_scripted_effects.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?