CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted effect · Coronations files

ach_better_councillors_host_reward_effect

ach_better_councillors_host_reward_effect = yes

game/common/scripted_effects/10_ach_effects.txt, line 4752 (267 lines). No parameters.

ach_better_councillors_host_reward_effect is a scripted effect in Crusader Kings III, in the Coronations files, written at line 4752 of its file. It takes no parameters: ach_better_councillors_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:

• 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_better_councillors_host_reward_effect = {
	switch = {
		trigger = scope:activity.activity_host.var:reward_tier
		1 = {
			ordered_attending_character = {
				order_by = coronation_supporter_sort_value
				position = 5
				limit = {
					this != scope:activity.activity_host
					is_ai = yes
					is_in_guest_subset = { name = supporter }	
					OR = {
						is_vassal_of = scope:activity.activity_host
						is_courtier_of = scope:activity.activity_host
					}
				}
				save_scope_as = first_reward_target
				add_to_list = faction_rewards
			}
		}
		2 = {
			ordered_attending_character = {
				order_by = coronation_supporter_sort_value
				position = 5
				limit = {
					this != scope:activity.activity_host
					is_ai = yes
					is_in_guest_subset = { name = supporter }
					OR = {
						is_vassal_of = scope:activity.activity_host
						is_courtier_of = scope:activity.activity_host
					}
				}
				save_scope_as = first_reward_target
				add_to_list = faction_rewards
			}
			ordered_attending_character = {
				order_by = coronation_supporter_sort_value
				position = 4
				limit = {
					this != scope:activity.activity_host
					this != scope:first_reward_target
					is_ai = yes
					is_in_guest_subset = { name = supporter }
					OR = {
						is_vassal_of = scope:activity.activity_host
						is_courtier_of = scope:activity.activity_host
					}
				}
				save_scope_as = second_reward_target
				add_to_list = faction_rewards
			}
		}
		3 = {
			ordered_attending_character = {
				order_by = coronation_supporter_sort_value
				position = 5
				limit = {
					this != scope:activity.activity_host
					is_ai = yes
					is_in_guest_subset = { name = supporter }
					OR = {
						is_vassal_of = scope:activity.activity_host
						is_courtier_of = scope:activity.activity_host
					}
				}
				save_scope_as = first_reward_target
				add_to_list = faction_rewards
			}
			ordered_attending_character = {
				order_by = coronation_supporter_sort_value
				position = 4
				limit = {
					this != scope:activity.activity_host
					this != scope:first_reward_target
					is_ai = yes
					is_in_guest_subset = { name = supporter }
					OR = {
						is_vassal_of = scope:activity.activity_host
						is_courtier_of = scope:activity.activity_host
					}
				}
				save_scope_as = second_reward_target
				add_to_list = faction_rewards
			}
			ordered_attending_character = {
				order_by = coronation_supporter_sort_value
				position = 3
				limit = {
					this != scope:activity.activity_host
					this != scope:first_reward_target
					this != scope:second_reward_target
					is_ai = yes
					is_in_guest_subset = { name = supporter }
					OR = {
						is_vassal_of = scope:activity.activity_host
						is_courtier_of = scope:activity.activity_host
					}
				}
				save_scope_as = third_reward_target
				add_to_list = faction_rewards
			}
		}
		4 = {
			ordered_attending_character = {
				order_by = coronation_supporter_sort_value
				position = 5
				limit = {
					this != scope:activity.activity_host
					is_ai = yes
					is_in_guest_subset = { name = supporter }
					OR = {
						is_vassal_of = scope:activity.activity_host
						is_courtier_of = scope:activity.activity_host
					}
				}
				save_scope_as = first_reward_target
				add_to_list = faction_rewards
			}
			ordered_attending_character = {

As written in game/common/scripted_effects/10_ach_effects.txt.

The first 120 of its 267 lines; the rest is in game/common/scripted_effects/10_ach_effects.txt from line 4752.

Where it is used

Every place in common/, events/ and history/ that calls ach_better_councillors_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.

Spotted a mistake on this page?