﻿# you have an empty accolade slot and a knight who could fill it
action_empty_accolade_slot = {
    priority = 500

    check_create_action = {
    	if = {
    		limit = {
    			is_landed = yes
				max_number_of_knights > 0
    			max_accolades > 0
				num_accolades < max_accolades
    			has_dlc_feature = accolades
				prestige >= accolade_creation_prestige_cost
				NOT = { has_global_variable = tutorial_current_situation_gradual_reveal_3 }
    		}
    		try_create_important_action = {
           		important_action_type = action_empty_accolade_slot
                actor = root
      		}
    	}
    }
    unimportant = {
      	any_active_accolade = {
			save_temporary_scope_as = accolade_temp
			root = {
				any_knight = {
					is_acclaimed = no
					is_perfect_fit_for_accolade = scope:accolade_temp
					highest_held_title_tier <= tier_kingdom
					can_be_acclaimed = yes
				}
			}
		}
    }
    effect = {
		open_view = military
    	open_view = knights
        start_tutorial_lesson = reactive_advice_create_accolade
    }
}