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_wedding_glory_effect

accolades_activity_complete_wedding_glory_effect = yes

game/common/scripted_effects/00_accolades_scripted_effects.txt, line 586 (427 lines). No parameters.

accolades_activity_complete_wedding_glory_effect is a scripted effect in Crusader Kings III, written at line 586 of its file. It takes no parameters: accolades_activity_complete_wedding_glory_effect = yes. The game's script calls it in 4 places, among them disburse_murder_wedding_host_rewards (scripted effect), disburse_wedding_activity_rewards (scripted effect) and tooltip_disburse_wedding_guest_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 WEDDINGS

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_wedding_glory_effect = {
	# Much glory if you did a magnificent wedding
	if = {
		limit = {
			scope:activity = {
				any_attending_character = {
					is_acclaimed = yes
				}
			}
		}
		save_scope_as = accolade_owner
		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 = {
										acclaimed_knight = {
											OR = {
												this = scope:spouse_1
												this = scope:spouse_2
											}
										}
									}
									add = massive_glory_value
								}
								if = {
									limit = {
										scope:activity = {
											# perfect options
											has_activity_option = {
												category = wedding_option_entertainment
												option = wedding_entertainment_good
											}
											has_activity_option = {
												category = wedding_option_food
												option = wedding_food_good
											}
											has_activity_option = {
												category = wedding_option_decoration
												option = wedding_decoration_good
											}
										}
									}
									add = major_glory_gain
								}
								else_if = {
									limit = {
										scope:activity = {
											OR = {
												AND = {
													# at least two tier threes
													has_activity_option = {
														category = wedding_option_entertainment
														option = wedding_entertainment_good
													}
													has_activity_option = {
														category = wedding_option_food
														option = wedding_food_good
													}
												}
												AND = {
													has_activity_option = {
														category = wedding_option_entertainment
														option = wedding_entertainment_good
													}
													has_activity_option = {
														category = wedding_option_decoration
														option = wedding_decoration_good
													}
												}
												AND = {
													has_activity_option = {
														category = wedding_option_decoration
														option = wedding_decoration_good
													}
													has_activity_option = {
														category = wedding_option_food
														option = wedding_food_good
													}
												}
												# a tier 3 and two tier 2s
												AND = {
													has_activity_option = {
														category = wedding_option_entertainment
														option = wedding_entertainment_good
													}
													has_activity_option = {
														category = wedding_option_food
														option = wedding_food_normal
													}
													has_activity_option = {
														category = wedding_option_decoration
														option = wedding_decoration_normal
													}
												}
												AND = {
													has_activity_option = {
														category = wedding_option_food
														option = wedding_food_good
													}
													has_activity_option = {
														category = wedding_option_entertainment
														option = wedding_entertainment_normal
													}
													has_activity_option = {
														category = wedding_option_decoration
														option = wedding_decoration_normal

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

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

Where it is used

Every place in common/, events/ and history/ that calls accolades_activity_complete_wedding_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?