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_setup_historical_house_relation_effect

tgp_setup_historical_house_relation_effect = yes

game/common/scripted_effects/10_dlc_tgp_japan_scripted_effects.txt, line 3175 (96 lines). No parameters.

tgp_setup_historical_house_relation_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 3175 of its file. It takes no parameters: tgp_setup_historical_house_relation_effect = yes. The game's script calls it in 1 place, among them on_game_start (on action). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_japan_scripted_effects.txt.

What it does

  • If

    • game_start_date = 867.1.1

    Then

    • house:house_fujiwara_ashikaga = { … }

    Else if

    • game_start_date = 1066.9.15

    Then

    Else if

    • game_start_date = 1178.10.1

    Then

    • dynasty:japanese_sugawara.dynasty_founder.house:
    • house:house_minamoto_kiso = { … }
    • house:house_minamoto_kawachi = { … }
    • house:house_kudo_kawazu = { … }
    • house:house_taira_wada = { … }
    • house:house_taira_chichibu = { … }
    • house:house_taira_soga = { … }
    • dynasty:japanese_ito.dynasty_founder.house:
    • house:house_kudo_ito_2 = { … }
    • house:house_fujiwara_shijo = { … }
    • dynasty:japanese_fujiwara.dynasty_founder.house:

• 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 (96 lines of game script)
tgp_setup_historical_house_relation_effect = {
	### 867 ###
	if = {
		limit = { game_start_date = 867.1.1 }
		house:house_fujiwara_ashikaga = {
			tgp_set_historical_house_relation_effect = { #
				OTHER_HOUSE = house:house_minamoto_kozuke
				LEVEL = rivalry
			}
		}
	}
	### 1066 ###
	else_if = {
		limit = { game_start_date = 1066.9.15 }
		dynasty:japanese_minamoto_murakami.dynasty_founder.house = {
			tgp_set_historical_house_relation_effect = { #
				OTHER_HOUSE = dynasty:japanese_fujiwara.dynasty_founder.house
				LEVEL = friendly
			}
		}
	}
	### 1178 ###
	else_if = {
		limit = { game_start_date = 1178.10.1 }
		dynasty:japanese_sugawara.dynasty_founder.house = {
			tgp_set_historical_house_relation_effect = { #
				OTHER_HOUSE = dynasty:japanese_ki.dynasty_founder.house
				LEVEL = friendly
			}
		}
		house:house_minamoto_kiso = {
			tgp_set_historical_house_relation_effect = { # Yoshikata killed by Yoshihira
				OTHER_HOUSE = dynasty:japanese_nakahara_kiso.dynasty_founder.house
				LEVEL = friendly
			}
		}
		house:house_minamoto_kawachi = {
			tgp_set_historical_house_relation_effect = { # Yoritomo's brothers killed by Kiyomori
				OTHER_HOUSE = dynasty:japanese_nakahara_kiso.dynasty_founder.house
				LEVEL = rivalry
			}
			tgp_set_historical_house_relation_effect = { # Marriage and historical alliance
				OTHER_HOUSE = house:house_taira_hojo
				LEVEL = friendly
			}
		}
		house:house_kudo_kawazu = {
			tgp_set_historical_house_relation_effect = { # Soga brothers
				OTHER_HOUSE = house:house_kudo_ito_2
				LEVEL = rivalry
			}
		}
		house:house_taira_wada = {
			tgp_set_historical_house_relation_effect = { # Yoshimune killed by Tsunetomo
				OTHER_HOUSE = dynasty:japanese_nagasa.dynasty_founder.house
				LEVEL = rivalry
			}
		}
		house:house_taira_chichibu = {
			tgp_set_historical_house_relation_effect = { # Shigetaka killed by Yoshihira
				OTHER_HOUSE = house:house_minamoto_kawachi
				LEVEL = rivalry
			}
		}
		house:house_taira_soga = {
			tgp_set_historical_house_relation_effect = { # Soga brothers
				OTHER_HOUSE = house:house_minamoto_kawachi
				LEVEL = rivalry
			}
		}
		dynasty:japanese_ito.dynasty_founder.house = {
			tgp_set_historical_house_relation_effect = { # Tadanao killed by Tametomo
				OTHER_HOUSE = house:house_minamoto_kawachi
				LEVEL = rivalry
			}
		}
		house:house_kudo_ito_2 = {
			tgp_set_historical_house_relation_effect = { # Sukeyasu_2 killed by Suketsune_2
				OTHER_HOUSE = house:house_kudo_kawazu
				LEVEL = rivalry
			}
		}
		house:house_fujiwara_shijo = {
			tgp_set_historical_house_relation_effect = { # Takasue's brothers killed by Kiyomori
				OTHER_HOUSE = dynasty:japanese_taira_kanmu.dynasty_founder.house
				LEVEL = rivalry
			}
		}
		dynasty:japanese_fujiwara.dynasty_founder.house = {
			tgp_set_historical_house_relation_effect = { # Yorinaga killed by Shigesada
				OTHER_HOUSE = house:house_minamoto_mitsumasa
				LEVEL = rivalry
			}
		}
	}
}

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 tgp_setup_historical_house_relation_effect.

On actions (the game's own hooks) (1)

  • on_game_start

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?