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

Scripted effect

create_dar_al_islam_effect

create_dar_al_islam_effect = yes

game/common/scripted_effects/00_major_decisions_scripted_effects_3.txt, line 1108 (100 lines). No parameters.

create_dar_al_islam_effect is a scripted effect in Crusader Kings III, written at line 1108 of its file. It takes no parameters: create_dar_al_islam_effect = yes. The game's script calls it in 2 places, among them Establish the Dar al-Islam (decision) and Dar al-Islam (event middle_east_decisions.1100). Its body carries 4 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_major_decisions_scripted_effects_3.txt.

What it does

  • scope:new_hegemon:
    • Gains the Dar al-Islam Title
    • Gain +5,000 Prestige
    • Their dynasty: The dynasty gains +5,000 Renown
    • You become the Head of Faith of all Muslim Faiths that does not consider ⟨faith⟩ Hostile or Evil
    • Muslims are more likely to accept conversion
    • The House Heads of your House gain permanent access to the Subjugation Casus Belli against all Muslim branches (Sunni, Shia, Muhakkima, and Zandaqa)
    • Muslim Vassals cannot create or join Dissolution Factions against the Ruler of Dar al-Islam
    • Every held title:
      • Where: Title tier exactly Empire
      • Becomes de jure part of Dar al-Islam
  • Every empire:
    • If

      • Not: Is Titular Title
      • If

        a check the game hides

        Then

        • holder != scope:new_hegemon
      • scope:new_hegemon:
        • completely_controls = prev

      Then

      • Becomes de jure part of Dar al-Islam

• 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 (100 lines of game script)
create_dar_al_islam_effect = {
	save_scope_as = new_hegemon
	scope:new_hegemon = {
		# Get the title and assorted rewards
		get_title = title:h_dar_al_islam
		add_prestige = 5000
		dynasty ?= { add_dynasty_prestige = 5000 }

		# Become the head of faith of all islamic faiths that aren't hostile or evil
		custom_tooltip = {
			text = dar_al_islam_become_head_of_faith_desc
			faith.religion = {
				every_faith = {
					limit = {
						faith_hostility_level = {
							target = scope:new_hegemon.faith
							value < faith_hostile_level
						}
					}
					if = {
						limit = {
							has_doctrine = doctrine_no_head
						}
						remove_doctrine = doctrine_no_head
						add_doctrine = doctrine_temporal_head
					}
					else_if = {
						limit = {
							has_doctrine = doctrine_spiritual_head
						}
						remove_doctrine = doctrine_spiritual_head
						add_doctrine = doctrine_temporal_head
					}
					if = {
						limit = {
							main_rite = { rite_has_doctrine = doctrine_theocracy_temporal }
						}
						remove_doctrine = doctrine_theocracy_temporal
						add_doctrine = doctrine_theocracy_lay_clergy
					}
					set_religious_head_title = title:h_dar_al_islam
				}
			}
		}

		# Destroy the old head of faith title, but there's no need to show it
		hidden_effect = {
			every_held_title = {
				limit = {
					is_in_list = old_hof_title
				}
				prev = { destroy_title = prev }
			}
		}

		# Show conversion bonus
		custom_tooltip = dar_al_islam_muslim_conversion_desc # Bonus is applied in religion_demand_conversion_default_modifier

		# Enable unlimited subjugations
		custom_tooltip = {
			text = dar_al_islam_subjugation_expanded_desc
			house = {
				set_variable = {
					name = subjugations_expanded
					value = yes
				}
			}
		}

		# Show faction bonus
		custom_tooltip = dar_al_islam_faction_desc # Actual effect is set up in the faction itself

		# Make all held empires de jure titles
		every_held_title = {
			limit = {
				tier = tier_empire
			}
			set_de_jure_liege_title = title:h_dar_al_islam
		}
	}

	# Let's also make all fully controlled empires de jure title, even if you don't hold them
	every_empire = {
		if = {
			limit = {
				is_titular = no
				trigger_if = {
					limit = { exists = holder }
					holder != scope:new_hegemon
				}
				scope:new_hegemon = { completely_controls = prev }
			}
			set_de_jure_liege_title = title:h_dar_al_islam
		}
	}
	set_global_variable = {
		name = created_dar_al_islam
		value = yes
	}
}

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

Where it is used

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

Events (1)

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