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,701
Reaction score
11,284
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 Threads

Latest Profile Posts

linkedin - Instagram 1 - Instagram 2 [OFF] - Tumblr texts [IN PORTUGUES]
"Understanding others is the greatest life lesson we can learn."
Tfw I was too slow to post in the latest AI art thread :'(

I had a doozy lined up, too
Updated my game's development post with the first video of it in action!


'Milestone Get!' :p
Heh, heh. I've been experimenting with a naughty word detector Common Event and using scripts to check certain strings. I never thought I would see such language in computer code. I would post a screen shot, but it probably wouldn't be appropriate, even with a Spoiler. But it certainly makes me laugh and it works great.

Forum statistics

Threads
136,809
Messages
1,270,280
Members
180,567
Latest member
CaptainAwf
Top