Saints Row 2 Function Reference

Local functions

These functions are defined in Lua files that aren't always loaded. They're probably only available in the file that defined them or by including that file in another script.

Function name Global Defined in Examples from patch (click blue number to expand)
debug false 2
    debug_conversation false 1
      debug_quick_print false 1 9
      debug_right_list false 1
        device_selected false 2
          diable_generators_get_generator_by_trigger false 1 1
          dialog_add_mouse_inputs false 1 3
          dialog_box_confirmation false 1 25
          dialog_box_destructive_confirmation false 1 3
          dialog_box_do_nothing false 1
            dialog_box_message false 1 69
            dialog_box_message_critical false 1
              dialog_box_morph_done false 1
                dialog_box_open false 1 15
                • cinema_clip_manager.lua, line 125: dialog_box_open("PC_CLIP_ACTIONS", Data[cur_selection].label, options, "cinema_clip_manager_cb", 0, DIALOG_PRIORITY_ACTION)
                • cmp_common.lua, line 2054: Cmp_common_coop_dialog_handle = dialog_box_open("MENU_TITLE_WARNING", "DIALOG_PAUSE_DISCONNECT_PROMPT", options, "cmp_common_coop_disconnect", 1, DIALOG_PRIORITY_SYSTEM_CRITICAL, true, nil, false, false)
                • cmp_fail.lua, line 337: Cmp_fail_coop_dialog_handle = dialog_box_open("MENU_TITLE_WARNING", "DIALOG_PAUSE_DISCONNECT_PROMPT", options, "cmp_fail_coop_disconnect", 1, DIALOG_PRIORITY_SYSTEM_CRITICAL, true, nil, false, false)
                • dialog.lua, line 365: return dialog_box_open(header, body, options, callback, default, priority, true, nil, is_close_on_death, is_close_on_damage)
                • dialog.lua, line 372: return dialog_box_open(header, body, options, callback, default, priority, true)
                • dialog.lua, line 379: return dialog_box_open(header, body, options, callback, 0, priority, false, nil, is_close_on_death, is_close_on_damage)
                • dialog.lua, line 386: return dialog_box_open(header, body, options, nil, 0, priority, false, nil, is_close_on_death, is_close_on_damage)
                • dialog.lua, line 557: Dialog_pause_disconnect_dialog_handle = dialog_box_open("MENU_TITLE_WARNING", "DIALOG_PAUSE_DISCONNECT_PROMPT", options, "dialog_pause_disconnect", 1, DIALOG_PRIORITY_SYSTEM_CRITICAL, true, nil, false, false)
                • dialog.lua, line 564: Dialog_pause_disconnect_dialog_handle = dialog_box_open("MENU_TITLE_WARNING", "DIALOG_PAUSE_DISCONNECT_PROMPT", options, "dialog_pause_disconnect", 1, DIALOG_PRIORITY_SYSTEM_CRITICAL, true, nil, false, false)
                • main_menu_top.lua, line 625: main_menu_top_dowload_dialog_box = dialog_box_open("GAME_INSTALL_INCOMPLETE_TITLE", "GAME_INSTALL_INCOMPLETE_LOAD", options, "main_menu_download_dialog_callback", 0, DIALOG_PRIORITY_ACTION, false, false, false, false, false, 0)
                • msn_proto_select.lua, line 800: Msn_proto_disconnect_dialog_handle = dialog_box_open("MENU_TITLE_WARNING", "DIALOG_PAUSE_DISCONNECT_PROMPT", options, "msn_proto_coop_disconnect", 1, DIALOG_PRIORITY_SYSTEM_CRITICAL, true, nil, false, false)
                • pause_options_clip_select.lua, line 171: dialog_box_open(Data[cur_selection].label, "PC_CLIP_ACTIONS", options, "options_clip_select_dialog_cb", 0, DIALOG_PRIORITY_ACTION)
                • pause_options_display_pc.lua, line 804: Confirm_dialog_h = dialog_box_open("PLT_MENU_DISPLAY_OPTIONS_CONFIRM", "PLT_MENU_DISPLAY_OPTIONS_CONFIRM_TEXT", options, "options_display_confirm", 1, DIALOG_PRIORITY_ACTION, true)
                • pause_options_display_pc.lua, line 898: dialog_box_open("MENU_CHANGES_MADE_TITLE", "MENU_CHANGES_MADE_BODY", options, "options_display_accept_cancel", 2, DIALOG_PRIORITY_SYSTEM_CRITICAL, false, nil, false, false, nil, 2)
                • player_choice_tutorial.lua, line 167: Player_choice_disconnect_dialog_handle = dialog_box_open("MENU_TITLE_WARNING", "DIALOG_PAUSE_DISCONNECT_PROMPT", options, "pc_tutorial_coop_disconnect", 1, DIALOG_PRIORITY_SYSTEM_CRITICAL, true, nil, false, false)
                dialog_box_set_tag false 1
                  dialog_build false 1
                    dialog_characters_ready false 1 1
                    dialog_cleanup false 1
                      dialog_disable_mouse_input false 1 3
                      dialog_ignore_input false 1
                        dialog_init false 1
                          dialog_input false 1 1
                          dialog_input_tab false 1
                            dialog_mouse_click false 1
                              dialog_mouse_move false 1
                                dialog_pause_disconnect false 1
                                  dialog_pause_hide false 1
                                    dialog_pause_input false 1
                                      dialog_pause_show false 1
                                        dialog_populate false 1 18
                                        • dialog.lua, line 610: dialog_populate(handle, DIALOG_WIDGET_TYPE_TITLE, "EULA!")
                                        • dialog.lua, line 611: dialog_populate(handle, DIALOG_WIDGET_TYPE_SPINNER, "Waiting for coop player. Waiting for coop player. Waiting for coop player. Waiting for coop player.")
                                        • dialog.lua, line 613: --dialog_populate(handle, DIALOG_WIDGET_TYPE_TEXT, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus sapien lectus, rhoncus eu malesuada at, sodales sed eros. Sed sollicitudin, lorem sed laoreet convallis, neque tortor placerat diam, vitae accumsan enim ante sit amet turpis. Curabitur tempor posuere mollis. Vivamus quam nisl, ultricies at tempus ut, varius id erat. Integer iaculis enim a velit sodales laoreet ultricies justo tincidunt. Vestibulum sagittis dolor lacus. Quisque varius ultrices risus sed adipiscing. Donec sit amet leo nec nisi mollis sodales. Nullam velit orci, ornare a dignissim quis, luctus in ipsum. Proin convallis felis leo, ac lacinia nunc. Donec eu ligula tellus, a molestie mauris. Quisque rutrum velit eget diam viverra vel congue ligula mollis. Etiam at consectetur nulla. Nunc et semper augue. Maecenas rutrum dui ut metus dapibus venenatis. In hac habitasse platea dictumst. Nullam aliquet metus non nibh porta eget convallis justo tristique. Cras erat augue, facilisis tempor suscipit a, placerat quis risus. ", "YES2", 1)
                                        • dialog.lua, line 614: -- dialog_populate(handle, DIALOG_WIDGET_TYPE_IMAGE, "ui_homie_pierce")
                                        • dialog.lua, line 615: -- dialog_populate(handle, DIALOG_WIDGET_TYPE_IMAGE, "ui_homie_pierce")
                                        • dialog.lua, line 616: -- dialog_populate(handle, DIALOG_WIDGET_TYPE_IMAGE, "ui_hud_inv_melee_bat")
                                        • dialog.lua, line 617: -- dialog_populate(handle, DIALOG_WIDGET_TYPE_SPINNER, "This is some spinner text that i'm using to set everything to..")
                                        • dialog.lua, line 618: -- dialog_populate(handle, DIALOG_WIDGET_TYPE_TEXT, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus sapien lectus, rhoncus eu malesuada at, sodales sed eros. Sed sollicitudin, lorem sed laoreet convallis, neque tortor placerat diam, vitae accumsan enim ante sit amet turpis. Curabitur tempor posuere mollis. Vivamus quam nisl, ultricies at tempus ut, varius id erat. Integer iaculis enim a velit sodales laoreet ultricies justo tincidunt. Vestibulum sagittis dolor lacus. Quisque varius ultrices risus sed adipiscing. Donec sit amet leo nec nisi mollis sodales. Nullam velit orci, ornare a dignissim quis, luctus in ipsum. Proin convallis felis leo, ac lacinia nunc. Donec eu ligula tellus, a molestie mauris. Quisque rutrum velit eget diam viverra vel congue ligula mollis. Etiam at consectetur nulla. Nunc et semper augue. Maecenas rutrum dui ut metus dapibus venenatis.", 0)
                                        • dialog.lua, line 620: -- dialog_populate(handle, DIALOG_WIDGET_TYPE_TEXT, "This is a block of text that we are using to represent word wrap. and more complicated matters", "YES2", 1)
                                        • dialog.lua, line 622: --dialog_populate(handle, DIALOG_WIDGET_TYPE_TEXT, "This is a block of text that we are using to", "YES2", 1)
                                        • dialog.lua, line 623: --dialog_populate(handle, DIALOG_WIDGET_TYPE_SPINNER, "This is some spinner text that i'm using to set everything to..")
                                        • dialog.lua, line 624: -- dialog_populate(handle, DIALOG_WIDGET_TYPE_OPTION, "ZOMG WHAT UP?!", nil, 0)
                                        • dialog.lua, line 625: dialog_populate(handle, DIALOG_WIDGET_TYPE_OPTION, "ACCEPT", "", 0)
                                        • dialog.lua, line 626: -- dialog_populate(handle, DIALOG_WIDGET_TYPE_OPTION, "REALLY LONG O...", "FORTYNINE", 1)
                                        • dialog.lua, line 628: dialog_populate(handle, DIALOG_WIDGET_TYPE_OPTION, "ZOMG REALLY LONG TEXT", "YES2", 0)
                                        • dialog.lua, line 629: -- dialog_populate(handle, DIALOG_WIDGET_TYPE_OPTION, "RAD2", "NO...", 4)
                                        • dialog.lua, line 630: -- dialog_populate(handle, DIALOG_WIDGET_TYPE_OPTION, "RAD2", "NOKAY", 5)
                                        • dialog.lua, line 631: -- dialog_populate(handle, DIALOG_WIDGET_TYPE_OPTION, "RAD2", "NOKAY", 6)
                                        dialog_select_next false 1
                                          dialog_test_populate false 1 1
                                          dialog_text_update false 1
                                            disable_generators_cb false 1
                                              disable_generators_cleanup false 1
                                                disable_generators_monitor_thread false 1
                                                  disable_generators_run false 1
                                                    display_mode_change_failure_callback false 1
                                                      do_define_test false 1
                                                        do_dialogue false 1 1
                                                        do_dialogue_wrapper false 1 18
                                                        • sr4_5_city.lua, line 972: do_dialogue_wrapper( talk_trig, sr4_5_city_trigger.kinzie_sex.name, "num_kinzie_talks", "kinzie", "Kinzie_01" )
                                                        • sr4_5_city.lua, line 973: --do_dialogue_wrapper( sr4_5_city_trigger.talk_to_kinzie.name, sr4_5_city_trigger.kinzie_sex.name, "num_kinzie_talks", "kinzie", "Kinzie_01", "kinzie_dlg_aft_player01", "kinzie_dlg_aft_cam02a", "kinzie_dlg_aft_cam02b")
                                                        • sr4_5_city.lua, line 977: do_dialogue_wrapper( talk_trig, sr4_5_city_trigger.pierce_sex.name, "num_pierce_talks", "pierce", "Pierce_01" )
                                                        • sr4_5_city.lua, line 978: --do_dialogue_wrapper( sr4_5_city_trigger.talk_to_pierce.name, sr4_5_city_trigger.pierce_sex.name, "num_pierce_talks", "pierce", "Pierce_01", "pierce_dlg_pool_player01", "pierce_dlg_pool_cam01a", "pierce_dlg_pool_cam01b")
                                                        • sr4_5_city.lua, line 982: do_dialogue_wrapper( talk_trig, sr4_5_city_trigger.shaundi_sex.name, "num_shaundi_talks", "shaundi", "Shaundi_01" )
                                                        • sr4_5_city.lua, line 983: --do_dialogue_wrapper( sr4_5_city_trigger.talk_to_shaundi.name, sr4_5_city_trigger.shaundi_sex.name, "num_shaundi_talks", "shaundi", "Shaundi_01", "shaundi_dlg_brdg_player01", "shaundi_dlg_brdg_cam02a", "shaundi_dlg_brdg_cam02b")
                                                        • sr4_5_city.lua, line 987: do_dialogue_wrapper( talk_trig, sr4_5_city_trigger.asha_sex.name, "num_asha_talks", "asha", "Asha_01" )
                                                        • sr4_5_city.lua, line 988: --do_dialogue_wrapper( sr4_5_city_trigger.talk_to_asha.name, sr4_5_city_trigger.asha_sex.name, "num_asha_talks", "asha", "Asha_01", "asha_dlg_bag_player01", "asha_dlg_bag_cam01a", "asha_dlg_bag_cam01b")
                                                        • sr4_5_city.lua, line 992: do_dialogue_wrapper( talk_trig, sr4_5_city_trigger.ben_king_sex.name, "num_benking_talks", "benking", "Ben_King_01" )
                                                        • sr4_5_city.lua, line 993: --do_dialogue_wrapper( sr4_5_city_trigger.talk_to_ben.name, sr4_5_city_trigger.ben_king_sex.name, "num_benking_talks", "benking", "Ben_King_01", "benking_dlg_messhall_player01", "benking_dlg_messhall_cam01a", "benking_dlg_messhall_cam01b")
                                                        • sr4_5_city.lua, line 997: do_dialogue_wrapper( talk_trig, sr4_5_city_trigger.cid_sex.name, "num_cid_talks", "cid", "CID_01" )
                                                        • sr4_5_city.lua, line 998: --do_dialogue_wrapper( sr4_5_city_trigger.talk_to_cid.name, sr4_5_city_trigger.cid_sex.name, "num_cid_talks", "cid", "CID_01", "cid_dlg_storage_player01", "cid_dlg_storage_cam01a", "cid_dlg_storage_cam01b")
                                                        • sr4_5_city.lua, line 1002: do_dialogue_wrapper( talk_trig, sr4_5_city_trigger.vp_sex.name, "num_keithdavid_talks", "keithdavid", "VP_01" )
                                                        • sr4_5_city.lua, line 1003: --do_dialogue_wrapper( sr4_5_city_trigger.talk_to_vp.name, sr4_5_city_trigger.vp_sex.name, "num_keithdavid_talks", "keithdavid", "VP_01", "vp_dlg_brdg_player01", "vp_dlg_brdg_cam01a", "vp_dlg_brdg_cam01b")
                                                        • sr4_5_city.lua, line 1007: do_dialogue_wrapper( talk_trig, sr4_5_city_trigger.matt_sex.name, "num_matt_talks", "matt", "Matt_Miller_01" )
                                                        • sr4_5_city.lua, line 1008: --do_dialogue_wrapper( sr4_5_city_trigger.talk_to_matt.name, sr4_5_city_trigger.matt_sex.name, "num_matt_talks", "matt", "Matt_Miller_01", "matt_dlg_storage_player", "matt_dlg_storage_cam01a", "matt_dlg_storage_cam01b")
                                                        • sr4_5_city.lua, line 1012: do_dialogue_wrapper( talk_trig, sr4_5_city_trigger.gat_sex.name, "num_gat_talks", "gat", "Johnny_Gat_01" )
                                                        • sr4_5_city.lua, line 1013: --do_dialogue_wrapper( sr4_5_city_trigger.talk_to_gat.name, sr4_5_city_trigger.gat_sex.name, "num_gat_talks", "gat", "Johnny_Gat_01", "gat_dlg_deck_player01", "gat_dlg_deck_cam01a", "gat_dlg_deck_cam01b")
                                                        do_sex false 1 17
                                                        • sr4_5_city.lua, line 1153: do_sex( node_table, contact_trig, npc, flag, anim, anim_duration )
                                                        • sr4_5_city.lua, line 1156: --do_sex( "asha_sex_nav", false, sr4_5_city_trigger.asha_sex.name, sr4_5_city_trigger.talk_to_asha.name, "", "", "", "", 14.0, "asha_baglean", true )
                                                        • sr4_5_city.lua, line 1168: do_sex( node_table, contact_trig, npc, flag, anim, anim_duration )
                                                        • sr4_5_city.lua, line 1171: --do_sex( "ben_king_sex_nav", true, sr4_5_city_trigger.ben_king_sex.name, sr4_5_city_trigger.talk_to_ben.name, "ben_king_trigger", "Ben_King_01", "flag_benking_sex", "FuckBuddy King", 32.5, "King_leaning", true )
                                                        • sr4_5_city.lua, line 1183: do_sex( node_table, contact_trig, npc, flag, anim, anim_duration )
                                                        • sr4_5_city.lua, line 1186: --do_sex( "cid_sex_nav", false, sr4_5_city_trigger.cid_sex.name, sr4_5_city_trigger.talk_to_cid.name, "cid_trigger", "CID_01", "flag_cid_sex", "FuckBuddy Cid", 10.25, nil, nil )
                                                        • sr4_5_city.lua, line 1198: do_sex( node_table, contact_trig, npc, flag, anim, anim_duration )
                                                        • sr4_5_city.lua, line 1201: --do_sex( "johnny_gat_sex_nav", true, sr4_5_city_trigger.gat_sex.name, sr4_5_city_trigger.talk_to_gat.name, "johnny_gat_trigger", "Johnny_Gat_01", "flag_gat_sex", "FuckBuddy Gat", 33.0, "Ship_Gat_Locker", true )
                                                        • sr4_5_city.lua, line 1213: do_sex( node_table, contact_trig, npc, flag, anim, anim_duration )
                                                        • sr4_5_city.lua, line 1216: --do_sex( "kinzie_sex_nav", false, sr4_5_city_trigger.kinzie_sex.name, sr4_5_city_trigger.talk_to_kinzie.name, "kinzie_trigger", "Kinzie_01", "flag_kinzie_sex", "FuckBuddy Kinzie", 5.5, "kinzie_typing", true )
                                                        • sr4_5_city.lua, line 1228: do_sex( node_table, contact_trig, npc, flag, anim, anim_duration )
                                                        • sr4_5_city.lua, line 1231: --do_sex( "matt_miller_sex_nav", false, sr4_5_city_trigger.matt_sex.name, sr4_5_city_trigger.talk_to_matt.name, "matt_miller_trigger", "Matt_Miller_01", "flag_matt_sex", "FuckBuddy Matt", 20.5, "Matt_ship_couch", true )
                                                        • sr4_5_city.lua, line 1243: do_sex( node_table, contact_trig, npc, flag, anim, anim_duration )
                                                        • sr4_5_city.lua, line 1246: --do_sex( "pierce_sex_nav", false, sr4_5_city_trigger.pierce_sex.name, sr4_5_city_trigger.talk_to_pierce.name, "pierce_trigger", "Pierce_01", "flag_pierce_sex", "FuckBuddy Pierce", 13.75, "Pierce_couch", true )
                                                        • sr4_5_city.lua, line 1258: do_sex( node_table, contact_trig, npc, flag, anim, anim_duration )
                                                        • sr4_5_city.lua, line 1261: --do_sex( "shaundi_sex_nav", false, sr4_5_city_trigger.shaundi_sex.name, sr4_5_city_trigger.talk_to_shaundi.name, "shaundi_trigger", "Shaundi_01", "flag_shaundi_sex", "FuckBuddy Shaundi", 32.0, nil, nil )
                                                        • sr4_5_city.lua, line 1273: do_sex( node_table, contact_trig, npc, flag, anim, anim_duration )
                                                        do_test_dialog false 1
                                                          drag_scrolltab false 1 24
                                                          • cell_cheats.lua, line 471: local new_start_index = Cheats_list.scrollbar:drag_scrolltab(mouse_y, Cheats_list.num_buttons - (Cheats_list.max_buttons - 1))
                                                          • cell_missions.lua, line 2670: local new_start_index = scrollbar:drag_scrolltab(mouse_y, max_items)
                                                          • cell_missions.lua, line 2684: local new_start_index = scrollbar:drag_scrolltab(mouse_y, max_items)
                                                          • cell_phone.lua, line 1137: Visible_start_idx = Scrollbar:drag_scrolltab(mouse_y, #Homie_data)
                                                          • cell_phone.lua, line 1159: local new_start_index = Garage_list.scrollbar:drag_scrolltab(mouse_y, Garage_list.num_buttons - (Garage_list.max_buttons - 1))
                                                          • cell_playlist.lua, line 1108: local new_start_index = List_left.scrollbar:drag_scrolltab(mouse_y, List_left.num_buttons - (List_left.max_buttons - 1))
                                                          • cell_playlist.lua, line 1111: local new_start_index = List_right.scrollbar:drag_scrolltab(mouse_y, List_right.num_buttons - (List_right.max_buttons - 1))
                                                          • cell_saintsbook.lua, line 788: local new_start_index = Cell_saintsbook_main_scrollbar:drag_scrolltab(mouse_y, Cell_saintsbook_item_count - 3)
                                                          • col_main.lua, line 931: local new_start_index = Active_list.scrollbar:drag_scrolltab(mouse_y, Active_list.num_buttons - (Active_list.max_buttons - 1))
                                                          • game_lobby.lua, line 1035: local new_start_index = scrollbar:drag_scrolltab(mouse_y, max_items)
                                                          • pause_invite_friends.lua, line 730: local new_start_index = List.scrollbar:drag_scrolltab(mouse_y, List.num_buttons - (List.max_buttons - 1))
                                                          • pause_options_clip_select.lua, line 263: local new_start_index = List.scrollbar:drag_scrolltab(mouse_y, List.num_buttons - (List.max_buttons - 1))
                                                          • pause_options_controls.lua, line 501: local new_start_index = scrollbar:drag_scrolltab(mouse_y, max_items)
                                                          • pause_options_difficulty.lua, line 391: local new_start_index = List.scrollbar:drag_scrolltab(mouse_y, List.num_buttons - (List.max_buttons - 1))
                                                          • pause_options_display_pc.lua, line 1003: local new_start_index = List.scrollbar:drag_scrolltab(mouse_y, List.num_buttons - (List.max_buttons - 1))
                                                          • pause_options_remap.lua, line 491: local new_start_index = List.scrollbar:drag_scrolltab(mouse_y, List.num_buttons - (List.max_buttons - 1))
                                                          • pause_save_game.lua, line 776: local new_start_index = Save_load_list.scrollbar:drag_scrolltab(mouse_y, Save_load_list.num_buttons - (Save_load_list.max_buttons - 1))
                                                          • store_character.lua, line 3215: local new_start_index = Store_common_color_grid.scrollbar:drag_scrolltab(mouse_y, Store_common_color_grid.rows - (Store_common_color_grid.max_height - 1))
                                                          • store_clothing.lua, line 2318: local new_start_index = Store_common_color_grid.scrollbar:drag_scrolltab(mouse_y, Store_common_color_grid.rows - (Store_common_color_grid.max_height - 1))
                                                          • store_common.lua, line 830: local new_start_index = Active_list.scrollbar:drag_scrolltab(mouse_y, Active_list.num_buttons - (Active_list.max_buttons - 1))
                                                          • store_tattoo.lua, line 863: local new_start_index = Store_common_color_grid.scrollbar:drag_scrolltab(mouse_y, Store_common_color_grid.rows - (Store_common_color_grid.max_height - 1))
                                                          • store_vehicle.lua, line 3335: local new_start_index = Store_common_color_grid.scrollbar:drag_scrolltab(mouse_y, Store_common_color_grid.rows - (Store_common_color_grid.max_height - 1))
                                                          • store_weapon.lua, line 3536: local new_start_index = Store_common_color_grid.scrollbar:drag_scrolltab(mouse_y, Store_common_color_grid.rows - (Store_common_color_grid.max_height - 1))
                                                          • vint_bugs.lua, line 148: local new_start_index = Bugs_megalist.scrollbar:drag_scrolltab(mouse_y, Bugs_megalist.num_buttons - (Bugs_megalist.max_buttons - 1))
                                                          draw_items false 5 133
                                                          draw_item_range false 1 2
                                                          draw_single_item false 1 6