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_city_charter_effect

burgher_grant_city_charter_effect = { LIEGE = … RULER = … }

game/common/scripted_effects/gdp_burgher_scripted_effects.txt, line 1103 (44 lines). Parameters: $LIEGE$, $RULER$.

burgher_grant_city_charter_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 1103 of its file. A call passes 2 parameters: LIEGE and RULER. The game's script calls it in 2 places, among them burgher_agitator_takes_commune_effect (scripted effect) and burgher_win_self_rule_effect (scripted effect). Its body carries 2 texts of the game's own for the player. Patch 1.21.0, from game/common/scripted_effects/gdp_burgher_scripted_effects.txt.

What it does

  • If

    • $LIEGE$ ?= { gdp_can_have_free_cities_trigger = yes }

    Then

    • The new Republic starts with Free City Rights
    • $RULER$ = { … }

    Else if

    • $LIEGE$ ?= { … }

    Then

    • The new Republic starts with Chartered City Rights
    • $RULER$ = { … }

• 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 (44 lines of game script)
burgher_grant_city_charter_effect = {
	if = {
		limit = {
			$LIEGE$ ?= { gdp_can_have_free_cities_trigger = yes }
		}
		custom_tooltip = burgher_self_rule_free_city_tt
		$RULER$ = {
			hidden_effect = {
				if = {
					limit = {
						liege ?= $LIEGE$
						has_subject_contract_group = republic_vassal
					}
					vassal_contract_set_obligation_level = {
						type = republic_government_free_city
						level = republic_government_free_city_granted
					}
				}
			}
		}
	}
	else_if = {
		limit = {
			$LIEGE$ ?= {
				NOT = { government_has_flag = government_is_republic }
			}
		}
		custom_tooltip = burgher_self_rule_chartered_city_tt
		$RULER$ = {
			hidden_effect = {
				if = {
					limit = {
						liege ?= $LIEGE$
						has_subject_contract_group = republic_vassal
					}
					vassal_contract_set_obligation_level = {
						type = republic_government_free_city
						level = republic_government_free_city_chartered
					}
				}
			}
		}
	}
}

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_city_charter_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?