## combo_button
(create_combo_button_overlay, "$g_presentation_obj_1"),
(position_set_x, pos1, 500),
(position_set_y, pos1, 690),
(overlay_set_position, "$g_presentation_obj_1", pos1),
# factions
(store_sub, ":num_factions", npc_kingdoms_end, npc_kingdoms_begin),
(store_add, ":num_pages", ":num_factions", 3), <---
## page names, from bottom to top
(overlay_add_item, "$g_presentation_obj_1", "@Others"), <---
(overlay_add_item, "$g_presentation_obj_1", "@Outlaws"), <---
(overlay_add_item, "$g_presentation_obj_1", "@Mercenary"), <---
(try_for_range_backwards, ":page_no", 0, ":num_factions"),
(store_add, ":faction_no", ":page_no", npc_kingdoms_begin),
(str_store_faction_name, s0, ":faction_no"),
(overlay_add_item, "$g_presentation_obj_1", s0),
(try_end),
(store_sub, ":presentation_obj_val", ":num_pages", "$g_selected_page"),
(val_sub, ":presentation_obj_val", 1),
(overlay_set_val, "$g_presentation_obj_1", ":presentation_obj_val"),