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

Scripted effect · Roads to Power files

ep3_become_landed_cleanup_effect

ep3_become_landed_cleanup_effect = yes

game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt, line 1258 (47 lines). No parameters.

ep3_become_landed_cleanup_effect is a scripted effect in Crusader Kings III, in the Roads to Power files, written at line 1258 of its file. It takes no parameters: ep3_become_landed_cleanup_effect = yes. The game's script calls it in 5 places, among them Adventurer Invasion (casus belli), Adventurer Invasion (casus belli) and Adventurer Invasion (casus belli). Patch 1.20.1.2, from game/common/scripted_effects/07_dlc_ep3_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 (47 lines of game script)
ep3_become_landed_cleanup_effect = {
	if = {
		limit = {
			exists = scope:supporter
			highest_held_title_tier < scope:supporter.highest_held_title_tier
		}
		create_title_and_vassal_change = {
			type = swear_fealty
			save_scope_as = change
			add_claim_on_loss = no
		}
		change_liege = {
			liege = scope:supporter
			change = scope:change
		}
		resolve_title_and_vassal_change = scope:change
		# Message for nearby rulers
		create_landed_ruler_message_effect = {
			LANDED = scope:attacker
			FLAVOR_CHAR = scope:supporter
			FLAVOR_TITLE = scope:attacker.primary_title
			REASON = flag:conquest_support
		}
	}
	else = {
		if = {
			limit = {
				top_liege != this
				NOT = { exists = scope:new_liege }
			}
			create_title_and_vassal_change = {
				type = conquest
				save_scope_as = change
				add_claim_on_loss = no
			}
			becomes_independent = { change = scope:change }
			resolve_title_and_vassal_change = scope:change
		}
		# Message for nearby rulers
		create_landed_ruler_message_effect = {
			LANDED = scope:attacker
			FLAVOR_CHAR = scope:defender
			FLAVOR_TITLE = scope:attacker.primary_title
			REASON = flag:conquest
		}
	}
}

As written in game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.

Where it is used

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

Source: game/common/scripted_effects/07_dlc_ep3_scripted_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?