Scripted effect
ai_religious_request_blocker_effect
ai_religious_request_blocker_effect = { INTERACTION = … }game/common/scripted_effects/00_interaction_effects.txt, line 5664 (24 lines). Parameters: $INTERACTION$.
ai_religious_request_blocker_effect is a scripted effect in Crusader Kings III, written at line 5664 of its file. A call passes 1 parameter: INTERACTION. The game's script calls it in 4 places, among them Ask for Gold (interaction), Request Claim (interaction) and Request Excommunication (interaction). Patch 1.20.1.2, from game/common/scripted_effects/00_interaction_effects.txt.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (24 lines of game script)
ai_religious_request_blocker_effect = {
scope:recipient = {
if = {
limit = { # AI is requesting from a Player - we don't restrict AI-to-AI
is_ai = no
scope:puppet_or_actor = { is_ai = yes }
}
# A player Head of Faith receives this at most once every three years, whatever the asker's tier
add_character_flag = { flag = $INTERACTION$_received_cooldown years = 3 }
# Not a switch, because unlisted tiers made the blocker always pass and barred emperors
if = {
limit = { scope:puppet_or_actor = { highest_held_title_tier >= tier_kingdom } }
scope:puppet_or_actor = { add_character_flag = { flag = hof_request_cooldown years = 1 } }
}
else_if = {
limit = { scope:puppet_or_actor = { highest_held_title_tier = tier_duchy } }
scope:puppet_or_actor = { add_character_flag = { flag = hof_request_cooldown years = 2 } }
}
else = {
scope:puppet_or_actor = { add_character_flag = { flag = hof_request_cooldown years = 4 } }
}
}
}
}As written in game/common/scripted_effects/00_interaction_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls ai_religious_request_blocker_effect.
Character interactions (4)
Source: game/common/scripted_effects/00_interaction_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.