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_favour_hook_if_possible_simple_effect

add_favour_hook_if_possible_simple_effect = { TARGET = … }

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

add_favour_hook_if_possible_simple_effect is a scripted effect in Crusader Kings III, written at line 43 of its file. A call passes 1 parameter: TARGET. The game's script calls it in 16 places, among them A Common Enemy (event agent_events.3051), A Glorious Expedition! (event diarchy.8011) and A Tool for the Wielding (event bp2_yearly.0661). Patch 1.20.1.2, from game/common/scripted_effects/00_hook_effects.txt.

What it does

  • If

    • can_add_hook = { target = $TARGET$ type = favor_hook }

    Then

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

• 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 (14 lines of game script)
add_favour_hook_if_possible_simple_effect = {
	if = {
		limit = {
			can_add_hook = {
				target = $TARGET$
				type = favor_hook
			}
		}
		add_hook = {
			target = $TARGET$
			type = favor_hook
		}
	}
}

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

Events (16)

10 more

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?