Scripted Effect
rise_of_the_ottomans_recalculate_top_3
#################################### Rise of the Ottomans # ####################################
Rise of the TurksSituationif 2, if 3Definitionin_game/common/scripted_effects/situation_effects.txt:352
353if = {
354limit = {
355any_in_global_list = {
356variable = eligible_beylik_list
357OR = {
358NOT = {
358country_exists = this
}
359is_subject = yes
}
}
}
363every_in_global_list = {
364variable = eligible_beylik_list
366limit = {
367OR = {
368NOT = {
368country_exists = this
}
369is_subject = yes
}
}
373save_temporary_scope_as = target_country
374remove_list_global_variable = {
375name = eligible_beylik_list
376target = scope:target_country
}
}
}
380ordered_in_global_list = {
381variable = eligible_beylik_list
382limit = {
382is_subject = no
}
383order_by = {
385add = {
386value = military_strength
}
388add = {
389value = country_tax_base
}
}
392max = 1
393check_range_bounds = no
399set_variable = {
401value = {
}
}
}
}
409if = {
410limit = {
411global_variable_list_size = {
412name = eligible_beylik_list
413value > 1
}
}
416ordered_in_global_list = {
417variable = eligible_beylik_list
418limit = {
420is_subject = no
}
422order_by = {
424add = {
425value = military_strength
}
427add = {
428value = country_tax_base
}
}
431max = 1
432check_range_bounds = no
438set_variable = {
}
}
}
}
448else = {
}
}
455if = {
456limit = {
457global_variable_list_size = {
458name = eligible_beylik_list
459value > 2
}
}
462ordered_in_global_list = {
463variable = eligible_beylik_list
464limit = {
467is_subject = no
}
469order_by = {
471add = {
472value = military_strength
}
474add = {
475value = country_tax_base
}
}
478max = 1
479check_range_bounds = no
485set_variable = {
}
}
}
}
495else = {
}
}