Scripted effect · All Under Heaven files
tgp_silk_road_phase_message_effect
tgp_silk_road_phase_message_effect = yesgame/common/scripted_effects/10_dlc_tgp_silk_road_scripted_effects.txt, line 608 (37 lines). No parameters.
tgp_silk_road_phase_message_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 608 of its file. It takes no parameters: tgp_silk_road_phase_message_effect = yes. The game's script calls it in 1 place, among them The Silk Road (situation). Its body carries 3 texts 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
- Every player:
- Where › scope:situation_sub_region › Any situation sub region participant group:
participant_group_has_character = scope:player_temp
If
scope:situation_sub_region:sub_region_current_phase = phase_exceptional_bounty
Then
- The … Situation Region is now in the … Situation Phase
Else if
scope:situation_sub_region:sub_region_current_phase = phase_hardship
Then
- The … Situation Region is now in the … Situation Phase
Otherwise
- The … Situation Region is now in the … Situation Phase
- Where › scope:situation_sub_region › Any situation sub region participant group:
• 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 (37 lines of game script)
tgp_silk_road_phase_message_effect = {
every_player = {
limit = {
save_temporary_scope_as = player_temp
scope:situation_sub_region ?= {
any_situation_sub_region_participant_group = { participant_group_has_character = scope:player_temp }
}
}
if = {
limit = {
scope:situation_sub_region = { sub_region_current_phase = phase_exceptional_bounty }
}
send_interface_message = {
type = msg_silk_road_good
title = msg_silk_road_phase_change_title
custom_tooltip = msg_silk_road_phase_change_tt
}
}
else_if = {
limit = {
scope:situation_sub_region = { sub_region_current_phase = phase_hardship}
}
send_interface_message = {
type = msg_silk_road_bad
title = msg_silk_road_phase_change_title
custom_tooltip = msg_silk_road_phase_change_tt
}
}
else = {
send_interface_message = {
type = msg_silk_road_neutral
title = msg_silk_road_phase_change_title
custom_tooltip = msg_silk_road_phase_change_tt
}
}
}
}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_phase_message_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.