Hide Key Item Quantities

Hide Key Item Quantities v1.1
by DerTraveler

Introduction

Hides the quantity of Key Items, which are usually unique items.

It is possible to switch between two modes for Key Items that are possessed multiple times:

  • Show the quantity as usual
  • Give each single instance its own item menu entry.
The changes of the script apply both to the normal menu and to the "Select Key Item..." event command.



Since version 1.1 you can also enter the <unique> notetag into a normal items note field, in order to have it also displayed as if it was a key item (useful for unique weapons and armors for example).



Screenshots


SingleEntry.png

The normal display mode, showing the quantity to the right of the key item.

MultipleEntries.png

Showing a menu entry for every key item.





How to Use

Paste it anywhere in the Materials section.
See Script header for further instructions.



Demo
Not necessary. See screenshots for an example how it looks like.

Script

Can be found here.

Credit and Thanks
- DerTraveler

Author's Notes

Free to use in any commercial or non-commercial project.
Great ideia! xD
I didn't even think to do this, but it actually makes the inventory for the game I'm working on look much neater. Thanks!

I actually tweaked it so that it does it to all items, not just key items; I'm making an 'adventure' type game with item-based puzzles and a very limited inventory, so nearly every item in the game is unique, but I didn't want to make all of them key items even though they basically are.

If anyone else wants to do the same, all you need to do is delete 

&& @category == :key_item

on line 67 

and

!item.key_item? ||

on line 84. (leave that 'if' alone') 

As a feature suggestion, perhaps you can implement an item comment tag, like <UniqueItem> (or whatever you want to call it) so that if an item is tagged with it and you only have one, it won't display a number either. I think that'd be good for things like unique items or weapons that are special, but not actually key items. 
Excellent script idea, DerTraveler. Thank you so much for sharing!

As a feature suggestion, perhaps you can implement an item comment tag, like <UniqueItem> (or whatever you want to call it) so that if an item is tagged with it and you only have one, it won't display a number either. I think that'd be good for things like unique items or weapons that are special, but not actually key items.
I would also like to second this feature suggestion.  😀
Updated the script 😉

Now you can used the <unique> notetag in order to give particular normal items the same display properties as key items 😉
Seems no one has been trying out the updated version, since it had a major bug. Namely, the game crashed when entering the Weapon or Armor List screen....

This is now fixed... Updated script is in the pastebin in the first post...
I found that bug several weeks ago,but i was ocuppied so i dont have time to explore in internet... Sorry for that,excuse me for my bad english and greetings from Argentina.

PD: great job,i love this script,good luck in your future projects.
Hide Key Item Quantities v1.1
by DerTraveler

Introduction

Hides the quantity of Key Items, which are usually unique items.

It is possible to switch between two modes for Key Items that are possessed multiple times:

  • Show the quantity as usual
  • Give each single instance its own item menu entry.
The changes of the script apply both to the normal menu and to the "Select Key Item..." event command.



Since version 1.1 you can also enter the <unique> notetag into a normal items note field, in order to have it also displayed as if it was a key item (useful for unique weapons and armors for example).



Screenshots


View attachment 8324

The normal display mode, showing the quantity to the right of the key item.

View attachment 8323

Showing a menu entry for every key item.





How to Use

Paste it anywhere in the Materials section.
See Script header for further instructions.



Demo
Not necessary. See screenshots for an example how it looks like.

Script

Can be found here.

Credit and Thanks
- DerTraveler

Author's Notes

Free to use in any commercial or non-commercial project.
Omg, I finally was able to find something xD I have been looking for this, I hope this works with the Yanfly Item Script. Thank you so much xD
Does this script also work to hide weapon and armor quantities?
Does this script also work to hide weapon and armor quantities?
"Since version 1.1 you can also enter the <unique> notetag into a normal items note field, in order to have it also displayed as if it was a key item (useful for unique weapons and armors for example)."

Original thread: https://forums.rpgmakerweb.com/threads/hide-key-item-quantities.18266/