Scripted trigger · All Under Heaven files
tgp_bloc_war_transfer_trigger
tgp_bloc_war_transfer_trigger = { BLOC_LEADER = … }game/common/scripted_triggers/10_tgp_japan_triggers.txt, line 817 (28 lines). Parameters: $BLOC_LEADER$.
tgp_bloc_war_transfer_trigger is a scripted trigger in Crusader Kings III, in the All Under Heaven files, written at line 817 of its file. A call passes 1 parameter: BLOC_LEADER. The game's script calls it in 3 places, among them tgp_bloc_war_defeat_member_effect (scripted effect), japan_bloc_war_ai_score_value (script value) and tgp_bloc_war_member_transfer_value (script value). Patch 1.20.1.2, from game/common/scripted_triggers/10_tgp_japan_triggers.txt.
What it checks
$BLOC_LEADER$ = { save_temporary_scope_as = leader_temp }None of these
• 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_bloc_war_transfer_trigger = {
$BLOC_LEADER$ = { save_temporary_scope_as = leader_temp }
save_temporary_scope_as = member_head_temp
NOR = {
# Not leading house
scope:leader_temp.house.house_confederation.leading_house ?= house
# Not sub vassal
trigger_if = {
limit = {
scope:leader_temp = { is_independent_ruler = no }
}
is_vassal_or_below_of = scope:leader_temp
}
# Not friend
has_relation_friend = scope:leader_temp
# Not ally
is_allied_to = scope:leader_temp
# Not hooked
scope:leader_temp = { has_hook = scope:member_head_temp }
# Not terrified
has_dread_level_towards = {
target = scope:leader_temp
level >= 2
}
# Not loyal
has_trait = loyal
}
}As written in game/common/scripted_triggers/10_tgp_japan_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls tgp_bloc_war_transfer_trigger.
Scripted effects (1)
Script values (2)
- japan_bloc_war_ai_score_value
- tgp_bloc_war_member_transfer_value
Source: game/common/scripted_triggers/10_tgp_japan_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.