MZ Visustella Scene_Shop adjustments part 2

Hello all,

I am using Visustella's many plugins to make menus and have run into a small issue. I am making a "Sell Only" shop at the moment. When the user attempts to sell anything, the data of the item being sold shows up on the right side of the screen.

sellshop.png


As we can see, this is doesn't work for what I am trying to do with the menu. I am wondering if there is a way to remove the item data that shows up only when the user is selling stuff. If so, how would I do this?

I am not proficient in scripting, but I have a feeling that we can do something in the ItemsEquips core plugin in these areas.

equipcode.png

itemcode.png
Greetings,

I just wanted to hop in here to tell you to be careful editing Draw Item Data in the Shop Status window. Contrary to what it is called, that specific bit of code does not only relate to shops; it is the code that is drawing your item data in the Item scene as well.

As far as changing the code so that it does not show up on the Sell screen within the Shop scene, that is tricky to do. I think you could potentially create an If statement that checks the scene the user is in before drawing the Item Data.

You could use this logic to check if the player is on the sell screen, in which case do not draw the Item Data, else draw the data.

I'm fairly confident this method would work if you can pinpoint the right code to include in the If statement. I've written quite a few into the JS: Draw Item Data section myself to fine tune the window to how I want it, so I know the logic is sound.

You are likely to find the code you need that checks if the Sell scene is active in rmmz_scenes.js.

Hope this helps,
-Niniann
Greetings,

I just wanted to hop in here to tell you to be careful editing Draw Item Data in the Shop Status window. Contrary to what it is called, that specific bit of code does not only relate to shops; it is the code that is drawing your item data in the Item scene as well.

As far as changing the code so that it does not show up on the Sell screen within the Shop scene, that is tricky to do. I think you could potentially create an If statement that checks the scene the user is in before drawing the Item Data.

You could use this logic to check if the player is on the sell screen, in which case do not draw the Item Data, else draw the data.

I'm fairly confident this method would work if you can pinpoint the right code to include in the If statement. I've written quite a few into the JS: Draw Item Data section myself to fine tune the window to how I want it, so I know the logic is sound.

You are likely to find the code you need that checks if the Sell scene is active in rmmz_scenes.js.

Hope this helps,
-Niniann
That all makes complete total sense! However, I am not proficient in Java Script (best I can do is adjust x/y values to move things around).
Does it work if you just comment out the setItem from the status window onSellOk?

Scene_Shop.prototype.onSellOk = function() {
this._item = this._sellWindow.item();
this._categoryWindow.hide();
this._sellWindow.hide();
this._numberWindow.setup(this._item, this.maxSell(), this.sellingPrice());
this._numberWindow.setCurrencyUnit(this.currencyUnit());
this._numberWindow.show();
this._numberWindow.activate();
// this._statusWindow.setItem(this._item);
this._statusWindow.show();
};
Does it work if you just comment out the setItem from the status window onSellOk?

Scene_Shop.prototype.onSellOk = function() {
this._item = this._sellWindow.item();
this._categoryWindow.hide();
this._sellWindow.hide();
this._numberWindow.setup(this._item, this.maxSell(), this.sellingPrice());
this._numberWindow.setCurrencyUnit(this.currencyUnit());
this._numberWindow.show();
this._numberWindow.activate();
// this._statusWindow.setItem(this._item);
this._statusWindow.show();
};
Turning this into a plugin worked out perfectly! Thank you very much once again!

Original thread: https://forums.rpgmakerweb.com/threads/visustella-scene_shop-adjustments-part-2.179028/