Scripted effect · Coronations files
ach_host_intent_rewards_effect
ach_host_intent_rewards_effect = yesgame/common/scripted_effects/10_ach_effects.txt, line 3392 (47 lines). No parameters.
ach_host_intent_rewards_effect is a scripted effect in Crusader Kings III, in the Coronations files, written at line 3392 of its file. It takes no parameters: ach_host_intent_rewards_effect = yes. The game's script calls it in 1 place, among them Celebration's End (event coronation_events.0311). Patch 1.20.1.2, from game/common/scripted_effects/10_ach_effects.txt.
What it does
If
- scope:activity.activity_host: Has “host had intent reward” (a variable the game's script sets)
Then
- Depending on activity.activity host.var:host had intent reward:
- When activity.activity host.var:host had intent reward is cultural acceptance:
- When activity.activity host.var:host had intent reward is opinion gain:
- When activity.activity host.var:host had intent reward is legitimacy and prestige gain:
- When activity.activity host.var:host had intent reward is prevent faction joining:
- When activity.activity host.var:host had intent reward is easier imprisonment:
- When activity.activity host.var:host had intent reward is Stressed:
- When activity.activity host.var:host had intent reward is better councillors:
- When activity.activity host.var:host had intent reward is vassal development boost:
- When activity.activity host.var:host had intent reward is vassal defensive boost:
- When activity.activity host.var:host had intent reward is artifact boost › You:
- When activity.activity host.var:host had intent reward is host development boost › You:
- When activity.activity host.var:host had intent reward is host defense boost › You:
• 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 (47 lines of game script)
ach_host_intent_rewards_effect = {
if = {
limit = {
scope:activity.activity_host = { has_variable = host_had_intent_reward }
}
switch = {
trigger = scope:activity.activity_host.var:host_had_intent_reward
flag:cultural_acceptance = {
ach_cultural_acceptance_host_reward_effect = yes
}
flag:opinion_gain = {
ach_opinion_gain_host_reward_effect = yes
}
flag:legitimacy_and_prestige_gain = {
ach_legitimacy_and_prestige_gain_host_reward_effect = yes
}
flag:prevent_faction_joining = {
ach_prevent_faction_joining_host_reward_effect = yes
}
flag:easier_imprisonment = {
ach_easier_imprisonment_host_reward_effect = yes
}
flag:stress = {
ach_stress_host_reward_effect = yes
}
flag:better_councillors = {
ach_better_councillors_host_reward_effect = yes
}
flag:vassal_development_boost = {
ach_vassal_development_boost_host_reward_effect = yes
}
flag:vassal_defensive_boost = {
ach_vassal_defensive_boost_host_reward_effect = yes
}
flag:artifact_boost = {
root = { ach_artifact_boost_host_reward_effect = yes }
}
flag:host_development_boost = {
root = { ach_host_development_boost_host_reward_effect = yes }
}
flag:host_defense_boost = {
root = { ach_host_defense_boost_host_reward_effect = yes }
}
}
}
}As written in game/common/scripted_effects/10_ach_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls ach_host_intent_rewards_effect.
Events (1)
- Celebration's End
coronation_events.0311
Source: game/common/scripted_effects/10_ach_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.