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

Scripted effect

found_empire_of_hindustan_scripted_effect

found_empire_of_hindustan_scripted_effect = yes

game/common/scripted_effects/00_major_decisions_scripted_effects.txt, line 4430 (193 lines). No parameters.

found_empire_of_hindustan_scripted_effect is a scripted effect in Crusader Kings III, written at line 4430 of its file. It takes no parameters: found_empire_of_hindustan_scripted_effect = yes. The game's script calls it in 2 places, among them Found the Empire of Hindustan (decision) and The Realms of Hindustan (event south_asia.0050). Its body carries 1 text 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 (120 lines of game script)
found_empire_of_hindustan_scripted_effect = {
	save_scope_as = founder

	create_title_and_vassal_change = {
		type = created
		save_scope_as = title_change
		add_claim_on_loss = no
	}
	if = {
		limit = {
			completely_controls = title:k_punjab #This will always be true but it keeps the decision text easier to read before you fulfill the criteria
			NOT = { has_title = title:k_punjab }
		}
		title:k_punjab = {
			change_title_holder = {
				holder = root
				change = scope:title_change
			}
		}
	}
	if = {
		limit = {
			completely_controls = title:k_delhi #This will always be true but it keeps the decision text easier to read before you fulfill the criteria
			NOT = { has_title = title:k_delhi }
		}
		title:k_delhi = {
			change_title_holder = {
				holder = root
				change = scope:title_change
			}
		}
	}
	if = {
		limit = {
			OR = {
				NOT = { title:d_kuru.holder = root }
				AND = {
					exists = title:d_kuru.holder
					title:d_kuru.holder = {
						is_ai = yes
					}
				}
			}
		}
		title:d_kuru = {
			change_title_holder = {
				holder = root
				change = scope:title_change
			}
		}
	}
	if = {
		limit = {
			NOT = { title:c_delhi.holder = root }
		}
		title:c_delhi = {
			change_title_holder = {
				holder = root
				change = scope:title_change
			}
		}
	}
	title:e_hindustan = {
		change_title_holder = {
			holder = root
			change = scope:title_change
		}
	}
	resolve_title_and_vassal_change = scope:title_change
	set_primary_title_to = title:e_hindustan

	hidden_effect = {
		title:k_delhi = {
			set_de_jure_liege_title = title:e_hindustan
		}
		title:k_punjab = {
			set_de_jure_liege_title = title:e_hindustan
		}
		every_held_title = {
			limit = {
				tier = tier_kingdom
				OR = {
					de_jure_liege = title:e_bengal
					de_jure_liege = title:e_deccan
					de_jure_liege = title:e_rajastan
				}
			}
			set_de_jure_liege_title = title:e_hindustan
		}
		#Areas that have had more muslim influence wants to avoid border gore and gets added even if not held - unless controlled by an independent Emperor of Rajastan:
		if = {
			limit = {
				NOT = {
					title:k_sindh.holder.liege = {
						has_title = title:e_rajastan
					}
				}
			}
			title:k_sindh = {
				set_de_jure_liege_title = title:e_hindustan
			}
		}
		if = {
			limit = {
				NOT = {
					title:k_kashmir.holder.liege = {
						has_title = title:e_rajastan
					}
				}
			}
			title:k_kashmir = {
				set_de_jure_liege_title = title:e_hindustan
			}
		}
		add_character_flag = e_hindustan #For title flavorization
	}
	#If the new Emperor of Hindustan holds any of the Indian Empires these are destroyed and their kingdoms added to Hindustan too
	#This is not inside the hidden block to not hide that the empires are destroyed.
	if = {
		limit = {

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

The first 120 of its 193 lines; the rest is in game/common/scripted_effects/00_major_decisions_scripted_effects.txt from line 4430.

Where it is used

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