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

Scripted effect

defenders_of_highgod_decision_effects

defenders_of_highgod_decision_effects = yes

game/common/scripted_effects/00_major_decisions_scripted_effects_2.txt, line 15 (62 lines). No parameters.

defenders_of_highgod_decision_effects is a scripted effect in Crusader Kings III, written at line 15 of its file. It takes no parameters: defenders_of_highgod_decision_effects = yes. The game's script calls it in 2 places, among them Defenders of … (decision) and Defenders of … (event east_europe.0016). 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_2.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 (62 lines of game script)
defenders_of_highgod_decision_effects = {
	#Holy site building
	#if = {
	#	limit = {
	#		faith = {
	#			any_holy_site_barony = {
	#				count = 1
	#				county.holder = root
	#			}
	#		}
	#	}
	#	faith = {
	#		every_holy_site_barony = {
	#			limit = { county.holder = root }
	#			county.title_province = { defenders_of_highgod_decision_hall_of_heroes_effect = yes }
	#		}
	#	}
	#}
	#The scope has been saved before this effect is run
	scope:holy_site.title_province ?= { defenders_of_highgod_decision_hall_of_heroes_effect = yes }

	#Fervor, modifiers and holy_warrior traits	
	faith = {
		save_scope_as = highgod_faith_scope
		change_fervor = {
			value = medium_fervor_value
			desc = fervor_gain_defenders_of_highgod
		}
	}
	add_character_modifier = {
		modifier = defender_of_the_faith
	}

	if = {
		limit = { number_of_commander_traits < commander_trait_limit }
		add_trait = holy_warrior
	}

	custom_tooltip = defenders_of_highgod_decision_effects_holy_warriors_tt
	hidden_effect = {
		every_vassal_or_below = {
			add_to_list = warriors
		}
		every_courtier = {
			add_to_list = warriors
		}
		every_in_list = {
			list = warriors
			limit = {
				is_adult = yes
				is_ai = yes
				can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = root }
				number_of_commander_traits < commander_trait_limit
				faith = root.faith
			}
			random = {
				chance = 50
				add_trait = holy_warrior
			}	
		}
	}
}

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

Where it is used

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

Decisions (1)

Events (1)

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