Scripted effect · All Under Heaven files
tgp_bloc_change_cohesion_effect
tgp_bloc_change_cohesion_effect = { ICON = … REASON = … VALUE = … }game/common/scripted_effects/10_dlc_tgp_house_bloc_scripted_effects.txt, line 1154 (42 lines). Parameters: $ICON$, $REASON$, $VALUE$.
tgp_bloc_change_cohesion_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 1154 of its file. A call passes 3 parameters: ICON, REASON and VALUE. The game's script calls it in 12 places, among them …-… Bloc Supremacy War (casus belli), Write Poetry (court task) and A Test of Wit (event festival.105). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_house_bloc_scripted_effects.txt.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (42 lines of game script)
tgp_bloc_change_cohesion_effect = {
save_temporary_scope_as = bloc_temp
$ICON$ = { save_scope_as = icon }
save_scope_value_as = {
name = cohesion_change
value = $VALUE$
}
hidden_effect = {
if = {
limit = { scope:cohesion_change >= 0 }
every_player = {
limit = { house.house_confederation ?= scope:bloc_temp }
send_interface_message = {
type = msg_house_bloc_cohesion_change_good
title = msg_bloc_cohesion_increased
left_icon = scope:icon
right_icon = scope:bloc_temp.leading_house
desc = tgp_bloc_change_cohesion_$REASON$_tt
show_as_tooltip = {
scope:bloc_temp = { change_cohesion = scope:cohesion_change }
}
}
}
}
else = {
every_player = {
limit = { house.house_confederation ?= scope:bloc_temp }
send_interface_message = {
type = msg_house_bloc_cohesion_change_bad
title = msg_bloc_cohesion_decreased
left_icon = scope:icon
right_icon = scope:bloc_temp.leading_house
desc = tgp_bloc_change_cohesion_$REASON$_tt
show_as_tooltip = {
scope:bloc_temp = { change_cohesion = scope:cohesion_change }
}
}
}
}
}
change_cohesion = scope:cohesion_change
}As written in game/common/scripted_effects/10_dlc_tgp_house_bloc_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls tgp_bloc_change_cohesion_effect.
Casus belli (1)
Court position tasks (1)
- Write Poetry
Events (9)
- A Test of Wit
festival.105 - Adrift in the Crowd
festival.104 - Amatory Adventures
festival.107 - Bragging Tongues
festival.103 - Esteemed Company
festival.1000 - Left Ashore
festival.114
3 more
- Poetics Under Duress
festival.109 - The … Expands
tgp_japan_general.8800 - Upon a Moonlit Night
festival.100
Scripted effects (1)
Source: game/common/scripted_effects/10_dlc_tgp_house_bloc_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.