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

tgp_japan_assert_regional_dominion_government_decision_effect

tgp_japan_assert_regional_dominion_government_decision_effect = yes

game/common/scripted_effects/10_dlc_tgp_japan_scripted_effects.txt, line 3355 (231 lines). No parameters.

tgp_japan_assert_regional_dominion_government_decision_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 3355 of its file. It takes no parameters: tgp_japan_assert_regional_dominion_government_decision_effect = yes. The game's script calls it in 2 places, among them Assert Regional Dominion (decision) and Assert Regional Dominion (event tgp_japan_decision.9960). Its body carries 4 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_japan_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 (120 lines of game script)
tgp_japan_assert_regional_dominion_government_decision_effect = {
	save_scope_as = super_soryo
	scope:super_soryo.primary_title.duchy ?= { save_scope_as = title_scope }
	# Crime to Kampaku
	if = {
		limit = {
			top_liege = { government_has_mechanic = administrative }
		}
		# Message for attacker
		send_interface_toast = {
			type = event_war_bad
			title = tgp_japan_soryo_war_is_crime_title
			left_icon = top_liege
			right_icon = scope:title_scope
			top_liege = {
				send_interface_toast = {
					type = event_war_bad
					title = tgp_japan_soryo_war_is_crime_kampaku_title
					left_icon = scope:super_soryo
					right_icon = scope:title_scope
					add_opinion = {
						target = scope:super_soryo
						modifier = admin_soryo_conquest_crime
					}
				}
			}
		}
	}
	if = {
		limit = { exists = scope:title_scope.holder }
		hidden_effect = {
			scope:title_scope.holder = { save_scope_as = main_defender }
			scope:super_soryo = {
				if = {
					limit = {
						any_truce_target = { this = scope:main_defender }
					}
					cancel_truce_both_ways = scope:main_defender
				}
			}
			start_war = {
			#lets make sure this is appropriate for Japan
				cb = domination_cb
				target = scope:main_defender
				target_title = scope:title_scope
			}
			random_character_war = {
				limit = {
					using_cb = domination_cb
					primary_defender = scope:main_defender
				}
				save_scope_as = war
			}
		}
		tgp_bloc_members_join_war_effect = { WAR = scope:war }
		custom_tooltip = domination_war_holder_custom_tooltip
	}
	else_if = {
		limit = {
			scope:super_soryo = {
				NOR = {
					prestige_level >= 4
					legitimacy_level >= 3
				}
			}
			scope:title_scope ?= {
				any_de_jure_county_holder = {
					NOR = {
						is_liege_or_above_of = scope:super_soryo
						top_suzerain ?= scope:super_soryo
						is_allied_to = scope:super_soryo
						government_has_flag = government_is_herder
						trigger_if = {
							limit = {
								exists = scope:super_soryo.confederation
							}
							confederation ?= scope:super_soryo.confederation
						}
					}
					#They wont join if you're too scary
					has_dread_level_towards = {
						target = scope:super_soryo
						level < 2
					}
					#Must be strong enough to feel like they can fight you
					current_military_strength >= {
						value = scope:super_soryo.current_military_strength
						multiply = 0.5
					}
				}
			}
		}
		hidden_effect = {
			scope:title_scope = {
				every_de_jure_county_holder = {
					limit = {
						NOT = { is_liege_or_above_of = scope:super_soryo }
					}
					if = {
						limit = {
							NOR = {
								top_suzerain ?= scope:super_soryo
								is_allied_to = scope:super_soryo
								government_has_flag = government_is_herder
								trigger_if = {
									limit = {
										exists = scope:super_soryo.confederation
									}
									confederation ?= scope:super_soryo.confederation
								}
							}

							#They wont join if you're too scary
							has_dread_level_towards = {
								target = scope:super_soryo
								level < 2
							}
							#Must be strong enough to feel like they can fight you
							current_military_strength >= {
								value = scope:super_soryo.current_military_strength

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

The first 120 of its 231 lines; the rest is in game/common/scripted_effects/10_dlc_tgp_japan_scripted_effects.txt from line 3355.

Where it is used

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

Events (1)

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?