Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: Seltzer Cole on May 06, 2013, 03:55:09 pm

Title: [RESOLVED] RMXP Inventory Script
Post by: Seltzer Cole on May 06, 2013, 03:55:09 pm
I was looking through the various menu/inventory scripts on here and noticed that all of them either have nothing I am looking for or exactly what I am looking for but with tons of extra things added that I can't seem to get rid of. I tried eventing my own menu and it works, but the annoying process of eventing variables so the game can keep track of items and how many of each item you have is excruciating. So I need a script...

What I am looking for...
I am looking for a script for RMXP that is very basic and simple. I have the menu disabled in my game and I use my own custom menu through eventing but I need a scripted "Item" menu. Just the simple touch of a key on the keyboard brings up your items only, not stats or equipment or any of that BS. Just a simple item menu script that keeps track of items you pick up and how many of each you have ranging from 0 to 99. I do not need a discard, description, or any of that for the items. Just a simple menu where the player can go through their items to see what they got. Idk if this info helps but the description, use, or discard I have set through common event via pressing C "Enter" on an item. So no need to add that stuff.

I use RMXP and the only script I have in my game is one that automatically makes your game go full screen when you start it so I don't think there will be issues with your script counteracting with my game in a negative way. Not sure how scripting works but just let me know if you are someone who can make this happen! =P

Oh and I was also thinking that maybe a script that ONLY calls your items (The pre-set item menu RMXP comes with) and closes without backing to the main menu, that may be a workout and exactly what I am looking for. Idk if that is possible though considering I have the menu disabled but if it is possible that would be amazing. THANKS!
Title: Re: RMXP Inventory Script (Help!)
Post by: Zexion on May 06, 2013, 05:59:42 pm
So basically you would be fine with the normal item menu, but you don't want it to go to the main menu on exit? You also want to be able to call this through a button/your evented menu right?
Title: Re: RMXP Inventory Script (Help!)
Post by: Seltzer Cole on May 06, 2013, 09:15:50 pm
Quote from: Zexion on May 06, 2013, 05:59:42 pm
So basically you would be fine with the normal item menu, but you don't want it to go to the main menu on exit? You also want to be able to call this through a button/your evented menu right?


The normal item menu would be fine. No main menu on exit, I did away with the main menu in my game, but just the item menu is fine, and yeah when you press exit it just exits the item menu back out to the game, it does not go to the main menu. I would call this from a keyboard button yeah. It can be preset or set to whatever key you would like for the script. The items inside the menu i set up through common events, I just need a script that when you press a button it calls the items menu and when you exit the items menu it exits back out to the game, i am trying to bypass the menu because I dont use it. My evented menu is something separate. Don't confuse my evented menu with items calling common events. =D

Sorry, trying not to be complicated but I understand if I am sounding such.
Title: Re: RMXP Inventory Script (Help!)
Post by: G_G on May 06, 2013, 09:33:23 pm
Go into Scene_Item, line 71. Change this:
$scene = Scene_Menu.new(0)

to this
$scene = Scene_Map.new


Then to open the item menu through your events, use a Script Call:
$scene = Scene_Item.new
Title: Re: RMXP Inventory Script (Help!)
Post by: Seltzer Cole on May 07, 2013, 01:44:42 am
Quote from: gameus on May 06, 2013, 09:33:23 pm
Go into Scene_Item, line 71. Change this:
$scene = Scene_Menu.new(0)

to this
$scene = Scene_Map.new


Then to open the item menu through your events, use a Script Call:
$scene = Scene_Item.new



Works like a charm. Very very useful indeed =D
Even works with "Change Menu Access" to disable or whatever. Now I can call save or call title screen to quit game. Thanks a bunch!