Temporarily Disabling or Hiding Items

Status
Not open for further replies.

Fangzarie

Veteran
Veteran
Joined
Apr 5, 2018
Messages
50
Reaction score
5
First Language
English
Primarily Uses
RMMV
I've been looking around the forums all day to a fix for Hime's Inventory Core problems but have come up short.

So instead I've decided that just hiding or disabling the "Item" category in the main menu would have the same affect I'm looking for, however I've run into yet another problem.

There is no way to temporarily disable the items category.

It is possible to disable Save, and Menu access but not item access.

Does anyone know of a plugin or way to disallow item access temporarily?


Edit: Hime's menu command manager does not seem to work AT ALL. and Yanfly's Menu manager does not allow me to edit the menu via events.
 
Last edited:

mathmaster74

just...John
Veteran
Joined
Jun 12, 2016
Messages
285
Reaction score
192
First Language
English
Primarily Uses
RMMV
@Fangzarie It would help to know when and why you want to make items unavailable in order to come up with a solution for you.
 

Fangzarie

Veteran
Veteran
Joined
Apr 5, 2018
Messages
50
Reaction score
5
First Language
English
Primarily Uses
RMMV
@Fangzarie It would help to know when and why you want to make items unavailable in order to come up with a solution for you.
Right.

So during my game the hero gets captured. When this happens I have a common event set up to take off all the player items, armors, and weapons and places these items back into the inventory. Screenshot 2019-06-30 20.18.24.png

While the player character is captured they will have to move around inside the jail without their items as they have been taken away until the player can "find" their pack again. Originally I was trying to use Hime's Inventory Core plugin to transfer the players items to a second inventory however that plugin conflicted with several Yanfly plugins as well as making the player unable to shop.

I decided that just hiding or disabling inventory access would have the same affect as the player would not be able to tell if their items have been taken or not because they will be unable to look at them.

There are no fights during this time so I do not need a plugin or script to disable the item menu in battle. It is a simple "sneaking" section until the player finds their items.

Hope that clears up a bit.
 
Last edited:

onipunk

Archmage of Procrastination
Veteran
Joined
Jun 27, 2017
Messages
250
Reaction score
160
First Language
English
Primarily Uses
RMVXA
If you download Yanfly's Main Menu Manager plugin you can bind the Item and Equip menu commands to switches, turn them on at the start of the game so they appear in the menu as normal, and then turn them off to hide them when you don't want the player to access them. Then simply turn the switches back on when you want the player to be able to access them again. Find the entries for the Item and Equip commands in the plugin parameters and change the "Show" text to "gameSwitches.value(x)", where x is the ID number of the switch that controls access to them. You can even bind both commands to the same switch to make things easier.
 

Fangzarie

Veteran
Veteran
Joined
Apr 5, 2018
Messages
50
Reaction score
5
First Language
English
Primarily Uses
RMMV
..Find the entries for the Item and Equip commands in the plugin parameters and change the "Show" text to "gameSwitches.value(x)", where x is the ID number of the switch that controls access to them. You can even bind both commands to the same switch to make things easier.
Alright I downloaded the plugin and created a new save and switch to test out what you suggested however I keep getting this gameSwitches is undefined error? Am I maybe writing it wrong? Does it need quotation marks? Screenshot 2019-06-30 22.00.27.png Screenshot 2019-06-30 22.02.38.png
 

onipunk

Archmage of Procrastination
Veteran
Joined
Jun 27, 2017
Messages
250
Reaction score
160
First Language
English
Primarily Uses
RMVXA
Sorry, that's my bad, I can't check my program right now but try putting a $ in front of the gameSwitches text [so it should read $gameSwitches.value(12)] , from what I remember off the top of my head that's what's in mine and it works grand. That's on me, sorry about that!
 

Fangzarie

Veteran
Veteran
Joined
Apr 5, 2018
Messages
50
Reaction score
5
First Language
English
Primarily Uses
RMMV
Sorry, that's my bad, I can't check my program right now but try putting a $ in front of the gameSwitches text [so it should read $gameSwitches.value(12)] , from what I remember off the top of my head...!
Ah, I felt like something was missing, I'm just not used to looking at Javascript code. After putting that in it worked like a charm! I didn't even have to start a new test file, though just to be safe I probably will.

This helped me out a ton and I don't have to worry about bugging plugin compatibility. Again thank you, I would have never thought to use the menu manager like that.
 

onipunk

Archmage of Procrastination
Veteran
Joined
Jun 27, 2017
Messages
250
Reaction score
160
First Language
English
Primarily Uses
RMVXA
Glad to hear it worked! Sorry again about the mixup, I'm gonna put it down to giving advice at 3am maybe not being the best idea, daft mistakes are easy to make when you're knackered. Best of luck with your project!
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,009
Reaction score
11,341
First Language
English
Primarily Uses
RMVXA
[closed]IgnoreMe[/closed]
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

It seems like this is going to be another remote semester. RIP.
I don't like linear gear progression in games. I'd like to see more gear be useful from start to finish. This is also true for skills. I also like finding overpowered gear, and don't enjoy games that are too balanced.
Framework is getting closer to completion. Adding more QoL changes for users.
I'm very excited with DE:VOID! And FYI Darkness of Hope - The Pocket Watch in development, so please be excited!
The more I look at the QPlugins... The more I am amazed at what they can do. Which I'm not going to lie is pretty awkward, because I already consider them far and away the best plugins MV has to offer. :kaoback:

Forum statistics

Threads
99,509
Messages
966,189
Members
131,138
Latest member
MrRenato
Top