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

Scripted effect · Tours and Tournaments files

try_to_create_recurring_character_effect

try_to_create_recurring_character_effect = { CHARACTER = … }

game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt, line 6073 (38 lines). Parameters: $CHARACTER$.

try_to_create_recurring_character_effect is a scripted effect in Crusader Kings III, in the Tours and Tournaments files, written at line 6073 of its file. A call passes 1 parameter: CHARACTER. The game's script calls it in 41 places, among them … Who Spurns the Fight (event jason_locale_events.100), …: Be A …! (event tournament_events.7000) and …: Cowed Crowd (event tournament_events.1403). Patch 1.20.1.2, from game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt.

What it does

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

The script as written (38 lines of game script)
try_to_create_recurring_character_effect = {
	hidden_effect = {
		if = {
			limit = {
				# We want exactly one player.
				calc_true_if = {
					amount = 1
					is_ai = no
					$CHARACTER$ = { is_ai = no }
				}
				# With only a few recurring characters per tourney.
				## Currently, set this to 1 to try and make them more generally memorable.
				### If we start messing with event weight multipliers based on this, then we might want to increase it, so split things up a bit more.
				num_of_relation_activity_recurrer < 1
				NOT = { has_relation_activity_recurrer = $CHARACTER$ }
			}
			set_relation_activity_recurrer = $CHARACTER$
			# Debug stuff.
			## Disabled; decomment it if you want to see who gets grabbed.
			#if = {
				#limit = { is_ai = no }
				#add_to_variable_list = {
					#name = recurring_characters
					#target = $CHARACTER$
				#}
			#}
			#else = {
				#save_temporary_scope_as = ai_temp
				#$CHARACTER$ = {
					#add_to_variable_list = {
						#name = recurring_characters
						#target = scope:ai_temp
					#}
				#}
			#}
		}
	}
}

As written in game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt.

Where it is used

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

Events (38)

32 more

Scripted effects inside an event file (3)

  • ep2_locale_events_3002_recurring_character_tumbola_effect
  • tournament_1270_versus_effect
  • tournament_events_1260_duel_effect

Source: game/common/scripted_effects/04_dlc_ep2_tournament_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?