("initialize_troop_banners",
[
######## WOTS one banner per faction start ########
#faction banners
(faction_set_slot, "fac_kingdom_1", slot_faction_banner, "mesh_banner_Akamatsu"), #Akamatsu Clan
(faction_set_slot, "fac_kingdom_2", slot_faction_banner, "mesh_banner_Akizuki"), #Akizuki Clan
(faction_set_slot, "fac_kingdom_3", slot_faction_banner, "mesh_banner_Amago"), #Amago Clan
(faction_set_slot, "fac_kingdom_4", slot_faction_banner, "mesh_banner_Anegakoji"), #Anegakoji Clan
(faction_set_slot, "fac_kingdom_5", slot_faction_banner, "mesh_banner_Anto"), #Anto Clan
(faction_set_slot, "fac_kingdom_6", slot_faction_banner, "mesh_banner_Arima"), #Arima Clan
(try_for_range, ":cur_faction", npc_kingdoms_begin, npc_kingdoms_end),
(faction_get_slot, ":cur_faction_king", ":cur_faction", slot_faction_leader),
(faction_get_slot, ":cur_faction_banner", ":cur_faction", slot_faction_banner),
(val_sub, ":cur_faction_banner", banner_meshes_begin),
(val_add, ":cur_faction_banner", banner_scene_props_begin),
(troop_set_slot, ":cur_faction_king", slot_troop_banner_scene_prop, ":cur_faction_banner"),
(try_end),
(try_for_range, ":kingdom_hero", active_npcs_begin, active_npcs_end),
(this_or_next|troop_slot_eq, ":kingdom_hero", slot_troop_occupation, slto_kingdom_hero),
(troop_slot_eq, ":kingdom_hero", slot_troop_occupation, slto_inactive_pretender),
(store_troop_faction, ":kingdom_hero_faction", ":kingdom_hero"),
(neg|faction_slot_eq, ":kingdom_hero_faction", slot_faction_leader, ":kingdom_hero"),
(try_begin),
(eq, ":kingdom_hero_faction", "fac_kingdom_1"), #Akamatsu Clan
(faction_get_slot, ":cur_faction_banner", "fac_kingdom_1", slot_faction_banner),
(val_sub, ":cur_faction_banner", banner_meshes_begin),
(val_add, ":cur_faction_banner", banner_scene_props_begin),
(troop_set_slot, ":kingdom_hero", slot_troop_banner_scene_prop, ":cur_faction_banner"),
(else_try),
(eq, ":kingdom_hero_faction", "fac_kingdom_2"), #Akizuki Clan
(faction_get_slot, ":cur_faction_banner", "fac_kingdom_2", slot_faction_banner),
(val_sub, ":cur_faction_banner", banner_meshes_begin),
(val_add, ":cur_faction_banner", banner_scene_props_begin),
(troop_set_slot, ":kingdom_hero", slot_troop_banner_scene_prop, ":cur_faction_banner"),
(else_try),
(eq, ":kingdom_hero_faction", "fac_kingdom_3"), #Amago Clan
(faction_get_slot, ":cur_faction_banner", "fac_kingdom_3", slot_faction_banner),
(val_sub, ":cur_faction_banner", banner_meshes_begin),
(val_add, ":cur_faction_banner", banner_scene_props_begin),
(troop_set_slot, ":kingdom_hero", slot_troop_banner_scene_prop, ":cur_faction_banner"),
(else_try),
(eq, ":kingdom_hero_faction", "fac_kingdom_4"), #Anegakoji Clan
(faction_get_slot, ":cur_faction_banner", "fac_kingdom_4", slot_faction_banner),
(val_sub, ":cur_faction_banner", banner_meshes_begin),
(val_add, ":cur_faction_banner", banner_scene_props_begin),
(troop_set_slot, ":kingdom_hero", slot_troop_banner_scene_prop, ":cur_faction_banner"),
(else_try),
(eq, ":kingdom_hero_faction", "fac_kingdom_5"), #Anto Clan
(faction_get_slot, ":cur_faction_banner", "fac_kingdom_5", slot_faction_banner),
(val_sub, ":cur_faction_banner", banner_meshes_begin),
(val_add, ":cur_faction_banner", banner_scene_props_begin),
(troop_set_slot, ":kingdom_hero", slot_troop_banner_scene_prop, ":cur_faction_banner"),
(else_try),
(eq, ":kingdom_hero_faction", "fac_kingdom_6"), #Arima Clan
(faction_get_slot, ":cur_faction_banner", "fac_kingdom_6", slot_faction_banner),
(val_sub, ":cur_faction_banner", banner_meshes_begin),
(val_add, ":cur_faction_banner", banner_scene_props_begin),
(troop_set_slot, ":kingdom_hero", slot_troop_banner_scene_prop, ":cur_faction_banner"),
(try_end),
(try_end),
# (try_begin),
# (this_or_next|lt, ":banner_id", banner_scene_props_begin),
# (gt, ":banner_id", banner_scene_props_end_minus_one),
# (display_message, "@{!}ERROR: Not enough banners for heroes!"),
# (try_end),######## WOTS one banner per faction end ########
]),