Main Menu
  • Welcome to The RPG Maker Resource Kit.

Limited Inventory

Started by modern algebra, April 27, 2009, 10:11:22 PM

0 Members and 3 Guests are viewing this topic.

Grafikal

Lol, I was just thinking like, click it once (Message box pops up "Equip this?" [yes, no], then if yes, it'll just unequip what ever you have on at the moment and put that on instead.) I wasn't thinking new windows and crazy stuff lol.

modern algebra

What if it's Two Swords Style?

Not to mention that it would automatically make the script incompatible with any scripts that alter equipment, such as Usable Equipment, Extra Equipment, new Equipment scenes, etc...

SeMcDun

Hey me again MA.

I found another glitch :P

If I have too many items... I can go to discard and they go into the Loot window yeh? BUT, I can leave the menu then aquire more items and repeat this process to have as many items as I want. See what I mean? It's like the Loot window is another Item menu with unlimited slots :P

Just thought I'd let you know, because this script is pretty banging haha (good)

Thanks.

modern algebra

I';m not receiving that error when I test. Is the warning window not coming up?

SeMcDun

Is a warning message meant to come up so that you can't leave the item menu when the loot menu is up?

No error comes up or anything =/ I'm just allowed to leave items in the loot window to free up inventory slots.

modern algebra

I attached a picture.

If you have a script which overwrites return_scene of Scene_Item, then it would skip it. Do you have Yanfly's Scene Menu Redux or any Custom Commands script, by chance?

For now, try putting the Limited Inventory script below the menu script. If that causes problems, I will look into it, but hopefully it will resolve your error.

SeMcDun

Yeh that's it fixed man, just moved the Scene Redux below Limited Items like you said and it works like a charm.

Thank you very much :D

adamass

Hi there. I love this script but I need to tell about a bug.
Here is the setting:
-Your inventory is full
-Lets say find a leather shield and wanna take it in exchange of anything in your inventory.
-Once the trade is done and you get the leather shield,
you want to equip it for you hero.
-BUG IS even tho you do HAVE the item listed in inventory, it just does not appear in the equip screen, nor is it equipable for anyone normally able to.
-I double checked the classes compatibility, nothing to do with it.

There you go.

I admire all your scripts nonetheless. Genius you are dude!

modern algebra

There must be a hash updating problem when gaining item through the loot. Thanks for the report; I will look into it.

adamass

Quote from: modern algebra on September 01, 2009, 12:54:25 PM
There must be a hash updating problem when gaining item through the loot. Thanks for the report; I will look into it.

Very nice of you Modern because I'd really like to use your script for my game :)

Also, about limited inventories (just asking by the way)... I was wondering if you planned to create a script to
limit inventories à la Dragon Quest. You know, each character with limited carryable items(equiped items included), useable by them in battle according to they very own inventory (can't explain better, gotta play DQ to know otherwise. Indeed, if you ask me, THAT would be the perfect ''limited items'' script ever my friend. Just telling :-X

modern algebra

I have no plans currently to make an individual limited inventories script as of now, but my Grid Inventory script has those capabilities. Obviously, it's quite different graphically and may not be what you are looking for, though.

modern algebra

Updated to Version 1.1b

Fixed the bug where the hash was not updating when gaining or destroying items through loot.

munkis

Would it be possible to add a "hero chest" feature to this script?  Let me explain what I mean:

I make a chest through quick event creation.  Then I go into the event and remove the "Show Text" and "Change Items" commands.  Finally I add a script call that would take the form of "$scene = Hero_Chest.new" or something like that.

Other than that, it's perfect!

modern algebra

It's a good idea and definitely possible. I did much the same thing with my Grid Inventory.

In any case, I will put it on my To Do list (which is unfortunately very long, so it might be a while)

munkis

I don't suppose there's a way to limit the amount of stacks? i.e.: in a inventory with 99 slots, you can only have, say, 3 stacks of potions.

modern algebra


munkis

Might not be a bad idea to add that then...

munkis

Just curious as to how far along you are with my requests...

modern algebra

Nowhere. I haven't worked on it at all. And I have a lot more to do before I will even look at it. Plus, I'm playing Dragon Age now so I probably won't do any scripting for a while.

munkis

#44
Actually, I've just come across (and implemented) a different "hero chest" system.  So no worries!  However, I am having a minor issue with this and KGC_CategorizeItem.  For the most part they work together, but when I select a category, it automatically uses the first item in that category rather than simply going into it.

Krmona

Hi.
I'm a brazilian maker and I don't write english very good. I'm using the Babel Fish Tradutor  ;D
I would like to know if I could take this script until my Brazilian community Reino RPG

Thanks  :lol:

Grafikal

Oh, I've seen that website before. It's a very nice website. I would imagine that ModernAlgebra would allow you to post it on that website as long as you credit him as the creator and placed a link to this webpage incase someone would need help with the script.

Krmona

Yes! All credits for he and me (I translated the script to portuguese) and I will place a link to this site  ;)

All rights reserved  ;D

modern algebra

Yeah, that's fine with me :) Like grafikal said, I would appreciate the link to this site, but by all means you can post it on reinorpg.

h3llh0und

#49
Lol, edited the post and forgot to say what is this xD

this is a fix for those who are using Kgc's categorize item script
they will work fine now, just put kgc BEFORE this one (dunno if this matter but just do it)




Discard the other one, just found a better way to do it
Quote
====
on this line  (805 +/-)

class Scene_Item
 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 # * Start processing
 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 def start
   super
   create_menu_background
   @activated_frame = false


do this

class Scene_Item
 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 # * Start processing
 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 def start
   super
   @@btpresses = 0
   create_menu_background
   @activated_frame = false



then search for " Input.trigger?(Input::C) "

you'll get this line

elsif Input.trigger?(Input::C)
     # If exchanging
     if @loot_window.index > -1 && @item_window.active
       slot = @active_window.ma_grfkl_lim_nvtry_item_8rn


change to...

elsif Input.trigger?(Input::C)
     # If exchanging
     if @@btpresses == 0 then @@btpresses += 1 and return end
     if @loot_window.index > -1 && @item_window.active
       slot = @active_window.ma_grfkl_lim_nvtry_item_8rn


now do the same search again for the second line

elsif Input.trigger?(Input::C)
     if @active_window == @item_window
       case @command_window.index


change to

elsif Input.trigger?(Input::C)
     if @@btpresses == 0 then @@btpresses += 1 and return end
     if @active_window == @item_window
       case @command_window.index



and that's it

not the best fix but it does work.