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

Scripted effect

intrigue_duel_on_attack_effect

intrigue_duel_on_attack_effect = yes

game/common/scripted_effects/00_war_effects.txt, line 2609 (60 lines). No parameters.

intrigue_duel_on_attack_effect is a scripted effect in Crusader Kings III, written at line 2609 of its file. It takes no parameters: intrigue_duel_on_attack_effect = yes. The game's script calls it in 1 place, among them on_declared_war (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_war_effects.txt.

What it does

  • scope:attacker:
    • If

      a check the game hides

      Then

      • duel = { … }

• 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 (60 lines of game script)
intrigue_duel_on_attack_effect = {
	scope:attacker = {
		if = {
			limit = {
				has_character_flag = intrigue_duel_on_attack
			}
			duel = {
				skill = intrigue
				value = scope:defender.intrigue
				50 = {
					compare_modifier = {
						value = scope:duel_value
						multiplier = 3.5
						min = -49
					}
					desc = intrigue_duel_on_attack_effect.success
					send_interface_toast = {
						title = armies_hampered
						left_icon = scope:attacker
						right_icon = scope:defender
						scope:defender = {
							add_character_modifier = {
								modifier = hampered_by_false_information_modifier
								years = 5
							}
						}
					}
					hidden_effect = {
						show_as_tooltip = {
							send_interface_toast = {
								title = armies_hampered
								left_icon = scope:attacker
								right_icon = scope:defender
								scope:defender = {
									add_character_modifier = {
										modifier = hampered_by_false_information_modifier
										years = 5
									}
								}
							}
						}
					}
				}
				50 = {
					compare_modifier = {
						value = scope:duel_value
						multiplier = -3.5
						min = -49
					}
					desc = intrigue_duel_on_attack_effect.failure
					send_interface_toast = {
						title = armies_unhampered
						left_icon = scope:attacker
						right_icon = scope:defender
					}
				}
			}
		}
	}
}

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

Where it is used

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

Scripted effects (1)

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?