MZ How to add new properties to an Item object?

Hi, I am relatively new to the RPG Maker's API and I find it hard to implement new properties to an item. The goal is to add a boolean property called "discovered" to every item in the game for learning purposes. How hard it is to make? Do I have to duplicate each and every item in the game to a new array and manipulate that instead? or there is a much simpler way to do it?

Thanks!
If your goal is just to flag if the item is discovered, it is just as simple as register the item id in an array somewhere else, no need to add a new property in the item object.
If your goal is just to flag if the item is discovered, it is just as simple as register the item id in an array somewhere else, no need to add a new property in the item object.
Thanks for the quick reply! I see so like I make an array, store the id inside it, and when I get that same item I'll just have to check if the id is already inside that array? hmm I haven't tried that yet but it might just work!

EDIT: It worked! Though I'm not sure if this is how you do it but it worked. Thank you!
Spoiler: Image
1629249703465.png

Original thread: https://forums.rpgmakerweb.com/threads/how-to-add-new-properties-to-an-item-object.139684/