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

Scripted effect

form_majapahit_empire_decision_scripted_effect

form_majapahit_empire_decision_scripted_effect = yes

game/common/scripted_effects/00_major_decisions_scripted_effects.txt, line 2906 (108 lines). No parameters.

form_majapahit_empire_decision_scripted_effect is a scripted effect in Crusader Kings III, written at line 2906 of its file. It takes no parameters: form_majapahit_empire_decision_scripted_effect = yes. The game's script calls it in 2 places, among them Found the Majapahit Empire (decision) and The Ascension Ritual (event major_decisions.5000). Its body carries 3 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_major_decisions_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 (108 lines of game script)
form_majapahit_empire_decision_scripted_effect = {
	save_scope_as = founder
	create_title_and_vassal_change = {
		type = created
		save_scope_as = title_change
		add_claim_on_loss = no
	}
	title:e_majapahit = {
		change_title_holder = {
			holder = root
			change = scope:title_change
		}
	}
	resolve_title_and_vassal_change = scope:title_change
	root.dynasty = {
		add_dynasty_modifier = majapahit_empire_founding_modifier
	}

	hidden_effect = {
		title:k_yavakadvipa = { save_scope_as = javanese_yavakadvipa }
		title:d_SUM_palembang = { save_scope_as = javanese_palembang }
		title:d_JAV_taruma = { save_scope_as = javanese_taruma }
		title:d_JAV_mataram = { save_scope_as = javanese_mataram }
		title:c_JAV_madura = { save_scope_as = javanese_madura }
		title:e_majapahit = { save_scope_as = javanese_majapahit_empire }
		title:k_yavakadvipa = { set_de_jure_liege_title = title:e_majapahit }
		if = {
			limit = {
				title:k_yavakadvipa = {
					is_title_created = yes
					NOT = {
						holder = ROOT
					}
				}
			}
			create_title_and_vassal_change = {
				type = usurped
				save_scope_as = title_change_2
				add_claim_on_loss = no
			}
			title:k_yavakadvipa = {
				change_title_holder = {
					holder = root
					change = scope:title_change_2
				}
			}
			resolve_title_and_vassal_change = scope:title_change_2
		}
		else_if = {
			limit = {
				title:k_yavakadvipa = { is_title_created = no }
			}
			create_title_and_vassal_change = {
				type = created
				save_scope_as = title_change_2
				add_claim_on_loss = no
			}
			title:k_yavakadvipa = {
				change_title_holder = {
					holder = root
					change = scope:title_change_2
				}
			}
			resolve_title_and_vassal_change = scope:title_change_2
		}
		if = {
			limit = {
				title:d_SUM_palembang = {
					NOT = { target_is_de_jure_liege_or_above = title:k_yavakadvipa }
				}
			}
			title:d_SUM_palembang = { set_de_jure_liege_title = title:k_yavakadvipa }
		}
		if = {
			limit = {
				title:d_JAV_taruma = {
					NOT = { target_is_de_jure_liege_or_above = title:k_yavakadvipa }
				}
			}
			title:d_JAV_taruma = { set_de_jure_liege_title = title:k_yavakadvipa }
		}
		if = {
			limit = {
				title:d_JAV_mataram = {
					NOT = { target_is_de_jure_liege_or_above = title:k_yavakadvipa }
				}
			}
			title:d_JAV_mataram = { set_de_jure_liege_title = title:k_yavakadvipa }
		}
		if = {
			limit = {
				title:c_JAV_madura = {
					NOT = { target_is_de_jure_liege_or_above = title:d_JAV_mataram }
				}
			}
			title:c_JAV_madura = { set_de_jure_liege_title = title:d_JAV_mataram }
		}
		if = {	#If owned, annex Champa.
			limit = {
				title:k_yavakadvipa = { holder = root  }
			}
			title:k_yavakadvipa = { set_de_jure_liege_title = title:e_majapahit }
		}
	}
	custom_tooltip = form_majapahit_empire_decision_effects_de_jure_tt_a
	custom_tooltip = form_majapahit_empire_decision_effects_de_jure_tt_b
	custom_tooltip = form_majapahit_empire_decision_effects_de_jure_tt_c
}

As written in game/common/scripted_effects/00_major_decisions_scripted_effects.txt.

Where it is used

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

Events (1)

Source: game/common/scripted_effects/00_major_decisions_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?