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_slain_combatant_message

send_slain_combatant_message = { DESC = … IS_ENEMY_MESSAGE = … KILLER = … TITLE = … TOAST = … }

game/common/scripted_effects/00_war_effects.txt, line 1759 (57 lines). Parameters: $DESC$, $IS_ENEMY_MESSAGE$, $KILLER$, $TITLE$, $TOAST$.

send_slain_combatant_message is a scripted effect in Crusader Kings III, written at line 1759 of its file. A call passes 5 parameters: DESC, IS_ENEMY_MESSAGE, KILLER, TITLE and TOAST. No file of common/, events/ or history/ calls it. Patch 1.20.1.2, from game/common/scripted_effects/00_war_effects.txt.

What it does

  • If

    • $TOAST$ = yes

    Then

    • message_filter_type = combat_casualties

• 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)
send_slain_combatant_message = {
	# The positioning of the character portraits needs to sync up with the loc-string we're using.
	if = {
		limit = {
			$IS_ENEMY_MESSAGE$ = no
		}
		root = {
			save_scope_as = right_character
		}
		$KILLER$ = {
			save_scope_as = left_character
		}
	}
	else = {
		root = {
			save_scope_as = left_character
		}
		$KILLER$ = {
			save_scope_as = right_character
		}
	}

	# Send either a toast or a message to this character, depending on what variable was passed in.
	if = {
		limit = {
			$TOAST$ = yes
		}
		send_interface_toast = {
			message_filter_type = combat_casualties
			title =  $DESC$
			left_icon = scope:left_character
			right_icon = scope:right_character
		}
	}
	#
	else_if = {
		limit = {
			$IS_ENEMY_MESSAGE$ = no
		}
		send_interface_message = {
			type = event_slain_combatants_good
			title = $TITLE$
			desc = $DESC$
			left_icon = scope:left_character
			right_icon = scope:right_character
		}
	}
	else = {
		send_interface_message = {
			type = event_slain_combatants_bad
			title = $TITLE$
			desc = $DESC$
			left_icon = scope:left_character
			right_icon = scope:right_character
		}
	}
}

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

Where it is used

No file of common/, events/ or history/ calls it.

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