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

Scripted effect · Legacy of Persia files

destroy_the_magi_scripted_effect

destroy_the_magi_scripted_effect = yes

game/common/scripted_effects/01_dlc_fp3_scripted_effects.txt, line 26 (68 lines). No parameters.

destroy_the_magi_scripted_effect is a scripted effect in Crusader Kings III, in the Legacy of Persia files, written at line 26 of its file. It takes no parameters: destroy_the_magi_scripted_effect = yes. The game's script calls it in 2 places, among them Reform the … (decision) and Quenching the Eternal Fires (event fp3_decision.0004). Its body carries 2 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/01_dlc_fp3_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 (68 lines of game script)
destroy_the_magi_scripted_effect = {

	add_heresiarch_trait_effect = yes

	religion = { save_scope_as = root_religion }

	faith = {
		change_fervor = {
			value = major_fervor_gain
			desc = fervor_gain_magi_destroyed
		}
		if = {
			limit = {
				has_doctrine = doctrine_spiritual_head
				main_rite = { rite_has_doctrine = doctrine_theocracy_temporal }
			}
			custom_tooltip = replace_the_high_priest_effect_tooltip
			hidden_effect = {
				remove_doctrine = doctrine_spiritual_head
				add_doctrine = doctrine_no_head 		
			}
		}
	}
			

	if = {
		limit = {
			AND = {
				root.religion = religion:zoroastrianism_religion
				OR = {
					has_faith = faith:mazdakism
					has_faith = faith:zurvanism 
				}
			}
		}
		add_prestige = massive_prestige_gain 
	}

 	custom_tooltip = destroy_the_magi_opinion_tooltip 
	hidden_effect = {
 		every_ruler = {
			if = {
				limit = {
					AND = {
						NOR = {
							has_faith = faith:mazdakism
							has_faith = faith:zurvanism 
						}
						religion = religion:zoroastrianism_religion
					}				
				}
				add_opinion = {
					target = root
					modifier = fp3_spawn_of_ahriman_opinion
				}
			}
			else_if = {
				limit = {
					rite = { rite_has_doctrine = doctrine_major_branch_behdin }
				}
				add_opinion = {
					target = root
					modifier = fp3_abolished_priesthood_opinion
				}
			}	
		}
	}	
}

As written in game/common/scripted_effects/01_dlc_fp3_scripted_effects.txt.

Where it is used

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

Decisions (1)

Events (1)

Source: game/common/scripted_effects/01_dlc_fp3_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?