Main Menu
  • Welcome to The RPG Maker Resource Kit.

Grid Inventory Glitch?

Started by bunnies, July 17, 2010, 03:07:17 PM

0 Members and 1 Guest are viewing this topic.

bunnies

In regards to modern algebra's Grid Inventory:
How do I make it so when an item is received and inventory is full, the item doesn't go into loot, instead it says "inventory full" or something. because if a player needs to take a quest item and his inventory is full it goes into loot and is forced to be destroyed...creating an unwinnable quest...

Mr_Wiggles

How come you didn't post this in the thread where the script is? MA would probably be the only one that could help you, and he is more likely to see this if it was where he posted the script.
[spoiler]
METALFRESH is a paint contractor that specializes in refinishing metal and vinyl siding. We paint metal buildings as well as siding on homes.

We also

    Refinish decks
    Do custom interior painting
    Strip wallpaper
    Refinish cedar siding
    Metal front doors and sidelights
    Metal garage and service doors
    Grained fiberglass doors

    If your structure is *RUSTED *FADED *CHALKING *IN NEED OF COLOR CHANGE, we can fix it with a guarentee!

northern Illinois and southern Wisconsin.

http://metalfreshcoatings.com

[/spoiler]

modern algebra

That's not a glitch. I even say in the instructions for the \nondiscard option that "If the item is in loot, it can still be destroyed." I certainly wouldn't go to the lengths you are asking for and create an alternate system of looting, assumedly by making items that don't fit fall onto the floor and become their own item drops.

One thing that you can do if you want to make sure that can't happen, is go to around line 2664 of the script and see this:


        @warning_window.index = 1
        @warning_window.active = true
        @warning_window.visible = true
        @help_window.draw_item_list (@loot)


replace it with


        non_discard = false
        for place in @loot.placements
          non_discard = true if !place.item.discardable?
        end
        unless non_discard
          @warning_window.index = 1
          @warning_window.active = true
          @warning_window.visible = true
          @help_window.draw_item_list (@loot)
        end


What that will do is prevent the player from exiting the inventory if a non-discardable item is in loot.

Mitsarugi

sorry to ask here, but could you do the same for your limited inventory script MA?
like it opens the window and you can't quite it till you've discarded the item you have to much?

bunnies

Quote from: modern algebra on July 18, 2010, 03:17:03 PM
That's not a glitch. I even say in the instructions for the \nondiscard option that "If the item is in loot, it can still be destroyed." I certainly wouldn't go to the lengths you are asking for and create an alternate system of looting, assumedly by making items that don't fit fall onto the floor and become their own item drops.

One thing that you can do if you want to make sure that can't happen, is go to around line 2664 of the script and see this:


        @warning_window.index = 1
        @warning_window.active = true
        @warning_window.visible = true
        @help_window.draw_item_list (@loot)


replace it with


        non_discard = false
        for place in @loot.placements
          non_discard = true if !place.item.discardable?
        end
        unless non_discard
          @warning_window.index = 1
          @warning_window.active = true
          @warning_window.visible = true
          @help_window.draw_item_list (@loot)
        end


What that will do is prevent the player from exiting the inventory if a non-discardable item is in loot.

Oops. I forgot I could just hit the left and right arrow keys to switch from actor to actor  l (