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_movement_china_effect

tgp_silk_road_movement_china_effect = yes

game/common/scripted_effects/10_dlc_tgp_silk_road_scripted_effects.txt, line 333 (43 lines). No parameters.

tgp_silk_road_movement_china_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 333 of its file. It takes no parameters: tgp_silk_road_movement_china_effect = yes. The game's script calls it in 1 place, among them The Silk Road (situation). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_silk_road_scripted_effects.txt.

What it does

  • scope:sub_region_temp › Every player:
    • Where › scope:sub_region_temp: Any situation sub region participant:
    • … is the new Silk Road Innovation in …

• 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 (43 lines of game script)
tgp_silk_road_movement_china_effect = {
	situation_sub_region:region_silk_road_proper_china = { save_temporary_scope_as = sub_region_temp }
	save_scope_as = silk_road
	# Find the culture of the province the market of Chang'an is located in
	title:c_jingzhao = {
		culture = {
			save_temporary_scope_as = region_silk_road_proper_china_market_culture
			random_culture_innovation = {
				limit = {
					has_innovation_parameter = silk_road_innovation_parameter
					is_known_by_culture = scope:region_silk_road_proper_china_market_culture
					NOR = {
						this = scope:silk_road.situation_sub_region:region_silk_road_proper_occident.var:innovation
						this = scope:silk_road.situation_sub_region:region_silk_road_proper_transcaspia.var:innovation
						this = scope:silk_road.situation_sub_region:region_silk_road_proper_india.var:innovation
						this = scope:silk_road.situation_sub_region:region_silk_road_proper_central_asia.var:innovation
						this = scope:silk_road.situation_sub_region:region_silk_road_proper_tibet.var:innovation
						this = scope:silk_road.situation_sub_region:region_silk_road_proper_china.var:innovation
					}
				}
				save_scope_as = new_innovation_temp
			}
		}
	}
	scope:sub_region_temp = {
		every_player = {
			limit = {
				save_temporary_scope_as = player_temp
				scope:sub_region_temp = { any_situation_sub_region_participant = { this = scope:player_temp } }
			}
			send_interface_message = {
				type = msg_silk_road_innovation_movement
				title = msg_silk_road_innovation_movement_china_title
				desc = msg_silk_road_innovation_movement_china_desc
				custom_tooltip = msg_silk_road_innovation_movement_tt
			}
		}
		set_variable = {
			name = innovation
			value = scope:new_innovation_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_movement_china_effect.

Situations (1)

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?