So... My request is simple. I'm looking for a a script that allows the player to have an additional command (in the same place as commands "Fight" and "Run") that allows him to view his inventory (mostly things like Key Items, because you can see Consumables just by choosing an actor to use an item in battle) during the battle.
Looking for a script that allows to view player's inventory during battle.
RGSS3 Script RequestsI've moved this thread to Script Requests. Thank you.
Do you want it a "view-only" or you can actually use "key items" in battle?
If you could, please show me scripts for both options. If not, "view only" is enough.
*BUMP*
The man is usually busy. Please be patient.
To be a crystal clear, I never promise to make one. I just help you to explain your request by asking in case someone would make one or found one.
EDIT:
Anyway, here's a barebones code
Code:
class Window_PartyCommand
alias theo_makecommand_list make_command_list
def make_command_list
theo_makecommand_list
add_command("Item", :item)
end
end
class Window_BattleItem
attr_accessor :key_item
alias theo_item_include? include?
def include?(item)
return item.is_a?(RPG::Item) && item.key_item? if key_item
return $game_party.usable?(item)
end
end
class Scene_Battle
alias theo_cmd_item command_item
def command_item
@item_window.key_item = false
theo_cmd_item
end
def command_item_from_party
@item_window.key_item = true
theo_cmd_item
end
alias theo_onitem_cancel on_item_cancel
def on_item_cancel
theo_onitem_cancel
if @item_window.key_item
@actor_command_window.deactivate
@party_command_window.activate
end
end
alias theo_scene_start start
def start
theo_scene_start
@party_command_window.set_handler(:item, method(:command_item_from_party))
end
end
Thank you <3
Oh, and sorry for ping...
Oh, and sorry for ping...
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/looking-for-a-script-that-allows-to-view-players-inventory-during-battle.121598/