Hidden Item Description

Hey! After doing a couple google searches, I haven't come across something close to what I want.

So what I'm looking for is a script that hides items with a notetag item's stats and description until you eat it/use it. It would be used to give a risk to just chugging a bunch of strange potions you found in some old guy's house.

An example would be:

[IMG]http://i.gyazo.com/465d3dae417ca830543353190b07392e.png[/IMG]

And after eating sad berries, which are poisionus, for this example, the description would turn to this:

[IMG]http://i.gyazo.com/c88ef577500290a5af9d35fbe6b20525.png[/IMG]

I can give more details if somebody wants, but there isn't much to it.
So basically all you're looking for is a generic description for items until after they've been used once?
Here you are.

It should work. It gave me more trouble than I expected, though. Lol 🤣

Edit: Fixed the save thingy. (I hope)
Your script doesn't preserve the number of uses when saving.

I wrote my own: http://pastebin.com/LVDqHSep

Works for skills and item by putting

<hidden>in the notebox./edit: I know the script is badly documented (not at all, actually), but it doesn't do much, so i didn't bother 😀
Oops. That's why one shouldn't hurry when writing a script.
Oh, thanks a whole bunch! :3
Iavra, you misspelled unknown in the skill description. Shame on you! 🙂
Ah, dammit, that's what i get from rewriting instead of simple copy&paste. But i wanted to change the script anyway so you can provide hidden text inside the notetags and fall back to default if you don't.


/edit: Also, i'll add the option to hide name and probably icon as well.

Original thread: https://forums.rpgmakerweb.com/threads/hidden-item-description.40591/