Scripted effect · All Under Heaven files
tgp_silk_road_movement_stream_effect
tgp_silk_road_movement_stream_effect = { SUB_REGION = … UPSTREAM_SUB_REGION = … }game/common/scripted_effects/10_dlc_tgp_silk_road_scripted_effects.txt, line 304 (28 lines). Parameters: $SUB_REGION$, $UPSTREAM_SUB_REGION$.
tgp_silk_road_movement_stream_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 304 of its file. A call passes 2 parameters: SUB_REGION and UPSTREAM_SUB_REGION. 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
$SUB_REGION$ ?= { … }$UPSTREAM_SUB_REGION$ = { … }- 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 (28 lines of game script)
tgp_silk_road_movement_stream_effect = {
$SUB_REGION$ ?= {
save_temporary_scope_as = sub_region_temp
var:innovation ?= { save_temporary_scope_as = old_innovation_temp }
}
$UPSTREAM_SUB_REGION$ = {
save_temporary_scope_as = upstream_sub_region_temp
var:innovation ?= { save_temporary_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_stream_title
desc = msg_silk_road_innovation_movement_stream_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_stream_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.