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

Scripted effect · By God Alone files

hedonistic_obesity_modifier_sync_effect

hedonistic_obesity_modifier_sync_effect = yes

game/common/scripted_effects/pam_effects.txt, line 1645 (22 lines). No parameters.

hedonistic_obesity_modifier_sync_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 1645 of its file. It takes no parameters: hedonistic_obesity_modifier_sync_effect = yes. The game's script calls it in 7 places, among them Feast (activity), on_personal_tenet_gain (on action) and on_personal_tenet_loss (on action). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.

What it does

  • If

    • Current weight at least 50
    • The Personal Tenets unlock tenet hedonistic obesity fulfillment

    Then

  • Else, if has the Modifier: Sanctified Indulgence: Loses “Sanctified Indulgence”

• 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 (22 lines of game script)
hedonistic_obesity_modifier_sync_effect = {
	if = {
		limit = {
			current_weight >= overweight_value
			has_personal_tenet_flag = tenet_hedonistic_obesity_fulfillment
		}
		if = {
			limit = {
				NOT = { has_character_modifier = tenet_hedonistic_obese_modifier }
			}
			add_character_modifier = {
				modifier = tenet_hedonistic_obese_modifier
			}
		}
	}
	else_if = {
		limit = {
			has_character_modifier = tenet_hedonistic_obese_modifier
		}
		remove_character_modifier = tenet_hedonistic_obese_modifier
	}
}

As written in game/common/scripted_effects/pam_effects.txt.

Where it is used

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

Activities (1)

On actions (the game's own hooks) (4)

  • on_personal_tenet_gain
  • on_personal_tenet_loss
  • yearly_health_pulse
  • yearly_playable_pulse

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