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

Scripted effect · All Under Heaven files

set_house_of_all_descendants_effect

set_house_of_all_descendants_effect = { NEW_HOUSE = … OLD_HOUSE = … }

game/common/scripted_effects/10_dlc_tgp_japan_scripted_effects.txt, line 139 (21 lines). Parameters: $NEW_HOUSE$, $OLD_HOUSE$.

set_house_of_all_descendants_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 139 of its file. A call passes 2 parameters: NEW_HOUSE and OLD_HOUSE. The game's script calls it in 1 place, among them japan_set_house_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_japan_scripted_effects.txt.

What it does

  • If child (at least 1) › Every child:
    • Where:
      • house ?= $OLD_HOUSE$
    • set_house = $NEW_HOUSE$
    • Every child:
      • Where:
        • house ?= $OLD_HOUSE$
      • set_house = $NEW_HOUSE$
      • Every child:
        • Where:
          • house ?= $OLD_HOUSE$
        • set_house = $NEW_HOUSE$
        • Every child:
          • Where:
            • house ?= $OLD_HOUSE$
          • set_house = $NEW_HOUSE$

• 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 (21 lines of game script)
set_house_of_all_descendants_effect = {
	if = {
		limit = { any_child = { count >= 1 } }
		every_child = { # Children
			limit = { house ?= $OLD_HOUSE$ }
			set_house = $NEW_HOUSE$
			every_child = { # Grandchildren
				limit = { house ?= $OLD_HOUSE$ }
				set_house = $NEW_HOUSE$
				every_child = { # Great-grandchildren
					limit = { house ?= $OLD_HOUSE$ }
					set_house = $NEW_HOUSE$
					every_child = { # Great-grandchildren
						limit = { house ?= $OLD_HOUSE$ }
						set_house = $NEW_HOUSE$
					}
				}
			}
		}
	}
}

As written in game/common/scripted_effects/10_dlc_tgp_japan_scripted_effects.txt.

Where it is used

Every place in common/, events/ and history/ that calls set_house_of_all_descendants_effect.

Scripted effects (1)

Source: game/common/scripted_effects/10_dlc_tgp_japan_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.

Spotted a mistake on this page?