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

Scripted effect · All Under Heaven files

faction_demand_regent_transfer_effect

faction_demand_regent_transfer_effect = { NEW_REGENT = … REASON = … }

game/common/scripted_effects/10_dlc_tgp_japan_scripted_effects.txt, line 2487 (68 lines). Parameters: $NEW_REGENT$, $REASON$.

faction_demand_regent_transfer_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 2487 of its file. A call passes 2 parameters: NEW_REGENT and REASON. The game's script calls it in 7 places, among them Ceremonial Claimant Faction (casus belli), Claim (casus belli) and Establish Sōryō Administration (casus belli). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_japan_scripted_effects.txt.

What it does

  • $NEW_REGENT$ = { … }
  • scope:old_regent_temp › Their primary title:
    • change_title_holder_include_vassals = { holder = scope:new_regent_temp change = scope:title_change }
  • scope:new_regent_temp:
    • If

      • has_title = scope:preferred_capital_temp
      • capital_county != scope:preferred_capital_temp

      Then

      • The realm capital moves
    • If their government is not Sōryō: Adopts Sōryō Government

• 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 (68 lines of game script)
faction_demand_regent_transfer_effect = {
	top_liege = {
		save_temporary_scope_as = old_regent_temp
		primary_title = {
			save_temporary_scope_as = primary_title_temp
			title_capital_county = { save_temporary_scope_as = preferred_capital_temp }
		}
	}
	$NEW_REGENT$ = {
		save_temporary_scope_as = new_regent_temp
		if = {
			limit = { government_has_flag = government_is_japan_feudal }
			save_temporary_scope_as = japan_feudal
		}
	}
	# COUNTIES
	create_title_and_vassal_change = {
		type = $REASON$
		save_scope_as = title_change
		add_claim_on_loss = no
	}
	scope:old_regent_temp = { # Give landed titles to the new Regent
		show_as_tooltip = {
			primary_title = { # Give top liege title to the new Regent
				change_title_holder_include_vassals = {
					holder = scope:new_regent_temp
					change = scope:title_change
				}
			}
		}
		hidden_effect = {
			every_held_title = {
				limit = {
					tier > tier_barony # we don't want to try and pass off baronies
					is_landless_type_title = no
					is_noble_family_title = no
					NOT = { exists = var:ceremonial_title } # we don't want to hand away the ceremonial throne, which is not landless
				}
				change_title_holder_include_vassals = {
					holder = scope:new_regent_temp
					change = scope:title_change
				}
			}
			change_liege = {
				liege = scope:new_regent_temp
				change = scope:title_change
			}
		}
	}
	resolve_title_and_vassal_change = scope:title_change
	scope:new_regent_temp = {
		if = {
			limit = {
				has_title = scope:preferred_capital_temp # do I own the preferred capital?
				capital_county != scope:preferred_capital_temp # and is my capital not the preferred capital?
			}
			set_realm_capital = scope:preferred_capital_temp # now my capital is the preferred capital
		}
		# GOVERNMENT
		if = {
			limit = {
				exists = scope:japan_feudal
				NOT = { government_has_flag = government_is_japan_feudal }
			}
			change_government = japan_feudal_government
		}
	}
}

As written in game/common/scripted_effects/10_dlc_tgp_japan_scripted_effects.txt.

Where it is used

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

Source: game/common/scripted_effects/10_dlc_tgp_japan_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?