Theo - Limited Inventory

redshard

Warper
Member
Joined
Sep 7, 2015
Messages
4
Reaction score
2
First Language
English
Primarily Uses
Hello there. I'm having a bit of a compatibility issue with your script and another. I read that you did not like scripts that overwrites the default code so much, so I'm sure if this is up your alley. But here is my problem anyway:

I have a script that removes the categories (items, weapons, armor, key items) from the inventory window at the top and merges everything into a single window. Here is that script, located in the second post down: (link).

Whenever this script is running, the category window is removed, and not only does your inventory limit and item weight not appear, but whenever I try to use an item, I get the error 

Script 'LimitedInventory' line 802: NoMethodError occurred.undefined method 'set_item' for nil:NilClasswhich I assume means the category-erasing script somehow messed with the window that is supposed to appear when a usable item is selected. And since your script overwrites the window that typically appears when an item is called to be used, an error occurs. 

So my question is: is there some way to make it to where your method of using items with the "Use item / Discard Item / Cancel" window overrides the usual method, or can you suggest a way to remove the category windows when your script is active?

Any help is greatly appreciated, and please feel free to ask if I need to clarify any wording.
 

Dymdez

Newbie-in-Chief
Veteran
Joined
Feb 4, 2014
Messages
752
Reaction score
151
First Language
English
Primarily Uses
Hi! Great script! It's almost perfect for the rucksack in my Harvest Moon-style game.

I was wondering if there was a way to disable discarding certain items. There are certain items, like tools, I don't want my character to get rid of by discarding from the item menu.

Thanks for your help!
Theo made me this (Theo if you don't wish for this to be here, just tell me and I'll remove it)

class Window_ItemUseCommand  def discardable?(item)    return false if item.nil?    return false if (item.is_a?(RPG::Item) && item.itype_id == 2)    return !item.note[/<persistent>/i]  endend
use the notetag <persistent> on whatever you wish to be omitted from the discard menu.

@redshard: I have no help to give you, but maybe try changing the script order?
 
Last edited by a moderator:

redshard

Warper
Member
Joined
Sep 7, 2015
Messages
4
Reaction score
2
First Language
English
Primarily Uses
@Dymdez: I rearranged the script to have the removal of categories go over this script, then I had a problem with Yanfly's menu engine. I realized I could live without that and removed it, and now it works perfectly. Thanks for the advice, you're my hero for the day.
 

Dymdez

Newbie-in-Chief
Veteran
Joined
Feb 4, 2014
Messages
752
Reaction score
151
First Language
English
Primarily Uses
@Dymdez: I rearranged the script to have the removal of categories go over this script, then I had a problem with Yanfly's menu engine. I realized I could live without that and removed it, and now it works perfectly. Thanks for the advice, you're my hero for the day.
I'm no hero. That's how those of us without scripting knowledge get along. We guess a lot :D hahahaha
 

stiven202

Villager
Member
Joined
Apr 29, 2013
Messages
18
Reaction score
0
First Language
English
Primarily Uses
how to change the sizes of items? all in my database are size 1.
 
Joined
Dec 19, 2015
Messages
2
Reaction score
1
First Language
English
Primarily Uses
Hi, Theo! What are your terms of service for your scripts? Thank you!
 

ddejan90

Veteran
Veteran
Joined
Oct 5, 2015
Messages
67
Reaction score
19
First Language
Serbo-Croatian
Primarily Uses
Hey man! I love your TheoAllen - Limited Inventory script! I adore it! I do have one comp ability issue and I would be really sad to not be able to use both of those scripts. I use your script (above) and Moder Algebra Hover Alerts 1.0.3. script. That script, as title says, makes item/gold icon pop above character when you loot, but with your script it don't work. It shows gold, but items, weapons and armors don't pop up. Is there anyway, you could just tweek it little bit to make it work? Please, I would be so appreciative. I wanted to ask M.Algebra, but he wasn't online in a long time so you are my only hope. Please reply, I need you.
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,053
Reaction score
5,681
First Language
Indonesian
Primarily Uses
RMVXA
Hey man! I love your TheoAllen - Limited Inventory script! I adore it! I do have one comp ability issue and I would be really sad to not be able to use both of those scripts. I use your script (above) and Moder Algebra Hover Alerts 1.0.3. script. That script, as title says, makes item/gold icon pop above character when you loot, but with your script it don't work. It shows gold, but items, weapons and armors don't pop up. Is there anyway, you could just tweek it little bit to make it work? Please, I would be so appreciative. I wanted to ask M.Algebra, but he wasn't online in a long time so you are my only hope. Please reply, I need you.
Sure, drop the link to MA's script here.
 

ddejan90

Veteran
Veteran
Joined
Oct 5, 2015
Messages
67
Reaction score
19
First Language
Serbo-Croatian
Primarily Uses
Best guy ever! Made a tweek just for me.
In case you wonder if you use the script, it's "Sleek Item Popup- V.M of D.T
 

djboro88

Maker Amateur
Member
Joined
Apr 9, 2015
Messages
9
Reaction score
0
First Language
Spanish English
Primarily Uses
Is it possible to use the selected object in the first actor, without having to choose the character? I am playing a game with only one player and in my case it is absurd to have to select the player if there is only one player. Thanks.
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,053
Reaction score
5,681
First Language
Indonesian
Primarily Uses
RMVXA
Is it possible to use the selected object in the first actor, without having to choose the character? I am playing a game with only one player and in my case it is absurd to have to select the player if there is only one player. Thanks.
I haven't tested this yet, but try to insert a patch below the script
Code:
class Scene_Item
  def use_command_ok
    theo_liminv_use_item
    @freeslot.refresh
  end
end
 

Gamingstar

Retard Gang Leader
Veteran
Joined
Jul 17, 2017
Messages
51
Reaction score
11
First Language
English
Primarily Uses
RMVXA
I'm having a problem where every time i start the game, it starts me with 20 items, but my inventory is empty. (even after i set the limit to 30, it still instantly gives me 20 empty items
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,053
Reaction score
5,681
First Language
Indonesian
Primarily Uses
RMVXA
I don't get what u mean. Elaborate?
 

Gamingstar

Retard Gang Leader
Veteran
Joined
Jul 17, 2017
Messages
51
Reaction score
11
First Language
English
Primarily Uses
RMVXA
I don't get what u mean. Elaborate?
Wait nvm i figured out what was wrong

Edit: is there a way to make it so that key items weigh nothing?
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,053
Reaction score
5,681
First Language
Indonesian
Primarily Uses
RMVXA
Use tag <inv size: 0>
 

Gamingstar

Retard Gang Leader
Veteran
Joined
Jul 17, 2017
Messages
51
Reaction score
11
First Language
English
Primarily Uses
RMVXA

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,053
Reaction score
5,681
First Language
Indonesian
Primarily Uses
RMVXA
Yep, that one. It's called "notetag".
Many scripts uses similar notetag like that, so you have to get used with the term.
 

Gamingstar

Retard Gang Leader
Veteran
Joined
Jul 17, 2017
Messages
51
Reaction score
11
First Language
English
Primarily Uses
RMVXA
Yep, that one. It's called "notetag".
Many scripts uses similar notetag like that, so you have to get used with the term.
Ah, okay. Thanks for the help!
 

IneptAttoney_08

Dimas Ridwan AP
Veteran
Joined
Mar 1, 2019
Messages
133
Reaction score
26
First Language
Indonesia
Primarily Uses
RMVXA
(Translated by Mod, see post below)

Can I ask for the Indonesian version, bro? I don't understand B. English
 

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

Latest Threads

Latest Posts

Latest Profile Posts

work in progres c:
Every RPG and MMO should let you transmog\glamour your gear so you can look the way you want.
So, to clear up things, this section is to speak about personal life stuff and such? or maybe upload game content?
excerpt from my game FW: WHAT?! You want me to shear sheep? I had servants, who had servants, that had servants that did peasants work. Vincent: Do you see any of your servants here? FW: Well... no. Of course not. Vincent: Then get to work.
The dumbest mechanic I just encountered today : boss recovers 10% HP when a party member is KO-ed, who thinks this is a great idea again...?

Forum statistics

Threads
97,761
Messages
946,780
Members
128,971
Latest member
omgtank93
Top