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

Scripted effect

accolades_activity_complete_feast_glory_effect

accolades_activity_complete_feast_glory_effect = yes

game/common/scripted_effects/00_accolades_scripted_effects.txt, line 1015 (186 lines). No parameters.

accolades_activity_complete_feast_glory_effect is a scripted effect in Crusader Kings III, written at line 1015 of its file. It takes no parameters: accolades_activity_complete_feast_glory_effect = yes. The game's script calls it in 2 places, among them disburse_feast_activity_rewards (scripted effect) and disburse_murder_feast_activity_rewards (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_accolades_scripted_effects.txt.

The comment above it in the file

GLORY GAIN FOR FEASTS

What it does

  • If

    • scope:activity › Any attending character:
      • is_acclaimed = yes

    Then

    • scope:activity:
      • Activity log entry › scope:host › Every acclaimed knight:
        • Where:
          • involved_activity = scope:activity
        • accolade = { … }
      • Every attending character:
        • Where:
          • is_acclaimed = yes
          • NOT = { is_knight_of = scope:host }
        • scope:activity › Activity log entry › scope:acclaimed_knight:
          • accolade = { … }
        • clear_saved_scope = acclaimed_knight

• 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 (120 lines of game script)
accolades_activity_complete_feast_glory_effect = {
	if = {
		limit = {
			scope:activity = {
				any_attending_character = {
					is_acclaimed = yes
				}
			}
		}
		save_scope_as = accolade_owner
		if = {
			limit = {
				scope:activity.special_guest:honorary_guest_regular ?= {
					is_acclaimed = yes
				}
			}
			scope:activity.special_guest:honorary_guest_regular ?= {
				save_scope_as = honorary_guest_knight
			}
		}
		# Decent glory if the acclaimed knight attends a grand-ass feast without liege
		scope:activity = {
			add_activity_log_entry = {
				key = liege_accolades_glory_reward
				tags = { completed }
				score = 10
				# this line below adds the entry to the Effects section of the conclusion UI
				show_in_conclusion = yes
				character = scope:accolade_owner
				scope:host = {
					every_acclaimed_knight = {
						limit = {
							involved_activity = scope:activity
						}
						accolade = {
							add_glory = {
								value = major_glory_gain
								if = {
									limit = {
										scope:honorary_guest_knight ?= acclaimed_knight
									}
									add = major_glory_gain
								}
								if = {
									limit = {
										has_accolade_type = master_of_revels_attribute
									}
									add = sub_minimal_glory_gain
								}
								if = {
									limit = {
										scope:activity = {
											has_activity_option = {
												category = feast_option_food
												option = feast_food_good
											}
											has_activity_option = {
												category = feast_option_courses
												option = feast_courses_good
											}
										}
									}
									add = minor_glory_value
								}
								else_if = {
									limit = {
										scope:activity = {
											OR = {
												has_activity_option = {
													category = feast_option_food
													option = feast_food_good
												}
												has_activity_option = {
													category = feast_option_food
													option = feast_food_normal
												}
											}
											OR = {
												has_activity_option = {
													category = feast_option_courses
													option = feast_courses_good
												}
												has_activity_option = {
													category = feast_option_courses
													option = feast_courses_normal
												}
											}
										}
									}
									add = minimal_glory_gain
								}
							}
						}
					}
				}
			}
			every_attending_character = {
				limit = {
					is_acclaimed = yes
					this != scope:host
					NOT = {
						is_knight_of = scope:host
					}
				}
				save_scope_as = acclaimed_knight
				scope:activity = {
					add_activity_log_entry = {
						key = knight_accolade_glory_reward
						tags = { completed }
						score = 10
						show_in_conclusion = no
						character = scope:acclaimed_knight
						scope:acclaimed_knight = {
							accolade = {
								add_glory = {
									value = minor_glory_gain
									if = {
										limit = {
											scope:honorary_guest_knight ?= acclaimed_knight
										}

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

The first 120 of its 186 lines; the rest is in game/common/scripted_effects/00_accolades_scripted_effects.txt from line 1015.

Where it is used

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

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