@C64_Mat This plugin should support that already since it discovers enemies when they 1) appear as part of the initial troop, 2) attack, or 3) are attacked. The MV version might go by troop ID only still, but I will not be adding compatibility or new features to my MV plugins.
MZ [CGMZ] Encyclopedia and Bestiary
JS Plugin Releases (RMMZ)Thank you for the reply, I really appreciate it

Hi I'm getting the following error when using this plugin:
"TypeError Cannot read property 'match' of undefined"
This was before using the <cgmzencyclopediahide> notetag on many enemies from the database.
Any idea on what could be causing it? I disabled other plugins to discard other problems. EDIT: this started happening when I downloaded the may/21 update.
"TypeError Cannot read property 'match' of undefined"
This was before using the <cgmzencyclopediahide> notetag on many enemies from the database.
Any idea on what could be causing it? I disabled other plugins to discard other problems. EDIT: this started happening when I downloaded the may/21 update.
@pf111 Go into the plugin parameters, open up the categories parameter, make sure each item in the list has the Command Text parameter filled out (cannot be blank/empty).
Thanks, it worked! I have another question. Is there a way to track if a category has been fully discovered?
@pf111 Not easily but you could assign a variable to one of the following scripts and then see if it is 100 or not:
JavaScript:
Number($cgmz.getEncyclopediaTotalPercent());
Number($cgmz.getEncyclopediaBestiaryPercent());
Number($cgmz.getEncyclopediaItemsPercent());
Number($cgmz.getEncyclopediaWeaponsPercent());
Number($cgmz.getEncyclopediaArmorsPercent());
Number($cgmz.getEncyclopediaSkillsPercent());
Number($cgmz.getEncyclopediaStatesPercent());
Number($cgmz.getEncyclopediaCustomPercent(symbol));
Hey I'm not sure what I've done wrong, but I've put the plugin in the plugins folder, activated it in the plugin manager & now when I start the game I just instantly get the error:
Any help would be awesome, only new here so I'm sorry if this is an easy fix.
I've actually managed to figure out the issue...
I needed CGMZCore or something lol
Code:
Reference Error
CGMZ_Temp is not defined
I've actually managed to figure out the issue...
I needed CGMZCore or something lol
Thanks for the plugin, I haven't really gotten deep into it but from what I've seen it's already really useful. I do have a question though, when using custom categories to make something like a character log, would there be any way for you to add a plugin command that lets us update the description of our entries?
@Dope Yes, I am planning to add that to a future release, thank you for the suggestion.
So I’ve got this plugin installed along with the CMGZ_Core and MenuCommands. I’m trying to add the command to open the bestiary from the pause menu.
I have it showing up on the pause menu, but whenever I click on it the game just freezes.
Any ideas why? Anyone mind sharing what they’ve done to get it to call the encyclopedia from the menu?
I have it showing up on the pause menu, but whenever I click on it the game just freezes.
Any ideas why? Anyone mind sharing what they’ve done to get it to call the encyclopedia from the menu?
@Blackremnant In the menu commands params, set the JS parameter for the encyclopedia to
Code:
SceneManager.push(CGMZ_Scene_Encyclopedia);
SWEET! That worked!
Follow up questions though:
1. If I wanted to add entries to a custom tab called "JOURNAL" and have it track the previous main story quests the player has completed, would it be best to create items and use those or would there be a better way?
2. Is there a way to remove the "?????" entries so the player doesn't know how many spots there are in total?
Hey Casper, I have another quick question. I see that I can use "SceneManager.push(CGMZ_Scene_Encyclopedia);" to pull up the encyclopedia, but what if I wanted to open up a specific page in the encyclopedia from the start? I'm trying to make a hotkey for my character journal so I'm trying to figure out how to pull up a custom entry.
Also, happy holidays!
Also, happy holidays!
@FAWKS You could create custom categories with custom entries, that might be a bit more suitable to what you aim to do since those are text description + optional image, and an item would show things such as its effects if it has any which you might not want for such purposes. You can see how custom categories work in the demo. Currently there is not a way to remove the unknown entries, but I can look to add that in a future version.
@Dope That functionality doesn't exist, but I can look to allow people to open the scene to a specific category in a future version.
@Dope That functionality doesn't exist, but I can look to allow people to open the scene to a specific category in a future version.
Hello, when using this plugin I get an error.
TypeError
this.CGMZ_drawTextLine is not a funtion
TypeError
this.CGMZ_drawTextLine is not a funtion
@Arise501 You also need the CGMZ Core plugin (and to place it above all other CGMZ plugins).
Of course, I have tried everything, I have followed the instructions. I am testing version 1.2.2 (CGMZ-Encyclopedia) in the Demo: EncyclopediaDemo
and the error reappeared.
It is the latest version of the plugin that is giving me this error.
@Arise501 what is the version of the core plugin you are using?
Hello, sorry for replying so late.
Again I have tried using the latest version of the three plugins.
I use them in the correct order in the Encyclopedia demo.
The new error is now
"TypeError
Cannot read property `replace´ of undefined
But lastly, I tried everything new in new project, and it's working. It seems that the demo only works with what it comes with, thanks for the help.
@Arise501 Glad you were able to get it working.
The demos are usually using outdated versions of my plugins since it is a lot of effort to update them for each small bugfix or update. The demo is more meant to give a preview of what the plugin is capable of or how to set up the core features of the plugin if having trouble getting started. I usually only update demos when adding in major new features that I think people would have frequent questions for how to use it.
The demos are usually using outdated versions of my plugins since it is a lot of effort to update them for each small bugfix or update. The demo is more meant to give a preview of what the plugin is capable of or how to set up the core features of the plugin if having trouble getting started. I usually only update demos when adding in major new features that I think people would have frequent questions for how to use it.
Original thread: https://forums.rpgmakerweb.com/threads/cgmz-encyclopedia-and-bestiary.126388/