Scripted effect · By God Alone files
on_personal_tenet_gain_secret_gain_effect
on_personal_tenet_gain_secret_gain_effect = yesgame/common/scripted_effects/pam_effects.txt, line 1163 (23 lines). No parameters.
on_personal_tenet_gain_secret_gain_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 1163 of its file. It takes no parameters: on_personal_tenet_gain_secret_gain_effect = yes. The game's script calls it in 2 places, among them on_personal_tenet_gain (on action) and pam_faith_grant_forbidden_personal_tenet_secrets_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.
What it does
If
Then
add_secret = { type = secret_forbidden_personal_tenet target = this }If
a check the game hides
Then
- Every secret:
reveal_to = scope:tenet_evangelizer
- Every secret:
• 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 (23 lines of game script)
on_personal_tenet_gain_secret_gain_effect = {
# AI on_personal_tenet_gain is delayed, so the prohibited tenet may already be gone
if = {
limit = { pam_has_forbidden_personal_tenet_trigger = yes }
send_interface_toast = {
title = on_personal_tenet_gain_secret_gain_effect_tt
left_icon = root
add_secret = {
type = secret_forbidden_personal_tenet
target = this
}
if = {
limit = { exists = var:tenet_evangelized_by }
var:tenet_evangelized_by = { save_temporary_scope_as = tenet_evangelizer }
every_secret = {
type = secret_forbidden_personal_tenet
reveal_to = scope:tenet_evangelizer
}
remove_variable = tenet_evangelized_by
}
}
}
}As written in game/common/scripted_effects/pam_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls on_personal_tenet_gain_secret_gain_effect.
On actions (the game's own hooks) (1)
- on_personal_tenet_gain
Scripted effects (1)
Source: game/common/scripted_effects/pam_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.