Custom Books and Literature

Hello all,

I'm having a little trouble implementing a system for my game. My game features a class promotion system (similar to Fire Emblem I guess?) using Yanfly's class scripts. I wanted to have a bit early on in the game where you can find a book explaining all the classes, their skills, their stat growth, requirements, things like that, each class having their own page. What I am having a problem with is setting up the book. I was thinking maybe using the "show picture" feature of events and custom-drawing each page of the book, but I have no idea if this is actually a good idea. I had heard of a way to make custom menus with events and pictures, but I don't know if the same principles could be applied to this concept. If anybody could offer any suggestions, that would be great. Thanks!

Anex
I've moved this thread to MV Support (this is a "how do I ..." question, not a discussion of game mechanics). Please be sure to post your threads in the correct forum next time. Thank you.
I use common events and pictures for books in my game. I wrote a small 19 step tutorial on how I set that up.

It's a little long so I inclosed it in a spoiler tag; at least I think I did.

Spoiler
1. Make a variable named after your book (so that you can keep track of page numbers)

2. Make a new common event(I'd name it after your book but that's up to you.

3. The first thing in your common event page should be a conditional branch. Check to see if your books variable = 0. If it is set it to 1.

4. (This is optional) Show text that says "To close the book, or go back a page, press the 'X' key".

5. Jump to label 'Next Page'

(The 'next page' part of the event is done later)

Each book page should be set up by following steps 6-11

6. Make a label named 'Pages 1&2' or just 'Page1' if you only show one page at a time.

7. Show picture(whatever your page name is)

8. Make a blank 'show text' event set at the bottom & transparent.

9. Check if the cancel button is being pressed. If it is show choice [Go back a page; Close book]

If they choose 'go back a page check if your books variable is = to 1. If yes play a buzzer sound, if no subtract 1 from the book variable and jump to label 'Next Page'

If they choose 'close book' jump to label 'End'

10. Add 1 to your books variable

11. Jump to label 'Next Page'

The 'Next Page' part of the event is set up like this.

12. Make the label 'Next Page'

13. (Optional) Play SE Book1

Step 14 must be repeated for each book page you have

14. Check your books variable. If it is = to 1, jump to label 'Pages 1&2' or 'Page1' depending on how you labeled your pages.

For page 2 and beyond repeat step 14, just change the variable number to the correct page number.

The last part of the event is the 'End'

15. Label it 'End'

16. Check to see if your books variable is > the last page number of your book. If it is set your books variable to 1.

17. (Optional) play SE Book2

18. Erase picture

19. Exit event processing
I use common events and pictures for books in my game. I wrote a small 19 step tutorial on how I set that up.

It's a little long so I inclosed it in a spoiler tag; at least I think I did.

Spoiler
1. Make a variable named after your book (so that you can keep track of page numbers)

2. Make a new common event(I'd name it after your book but that's up to you.

3. The first thing in your common event page should be a conditional branch. Check to see if your books variable = 0. If it is set it to 1.

4. (This is optional) Show text that says "To close the book, or go back a page, press the 'X' key".

5. Jump to label 'Next Page'

(The 'next page' part of the event is done later)

Each book page should be set up by following steps 6-11

6. Make a label named 'Pages 1&2' or just 'Page1' if you only show one page at a time.

7. Show picture(whatever your page name is)

8. Make a blank 'show text' event set at the bottom & transparent.

9. Check if the cancel button is being pressed. If it is show choice [Go back a page; Close book]

If they choose 'go back a page check if your books variable is = to 1. If yes play a buzzer sound, if no subtract 1 from the book variable and jump to label 'Next Page'

If they choose 'close book' jump to label 'End'

10. Add 1 to your books variable

11. Jump to label 'Next Page'

The 'Next Page' part of the event is set up like this.

12. Make the label 'Next Page'

13. (Optional) Play SE Book1

Step 14 must be repeated for each book page you have

14. Check your books variable. If it is = to 1, jump to label 'Pages 1&2' or 'Page1' depending on how you labeled your pages.

For page 2 and beyond repeat step 14, just change the variable number to the correct page number.

The last part of the event is the 'End'

15. Label it 'End'

16. Check to see if your books variable is > the last page number of your book. If it is set your books variable to 1.

17. (Optional) play SE Book2

18. Erase picture

19. Exit event processing
Hey, do you think you could post a picture of how you set yours up? I'm a bit confused as to what goes where in the common event.
I've taken 4 screen shots for you. The first one has a red bar at the bottom because that part is shown in the 2nd one and I didn't want you to think you needed that twice. The comments are simply my own notes, I use them so I don't forget how to set up my events; as you can see I have a lot of them.

The screen shots cover the beginning of the event, how a book page is set up, the next page event, and the end of the event.

BookHelp_1.pngBookHelp_2.pngBookHelp_3.pngBookHelp_4.png
I've taken 4 screen shots for you. The first one has a red bar at the bottom because that part is shown in the 2nd one and I didn't want you to think you needed that twice. The comments are simply my own notes, I use them so I don't forget how to set up my events; as you can see I have a lot of them.

The screen shots cover the beginning of the event, how a book page is set up, the next page event, and the end of the event.

[IMG]http://forums.rpgmakerweb.com/public/style_images/RPGW_33_Images/attachicon.gif[/IMG]BookHelp_1.png[IMG]http://forums.rpgmakerweb.com/public/style_images/RPGW_33_Images/attachicon.gif[/IMG]BookHelp_2.png[IMG]http://forums.rpgmakerweb.com/public/style_images/RPGW_33_Images/attachicon.gif[/IMG]BookHelp_3.png[IMG]http://forums.rpgmakerweb.com/public/style_images/RPGW_33_Images/attachicon.gif[/IMG]BookHelp_4.png
Thanks for the screenshots, they helped immensely. I finally got my system up and running, now all I have to do is actually make the pictures for each individual page.
Glad I could help.

Original thread: https://forums.rpgmakerweb.com/threads/custom-books-and-literature.54936/