MV How to make the increment of shop items, a number other than 10 ?

Hi, so my problem is this. When I usually buy from a shop I select the item and press the up arrow key to increase the number of items I want to buy by 10.

Up Arrow --> +10
Down Arrow --> -10
Left Arrow --> -1
Right Arrow --> +1

What I want to do is change this number 10 into number 5. So, how can I do this ?
Moved to: Plugin Requests

Save this as ShopNumberWindow.js (any name is okay really):

Code:
Window_ShopNumber.prototype.processNumberChange = function() {
    if (this.isOpenAndActive()) {
        if (Input.isRepeated("right")) {
            this.changeNumber(1);
        }
        if (Input.isRepeated("left")) {
            this.changeNumber(-1);
        }
        if (Input.isRepeated("up")) {
            this.changeNumber(5);
        }
        if (Input.isRepeated("down")) {
            this.changeNumber(-5);
        }
    }
};
Thanks for that, but I have a question in the same vein. I'd like to have a shop where one item on the list sells in bulk, but the rest sell individually.

The item in question would sell at 10 for 1G.
Moved to: Plugin Requests

Save this as ShopNumberWindow.js (any name is okay really):

Code:
Window_ShopNumber.prototype.processNumberChange = function() {
    if (this.isOpenAndActive()) {
        if (Input.isRepeated("right")) {
            this.changeNumber(1);
        }
        if (Input.isRepeated("left")) {
            this.changeNumber(-1);
        }
        if (Input.isRepeated("up")) {
            this.changeNumber(5);
        }
        if (Input.isRepeated("down")) {
            this.changeNumber(-5);
        }
    }
};
Thank you. It worked like a charm :LZSyum:
Thanks for that, but I have a question in the same vein. I'd like to have a shop where one item on the list sells in bulk, but the rest sell individually.

The item in question would sell at 10 for 1G.

Not even remotely in the same vein in terms of the code implementation. And if you want to request a plugin, you should create your own thread to do so. And provide more details while you're at it.
Moderator note: @Phlar1245 please do not hijack someone else's thread to ask your own unrelated question (they are not similar at all).

Please make your own thread.

Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-the-increment-of-shop-items-a-number-other-than-10.155639/