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

Scripted effect · Roads to Power files

ep3_palace_looting_random_malus_effect

ep3_palace_looting_random_malus_effect = yes

game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt, line 7071 (36 lines). No parameters.

ep3_palace_looting_random_malus_effect is a scripted effect in Crusader Kings III, in the Roads to Power files, written at line 7071 of its file. It takes no parameters: ep3_palace_looting_random_malus_effect = yes. The game's script calls it in 1 place, among them The Palace-Pillaging Right (event ep3_emperor_yearly.3000). Patch 1.20.1.2, from game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.

What it does

  • If varangian regiments at least 7:
    • change_current_court_grandeur = massive_court_grandeur_loss
  • Else, if varangian regiments at least 4:
    • change_current_court_grandeur = major_court_grandeur_loss
  • Else, if (a hidden condition):
    • change_current_court_grandeur = medium_court_grandeur_loss
  • If

    a check the game hides

    Then

    • scope:broken_artifact:
      • add_durability = -40
  • If

    a check the game hides

    Then

    • destroy_artifact = scope:stolen_artifact

• 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 (36 lines of game script)
ep3_palace_looting_random_malus_effect = {
	if = {
		limit = {
			has_character_flag = malus_court_grandeur
			var:varangian_regiments >= 7
		}
		change_current_court_grandeur = massive_court_grandeur_loss
	}
	else_if = {
		limit = {
			has_character_flag = malus_court_grandeur
			var:varangian_regiments >= 4
		}
		change_current_court_grandeur = major_court_grandeur_loss
	}
	else_if = {
		limit = {
			has_character_flag = malus_court_grandeur
		}
		change_current_court_grandeur = medium_court_grandeur_loss
	}
	if = {
		limit = {
			has_character_flag = malus_broken_artifact
		}
		scope:broken_artifact = {
			add_durability = -40
		}
	}
	if = {
		limit = {
			has_character_flag = malus_stolen_artifact
		}
		destroy_artifact = scope:stolen_artifact
	}
}

As written in game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.

Where it is used

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

Events (1)

Source: game/common/scripted_effects/07_dlc_ep3_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?