MZ Creating a dynamic compendium

Hey all, potentially multi-faceted question here. I'm trying to create a compendium/Materia Medica in this game and am wondering how you might go about doing this, either via plugins or built-ins. Basically what I'm trying to do is have an item (Materia Medica) the player can open and search to find the all the information they've discovered about any given herb. What I'd really like for this to do is update as the player finds out more about a given herb. The the page would essentially start blank and automatically fill in as new information is discovered, until all the info is discovered and it is marked as complete.

It'd also be great if I could find a way to make this compendium searchable in a few ways. For instance, having a section of "Herb actions", using "bitter" as an example, the player could go under the "Bitter" section and find a list of all the discovered herbs that are bitter.

Is this loftier than I'm imagining? Any insights are much appreciated!
An Encyclopedia plugin like CGMZ - Encyclopedia and Bestiary would be the direction to go



I'm asking him if you're able to piecemeal descriptions or not. There are some workarounds I can think of (creating a category per item and then creating entries for each stage of information for example)

But that can get cumbersome depending on how herbs you're adding in.
Reuse/repurpose the RMMZ Native Item menu layout and tie it to open itself again to an item in the Key item menu OR partition it as a submenu. E.G Go into the main menu, Go into items, Go to key items click your Materia Medica this should open the same window but now with your 4 types of herbs (by location/rarity or whatever).
Change the name spaces Native item menu has 4? or make the item window it self a set size and divided. So the first 20 is one type. For specialty types you can makethat its own divided window but all that is ALOT of parameter work.

AS previously mentioned there are beastiary/encyclopedia/dictionary/compendiums etc plugins that could be used for that too. CGMZ would be the safest bet i think.
Similar to Echo's line of thinking you couuld also just make duplicates of each Herb as Key Items with updated descriptions. Then each time the player learns more about that herb, swap the keyitem out for the more advanced version. Its an oversimplified solution but one that wold involve no plugins
Thanks for the responses! I was eyeing CGMZ earlier today and that may be a good starting point.

Similar to Echo's line of thinking you couuld also just make duplicates of each Herb as Key Items with updated descriptions. Then each time the player learns more about that herb, swap the keyitem out for the more advanced version. Its an oversimplified solution but one that wold involve no plugins
This is a good idea, though how I'm understanding it, pretty linear right? So if you had traits A, B, C, D for an herb, you'd probably have to discover traits in order ( A-> B-> C-> D) instead of having the player able to discover traits freely (A -> D -> B -> C), if I'm getting the gist?

Do you think there's a way to come across these traits out of order and have a sort of page update instead of essentially creating a new item?
Thanks for the responses! I was eyeing CGMZ earlier today and that may be a good starting point.


This is a good idea, though how I'm understanding it, pretty linear right? So if you had traits A, B, C, D for an herb, you'd probably have to discover traits in order ( A-> B-> C-> D) instead of having the player able to discover traits freely (A -> D -> B -> C), if I'm getting the gist?

Do you think there's a way to come across these traits out of order and have a sort of page update instead of essentially creating a new item?
Not without an additional plugin haha.


The happy medium there would be to designate predefined trait categories for each herb.
Then name the 4 different key items:

Herb 1 Name: Trait A
Herb 1 Name: Trait B

That way the player is a cycling through the list in order, and if they discover traits out of order those items won't exist yet. So nothing is spoiled
Yeah something like that could work, I'll play around with some of these ideas and see what happens. Though if there plugin did exist that could help incorporate these ideas, I wouldn't be opposed. Or maybe I'll roll up the sleeves and finally get to work learning some JS

Many thanks for the pointers!
With CGMZ Encyclopedia you can put custom entries and change the descriptions at least for the custom entries with plugin commands. I think you can just give the plugin command in script form and combine texts depending on what items you have / what you've interacted with (depending what makes you get more descriptions). Like make conditionals to combine the texts before feeding it to the script. And if you've found them all, add to the end "COMPLETE" or whatever.

EDIT: When I said "plugin command in script form", I meant just call the method directly in a script box.
Thanks to everybody for pitching in on this. I ended up finding a friend in the CGMZ Encyclopedia plugin and variables. If anybody comes across this 8 years from now with the same issue - basically what I did was create custom entries in the CGMZ plugin and in the description, in place of writing out the traits there, I used variables.

For instance, if you go under entry Herb A, trait A would be assigned to \V[0001] instead of just writing out whatever the trait is right there. Then what I did was, at the start of the run, assign the trait variables to a string that signifies that it's unknown (Control Variables->Operand: Script = "???", or something like that), then whenever the player discovers the trait, you change the string to the trait ("Bitter", etc.).

Simple and probs second nature to some folks but for a dummy like me, that was a big 'ol breakthrough.

Original thread: https://forums.rpgmakerweb.com/threads/creating-a-dynamic-compendium.181033/