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

Scripted effect · The Fate of Iberia files

gifting_leads_towards_friendship_effect

gifting_leads_towards_friendship_effect = yes

game/common/scripted_effects/03_dlc_fp2_scripted_effects.txt, line 1452 (20 lines). No parameters.

gifting_leads_towards_friendship_effect is a scripted effect in Crusader Kings III, in the The Fate of Iberia files, written at line 1452 of its file. It takes no parameters: gifting_leads_towards_friendship_effect = yes. The game's script calls it in 3 places, among them Gift Artifact (interaction), Send a Gift of Herd (interaction) and Send Gift (interaction). Patch 1.20.1.2, from game/common/scripted_effects/03_dlc_fp2_scripted_effects.txt.

What it does

  • If

    • is_diff_faith_or_culture_trigger = { CHAR = scope:puppet_or_actor STATUS = involved }
    • Any character struggle:
      • involvement = involved
      • has_struggle_phase_parameter = struggle_gifts_involved_diff_faith_culture_leads_to_friendship

    Then

• 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 (20 lines of game script)
gifting_leads_towards_friendship_effect = {
	if = {
		# then verify the right struggle phase
		limit = {
			is_diff_faith_or_culture_trigger = {
				CHAR = scope:puppet_or_actor
				STATUS = involved
			}
			any_character_struggle = {
				involvement = involved
				has_struggle_phase_parameter = struggle_gifts_involved_diff_faith_culture_leads_to_friendship
			}
		}
		progress_towards_friend_effect = {
			REASON = friend_struggle_gift
			CHARACTER = scope:puppet_or_actor
			OPINION = 0
		}
	}
}

As written in game/common/scripted_effects/03_dlc_fp2_scripted_effects.txt.

Where it is used

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

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