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

Scripted trigger · All Under Heaven files

tgp_japan_defense_mobilization_valid_trigger

tgp_japan_defense_mobilization_valid_trigger = yes

game/common/scripted_triggers/10_tgp_japan_triggers.txt, line 411 (35 lines). No parameters.

tgp_japan_defense_mobilization_valid_trigger is a scripted trigger in Crusader Kings III, in the All Under Heaven files, written at line 411 of its file. It takes no parameters: tgp_japan_defense_mobilization_valid_trigger = yes (or no). The game's script calls it in 1 place, among them Defense Mobilization (law). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_triggers/10_tgp_japan_triggers.txt.

What it checks

• 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 (35 lines of game script)
tgp_japan_defense_mobilization_valid_trigger = {
	custom_tooltip = {
		text = defense_mobilization_law_valid_trigger
		exists = capital_county
		OR = {
			AND = {
				is_at_war = yes
				save_temporary_scope_as = liege_temp
				any_character_war = {
					is_civil_war = no
					save_temporary_scope_as = war_temp
					scope:liege_temp = {
						is_leader_in_war = scope:war_temp
						is_defender_in_war = scope:war_temp
					}
					OR = {
						# CURRENT ATTACKERS COMBINED ARE A THREAT
						war_attacker_total_strength_value > scope:liege_temp.max_strength_fifty_percent_value
						# PRIMARY ATTACKER WITH ALLIES IS A THREAT
						primary_attacker.max_strength_with_allies_value > scope:liege_temp.max_strength_fifty_percent_value
					}
					primary_attacker = {
						OR = {
							capital_county.empire != scope:liege_temp.capital_county.empire
							NOT = { government_is_japanese_trigger = yes }
						}
					}
				}
			}
			capital_county.empire ?= {
				any_de_jure_county = { holder.top_liege != root.top_liege }
			}
		}
	}
}

As written in game/common/scripted_triggers/10_tgp_japan_triggers.txt.

Where it is used

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

Source: game/common/scripted_triggers/10_tgp_japan_triggers.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?