Scripted effect · Coronations files
ach_host_intent_rewards_tooltip_effect
ach_host_intent_rewards_tooltip_effect = yesgame/common/scripted_effects/10_ach_effects.txt, line 3325 (66 lines). No parameters.
ach_host_intent_rewards_tooltip_effect is a scripted effect in Crusader Kings III, in the Coronations files, written at line 3325 of its file. It takes no parameters: ach_host_intent_rewards_tooltip_effect = yes. The game's script calls it in 1 place, among them Celebration's End (event coronation_events.0312). Its body carries 17 texts of the game's own for the player. 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
scope:activity.activity_host:- Depending on host had intent reward:
- When host had intent reward is cultural acceptance: … Culture gains Cultural Acceptance with the following cultures:
- When host had intent reward is opinion gain: … gains Opinion with the following characters:
- When host had intent reward is legitimacy and prestige gain: The following characters gain Impressed Attendee Modifier:
- When host had intent reward is prevent faction joining: The following Detractors gain Weakened Detractor: Factions Modifier:
- When host had intent reward is easier imprisonment: The following Detractors gain Cowed Detractor: Imprisonment Modifier:
- When host had intent reward is Stressed: The following Detractors gain a massive amount of Stress:
- When host had intent reward is better councillors: The following Supporters gain Embrace Supporters: Councilors Modifier:
- When host had intent reward is vassal development boost: The following Supporters gain Embrace Supporters: Development Modifier:
- When host had intent reward is vassal defensive boost: The following Supporters gain Embrace Supporters: Defense Modifier:
- When host had intent reward is artifact boost: The following Artifacts gain a positive Modifier:
- When host had intent reward is host development boost: The following Counties gain Exalt Crown: Development Modifier:
- When host had intent reward is host defense boost: The following Counties gain Exalt Crown: Defenses Modifier:
- Depending on reward tier:
- When reward tier is 1: Affected: …
- When reward tier is 2: Affected: … and …
- When reward tier is 3: Affected: …, …, and …
- When reward tier is 4: Affected: …, …, …, and …
- When reward tier is 5: Affected: …, …, …, …, and …
- Depending on host had intent reward:
• 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 (66 lines of game script)
ach_host_intent_rewards_tooltip_effect = {
if = {
limit = {
scope:activity.activity_host = { has_variable = host_had_intent_reward }
}
scope:activity.activity_host = {
switch = {
trigger = var:host_had_intent_reward
flag:cultural_acceptance = {
custom_tooltip = coronation_cultural_acceptance_reward_tt
}
flag:opinion_gain = {
custom_tooltip = coronation_opinion_gain_reward_tt
}
flag:legitimacy_and_prestige_gain = {
custom_tooltip = coronation_legitimacy_and_prestige_gain_reward_tt
}
flag:prevent_faction_joining = {
custom_tooltip = coronation_prevent_faction_joining_reward_tt
}
flag:easier_imprisonment = {
custom_tooltip = coronation_easier_imprisonment_reward_tt
}
flag:stress = {
custom_tooltip = coronation_stress_reward_tt
}
flag:better_councillors = {
custom_tooltip = coronation_better_councillors_reward_tt
}
flag:vassal_development_boost = {
custom_tooltip = coronation_vassal_development_boost_reward_tt
}
flag:vassal_defensive_boost = {
custom_tooltip = coronation_vassal_defensive_boost_reward_tt
}
flag:artifact_boost = {
custom_tooltip = coronation_artifact_boost_reward_tt
}
flag:host_development_boost = {
custom_tooltip = coronation_host_development_boost_reward_tt
}
flag:host_defense_boost = {
custom_tooltip = coronation_host_defense_boost_reward_tt
}
}
switch = {
trigger = var:reward_tier
1 = {
custom_tooltip = coronation_host_reward_tier_one_tt
}
2 = {
custom_tooltip = coronation_host_reward_tier_two_tt
}
3 = {
custom_tooltip = coronation_host_reward_tier_three_tt
}
4 = {
custom_tooltip = coronation_host_reward_tier_four_tt
}
5 = {
custom_tooltip = coronation_host_reward_tier_five_tt
}
}
}
}
}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_tooltip_effect.
Events (1)
- Celebration's End
coronation_events.0312
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.