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

Scripted effect

diarch_legal_meddling_interaction_apply_success_effect

diarch_legal_meddling_interaction_apply_success_effect = yes

game/common/scripted_effects/00_diarchy_scripted_effects.txt, line 502 (45 lines). No parameters.

diarch_legal_meddling_interaction_apply_success_effect is a scripted effect in Crusader Kings III, written at line 502 of its file. It takes no parameters: diarch_legal_meddling_interaction_apply_success_effect = yes. The game's script calls it in 1 place, among them Legal Meddling (interaction). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_diarchy_scripted_effects.txt.

What it does

• 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 (45 lines of game script)
diarch_legal_meddling_interaction_apply_success_effect = {
	# Notify other parties.
	hidden_effect = {
		# Inform the liege.
		scope:actor.liege = {
			send_interface_message = {
				type = msg_diarch_acting_effect
				title = diarch_using_powers.t
				right_icon = scope:recipient
				left_icon = scope:actor
				show_as_tooltip = { diarch_legal_meddling_interaction_success_effect = yes }
			}
		}
		# Inform scope:recipient.
		scope:recipient = {
			send_interface_toast = {
				type = event_toast_effect_bad
				title = diarch_legal_meddling_interaction.tt.success
				left_icon = scope:actor
				show_as_tooltip = { diarch_legal_meddling_interaction_success_effect = yes }
			}
		}
	}
	# Finally, fire off the actual effect.
	send_interface_toast = {
		type = event_toast_effect_good
		title = diarch_legal_meddling_interaction.tt.success
		left_icon = scope:recipient
		# Prestige costs.
		## Point out the lack of cost.
		if = {
			limit = { scope:diarch_legal_meddling_interaction_duel_learning = yes }
			custom_tooltip = diarch_interaction_pay_prestige_none
		}
		## Point out the discount.
		else_if = {
			limit = { scope:diarch_legal_meddling_interaction_pay_prestige_partial = yes }
			add_prestige = legal_meddling_interaction_title_discounted_cost_value
		}
		## Soz mate, yerr payin' full price.
		else = { add_prestige = legal_meddling_interaction_title_cost_value }
		# Gib claim & opinion loss.
		diarch_legal_meddling_interaction_success_effect = yes
	}
}

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

Where it is used

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

Character interactions (1)

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