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

Scripted effect

add_mutual_gendered_blood_sibling_hook_effect

add_mutual_gendered_blood_sibling_hook_effect = { TARGET = … }

game/common/scripted_effects/00_hook_effects.txt, line 58 (39 lines). Parameters: $TARGET$.

add_mutual_gendered_blood_sibling_hook_effect is a scripted effect in Crusader Kings III, written at line 58 of its file. A call passes 1 parameter: TARGET. The game's script calls it in 1 place, among them Friends in Low Places (event ep3_laamp_flavour_ewan.1001). Patch 1.20.1.2, from game/common/scripted_effects/00_hook_effects.txt.

What it does

  • If

    • $TARGET$ = { is_female = yes }

    Then

    • add_hook = { target = $TARGET$ type = blood_sister_hook }

    Otherwise

    • add_hook = { target = $TARGET$ type = blood_brother_hook }
  • $TARGET$ = { … }
  • clear_saved_scope = blood_sibling_self

• 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 (39 lines of game script)
add_mutual_gendered_blood_sibling_hook_effect = {
	# First we do current scope.
	if = {
		limit = {
			$TARGET$ = { is_female = yes }
		}
		add_hook = {
			target = $TARGET$
			type = blood_sister_hook
		}
	}
	else = {
		add_hook = {
			target = $TARGET$
			type = blood_brother_hook
		}
	}
	# Then set target's.
	save_scope_as = blood_sibling_self
	$TARGET$ = {
		if = {
			limit = {
				scope:blood_sibling_self = { is_female = yes }
			}
			add_hook = {
				target = scope:blood_sibling_self
				type = blood_sister_hook
			}
		}
		else = {
			add_hook = {
				target = scope:blood_sibling_self
				type = blood_brother_hook
			}
		}
	}
	# Clean up after ourselves.
	clear_saved_scope = blood_sibling_self
}

As written in game/common/scripted_effects/00_hook_effects.txt.

Where it is used

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

Events (1)

Source: game/common/scripted_effects/00_hook_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?