Scripted effect
on_victory_invasion_cb_take_occupied_tooltip
on_victory_invasion_cb_take_occupied_tooltip = { VASSALIZE = … }game/common/scripted_effects/00_war_effects.txt, line 3495 (53 lines). Parameters: $VASSALIZE$.
on_victory_invasion_cb_take_occupied_tooltip is a scripted effect in Crusader Kings III, written at line 3495 of its file. A call passes 1 parameter: VASSALIZE. The game's script calls it in 5 places, among them …… Ancestral Claim on … (casus belli), Chinese Consolidation War (casus belli) and Clan Invasion (casus belli). Its body carries 2 texts of the game's own for the player. Patch 1.21.0, from game/common/scripted_effects/00_war_effects.txt.
What it does
- Every in list:
scope:defender:- Every sub realm county:
- Where:
county_controller = scope:attacker
- Gains the … Title (attacker)
- Where:
- Every sub realm county:
• 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 (53 lines of game script)
on_victory_invasion_cb_take_occupied_tooltip = {
show_as_tooltip = {
every_in_list = {
list = target_titles
custom_tooltip = invasion_title_transfer_tt
custom_tooltip = invasion_title_transfer_2_tt
every_in_de_jure_hierarchy = {
limit = { holder.top_liege = scope:defender }
change_title_holder = {
holder = scope:attacker
change = scope:change
}
}
}
scope:defender = {
every_sub_realm_county = {
limit = {
county_controller = scope:attacker
}
change_title_holder = {
holder = scope:attacker
change = scope:change
}
}
if = {
limit = {
OR = {
$VASSALIZE$ = yes
any_in_list = {
list = target_titles
is_title_created = no
}
}
}
# Vassal transfer tooltip for display
every_vassal = {
limit = {
primary_title = {
any_this_title_or_de_jure_above = {
is_in_list = target_titles
}
}
}
custom = invasion_vassal_transfer_tt
change_liege = {
liege = scope:attacker
change = scope:change
}
}
}
}
}
}As written in game/common/scripted_effects/00_war_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls on_victory_invasion_cb_take_occupied_tooltip.
Source: game/common/scripted_effects/00_war_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.21.0.