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

Scripted effect

offer_fealty_interaction_effect

offer_fealty_interaction_effect = yes

game/common/scripted_effects/00_interaction_effects.txt, line 3072 (101 lines). No parameters.

offer_fealty_interaction_effect is a scripted effect in Crusader Kings III, written at line 3072 of its file. It takes no parameters: offer_fealty_interaction_effect = yes. The game's script calls it in 5 places, among them Move to Realm (interaction), Swear Fealty (interaction) and After Rain Comes the Sun (event tgp_dynastic_cycle.0072). Its body carries 11 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_interaction_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 (101 lines of game script)
offer_fealty_interaction_effect = {
	create_title_and_vassal_change = {
		type = swear_fealty
		save_scope_as = change
	}
	scope:puppet_or_actor = {
		change_liege = {
			liege = scope:recipient
			change = scope:change
		}

		stress_and_fulfillment_impact = {
			ambitious = medium_stress_impact_gain
			arrogant = medium_stress_impact_gain
		}
	}
	resolve_title_and_vassal_change = scope:change

	scope:puppet_or_actor = {
		# Special terms for feudal contracts
		if = {
			limit = {
				government_has_flag = government_is_feudal
			}
			if = {
				limit = { scope:high_obligations = yes }
				hidden_effect = {
					if = {
						limit = { top_liege != this } # To avoid errors during tooltip generation (prior to the contract being generated)
						vassal_contract_set_obligation_level = { type = feudal_government_taxes level = 3 }
						vassal_contract_set_obligation_level = { type = feudal_government_levies level = 3 }
					}
				}
				custom_tooltip = high_obligations_taxes
				custom_tooltip = high_obligations_levies
			}
			else_if = {
				limit = { scope:low_obligations = yes }
				hidden_effect = {
					if = {
						limit = { top_liege != this } # To avoid errors during tooltip generation (prior to the contract being generated)
						vassal_contract_set_obligation_level = { type = feudal_government_taxes level = 1 }
						vassal_contract_set_obligation_level = { type = feudal_government_levies level = 1 }
					}
				}
				custom_tooltip = low_obligations_taxes
				custom_tooltip = low_obligations_levies
			}
			else_if = {
				limit = { scope:religious_taxation = yes }
				hidden_effect = {
					if = {
						limit = { top_liege != this } # To avoid errors during tooltip generation (prior to the contract being generated)
						vassal_contract_set_obligation_level = { type = feudal_government_taxes level = 3 }
						vassal_contract_set_obligation_level = { type = feudal_government_levies level = 2 }
						vassal_contract_set_obligation_level = { type = religious_rights level = 1 }
					}
				}
				custom_tooltip = high_obligations_taxes
				custom_tooltip = normal_obligations_levies
				if = {
					limit = { scope:recipient.faith = { has_doctrine_parameter = unlock_jizya_contract } }
					custom_tooltip = jizya_religious_protection_tt
				}
				else = { custom_tooltip = religious_protection_tt }
			}
			else = {
				hidden_effect = {
					if = {
						limit = { top_liege != this } # To avoid errors during tooltip generation (prior to the contract being generated)
						vassal_contract_set_obligation_level = { type = feudal_government_taxes level = 2 }
						vassal_contract_set_obligation_level = { type = feudal_government_levies level = 2 }
					}
				}
				custom_tooltip = normal_obligations_taxes
				custom_tooltip = normal_obligations_levies
			}
		}
		else_if = {
			limit = {
				government_has_flag = government_is_clan
				scope:religious_exemption_clan = yes
			}
			hidden_effect = {
				if = {
					limit = { top_liege != this } # To avoid errors during tooltip generation (prior to the contract being generated)
					vassal_contract_set_obligation_level = { type = religious_rights level = 1 }
				}
			}
			custom_tooltip = religious_protection_tt
		}
	}

	# Struggle catalysts.
	hidden_effect = {
		fp3_struggle_apply_independent_vassalage_catalyst_effect = {
			NEW_LIEGE = scope:recipient
			NEW_VASSAL = scope:puppet_or_actor
		}
	}
}

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

Where it is used

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

Character interactions (2)

Events (3)

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