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

Scripted effect · All Under Heaven files

tgp_silk_road_downstream_player_sub_region_effect

tgp_silk_road_downstream_player_sub_region_effect = yes

game/common/scripted_effects/10_dlc_tgp_silk_road_scripted_effects.txt, line 5 (25 lines). No parameters.

tgp_silk_road_downstream_player_sub_region_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 5 of its file. It takes no parameters: tgp_silk_road_downstream_player_sub_region_effect = yes. The game's script calls it in 2 places, among them tgp_silk_road_downstream_peace_message_effect (scripted effect) and tgp_silk_road_downstream_war_message_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_silk_road_scripted_effects.txt.

What it does

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

The script as written (25 lines of game script)
tgp_silk_road_downstream_player_sub_region_effect = {
	save_temporary_scope_as = player_temp
	scope:origin_sub_region_temp = { 
		if = {
			limit = { any_situation_sub_region_participant = { this = scope:player_temp } }
			save_temporary_scope_as = player_sub_region_temp
		}
	}
	if = {
		limit = { NOT = { exists = scope:player_sub_region_temp } }
		random_in_list = {
			list = second_sub_regions
			limit = { any_situation_sub_region_participant = { this = scope:player_temp } }
			save_temporary_scope_as = player_sub_region_temp
		}
	}
	if = {
		limit = { NOT = { exists = scope:player_sub_region_temp } }
		random_in_list = {
			list = third_sub_regions
			limit = { any_situation_sub_region_participant = { this = scope:player_temp } }
			save_temporary_scope_as = player_sub_region_temp
		}
	}
}

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

Where it is used

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

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