Is there a way to stop the player deleting a specific item from their inventory? Like a quest item or legendary items that aren't replacable
Prevent item deletion
RPG Maker MZ SupportSetting the price of the item to 0 makes it unable to be sold. I'm not sure if MZ has any other ways to discard items, I haven't used it.
Well, if your item is important, why not make it an key item?
Sure, if it is an legendary weapon that took me 5 hours to get. I would really make sure to not sell, it even if the price is 999k on the shop. Or deleting the item...
So for equipments, I pretty sure it's not necessary to worry about it. If the player deleted the equipment, he just screw up...
Now for deleting items in general, if you don't like the option of make it a key item, just make the item unusable. So the player can't get access to the item in the menu.
Sure, if it is an legendary weapon that took me 5 hours to get. I would really make sure to not sell, it even if the price is 999k on the shop. Or deleting the item...
So for equipments, I pretty sure it's not necessary to worry about it. If the player deleted the equipment, he just screw up...
Now for deleting items in general, if you don't like the option of make it a key item, just make the item unusable. So the player can't get access to the item in the menu.
The OP hasn't come back since asking, but they really just need to clarify what they mean by "delete."
There's no such thing in MV as "deleting" an item through the menu, and if they mean they don't want the item accidentally sold, the original reply of giving it a cost of 0 will do that.
There's no such thing in MV as "deleting" an item through the menu, and if they mean they don't want the item accidentally sold, the original reply of giving it a cost of 0 will do that.
Yeah, the term "deleting" not helping.
But I thinking it's related to throw/discard items. Or I just crazy and this option don't exist in MZ without plugins?
But I thinking it's related to throw/discard items. Or I just crazy and this option don't exist in MZ without plugins?
I did type MV instead of MZ, but as already stated - there's no such thing.
The only ways to get rid of an item in the default engine are to use it (if it's a consumable) or sell at a shop.
Sorry to clarify, I used the term delete because I am actually using the Map Inventory plugin, which has it's own discard option which can be disabled. However I wasn't aware setting items to a cost of 0 can make them unsellable so that works to.
In my game each class gets a choice of 3 weapons, which can be swapped at any time but deleting or selling them would have broken the game.
In my game each class gets a choice of 3 weapons, which can be swapped at any time but deleting or selling them would have broken the game.
You'd have to provide a link to "the Map Inventory" as we don't know what that is, and it doesn't appear to be one of the plugins included with MZ.
It may well have a notetag you can place on items to prevent them from being discarded, but you'd have to check the documentation.
It may well have a notetag you can place on items to prevent them from being discarded, but you'd have to check the documentation.
Map Inventory – KageDesu Workshop
Original thread: https://forums.rpgmakerweb.com/threads/prevent-item-deletion.168374/