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

Scripted effect · All Under Heaven files

disburse_festival_piety_reward_effect

disburse_festival_piety_reward_effect = yes

game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt, line 9413 (87 lines). No parameters.

disburse_festival_piety_reward_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 9413 of its file. It takes no parameters: disburse_festival_piety_reward_effect = yes. The game's script calls it in 1 place, among them Festival (activity). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt.

What it does

  • If

    • Your rite:
      • One of these

        • The rite has Hosting a Festival earns Piety
        • or

          All of these

          • The rite has Hosting Feasts in the summer months earns Piety
          • Current month at least 5
          • Current month at most 7

    Then

    • You:
      • add_piety = { … }

• 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 (87 lines of game script)
disburse_festival_piety_reward_effect = {
	if = {
		limit = {
			root.rite = {
				OR = {
					rite_has_parameter = piety_from_festivals_active
					AND = {
						rite_has_parameter = summer_festivals_active
						# Only during 'summer' (May 1st through July 31st).
						current_month >= 5
						current_month <= 7
					}
				}
			}
		}
		root = {
			add_piety = {
				value = 0

				if = {
					limit = {
						rite = { rite_has_parameter = summer_festivals_active }
						# Only during 'summer' (May 1st through July 31st).
						current_month >= 5
						current_month <= 7
					}
					add = major_piety_value
				}
				if = {
					limit = {
						rite = { rite_has_tenet = tenet_ritual_celebrations }
					}
					add = medium_piety_value
				}
				if = {
					limit = {
						rite = { rite_has_tenet = tenet_hedonistic }
					}
					add = medium_piety_value
				}
				if = {
					limit = {
						has_royal_court = yes
						has_dlc_feature = royal_court
						amenity_level = { target = court_food_quality value >= 5 }
					}
					multiply = 2.5
				}
				else_if = {
					limit = {
						has_royal_court = yes
						has_dlc_feature = royal_court
						amenity_level = { target = court_food_quality value >= 4 }
					}
					multiply = 2
				}
				else_if = {
					limit = {
						has_royal_court = yes
						has_dlc_feature = royal_court
						amenity_level = { target = court_food_quality value >= 3 }
					}
					multiply = 1.5
				}
				else_if = {
					limit = {
						has_royal_court = yes
						has_dlc_feature = royal_court
						amenity_level = { target = court_food_quality value >= 2 }
					}
					multiply = 1
				}
				else_if = {
					limit = {
						has_royal_court = yes
						has_dlc_feature = royal_court
						amenity_level = { target = court_food_quality value <= 1 }
					}
					multiply = 0.5
				}

				# Always give some piety, even if you completely cheaped out.
				min = medium_piety_value
			}
		}
	}
}

As written in game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt.

Where it is used

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

Activities (1)

Source: game/common/scripted_effects/10_dlc_tgp_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?