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

Scripted effect

add_achievement_global_variable_effect

add_achievement_global_variable_effect = { VALUE = … VARIABLE = … }

game/common/scripted_effects/00_achievement_effects.txt, line 34 (11 lines). Parameters: $VALUE$, $VARIABLE$.

add_achievement_global_variable_effect is a scripted effect in Crusader Kings III, written at line 34 of its file. A call passes 2 parameters: VALUE and VARIABLE. The game's script calls it in 60 places, among them … Dominance (decision), Abandon the Bureaucracy (decision) and Adopt Centralized Administration (decision). Patch 1.20.1.2, from game/common/scripted_effects/00_achievement_effects.txt.

The comment above it in the file

Sets $VALUE$ to the global variable named $VARIABLE$ if a player

What it does

Every line of it is script with no tooltip text: the script is below.

The script as written (11 lines of game script)
add_achievement_global_variable_effect = {
	if = {
		limit = {
			is_ai = no
		}
		set_global_variable = {
			name = $VARIABLE$
			value = $VALUE$
		}
	}
}

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

Where it is used

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

Character interactions (2)

Activities (1)

Events (11)

5 more

Scripted effects inside an event file (1)

  • bg_finalise_match_end_effect

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

  • ce3_theocrat_dynasty_chain_succession
  • on_building_completed
  • on_character_holy_site_created
  • on_culture_created
  • on_faith_created
  • on_game_start_after_lobby
10 more
  • on_holy_site_artifact_enshrined
  • on_migration_travel_end
  • on_migration_war_end
  • on_player_select_destiny_confirmed
  • on_rank_up
  • on_rite_change
  • on_rite_created
  • on_title_gain_inheritance
  • on_war_won_attacker
  • on_war_won_defender

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