Non-Rpg Inventory menu

Hello everyone ,

Me and my friend are starting a horror game and we've been encountering many issues while trying to make an Inventory by eventing , that's why I'm looking for you guys to make a script out of this concept :

In our game , you can only save at some points so we won't need the save option and certainly not skills nor equipment but only an item selection interface which pops up by pressing , let's say X.

This interface contains a total of 15 item slots , 3 rows and 5 columns and we have a slot selector controlled by the arrows .

By selecting an item and pressing confirm , we want it to be equipped (only one item can be equipped at once).

Equipping a certain item and not another will triggers some events and solve some puzzles (If you equip a bat , you can break the glass).

We also couldn't figure out how to link this interface to the database or maybe we don't need that ?

I hope you can help us out with this.

The Background and the slot selector are attached in case you'd need them.

(Sorry if my english is a pain to read  :| )

Inventory.png

Inventory_Selector.png
You said 3 rows and 5 columns, right?

req.jpg


Equipped item will draw in different color.

If you want a better menu, then make a mockup
Can you please give me the script with some instructions so I can use my background and selector ?
If you say so

Code:
# -------------------------------------------------------------------------# RMWeb Request - Non RPG Inventory# By : TheoAllen# -------------------------------------------------------------------------  EquipVariable_ID = 1# Equipped item id will be recorded in variable in an id that you choose. It# can be used for conditional branch  EquippedColor    = 24# Equipped item will be drawn in color code that you choose. This color code# is same as \C[n] in message# -------------------------------------------------------------------------class Scene_Map < Scene_Base  def call_menu    Sound.play_ok    SceneManager.call(Scene_Item)  endendclass Window_ItemList < Window_Selectable    alias non_rpg_init initialize  def initialize(*args)    non_rpg_init(*args)    self.category = :item  end    def col_max    return 5  end    def row_max    return 3  end    def draw_item_name(item, x, y, enabled = true, width = 172)    return unless item    draw_icon(item.icon_index, x, y, enabled)    if item.id == $game_variables[EquipVariable_ID]      change_color(text_color(EquippedColor),enabled)    else      change_color(normal_color, enabled)    end    draw_text(x+24,y,item_rect_for_text(index).width,line_height,item.name)  end    def enable?(item)    return true  end    def draw_item_number(rect, item)  end    def spacing    return 4  end  endclass Scene_Item < Scene_ItemBase    def start    super    create_help_window    create_item_window  end    def create_item_window    wh = Font.default_size * 4    @item_window = Window_ItemList.new(0, 0, Graphics.width, wh)    @item_window.y = Graphics.height/2 - @item_window.height/2    @item_window.viewport = @viewport    @item_window.help_window = @help_window    @item_window.set_handler(:ok,     method(:on_item_ok))    @item_window.set_handler(:cancel, method(:on_item_cancel))    @item_window.activate    @item_window.select(0)    @help_window.opacity = 0  end    def on_item_ok    Sound.play_ok    $game_variables[EquipVariable_ID] = item.id    @item_window.activate    @item_window.refresh  end    def on_item_cancel    Sound.play_cancel    return_scene  end  end

Original thread: https://forums.rpgmakerweb.com/threads/non-rpg-inventory-menu.16823/