Stavropul start

This commit is contained in:
Heidesommer 2026-04-25 18:55:31 -04:00
parent 50e221bcef
commit 4c1f524d62
158 changed files with 10079 additions and 10160 deletions

View file

@ -434,6 +434,20 @@ imperial_examination_disburse_activity_entrant_rewards = {
}
remove_character_flag = failed_imperial_examination
}
if = {
limit = {
has_character_flag = exam_cheat_intent
NOR = {
has_variable = been_caught_cheating
has_variable = been_caught_cheating_longterm
}
government_allows = merit
}
add_secret = {
target = scope:host
type = secret_exam_cheater
}
}
}
#Failees
else = {
@ -575,6 +589,20 @@ local_examination_disburse_activity_entrant_rewards = {
desc = msg_provincial_exam_close_family_passed_desc
}
}
if = {
limit = {
has_character_flag = exam_cheat_intent
NOR = {
has_variable = been_caught_cheating
has_variable = been_caught_cheating_longterm
}
government_allows = merit
}
add_secret = {
target = scope:host
type = secret_exam_cheater
}
}
}
#Failees
else = {
@ -1284,15 +1312,11 @@ imperial_examination_gather_entrants_effect = {
NOR = {
this = scope:host
is_in_guest_subset = { name = imperial_examiners }
has_court_position = travel_leader_court_position
has_court_position = bodyguard_court_position
# If you are a player, you should get as many shots at the Palace Exam as you want.
has_character_flag = passed_palace_exam
has_trait = devoted
has_trait = eunuch
}
# Remove diarchs from the list.
bannable_serving_diarch_trigger = no
is_adult = yes
}
save_temporary_scope_as = temp_character
@ -1355,8 +1379,6 @@ local_examination_gather_entrants_effect = {
NOR = {
this = scope:host
is_in_guest_subset = { name = imperial_examiners }
has_court_position = travel_leader_court_position
has_court_position = bodyguard_court_position
# You have passed the any of the higher level exams
has_character_flag = passed_metropolitan_exam
# You have already passed the Provincial
@ -1364,8 +1386,6 @@ local_examination_gather_entrants_effect = {
has_trait = devoted
has_trait = eunuch
}
# Remove diarchs from the list.
bannable_serving_diarch_trigger = no
is_adult = yes
}
save_temporary_scope_as = temp_character
@ -1474,8 +1494,6 @@ imperial_examination_gather_stray_entrants_effect = {
is_holy_order = no
}
}
# Remove diarchs from the list.
bannable_serving_diarch_trigger = no
tgp_gender_can_be_exam_entrant_trigger = yes
}
add_to_list = entourage_entrants
@ -1513,8 +1531,6 @@ imperial_examination_gather_stray_entrants_effect = {
is_holy_order = no
}
}
# Remove diarchs from the list.
bannable_serving_diarch_trigger = no
tgp_gender_can_be_exam_entrant_trigger = yes
}
add_to_list = entourage_entrants
@ -1582,30 +1598,24 @@ metropolitan_examination_scoreboard_setup_effect = {
}
}
#Add the fresh entrants to the scoreboard
while = {
count = 1
ordered_attending_character = {
limit = {
or = {
is_in_guest_subset = { name = entrants }
}
NOR = {
is_in_guest_subset = { name = scoreboard }
scope:activity = {
any_guest_subset = {
name = scoreboard
count = scope:activity.var:scoreboard_size
}
every_attending_character = {
limit = {
is_in_guest_subset = { name = entrants }
NOR = {
is_in_guest_subset = { name = scoreboard }
scope:activity = {
any_guest_subset = {
name = scoreboard
count = scope:activity.var:scoreboard_size
}
}
}
order_by = imperial_examination_score_value
save_temporary_scope_as = temp_character
scope:activity = {
add_to_guest_subset = {
name = scoreboard
target = scope:temp_character
}
}
save_temporary_scope_as = temp_character
scope:activity = {
add_to_guest_subset = {
name = scoreboard
target = scope:temp_character
}
}
}
@ -1642,28 +1652,24 @@ palace_examination_scoreboard_setup_effect = {
}
}
#Add the fresh entrants to the scoreboard
while = {
count = 1
ordered_attending_character = {
limit = {
is_in_guest_subset = { name = palace_entrants }
NOR = {
is_in_guest_subset = { name = scoreboard }
scope:activity = {
any_guest_subset = {
name = scoreboard
count = scope:activity.var:scoreboard_size
}
every_attending_character = {
limit = {
is_in_guest_subset = { name = palace_entrants }
NOR = {
is_in_guest_subset = { name = scoreboard }
scope:activity = {
any_guest_subset = {
name = scoreboard
count = scope:activity.var:scoreboard_size
}
}
}
order_by = imperial_examination_score_value
save_temporary_scope_as = temp_character
scope:activity = {
add_to_guest_subset = {
name = scoreboard
target = scope:temp_character
}
}
save_temporary_scope_as = temp_character
scope:activity = {
add_to_guest_subset = {
name = scoreboard
target = scope:temp_character
}
}
}
@ -1720,6 +1726,7 @@ imperial_examination_determine_exam_outcome_effect = {
# If we don't have enough, let some of the failees pass.
ordered_guest_subset = {
name = entrants
check_range_bounds = no
limit = {
has_trait = education_martial
has_variable = failee_to_be_removed
@ -1990,4 +1997,4 @@ exam_grab_entrant_position_effect = {
name = your_exam_position
value = list_size:exam_position_list
}
}
}