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.
Decisions (13)
Character interactions (2)
Activities (1)
Casus belli (4)
Events (11)
- …: A Medical Miracle
health.3105 - …: Against All Odds
health.1111 - …: Balanced Humors
health.3106 - …: Success
scheme_critical_moments.8032 - Echoes of History: …
historical_char_creation_events.1 - Exiled …
global_religion.1000
5 more
- Living on a Prayer
pilgrimage.6007 - misc.0001
- Restoration: An Honorable Man
cid.2020 - tgp_dynastic_cycle.9000
- The Foundation of a State
tgp_dynastic_cycle.9001
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
Scripted effects (12)
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.