Bypassing the category window when selecting Items

Status
Not open for further replies.

RazeyMclovin

Villager
Member
Joined
Mar 1, 2014
Messages
13
Reaction score
1
First Language
English
Primarily Uses
Hello all. I hope somebody can help me. I am making an adventure/puzzle game which doesn't use a lot of the built in stuff like Weapons, armour and classes. In my in-game menu I have "Items", "Save" and "Quit" as the only options. I have removed the status window as well as the gold counter. Within the "Items" option, as you may know, you have sub-categories consisting of Items, Weapons, Armours and Key Items I think. I edited it so Items is the only thing available. Anyhoo, the problem I am having is that when I press "Items" it takes me to the sub-category screen, even though I only have one option... That being "Item." How can I make it so as soon as I press "Item" from the menu, it goes into the items category automatically?
 

Yato

(aka Racheal)
Veteran
Joined
Mar 17, 2012
Messages
825
Reaction score
346
Primarily Uses
Assuming you aren't using a custom menu outside of the changes you mentioned, here's a little scriptlet you can insert in the Materials section to remove the category window.

Code:
class Scene_Item < Scene_ItemBase  #--------------------------------------------------------------------------  # * Start Processing  #--------------------------------------------------------------------------  def start    super    create_help_window    create_item_window  end  #--------------------------------------------------------------------------  # * Create Item Window  #--------------------------------------------------------------------------  def create_item_window    wy = @help_window.height    wh = Graphics.height - wy    @item_window = Window_ItemList.new(0, wy, Graphics.width, wh)    @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(:return_scene))    @item_window.category = :item    @item_window.activate    @item_window.select_last  endend
 

RazeyMclovin

Villager
Member
Joined
Mar 1, 2014
Messages
13
Reaction score
1
First Language
English
Primarily Uses
That actually did the trick. Thanks!
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
'Search' would have helped you find this one, too. It's been asked and answered several times.


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

Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,019
Members
137,564
Latest member
McFinnaPants
Top