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

Scripted effect

add_hosted_feast_modifier_towards_character

add_hosted_feast_modifier_towards_character = { CHARACTER = … }

game/common/scripted_effects/00_feast_scripted_effects.txt, line 35 (40 lines). Parameters: $CHARACTER$.

add_hosted_feast_modifier_towards_character is a scripted effect in Crusader Kings III, written at line 35 of its file. A call passes 1 parameter: CHARACTER. The game's script calls it in 3 places, among them A Memorable Accident (event feast_main_befriend.5004), hosted_successful_feast_effect (scripted effect) and hosted_successful_feast_interrupted_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_feast_scripted_effects.txt.

What it does

  • If

    • $CHARACTER$ = { … }

    Then

    • If

      • $CHARACTER$ = { … }

      Then

      • Opinion: Hosted Great Feast (+35)

      Otherwise

      • Opinion: Hosted Great Feast

    Otherwise

• 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 (40 lines of game script)
add_hosted_feast_modifier_towards_character = {
	if = {
		limit = {
			$CHARACTER$ = {
				employs_court_position = court_musician_court_position
				any_court_position_holder = {
					type = court_musician_court_position
					is_physically_able = yes
				}
			}
		}
		if = {
			limit = { # Increase the bonus slightly if musician's culture has Musicical Theorists
				$CHARACTER$ = {
					any_court_position_holder = {
						type = court_musician_court_position
						culture = { has_cultural_parameter = characters_are_better_court_musicians }
					}
				}
			}
			add_opinion = {
				target = $CHARACTER$
				modifier = feast_hosted_successful_feast_with_music
				opinion = 35
			}
		}
		else = {
			add_opinion = {
				target = $CHARACTER$
				modifier = feast_hosted_successful_feast_with_music
			}
		}
	}
	else = {
		add_opinion = {
			target = $CHARACTER$
			modifier = feast_hosted_successful_feast
		}
	}
}

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

Where it is used

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

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