ISI_setup_hvt_pool = { for_loop_effect = { start = 1 end = 13 compare = less_than_or_equals add_to_array = { global.ISI_hvt_pool = v } } set_global_flag = ISI_hvt_pool_seeded } ISI_burn_hvt = { random_country = { limit = { has_war_with = ISI is_subject = no OR = { original_tag = SOV original_tag = USA is_in_faction_with = USA } } set_temp_variable = { ISI_hvt_max = { value = global.ISI_hvt_pool^num subtract = 1 } } set_temp_variable_to_random = { var = ISI_hvt_slot min = 0 max = ISI_hvt_max integer = yes } set_temp_variable = { ISI_hvt_id = global.ISI_hvt_pool^ISI_hvt_slot } remove_from_array = { array = global.ISI_hvt_pool index = ISI_hvt_slot } ISI = { add_timed_idea = { idea = ISI_decapitated_leadership days = 120 } add_war_support = -0.02 set_country_flag = { flag = ISI_hvt_cooldown value = 1 days = 60 } ISI_retire_hvt_character = yes } if = { limit = { original_tag = SOV } ISI_hvt_news_russian = yes } else = { ISI_hvt_news_coalition = yes } } } ISI_hvt_news_coalition = { if = { limit = { check_variable = { ISI_hvt_id = 1 } } news_event = isisNews.1301 } else_if = { limit = { check_variable = { ISI_hvt_id = 2 } } news_event = isisNews.1302 } else_if = { limit = { check_variable = { ISI_hvt_id = 3 } } news_event = isisNews.1303 } else_if = { limit = { check_variable = { ISI_hvt_id = 4 } } news_event = isisNews.1304 } else_if = { limit = { check_variable = { ISI_hvt_id = 5 } } news_event = isisNews.1305 } else_if = { limit = { check_variable = { ISI_hvt_id = 6 } } news_event = isisNews.1306 } else_if = { limit = { check_variable = { ISI_hvt_id = 7 } } news_event = isisNews.1307 } else_if = { limit = { check_variable = { ISI_hvt_id = 8 } } news_event = isisNews.1308 } else_if = { limit = { check_variable = { ISI_hvt_id = 9 } } news_event = isisNews.1309 } else_if = { limit = { check_variable = { ISI_hvt_id = 10 } } news_event = isisNews.1310 } else_if = { limit = { check_variable = { ISI_hvt_id = 11 } } news_event = isisNews.1311 } else_if = { limit = { check_variable = { ISI_hvt_id = 12 } } news_event = isisNews.1312 } else = { news_event = isisNews.1313 } } ISI_hvt_news_russian = { if = { limit = { check_variable = { ISI_hvt_id = 1 } } news_event = isisNews.11301 } else_if = { limit = { check_variable = { ISI_hvt_id = 2 } } news_event = isisNews.11302 } else_if = { limit = { check_variable = { ISI_hvt_id = 3 } } news_event = isisNews.11303 } else_if = { limit = { check_variable = { ISI_hvt_id = 4 } } news_event = isisNews.11304 } else_if = { limit = { check_variable = { ISI_hvt_id = 5 } } news_event = isisNews.11305 } else_if = { limit = { check_variable = { ISI_hvt_id = 6 } } news_event = isisNews.11306 } else_if = { limit = { check_variable = { ISI_hvt_id = 7 } } news_event = isisNews.11307 } else_if = { limit = { check_variable = { ISI_hvt_id = 8 } } news_event = isisNews.11308 } else_if = { limit = { check_variable = { ISI_hvt_id = 9 } } news_event = isisNews.11309 } else_if = { limit = { check_variable = { ISI_hvt_id = 10 } } news_event = isisNews.11310 } else_if = { limit = { check_variable = { ISI_hvt_id = 11 } } news_event = isisNews.11311 } else_if = { limit = { check_variable = { ISI_hvt_id = 12 } } news_event = isisNews.11312 } else = { news_event = isisNews.11313 } } ISI_retire_hvt_character = { if = { limit = { check_variable = { ISI_hvt_id = 1 } has_character = ISI_abu_fatima_aljaheishi } retire_character = ISI_abu_fatima_aljaheishi } else_if = { limit = { check_variable = { ISI_hvt_id = 3 } has_character = ISI_lavdrim_muhaxheri } retire_character = ISI_lavdrim_muhaxheri } else_if = { limit = { check_variable = { ISI_hvt_id = 4 } has_character = ISI_gulmurod_khalimov } retire_character = ISI_gulmurod_khalimov } else_if = { limit = { check_variable = { ISI_hvt_id = 5 } has_character = ISI_abdullah_ahmed_almashadani } retire_character = ISI_abdullah_ahmed_almashadani } else_if = { limit = { check_variable = { ISI_hvt_id = 6 } has_character = ISI_ahmed_khalal_aljuhayshi } retire_character = ISI_ahmed_khalal_aljuhayshi } else_if = { limit = { check_variable = { ISI_hvt_id = 7 } has_character = ISI_fares_reif_alnaima } retire_character = ISI_fares_reif_alnaima } else_if = { limit = { check_variable = { ISI_hvt_id = 8 } has_character = ISI_abu_ahmad_alalwani } retire_character = ISI_abu_ahmad_alalwani } else_if = { limit = { check_variable = { ISI_hvt_id = 10 } has_character = ISI_ayad_aljumaili } retire_character = ISI_ayad_aljumaili } else_if = { limit = { check_variable = { ISI_hvt_id = 12 } has_character = ISI_abdul_wahid_khutnayer_ahmad } retire_character = ISI_abdul_wahid_khutnayer_ahmad } }