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_restore_ritsuryo_civil_war_effect

tgp_restore_ritsuryo_civil_war_effect = { LIEGE = … REBEL = … }

game/common/scripted_effects/10_dlc_tgp_japan_scripted_effects.txt, line 3001 (157 lines). Parameters: $LIEGE$, $REBEL$.

tgp_restore_ritsuryo_civil_war_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 3001 of its file. A call passes 2 parameters: LIEGE and REBEL. The game's script calls it in 1 place, among them tgp_restore_japanese_government_decision_effect (scripted effect). Its body carries 1 text 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

Every line of it is script with no tooltip text: the script is below.

The script as written (120 lines of game script)
tgp_restore_ritsuryo_civil_war_effect = {
	$REBEL$ = {
		save_scope_as = actor
		save_scope_value_as = {
			name = war_for_hoken_flavour
			value = yes
		}
		start_war = {
			casus_belli = japan_refused_ritsuryo_cb
			target = $LIEGE$
		}
	}
	$LIEGE$ = {
		save_scope_as = recipient
		every_vassal = { #Vassals joining the rebel.
			custom = vassals_joining_war_tt
			limit = {
				government_has_flag = government_is_japan_feudal
				NOR = {
					this = $REBEL$
					is_ai = no
					has_trait = incapable
					is_imprisoned = yes
					dread_modified_ai_boldness = { #Too scared to do anything.
						dreaded_character = $LIEGE$
						value <= -50
					}
					opinion = { # People who really, really like you will still back you
						target = $LIEGE$
						value >= 80
					}
					is_allied_to = $LIEGE$
					is_at_war_with = $REBEL$
					is_at_war_with = $LIEGE$
				}
				highest_held_title_tier > tier_barony
				OR = {
					#Lovers and friends always back rebel (unless also lovers/friends of the liege)
					AND = {
						OR = {
							is_allied_to = $REBEL$
							has_relation_lover = $REBEL$
							has_relation_friend = $REBEL$
						}
						NOR = {
							is_allied_to = $LIEGE$
							has_relation_lover = $LIEGE$
							has_relation_friend = $LIEGE$
						}
					}
					#Vassals that either like recipient or have high honor will rally if the liege is being tyrannical.
					AND = {
						# If they can't join a faction against the liege they should not revolt
						NOR = {
							has_relation_lover = $LIEGE$
							has_relation_friend = $LIEGE$
							is_allied_to = $LIEGE$
							is_primary_heir_of = $LIEGE$
							$LIEGE$ = { has_strong_hook = prev }
							has_dread_level_towards = {
								target = $LIEGE$
								level = 2
							}
						}
						OR = {
							ai_boldness >= 25
							ai_honor >= 25
							opinion = {
								target = $REBEL$
								value >= 40
							}
						}
						NOR = {
							$LIEGE$ = { has_revoke_title_reason = $REBEL$ }
							trigger_if = {
								limit = { exists = scope:landed_title }
								$LIEGE$ = { has_claim_on = scope:landed_title }
							}
							faith = {
								faith_hostility_level = {
									target = $REBEL$.faith
									value >= faith_hostile_level
								}
							}
						}
					}
					#And finally, vassals that really hate their liege will join regardless (provided that they also do not hate recipient).
					AND = {
						opinion = {
							target = $REBEL$
							value >= -25
						}
						OR = {
							#default threshold
							opinion = {
								target = $LIEGE$
								value <= -50
							}
							#If tyrannical, the default threshold will be reached if at this level
							AND = {
								$LIEGE$ = {
									title_revocation_is_tyrannical_trigger = { VASSAL = $REBEL$ }
								}
								opinion = {
									target = $LIEGE$
									value <= -30 #revoke_title_tyranny_gain adds -20
								}
							}
						}
					}
				}
			}
			save_scope_as = joining_vassal
			custom_tooltip = tooltip_fellow_vassal_joins_war #The war has not started when viewing the interaction screen.
			hidden_effect = {
				$REBEL$ = {
					every_character_war = {
						limit = {
							using_cb = japan_refused_ritsuryo_cb
							casus_belli = {

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

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

Where it is used

Every place in common/, events/ and history/ that calls tgp_restore_ritsuryo_civil_war_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?