Looking for a script that allows to view player's inventory during battle.

Status
Not open for further replies.

JavaUpdate

A new version of Java is ready to be installed!
Veteran
Joined
May 15, 2020
Messages
43
Reaction score
1
First Language
Polish
Primarily Uses
RMVXA
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.
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
14,768
Reaction score
8,192
First Language
English
Primarily Uses
RMMV

I've moved this thread to Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.

 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,266
Reaction score
6,008
First Language
Indonesian
Primarily Uses
RMVXA
Do you want it a "view-only" or you can actually use "key items" in battle?
 

JavaUpdate

A new version of Java is ready to be installed!
Veteran
Joined
May 15, 2020
Messages
43
Reaction score
1
First Language
Polish
Primarily Uses
RMVXA
If you could, please show me scripts for both options. If not, "view only" is enough.
 

JavaUpdate

A new version of Java is ready to be installed!
Veteran
Joined
May 15, 2020
Messages
43
Reaction score
1
First Language
Polish
Primarily Uses
RMVXA

JavaUpdate

A new version of Java is ready to be installed!
Veteran
Joined
May 15, 2020
Messages
43
Reaction score
1
First Language
Polish
Primarily Uses
RMVXA

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,266
Reaction score
6,008
First Language
Indonesian
Primarily Uses
RMVXA
*BUMP*

Ehm... @TheoAllen ? R U there?
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
 
Last edited:

JavaUpdate

A new version of Java is ready to be installed!
Veteran
Joined
May 15, 2020
Messages
43
Reaction score
1
First Language
Polish
Primarily Uses
RMVXA
Thank you <3

Oh, and sorry for ping...
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
6,734
Reaction score
4,573
First Language
Dutch
Primarily Uses
RMXP

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.

 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

made a bio for the protag in my project!
Beggar : "I haven't eat for days..."
Kid : "Just do crime! You will get daily necessity for free in prison~"
Stream is a bit late but will be live shortly with some game development! Feel free to drop by!
omg, why persona 5 is so good?

Forum statistics

Threads
99,158
Messages
962,429
Members
130,725
Latest member
teendinsaikha
Top