RMMV How do I remove "use / back" menu from Item menu

MS_MANGO

Villager
Member
Joined
Sep 27, 2023
Messages
13
Reaction score
2
First Language
English
Primarily Uses
RMMV
I want to make Item menu for my project into something like item gallery where you can only look at them and maybe read some interesting information about the item (i want them to be uniteractable). I want to remove the "use / back" menu that pops up completely.

Is it possible? I really want it gone / prevent it from showing up.

I'm using Yanfly's Item Core + Item Categories + Item Picture Images
My RPG Maker MV's version is 1.6.2
 

Mac15001900

JavaScript wild sorcerer
Regular
Joined
Aug 7, 2022
Messages
392
Reaction score
524
First Language
English
Primarily Uses
RMMV
To be clear, you're fine with no items in your game being usable? I think just disabling everything that happens when you select an item should do it (unless one of those plugins messes with it).

JavaScript:
Scene_Item.prototype.onItemOk = function () {};

Add this snippet as a plugin, below anything else that changes the item scene.
 

MS_MANGO

Villager
Member
Joined
Sep 27, 2023
Messages
13
Reaction score
2
First Language
English
Primarily Uses
RMMV
Yes, I'm fine with them being unusable. It's just for the kind of project I have in mind, there is no use for them other than collectibles or maybe achievements.

I added this one as you said, and while, yes, it prevents that window from popping up, it also freezes the game after pressing on the item (and there is no way to unfreeze the game); it stays in a frozen state, and the only way to fix that is by closing the game.

View attachment 278111

(PluginPattern is just the name of the template plugin that I picked a while ago)
 

MS_MANGO

Villager
Member
Joined
Sep 27, 2023
Messages
13
Reaction score
2
First Language
English
Primarily Uses
RMMV
To be clear, you're fine with no items in your game being usable? I think just disabling everything that happens when you select an item should do it (unless one of those plugins messes with it).

JavaScript:
Scene_Item.prototype.onItemOk = function () {};

Add this snippet as a plugin, below anything else that changes the item scene.
I forgot to hit reply (firt time on this forum).

It's above. Sorry for the inconvenience.
 

Mac15001900

JavaScript wild sorcerer
Regular
Joined
Aug 7, 2022
Messages
392
Reaction score
524
First Language
English
Primarily Uses
RMMV
I forgot to hit reply (firt time on this forum).
You get a notification either way when someone posts in a thread you posted in, so that's not strictly necessary.

I added this one as you said, and while, yes, it prevents that window from popping up, it also freezes the game after pressing on the item (and there is no way to unfreeze the game); it stays in a frozen state, and the only way to fix that is by closing the game.
Whoops, looks like we removed a bit too much functionality there xD This should work better:
JavaScript:
Scene_Item.prototype.onItemOk = function () {this._itemWindow.active = true;};
 

MS_MANGO

Villager
Member
Joined
Sep 27, 2023
Messages
13
Reaction score
2
First Language
English
Primarily Uses
RMMV
Whoops, looks like we removed a bit too much functionality there xD This should work better:
JavaScript:
Scene_Item.prototype.onItemOk = function () {this._itemWindow.active = true;};

It works now! Thank you very much :kaojoy:
 

ATT_Turan

Forewarner of the Black Wind
Regular
Joined
Jul 2, 2014
Messages
12,705
Reaction score
11,289
First Language
English
Primarily Uses
RMMV
Whoops, looks like we removed a bit too much functionality there xD
shut-it-down-dark-city.gif
 

Latest Posts

Latest Profile Posts

Help, I can't stop! :kaohi:

alice_ornament.png
I'm happy to join this community.
about this argument. I expressed myself badly, I did it on my own, my English was mixed with Google Translate. And I believe chatGPT didn't even exist in 2016
I have to take sleeping pills :rtear:
Now that the forum is running smoothly, I can run around and react to posts the millisecond they're posted.
patrick-star-spongebob.gif

Forum statistics

Threads
136,812
Messages
1,270,316
Members
180,574
Latest member
PastorGary
Top