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_hof_visit_effect

coronation_hof_visit_effect = yes

game/common/scripted_effects/10_ach_effects.txt, line 986 (47 lines). No parameters.

coronation_hof_visit_effect is a scripted effect in Crusader Kings III, in the Coronations files, written at line 986 of its file. It takes no parameters: coronation_hof_visit_effect = yes. The game's script calls it in 2 places, among them … Arrives (event ach_coronation.0010) and Arrival (event ach_coronation.0001). Its body carries 2 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

• 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 (47 lines of game script)
coronation_hof_visit_effect = {
	involved_activity = {
		add_activity_log_entry = {
			key = activity_hof_arrival_log
			tags = { good }
			score = 20
			character = activity_host
			target = scope:hof
		}
		# Small boost to Magnificence
		activity_special_type_progression_tiny = yes
		custom_tooltip = coronation_tt_positive_tiny
		activity_host = {
			# Hosts get a bit of legitimacy and piety from having the HoF show up
			add_legitimacy_effect = { LEGITIMACY = minor_legitimacy_gain }
			add_piety = minor_piety_gain
		}
		activity_location = {
			show_as_tooltip = {
				add_province_modifier = {
					modifier = ach_hof_visit_modifier
					years = 10
				}
			}
			if = { # Add the Papal visit modifier
				limit = {
					NOT = { has_province_modifier = ach_hof_visit_modifier }
				}
				hidden_effect = {
					add_province_modifier = {
						modifier = ach_hof_visit_modifier
						years = 10
					}

					# Toast the divine trinity of those who care: the host, the local baron and the holy count
					scope:host = {
						send_interface_toast = {
							title = ach_coronation.0001.tt.hof_visit.title
							left_icon = scope:hof
							custom_tooltip = ach_coronation.0001.tt.hof_visit
						}
					}
				}
			}
		}
	}
}

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_hof_visit_effect.

Events (2)

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?