Maronius

Villager
Member
Joined
Oct 29, 2015
Messages
21
Reaction score
4
Primarily Uses
I found a lot of shop plugins but it seems none of them are able to simply hide all items with "price =0" from the sell menu. Does anyone knows a script for that? Or a plugin which can hide specific items in the sell menu via notetags.
 

fizzly

Veteran
Veteran
Joined
Mar 23, 2012
Messages
1,010
Reaction score
635
First Language
Polish
Primarily Uses
RMMV
Would also love a script like this (for MV).
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
2,190
Reaction score
1,168
First Language
English
Primarily Uses
RMMV
I Googled "RPG Maker MV hide selling" and came up with this:

It does require you to put notetags on every pertinent item.

My question for you is about the organization of your items: why do you have items that are worthless but you don't want players to be able to get rid of them? If they're needed for the game's story, that's what the key items category is for, and then you can just remove that category from shops.
 

Maronius

Villager
Member
Joined
Oct 29, 2015
Messages
21
Reaction score
4
Primarily Uses
I Googled "RPG Maker MV hide selling" and came up with this:

It does require you to put notetags on every pertinent item.

My question for you is about the organization of your items: why do you have items that are worthless but you don't want players to be able to get rid of them? If they're needed for the game's story, that's what the key items category is for, and then you can just remove that category from shops.
Thanks! The reason for my need of such plugin is, that my hero has some weapons, which can be upgraded via special events (achievements), so they stay stronger as the games progresses. When the player misses thoses achievements, he can still switch to normal tradeable weapons (which dont have any special effect). And I find it more comfortable in the shop selling menu, when the special weapons aren't visible at all.
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
2,190
Reaction score
1,168
First Language
English
Primarily Uses
RMMV
Then it sounds like you have only a few items this applies to, so that plugin should work perfectly for you. The way your original post was worded, it sounded like you had lots of items that had a cost of 0 that you didn't want to be sold.
 

Another Fen

Veteran
Veteran
Joined
Jan 23, 2013
Messages
608
Reaction score
320
First Language
German
Primarily Uses
If you are trying to completely exclude certain items from the sell menu, you can achieve that by modifying the corresponding window in a plugin:

Code:
/*:
* @plugindesc Exclude certain items from the sell menu
* @help Use
*   <exclude from sell>
* in an items notebox to prevent it from showing up in the sell menu.
*/
(function() {
   
    var lastIncludes = Window_ShopSell.prototype.includes;
    if (lastIncludes === Window_ItemList.prototype.includes) {
        lastIncludes = function(item) {
            return Window_ItemList.prototype.includes.call(this, item);
        };
    }
    Window_ShopSell.prototype.includes = function(item) {
        var excludeByTag = (item && item.meta["exclude from sell"]);
        return !excludeByTag && lastIncludes.call(this, item);
    };
})();

(I'm not sure how one would properly alias a function from a superclass in javascript, hence the workaround in line 10-14...)
 

Latest Threads

Latest Posts

Latest Profile Posts

Creating 3D CGs for Cutscenes. :kaosalute:

I keep wanting to post every song I make for the game and have to hold back on that because at this rate, I'll have spoiled all the really good stuff lol..
DerniBorges wrote on TSR's profile.
Is there any way this plugin works with the big character, and the QSprite plugin? Using RTP chars, everything works fine, but the big ones, with QSprite, it's like that in the image, it doesn't reflect right. And there is, in the settings, an option to fix it. Thanks.
bug2.png
Bengawan Solo with fantasy style arrangement. :D
So I just got my computer back (Was posting stuff on my phone) But now my dang monitor's broken! I'll need to get a new one, which means... JOBS! Yaaay... When I get a new monitor, I'll post picture of one of my RPGMMV projects.
Wish me luck... :kaodes:

Forum statistics

Threads
115,899
Messages
1,093,809
Members
151,144
Latest member
Starnumb
Top