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

Scripted effect

petition_liege_governorship_effect

petition_liege_governorship_effect = { CHAR = … GRANTED_FROM = … TITLE = … }

game/common/scripted_effects/00_petition_liege_effects.txt, line 1226 (70 lines). Parameters: $CHAR$, $GRANTED_FROM$, $TITLE$.

petition_liege_governorship_effect is a scripted effect in Crusader Kings III, written at line 1226 of its file. A call passes 3 parameters: CHAR, GRANTED_FROM and TITLE. The game's script calls it in 1 place, among them petition_type_outcome_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_petition_liege_effects.txt.

What it does

Every line of it is script with no tooltip text: the script is below.

The script as written (70 lines of game script)
petition_liege_governorship_effect = {
	create_title_and_vassal_change = {
		type = granted
		save_scope_as = change
		add_claim_on_loss = no
	}
	hidden_effect = {
		$TITLE$ = {
			$GRANTED_FROM$ = {
				every_held_title = {
					title_tier >= county
					limit = {
						OR = {
							de_jure_liege = $TITLE$
							de_jure_liege.de_jure_liege = $TITLE$
						}
					}
					add_to_list = transfer_list
					change_title_holder = {
						holder = $CHAR$
						change = scope:change
						take_baronies = no
					}
				}
			}
		}
	}
	$TITLE$ = {
		change_title_holder_include_vassals = {
			holder = $CHAR$
			change = scope:change
			take_baronies = no
		}
	}
	hidden_effect = {
		scope:petition_vassal = {
			send_interface_toast = {
				title = petition_liege.0101.t.governorship
				left_icon = $CHAR$
				right_icon = $TITLE$
				show_as_tooltip = {
					$TITLE$ = {
						change_title_holder_include_vassals = {
							holder = $CHAR$
							change = scope:change
							take_baronies = no
						}
					}
				}
			}
		}
		scope:petition_liege = {
			send_interface_toast = {
				title = petition_liege.0101.t.governorship
				left_icon = $CHAR$
				right_icon = $TITLE$
				show_as_tooltip = {
					$TITLE$ = {
						change_title_holder_include_vassals = {
							holder = $CHAR$
							change = scope:change
							take_baronies = no
						}
					}
				}
			}
		}
	}
	resolve_title_and_vassal_change = scope:change
}

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

Where it is used

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

Scripted effects (1)

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