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
If
gather_debug_variables_for_persian_struggle_trigger = yesis_struggle_type = persian_struggle
Then
increment_global_variable_effect = { VAR = sp_$VAR$ VAL = 1 }
• 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.
Character interactions (10)
Casus belli (1)
Events (3)
- Announcements at the Friday Prayer
fp3_decision.0015 - Learn Language: Success!
learn_language_outcome.1000 - neutral_struggle.0001
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
Scripted effects (6)
- found_cadet_house_decision_effect
- fp3_struggle_apply_catalyst_interloper_uninvolved_gain_struggle_titles
- fp3_struggle_apply_independent_vassalage_catalyst_effect
- fp3_struggle_apply_supporter_detractor_war_won_catalysts_effect
- fp3_struggle_catalysts_for_activities_effect
- secret_exposed_owner_effects_effect
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.