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

Scripted effect

log_debug_variable_for_persian_struggle_effect

log_debug_variable_for_persian_struggle_effect = { VAR = … }

game/common/scripted_effects/00_debug_and_shortcut_effects.txt, line 61 (12 lines). Parameters: $VAR$.

log_debug_variable_for_persian_struggle_effect is a scripted effect in Crusader Kings III, written at line 61 of its file. A call passes 1 parameter: VAR. The game's script calls it in 39 places, among them Abandon Hook (interaction), Ask for Pardon (interaction) and Execute (interaction). Patch 1.20.1.2, from game/common/scripted_effects/00_debug_and_shortcut_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 (12 lines of game script)
log_debug_variable_for_persian_struggle_effect = {
	if = {
		limit = {
			gather_debug_variables_for_persian_struggle_trigger = yes
			is_struggle_type = persian_struggle
		}
		increment_global_variable_effect = {
			VAR = sp_$VAR$
			VAL = 1
		}
	}
}

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

Where it is used

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

Casus belli (1)

Events (3)

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

  • on_alliance_added
  • on_death
  • on_explicit_claim_gain
  • on_faction_demand_accepted
  • on_imprison
  • on_raid_action_completion
13 more
  • on_rite_change
  • on_set_relation_best_friend
  • on_set_relation_friend
  • on_set_relation_lover
  • on_set_relation_nemesis
  • on_set_relation_rival
  • on_set_relation_soulmate
  • on_title_gain
  • on_title_gain_usurpation
  • on_war_started
  • on_war_white_peace
  • on_war_won_attacker
  • on_war_won_defender

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