Saints Row 2 Function Reference

Global functions

These functions are assumed to be globally available to all scripts (they aren't defined in the available Lua files, or are defined in files that are known to be always loaded).

This list is assumed incomplete; additional functions could exist in the exe but not be used in the game scripts, and there's no definitive list of Lua files that are always loaded.

Function name Global Defined in Examples from patch (click blue number to expand)
imp_aggressive_tutorial_ai_enable true
    2
    imp_attack_face true
      2
      imp_jump_occasionals_enable true
        4
        ingame_effect_add_trigger true
          1
          ingame_effect_remove_trigger true
            1
            inv_has_item true
              3
              inv_item_add_do true
                2
                inv_item_equip true
                  11
                  inv_item_remove true
                    4
                    inv_item_remove_all true
                      2
                      inv_weapon_add_temporary true
                        20
                        inv_weapon_disable_all_but_this_slot true
                          6
                          inv_weapon_disable_all_slots true
                            5
                            inv_weapon_remove_temporary true
                              26
                              item_show true
                                1