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

Scripted effect · By God Alone files

bestow_title_effect

bestow_title_effect = yes

game/common/scripted_effects/pam_effects.txt, line 12706 (57 lines). No parameters.

bestow_title_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 12706 of its file. It takes no parameters: bestow_title_effect = yes. The game's script calls it in 3 places, among them Bestow Title (interaction), pam_interactions_events.0091 (event) and pam_interactions_events.0092 (event). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.

What it does

  • If

    • scope:use_hook ?= yes
    • scope:puppet_or_actor:
      • has_usable_hook = scope:recipient

    Then

    • scope:puppet_or_actor:
      • use_hook = scope:recipient
  • If

    • scope:gain_weak_hook ?= yes

    Then

    • scope:puppet_or_actor:
      • add_hook = { type = obligation_hook target = scope:recipient }

    Else if

    • scope:gain_strong_hook ?= yes

    Then

    • scope:puppet_or_actor:
      • add_hook = { type = strong_obligation_hook target = scope:recipient }

    Otherwise

    • If

      a check the game hides

      Then

      • scope:puppet_or_actor:
        • add_prestige = { … }

      Otherwise

      • scope:puppet_or_actor: Gain +75 Prestige
  • bestow_title_shared_effect = yes

• 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 (57 lines of game script)
bestow_title_effect = {
	if = {
		limit = {
			scope:use_hook ?= yes
			scope:puppet_or_actor ?= { has_usable_hook = scope:recipient }
		}
		scope:puppet_or_actor = { use_hook = scope:recipient }
	}
	if = {
    	limit = {
    		scope:gain_weak_hook ?= yes
    	}
    	scope:puppet_or_actor = {
    		add_hook = {
    			type = obligation_hook
    			target = scope:recipient
    		}
    	}
    }
    else_if = {
    	limit = {
    		scope:gain_strong_hook ?= yes
    	}
    	scope:puppet_or_actor = {
    		add_hook = {
    			type = strong_obligation_hook
    			target = scope:recipient
    		}
    	}
    }
    else = {
    	if = {
    		limit = {
    			exists = scope:target
    		}
    		scope:puppet_or_actor = {
    			add_prestige = {
    				value = minor_prestige_gain
    				multiply = {
    					value = scope:target.tier
    					subtract = 2
    				}
    			}
    		}
    		
    	}
    	else = {
    		scope:puppet_or_actor = {
    			add_prestige = minor_prestige_gain
    		}
    	}
    }

	scope:recipient = { save_scope_as = bestowed_title_holder }
	scope:puppet_or_actor = { save_scope_as = bestowing_cleric }
	bestow_title_shared_effect = yes
}

As written in game/common/scripted_effects/pam_effects.txt.

Where it is used

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

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