﻿#EK EDIT - REMOVED HISTORICAL TRIBUTARIES
# This file contains the setup effects for the tributaries in the game.
# The setup_tributaries_effect is invoked by on_game_start and should make calls to subsequent scripted effects.
# Sections are organized by top-suzerain title.
# Note that existing vassals (as established in title history) must be released and recreated into tributaries before
# they can have their own tributaries.

# $TRIBUTARY$ = the new tributary
# $SUZERAIN$ = their suzerain
# $WAR$ = determines if this was caused by war or agreement, yes or no
break_subject_contract_and_establish_tributary_effect = {
	if = {
		limit = { liege != this }
		create_title_and_vassal_change = {
			type = independency
			save_scope_as = change
			add_claim_on_loss = no
		}
		becomes_independent = {
			change = scope:change
		}
		resolve_title_and_vassal_change = scope:change
	}
	start_tributary_interaction_effect = {
		SUZERAIN = $SUZERAIN$
		TRIBUTARY = $TRIBUTARY$
	}
}