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

Scripted effect

promote_hungarian_settlement_decision_scripted_effect

promote_hungarian_settlement_decision_scripted_effect = yes

game/common/scripted_effects/00_major_decisions_scripted_effects.txt, line 2227 (124 lines). No parameters.

promote_hungarian_settlement_decision_scripted_effect is a scripted effect in Crusader Kings III, written at line 2227 of its file. It takes no parameters: promote_hungarian_settlement_decision_scripted_effect = yes. The game's script calls it in 2 places, among them Promote Christian Settlements (decision) and New Beginning (event east_europe.0030). Its body carries 2 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 (120 lines of game script)
promote_hungarian_settlement_decision_scripted_effect = {
	if = {
		limit = {
			culture = culture:mogyer
		}

		# Convert my culture to Hungarian Culture
		set_culture = culture:hungarian
		culture:hungarian = {
			reset_culture_creation_date = yes
			get_all_innovations_from = culture:mogyer
		}

		# Convert my courtiers to Hungarian
		hidden_effect = {
			every_courtier = {
				limit = {
					culture = culture:mogyer
				}
				set_culture = culture:hungarian
			}
		}

		# Convert my vassals to Hungarian
		every_vassal_or_below = {
			limit = {
				culture = culture:mogyer
			}

			custom = promote_hungarian_settlement_decision_every_vassal_custom
			set_culture = culture:hungarian

			# Convert their courtiers as well
			hidden_effect = {
				every_courtier = {
					limit = {
						culture = culture:mogyer
					}
					set_culture = culture:hungarian
				}
			}
		}
	}

	title:k_hungary = {
		every_in_de_jure_hierarchy = {
			custom = promote_hungarian_settlement_decision_every_province_custom
			limit = {
				tier = tier_county
				culture = culture:mogyer
				title_province = { geographical_region = custom_hungary }
				holder = {
					OR = {
						this = root
						target_is_liege_or_above = root
					}
				}
			}
			set_county_culture = culture:hungarian
			add_county_modifier = {
				modifier = hungarian_resettlement_modifier
				years = 100
			}
			custom_tooltip = promote_hungarian_settlement_decision_increased_development
			custom_tooltip = promote_hungarian_settlement_decision_convert_county
			hidden_effect = {
				if = {
					limit = {
						development_level < 5
					}
					change_development_level = 1
				}
				random_list = {
					30 = {
						# Nothing happens
					}
					30 = {
						trigger = {
							faith = {
								NOR = {
									has_doctrine = special_doctrine_ecumenical_christian
									has_doctrine = special_doctrine_ecumenical_miaphysite
								}
							}
						}
						set_county_faith = root.faith
						set_county_rite = root.rite
					}
					30 = {
						trigger = {
							faith = {
								NOR = {
									has_doctrine = special_doctrine_ecumenical_christian
									has_doctrine = special_doctrine_ecumenical_miaphysite
								}
							}
							any_neighboring_county = {
								faith = {
									OR = {
										has_doctrine = special_doctrine_ecumenical_christian
										has_doctrine = special_doctrine_ecumenical_miaphysite
									}
								}
							}
						}
						random_neighboring_county = {
							limit = {
								faith = {
									OR = {
										has_doctrine = special_doctrine_ecumenical_christian
										has_doctrine = special_doctrine_ecumenical_miaphysite
									}
								}
							}
							save_scope_as = neighboring_county
						}
						set_county_faith = scope:neighboring_county.faith
						set_county_rite = scope:neighboring_county.rite
					}
				}

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

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

Where it is used

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