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

Scripted effect · Coronations files

coronation_add_magnificence_log_effect

coronation_add_magnificence_log_effect = { CHAR = … VALUE = … }

game/common/scripted_effects/10_ach_effects.txt, line 3231 (93 lines). Parameters: $CHAR$, $VALUE$.

coronation_add_magnificence_log_effect is a scripted effect in Crusader Kings III, in the Coronations files, written at line 3231 of its file. A call passes 2 parameters: CHAR and VALUE. The game's script calls it in 59 places, among them … Moment (event coronation_events.1027), … Speaks (event coronation_events.1037) and … Who Defends (event coronation_events.6010). Its body carries 8 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/10_ach_effects.txt.

What it does

Every line of it is script with no tooltip text: the script is below.

The script as written (93 lines of game script)
coronation_add_magnificence_log_effect = {
	if = {
		limit = {
			$CHAR$ != involved_activity.activity_host
		}
		save_scope_value_as = {
			name = magnificence_level
			value = $VALUE$
		}
		$CHAR$ = {
			save_scope_as = char
		}
		hidden_effect = {
			involved_activity = {
				switch = {
					trigger = scope:magnificence_level
					flag:positive_massive = {
						add_activity_log_entry = {
							key = coronation_tt_positive_massive_log
							score = 10
							tags = { positive }
							character = scope:char
							custom_tooltip = coronation_tt_positive_massive
						}
					}
					flag:positive_major = {
						add_activity_log_entry = {
							key = coronation_tt_positive_major_log
							score = 10
							tags = { positive }
							character = scope:char
							custom_tooltip = coronation_tt_positive_major
						}
					}
					flag:positive_medium = {
						add_activity_log_entry = {
							key = coronation_tt_positive_medium_log
							score = 10
							tags = { positive }
							character = scope:char
							custom_tooltip = coronation_tt_positive_medium
						}
					}
					flag:positive_tiny = {
						add_activity_log_entry = {
							key = coronation_tt_positive_tiny_log
							score = 10
							tags = { positive }
							character = scope:char
							custom_tooltip = coronation_tt_positive_tiny
						}
					}
					flag:positive_miniscule = {
						add_activity_log_entry = {
							key = coronation_tt_positive_miniscule_log
							score = 10
							tags = { positive }
							character = scope:char
							custom_tooltip = coronation_tt_positive_miniscule
						}
					}
					flag:negative_tiny = {
						add_activity_log_entry = {
							key = coronation_tt_negative_tiny_log
							score = 10
							tags = { negative }
							character = scope:char
							custom_tooltip = coronation_tt_negative_tiny
						}
					}
					flag:negative = {
						add_activity_log_entry = {
							key = coronation_tt_negative_log
							score = 10
							tags = { negative }
							character = scope:char
							custom_tooltip = coronation_tt_negative
						}
					}
					flag:negative_major = {
						add_activity_log_entry = {
							key = coronation_tt_negative_major_log
							score = 10
							tags = { negative }
							character = scope:char
							custom_tooltip = coronation_tt_negative_major
						}
					} 
				}
			}
		}
	}
}

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

Where it is used

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

Events (56)

50 more

Scripted effects inside an event file (3)

  • ach_coronation_0028_success_effect
  • coronation_events_6110_artifact_reward_effect
  • liege_reward_effect

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