Library Pages/Picture Events RMMV

Hello all,

My apologies for always having so many questions, but I only come to you guys when I'm stumped. I believe this is the right place to post this question. I've been illustrating pages on magical plants and potions for my game that the character finds throughout the world. He has a study in his home that I would like to be the only place that he can read these pages (rather than out in the field by selecting the object whenever he wants).

I'm having the hardest time trying to figure out the best method to have the pages/books only visible and capable of being selected to read once he collects them. I've tried choice branches, choices with item conditions and several others. The best that's worked so far is Item Selection where I make all of the books and pages Hidden Items. The problem is, the pages are pulled up layered on top over each other and the pages aren't coming up for the correct item selected.

If you look at the attached images: When Beginner's Guide to Potions is selected, The Grand Felonwood comes up. Then, if Beginner's Guide to Potions is selected again, the "correct" page shows up over The Grand Felonwood.

Is there a better method to have pages read from the desk that I'm missing? I didn't want all of the options visible, just in case they end up not being collected.

Thank you for any help! I'm willing to download any plugin or anything that might help. I have quite a few installed. (the Yanfly magic image is just a placeholder to test the page system, the other one is an example for the game)

Thank you,
-Mino
Your idea is good - hidden items are what I think works best in this case. However, there are two problems with your current setup:

First, your Select Item command is not going to work like this. It saves the ID of the item the player chooses in the variable you select; that means you only need the command once, and then check the value of the variable afterwards in a series of Conditional Branches, one for each possible page. For example, if your Felonwood Page item has the ID 1 and the Potions Page item has the ID 2, it should look like this:

◆Select Item:Temp1, Hidden Item A
◆If:Temp1 = 1
◆Common Event:Felonwood Page
◆
:End
◆If:Temp1 = 2
◆Common Event:Beginning Potions Page
◆
:End

(As a bit of an aside: I used a "temporary" variable here. When you set a variable to a value, then check it directly afterwards, and never need that value again, you don't have to set aside an extra variable just for that. I usually have one or two variables named "Temp" which I use for exactly these purposes - for Select Item commands, for getting and immediately checking a random number to give a random line of dialogue etc.)

Your other problem occurs because your page images are on different layers - that is what the image number means. Picture #2 will always overlap picture #1, picture #3 would overlap picture #2 and so on.

In this case, it is only a problem because you execute the item selection twice (and therefore show two pictures), so it should be fixed once you fix the Select Item command. However, it would still be cleaner to use the same picture number for all page pictures: If you have each page displayed as picture #1, you don't need an extra Common Event for each XXX Page Open. Instead, you can have a single Common Event "Any Page Open" that erases picture #1 when a button is pressed (and you only need one switch to activate that as well).

Hope that helps 🙂
Thank you! I'll attempt this when I get home later. I really appreciate it!
Well, I tried it and it seems to work even less now. I'm fairly confused on trying to get this page collecting to work, so I might take a break from it.

*Sorry, I didn't mean to post beneath my last post.

Original thread: https://forums.rpgmakerweb.com/threads/library-pages-picture-events-rmmv.78241/