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

Scripted effect

send_set_relation_toast_effect

send_set_relation_toast_effect = { OWNER = … RELATION = … TARGET = … }

game/common/scripted_effects/00_relation_effects.txt, line 1206 (22 lines). Parameters: $OWNER$, $RELATION$, $TARGET$.

send_set_relation_toast_effect is a scripted effect in Crusader Kings III, written at line 1206 of its file. A call passes 3 parameters: OWNER, RELATION and TARGET. The game's script calls it in 8 places, among them on_set_relation_best_friend (on action), on_set_relation_blood_brother (on action) and on_set_relation_friend (on action). Patch 1.20.1.2, from game/common/scripted_effects/00_relation_effects.txt.

The comment above it in the file

OWNER = character
TARGET = character
RELATION = relation_key

What it does

Every line of it is script with no tooltip text: the script is below.

The script as written (22 lines of game script)
send_set_relation_toast_effect = {
	$OWNER$ = {
		save_temporary_scope_as = relation_owner
	}
	$TARGET$ = {
		save_temporary_scope_as = relation_target
	}
	scope:relation_owner = {
		send_interface_toast = {
			type = msg_set_relation_$RELATION$
			left_icon = this
			right_icon = scope:relation_target
		}
	}
	scope:relation_target = {
		send_interface_toast = {
			type = msg_set_relation_$RELATION$
			left_icon = this
			right_icon = scope:relation_owner
		}
	}
}

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

Where it is used

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

On actions (the game's own hooks) (8)

  • on_set_relation_best_friend
  • on_set_relation_blood_brother
  • on_set_relation_friend
  • on_set_relation_grudge
  • on_set_relation_lover
  • on_set_relation_nemesis
2 more
  • on_set_relation_rival
  • on_set_relation_soulmate

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