Scripted effect
chance_for_random_nickname_effect
chance_for_random_nickname_effect = yesgame/common/scripted_effects/00_nickname_effects.txt, line 17 (11 lines). No parameters.
chance_for_random_nickname_effect is a scripted effect in Crusader Kings III, written at line 17 of its file. It takes no parameters: chance_for_random_nickname_effect = yes. The game's script calls it in 1 place, among them five_year_playable_pulse (on action). Patch 1.20.1.2, from game/common/scripted_effects/00_nickname_effects.txt.
What it does
- …% chance of:
• 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 (11 lines of game script)
chance_for_random_nickname_effect = {
random = {
chance = random_nickname_chance
#chance = 100 # For testing
save_scope_value_as = {
name = toggle_null_result
value = yes
}
assign_random_nickname_effect = yes
}
}As written in game/common/scripted_effects/00_nickname_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls chance_for_random_nickname_effect.
On actions (the game's own hooks) (1)
- five_year_playable_pulse
Source: game/common/scripted_effects/00_nickname_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.