Calls a scene that will allow the player to read/view books they have collected.
# that book already displayed.
# width and pages, regardless of font or font size.
# 1. Fill in the configuration below.
# 2. Create a new folder within the "Data" folder, and name it "Books".
# 3. Within this folder, create simple text documents (.txt).
# 4. Name them EXACTLY as you did for its respective title (below).
# 5. Turn word-wrap OFF.
# line will start on a new line in the scene, regardless of the font size.
# - Calls the Book scene.
# - Calls the book scene. The book with BOOK_ID will already be displayed.
# to be unlocked to call this way.
# Class of the scene that the game return to after you exit the book scene.
# be listed in the order they were aquired.
# Set to the name of the SE that will be played when a player turns a page.
# entire screen (minus the header).
# be used as the filename to be loaded as well.
# Adds the Book ID to the array.
# Sorts the array by the Book IDs if so configured.
# of the document, and returns it.
attr_accessor :books # Array: Stores the IDs of all unlocked books.
# Create a blank dummy window.
# Create Help_Window to display the book titles.
# Create the window that text will be displayed on.
# Make a copy of the Books array.
# Create instance variable for updating the text window.
# Make list of all books, if possible, else make list empty.
# Play SE if configured as such.
# Gets an array whose elements are the lines of the text document.
# will fit into the window, then add them all together.
# Organizes the lines (12 per page) into pages.
# Displays the lines of the current page onto the window.
# Set the proper text to the page screen.
# The slice_text method was created by Blizzard. I take no credit for it.
Please let me know if any bug/issues are found.
One little little extra request? An added option to select a book to read, with out the little side menu? Like find a book, pick it up and you read, with just the title, pages, and the text? Then can have it as it currently is as a list to go back to reread past books you already found.
I can make a quick mod for you to change the display.
As for the text size thing, that was just to show how the page will format to whatever the font and size are. I wouldn't use size 6 either. This will make it so that the text always is formatted correctly, even if the player has control of the font and font size. The only drawback is that the text cannot be pre-formatted and stored, which causes that half a second of lag when you first select a book and it needs to open the text document, etc.
A bit off topic, but Zer0, you should make all the list of scripts in your signature actual links to said scripts.
Good idea about the sig. I think it needs updated anyway.
So fare I have seen no bugs even when tossed in my script computability testing game, it works fine with everything I use.
Okay try that out. It now has the option of how you want the text window to be displayed.
Nice once again! However don't think you fully grasped what I asked.
Like to be able to read a book with out going through the list. Like going to a library, picking a book and instantly going to the book text and reading. Then (for me anyway) the list could be of books you've already read to reread again... or not use the list scene at all and go back to each book in game to reread it.
I think this was forgotten about.
Patience, grasshopper. This is not on my list of high priorities.
Very, very nice one! Thanks! Maybe port it to VX too? There's no book scripts for VX if I'm not mistaken, and I sure could use one..
Or just ignore the argument and it will open with the list displayed.
Quickly now turtles, mummy has meeting.
Hey, this is a really epic script!
But, I was wondering if there was something in the script I could edit to make a picture display at the bottom of the page, that varies from each book, any ideas?
Hey FZ0, Can I make a small added request with this?
I'd like to be able to change the font color of the text as well as the font used. I tried it myself, but each time I try it throws back an error.
The window is a sprite, which has no methods for font, but "contents" refers the sprite's bitmap, which does.
they are all topics that don't have the template applied I take it? because I couldn't find these topics.