CK3 DatabaseCrusader Kings III · 1.21.0 “Florin” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →Merch→

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:
    • Every De Jure County is transferred to …
    • Every Occupied County outside the target title is transferred to …
    • Every in de jure hierarchy:
      • Where:
        • holder.top_liege = scope:defender
      • Gains the … Title (attacker)
  • scope:defender:
    • Every sub realm county:
      • Where:
        • county_controller = scope:attacker
      • Gains the … Title (attacker)
    • If

      • One of these

        • $VASSALIZE$ = yes
        • or

          Any in list: Not: Title already created

      Then

      • Every De Jure Vassal of the target titles:
        • Where › Their primary title: Any this title or de jure above:
        • change_liege = { liege = scope:attacker change = scope:change }

• 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.

Spotted a mistake on this page, or have an idea for the site?