Scripted effect · Coronations files
ach_cultural_acceptance_host_reward_effect
ach_cultural_acceptance_host_reward_effect = yesgame/common/scripted_effects/10_ach_effects.txt, line 3440 (208 lines). No parameters.
ach_cultural_acceptance_host_reward_effect is a scripted effect in Crusader Kings III, in the Coronations files, written at line 3440 of its file. It takes no parameters: ach_cultural_acceptance_host_reward_effect = yes. The game's script calls it in 1 place, among them ach_host_intent_rewards_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/10_ach_effects.txt.
What it does
- Every in list:
change_cultural_acceptance = { target = scope:activity.activity_host.culture value = medium_positive_culture_acceptance desc = cultural_acceptance_gain_coronation_host_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 (120 lines of game script)
ach_cultural_acceptance_host_reward_effect = {
switch = {
trigger = scope:activity.activity_host.var:reward_tier
1 = {
scope:activity = {
ordered_attending_character = {
order_by = coronation_supporter_sort_value
limit = {
culture != scope:activity.activity_host.culture
}
culture = { save_scope_as = first_reward_target add_to_list = culture_rewards }
}
}
}
2 = {
scope:activity = {
ordered_attending_character = {
order_by = coronation_supporter_sort_value
limit = {
culture != scope:activity.activity_host.culture
}
culture = { save_scope_as = first_reward_target add_to_list = culture_rewards }
}
ordered_attending_character = {
order_by = coronation_supporter_sort_value
limit = {
culture != scope:activity.activity_host.culture
culture != scope:first_reward_target
}
culture = { save_scope_as = second_reward_target add_to_list = culture_rewards }
}
}
}
3 = {
scope:activity = {
ordered_attending_character = {
order_by = coronation_supporter_sort_value
limit = {
culture != scope:activity.activity_host.culture
}
culture = { save_scope_as = first_reward_target add_to_list = culture_rewards }
}
ordered_attending_character = {
order_by = coronation_supporter_sort_value
limit = {
culture != scope:activity.activity_host.culture
culture != scope:first_reward_target
}
culture = { save_scope_as = second_reward_target add_to_list = culture_rewards}
}
ordered_attending_character = {
order_by = coronation_supporter_sort_value
limit = {
culture != scope:activity.activity_host.culture
culture != scope:first_reward_target
culture != scope:second_reward_target
}
culture = { save_scope_as = third_reward_target add_to_list = culture_rewards }
}
}
}
4 = {
scope:activity = {
ordered_attending_character = {
order_by = coronation_supporter_sort_value
limit = {
culture != scope:activity.activity_host.culture
}
culture = { save_scope_as = first_reward_target add_to_list = culture_rewards }
}
ordered_attending_character = {
order_by = coronation_supporter_sort_value
limit = {
culture != scope:activity.activity_host.culture
culture != scope:first_reward_target
}
culture = { save_scope_as = second_reward_target add_to_list = culture_rewards }
}
ordered_attending_character = {
order_by = coronation_supporter_sort_value
limit = {
culture != scope:activity.activity_host.culture
culture != scope:first_reward_target
culture != scope:second_reward_target
}
culture = { save_scope_as = third_reward_target add_to_list = culture_rewards }
}
ordered_attending_character = {
order_by = coronation_supporter_sort_value
limit = {
culture != scope:activity.activity_host.culture
culture != scope:first_reward_target
culture != scope:second_reward_target
culture != scope:third_reward_target
}
culture = { save_scope_as = fourth_reward_target add_to_list = culture_rewards }
}
}
if = {
limit = {
NOT = { exists = scope:fourth_reward_target }
}
random_culture_global = {
limit = {
this != scope:activity.activity_host.culture
has_same_culture_heritage = scope:activity.activity_host.culture
}
alternative_limit = {
this != scope:activity.activity_host.culture
}
save_scope_as = fourth_reward_target
add_to_list = culture_rewards
}
}
}
5 = {
scope:activity = {
ordered_attending_character = {
order_by = coronation_supporter_sort_value
limit = {As written in game/common/scripted_effects/10_ach_effects.txt.
The first 120 of its 208 lines; the rest is in game/common/scripted_effects/10_ach_effects.txt from line 3440.
Where it is used
Every place in common/, events/ and history/ that calls ach_cultural_acceptance_host_reward_effect.
Scripted effects (1)
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.