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

Scripted effect

avenge_the_battle_of_tours_decision_effects

avenge_the_battle_of_tours_decision_effects = yes

game/common/scripted_effects/00_decisions_effects.txt, line 732 (99 lines). No parameters.

avenge_the_battle_of_tours_decision_effects is a scripted effect in Crusader Kings III, written at line 732 of its file. It takes no parameters: avenge_the_battle_of_tours_decision_effects = yes. The game's script calls it in 2 places, among them Avenge the Battle of Tours (decision) and Avenging The Martyrs (event iberia_north_africa.0015). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_decisions_effects.txt.

What it does

  • Gains the Nickname 'the Avenger'
  • Gains the modifier “Avenger of the Martyrs”
  • Gain +750 Prestige
  • Gain +500 Piety
  • Their faith: Fervor increases by +25
  • add_achievement_flag_effect = { FLAG = achievement_al_andalus_flag }
  • If

    • Any vassal or below:
      • Their faith is the same as that of avenger
      • Is played by the AI
      • Their capital province: Is in the Western Europe region

    Then

    • Every non-⟨faith⟩ vassal or below in Western Europe:
      • Where:
        • Their faith is the same as that of avenger
        • Is played by the AI
        • Their capital province: Is in the Western Europe region
      • 33% chance of:
        • set_character_faith = scope:avenger.faith
        • set_character_rite = scope:avenger.rite
  • If

    • Any realm province:
      • Their faith is the same as that of avenger
      • Is in the Western Europe region

    Then

    • Every non-⟨faith⟩ county in your realm in Western Europe › 33% chance of: Converts to ⟨faith⟩
  • If

    a check the game hides

    Then

    • scope:frankish_christian_faith: Fervor decreases by -25
  • Francia › Every in de jure hierarchy:
    • Where:
      • Title tier exactly Kingdom
      • Any in de jure hierarchy:
        • Title tier exactly County
        • Their province: Is in the Southern Francia region
    • Becomes de jure part of Hispania

• 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 (99 lines of game script)
avenge_the_battle_of_tours_decision_effects = {

	give_nickname = nick_the_avenger
	add_character_modifier = {
		modifier = avenger_of_the_martyrs
	}

	add_prestige = massive_prestige_gain

	#Religious bonuses
	add_piety = massive_piety_gain
	faith = {
		change_fervor = {
			value = medium_fervor_gain
			desc = fervor_gain_avenged_battle_of_tours
		}
	}

	add_achievement_flag_effect = { FLAG = achievement_al_andalus_flag }

	if = {
		limit = {
			any_vassal_or_below = {
				faith != scope:avenger.faith
				is_ai = yes
				capital_province ?= { geographical_region = world_europe_west }
			}
		}
		every_vassal_or_below = {
			custom = every_non_root_faith_vassal_west_europe
			limit = {
				faith != scope:avenger.faith
				is_ai = yes
				capital_province ?= { geographical_region = world_europe_west }
			}
			random = {
				chance = 33
				set_character_faith = scope:avenger.faith
				set_character_rite = scope:avenger.rite
			}
		}
	}

	if = {
		limit = {
			any_realm_province = {
				faith != scope:avenger.faith
				geographical_region = world_europe_west
			}
		}
		every_realm_province = {
			limit = {
				faith != scope:avenger.faith
				geographical_region = world_europe_west
			}
			county = {
				add_to_list = every_realm_county
			}
		}

		every_in_list = {
			list = every_realm_county
			custom = every_non_root_faith_county_west_europe
			random = {
				chance = 33
				custom_tooltip = every_non_avenger_faith_convert
				hidden_effect = {
					set_county_faith = scope:avenger.faith
					set_county_rite = scope:avenger.rite
				}
			}
		}
	}

	#Christian penalty
	if = {
		limit = { exists = scope:frankish_christian_faith }
		scope:frankish_christian_faith = {
			change_fervor = {
				value = medium_fervor_loss
				desc = fervor_loss_avenged_battle_of_tours
			}
		}
	}

	# Rattach south of France to the e_hispania
	title:e_france = {
		every_in_de_jure_hierarchy = {
			limit = {
				tier = tier_kingdom
				any_in_de_jure_hierarchy = {
					tier = tier_county
					title_province = { geographical_region = custom_south_francia }
				}
			}
			set_de_jure_liege_title = title:e_spain
		}
	}
}

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

Where it is used

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

Events (1)

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