CGMV Encyclopedia w/ Bestiary

casper667

Casper Gaming
Veteran
Joined
Mar 15, 2012
Messages
245
Reaction score
340
First Language
English
Primarily Uses
RMMZ
@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.
 

41728280

Veteran
Veteran
Joined
May 31, 2020
Messages
238
Reaction score
72
First Language
Chinese
Primarily Uses
RMMV
@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:thumbsup-right:
 

Suikogen

知識は力なり
Veteran
Joined
Jul 4, 2019
Messages
73
Reaction score
34
First Language
English
Primarily Uses
RMMV
@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.
 
Last edited:

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
3,152
Reaction score
1,166
First Language
Dutch
Primarily Uses
RMMV
@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 :)
 
Last edited:

casper667

Casper Gaming
Veteran
Joined
Mar 15, 2012
Messages
245
Reaction score
340
First Language
English
Primarily Uses
RMMZ
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.
 

Espilonarge

Veteran
Veteran
Joined
Apr 24, 2016
Messages
143
Reaction score
67
First Language
English
Primarily Uses
@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:thumbsup-right:
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. :)
 

casper667

Casper Gaming
Veteran
Joined
Mar 15, 2012
Messages
245
Reaction score
340
First Language
English
Primarily Uses
RMMZ
@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.
 

Deagron

Villager
Member
Joined
Aug 14, 2020
Messages
25
Reaction score
5
First Language
French
Primarily Uses
RMMV
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 :)
 

casper667

Casper Gaming
Veteran
Joined
Mar 15, 2012
Messages
245
Reaction score
340
First Language
English
Primarily Uses
RMMZ
@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

Villager
Member
Joined
Aug 14, 2020
Messages
25
Reaction score
5
First Language
French
Primarily Uses
RMMV
@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 :)
 

Essention

Essential
Member
Joined
Oct 6, 2020
Messages
16
Reaction score
25
First Language
English
Primarily Uses
RMMV
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...
 

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
3,152
Reaction score
1,166
First Language
Dutch
Primarily Uses
RMMV
@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.
 

Killerslash

Veteran
Veteran
Joined
Mar 31, 2017
Messages
76
Reaction score
15
First Language
Arabic
Primarily Uses
RMMV
Do you know what command symbol name?
Because I am using Yanfly Engine "Main Menu Manager".
 

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
3,152
Reaction score
1,166
First Language
Dutch
Primarily Uses
RMMV
@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.
 

Killerslash

Veteran
Veteran
Joined
Mar 31, 2017
Messages
76
Reaction score
15
First Language
Arabic
Primarily Uses
RMMV
I try it, but it shows me an error.
 

Attachments

  • Screenshot (442).png
    Screenshot (442).png
    1,010.6 KB · Views: 4

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
3,152
Reaction score
1,166
First Language
Dutch
Primarily Uses
RMMV
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.
 

Killerslash

Veteran
Veteran
Joined
Mar 31, 2017
Messages
76
Reaction score
15
First Language
Arabic
Primarily Uses
RMMV
Well, about MainMenuManager, I didn't use it, I used SRD's menu Kingdom Hearts Plugin.
And I used moghunter abs.
Sorry about that.
 

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
3,152
Reaction score
1,166
First Language
Dutch
Primarily Uses
RMMV
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.
 

Zakarijah

I love making maps!
Veteran
Joined
Aug 18, 2019
Messages
135
Reaction score
19
First Language
English
Primarily Uses
RMMV
@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...
 
Last edited:

Latest Threads

Latest Profile Posts

Is this Profile Banner thing new? Or did I just discovered it now?
Well.. I was going to post my randomly generated road experiments... But the new "Attach Files" on profile posts seems to be quite buggy. Also there's no more option to insert Imgur images. Highly unfortunate. Guess I'll give them a bit to fix it and go back to messing with stuff.
my first day back to working on my project and i'm pooped!! hope to get back in the rhythm soon!

Forum statistics

Threads
107,595
Messages
1,030,829
Members
139,701
Latest member
beccokiwis
Top