Using items in your menu screen with other items?

Hello and I have come across something I cant seem to figure out.

And I was wondering if there was a way to make an item be used in the menu screen that *adds to a different item.

For example:

Say I have a book and I am looking for pages in this book. After finding a page for the book, I want to use it in the inventory and add it to the book.

How do I do this?
What happens with the book? Is it accessible before you have all the pages? How do you use the book? Why not just add it to the book when finding it, rather than adding the page to the inventory, then having to use the page from inventory to add it to the book?


Assuming when you use the book it just calls a common event that displays "stuff" based on how many pages are found, I would just increment a variable when you find a page (if you don't want to add it to inventory), or when you use the page (if you do want to add it to inventory - in that case you would then remove it from inventory so you can't keep using it). Then when you use the book, look at that variable to determine how many pages to display.
Assuming when you use the book it just calls a common event that displays "stuff" based on how many pages are found, I would just increment a variable when you find a page (if you don't want to add it to inventory), or when you use the page (if you do want to add it to inventory - in that case you would then remove it from inventory so you can't keep using it). Then when you use the book, look at that variable to determine how many pages to display.
You are correct on the assumption.

In the first room of the game you find a book and that book is missing a lot of pages.

Each page you find when placed in the book will initiate a cut-scene of lore from the story itself. The only way to read the torn page is to put it in the book.

So yes I need to acquire the page and have it in my inventory. Where in the menu screen you can add it to the book itself.

The end goal is when the book is fully complete it takes you to the last area of the game.
So your cutscene plays when you use the page, not when you actually find it?


In that case, I would go with the "remove the item, add 1 to a variable, play cutscene; if variable == total # of pages, the book is complete" approach.
In that case, I would go with the "remove the item, add 1 to a variable, play cutscene; if variable == total # of pages, the book is complete" approach.
hmm... So is there any type of tutorials that you know of that would show this? like would it be a common event plus adding and subtracting a variable to get it to work.

also can a variable be placed into a battle processing. So that the enemy drops it or do you think it would be better to place them in chest/ ect?

Original thread: https://forums.rpgmakerweb.com/threads/using-items-in-your-menu-screen-with-other-items.49575/