CGMV Encyclopedia w/ Bestiary

@41728280 the issue is that enemies in the data file generated by the editor (enemies.json) have their image stored in a variable called battlerName which is attached to the enemy object when the code loads this data file. From what I can tell Yanfly sets this variable to an empty string when the plugin loads (which is why the encyclopedia cannot find the image file), and then uses a different variable with a different name which appears to be an array to access the enemy image (probably for multiple frames or something?). I will look in to just loading the first element in the array if his plugin is detected but I am not entirely sure if that will work as I am not sure what he all stores in that array or if I can always count on the image being the first element in the array. I do not use anyone else's plugins other than my own so I am not that familiar with all the functionality this plugin has, and when people change default behavior like this it can be tricky to look into their code and understand what is going on without spending some time reading through it. That is why it might take some time to ensure compatibility with this plugin.
@ShadowDragon It works great, thank you!
@casper667
I guess this array stores the index of the SV sprite graph?
If you load the first element of the array, will it be the first grid of the sprite? As long as it can be displayed, lol:LZSrasp:
Maybe, directly quote his function?
Of course, casper, we are willing to wait for you to complete it👍
@casper667

This is an amazing plugin! Thank you.

I was wondering if you would be able to have it so that enemy drops in the encyclopedia could be hidden until you get the item from the enemy that you defeat in battle. There could be an option to have it on or off which would be great. The way it is now, drops for enemies show automatically when you go to the bestiary section of the encyclopedia after you win a battle against them. Thought it would be a cool idea to implement. 🙂

Edit: Thought of another idea that could be implemented: Having a defeated amount for an enemy that is shown in the enemy's bestiary entry.
@Suikogen that idea is indeed nice, specially, I have seen it only once or twice in
a different game, 1 of them I can call is Summon Night, Sword Story 1 and 2, only shown
when the item is given.

some monsters has:
items dropped:
1. ?????
2. ------
or
1. ??????
2. ??????

the ----- means, no item drop, all items have ????, so if default has 3 items
and you fill in 2, it should show:
1. ?????
2. ?????
3. -----

it is a unique feature which is possible, but also probably, not easy to do 🙂
The items being undiscovered is a neat idea, but I am not sure when I would be able to implement it as it is not trivial though not too difficult either. I will add it to my to-do list.
@casper667
I guess this array stores the index of the SV sprite graph?
If you load the first element of the array, will it be the first grid of the sprite? As long as it can be displayed, lol:LZSrasp:
Maybe, directly quote his function?
Of course, casper, we are willing to wait for you to complete it👍
I just noticed this issue myself.

If I could make a suggestion to @casper667...

Perhaps you could add a notetag factor (since I know the plugin does use notetags) with something like <cgmvpicture:[img/foldername/imagename]> to load an image in case you don't want to use the databases default images? It would open a whole new book for using custom images for sketches (pun not intended) if you wanted to add/use artwork/sketches. This would also mean that even if you can't get sideview battlers to show in the Bestairy, you can at least grab an image from somewhere to get around the issue. 🙂
@Espilonarge that is a good idea, and probably a lot easier than making compatibility patches for any plugin that changes how the game displays the enemy. It should work fine with default sideview/front view already though.
Hello @casper667 !
Your encyclopedia plugin is very good for my project, I could even add tutorial section in case the players want to check them during their playthrough 🙂
I was wondering if I could use the CGMVEncyclopedia Scene command for a specific page for a scan skill (dunno if the question have already been asked though), to have the infos of the enemy from the bestiary to show during battle.
Is it possible with the plugin's current state or would require more efforts ? I'd understand if it is too complicated 🙂
@Deagron If I understand this right, you want to call the encyclopedia scene but have it only display 1 entry? That would require significant work if so, and I don't know when I would be able to get to that. However, it would be a cool feature. I will add it to my to do list. Would it just show the info window, or would you also expect it to show the completion, title, and select windows?
@Deagron If I understand this right, you want to call the encyclopedia scene but have it only display 1 entry?
Would it just show the info window, or would you also expect it to show the completion, title, and select windows?
What I'd like is simply the enemy infos for the player to see their weaknesses so the description window 🙂
The Libra skill from Final Fantasy basically 🙂
Hello! Is there any possibility of a plugin command for completely filling every entry upon use? It would be very useful for game testing and debug purposes.
Having to have a command for every single entry is not ideal for testing things out...
@Essention you can make a work around to show all entries in 1 sweet swoop.
but it require a scriptcall in order to make it work, while it needs SYMBOL + INDEX.

so you can do for example:
let symbol = [array of symbols you use] (bestiary, weapons, bunnies, locations, etc)
let index = [array of index]
+ something else on here as to call the function(symbol, index)

there are another methode to make it easier or better, but it still a workaround.
but plugin command: CGMV_Enclopedia discover all would be better to get
everything, also usefull if you can a specific item to discover all items
or all monsters etc.
Do you know what command symbol name?
Because I am using Yanfly Engine "Main Menu Manager".
@Killerslash the symbol to YEP_MainMenuManager can be anyhting.

Name: "Monsterbook"
Symbol: monsterbook
etc

just name the symbol as the "Name" you pick, but in lowercase and without qouotes.
I try it, but it shows me an error.
can you send a pictuer on how you set up the YEP_MainMenuManager?
because you have a typo or something missing in there.

because it works fine on my end.
Well, about MainMenuManager, I didn't use it, I used SRD's menu Kingdom Hearts Plugin.
And I used moghunter abs.
Sorry about that.
than try this (while its the command name to push the scene by plugin command:

CGMVEncyclopedia

While Command name and Symbol are mostly the same, I think that one should work.
if not, than @casper667 might know.

I only heard of the plugin, but dont know exacly what it means by symbol.
@41728280 I mean the following, you do this for enemies, do the follow,
you can keep the Bestiary or make a setup for the info you display,
THIS WILL TAKE TIME! Because of all the enemies you have, but do the following.

1) place SV Battler (NOT THE FILE) but 1 slime battler from animated slime battler,
enlarge it if you like.

2) uncheck "Bestiary" and create a custom category "Bestiary" or "Monsters" etc.

3) fill out the data you want to see (make setup) so you can copy paste the information
so you have little to change, numbers and sketch (you can rename this as well).

4) than when you battle an enemy and use: CGMVEncyclopedia Discover [symbol] [id]
example: CGMVEncyclopedia Discover Monsters 4.

you can avoid using a conditional brance, not sure if selfswitch will work, but even
if it reads again, it wont be added a 2nd time anyway 🙂 but this will work.

a fix for this will be harder, because sv battlers arent in the enemies folder where
I think the enemies is read from.

I'm using this solely as a Bestiary and calling my monster section "Darklings", but when I create the 'Custom Entry', do I need to add it as a 'Category Option', as well as creating the 'Custom Entry'?

The documentation is a little confusing on the subject.

Would it be possible to just add a true/false option to display the SV graphic used in the database?

I'm also not sure how to add the enemy when encountering it as I don't understand how to use the plugin command "CGMVEncyclopedia Discover [symbol] [id]" for an enemy as I don't even see anything to run a common event, let alone a plugin command in the enemies tab of the database...

Original thread: https://forums.rpgmakerweb.com/threads/cgmv-encyclopedia-w-bestiary.93854/