Author Topic: [XP] Book Scene  (Read 12198 times)

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3248
  • LV: 294
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
[XP] Book Scene
« on: September 01, 2010, 06:20:14 PM »
Book/Library Scene
Authors: ForeverZer0
Version: 1.2
Type: Misc Add-on
Key Term: Misc Add-on

Introduction

Calls a scene that will allow the player to read/view books they have collected.

Features

  • Easy to configure, text is read from an external text document
  • Text is automatically sized for each page

Screenshots

None.

Demo

http://www.mediafire.com/?yvgzdoa32uahh7n

Script
(click to show/hide)

Instructions

See script.

Compatibility

No known issues.

Credits and Thanks

  • ForeverZer0, for the script
  • Blizzard, for the "slice_text" method
  • Taiine , for requesting it


Author's Notes
Please let me know if any bug/issues are found.
Enjoy!
« Last Edit: September 28, 2010, 06:11:43 PM by ForeverZer0 »
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Offline Taiine

  • Ethereal Devastator
  • ****
  • Posts: 311
  • LV: 14
  • Gender: Female
    • View Profile
Re: [XP] Book Scene
« Reply #1 on: September 01, 2010, 11:40:38 PM »
Oh my god this is fantastic! <3 No mess, no hassle, so easy to use! Best of no NO ANNOYING FORMATTING OF THE TEXT FILES!  <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3

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.

Oh and.. is the text size thing really part of it? :P I made the mistake of going SIZE 6 and like holy molly that's tinny, and changing all the game text. It was very much so silly XD

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3248
  • LV: 294
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
Re: [XP] Book Scene
« Reply #2 on: September 02, 2010, 06:04:49 PM »
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.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Offline Jragyn

  • Ethereal Devastator
  • ****
  • Posts: 311
  • LV: 20
  • Gender: Male
  • A prodigy... maybe? Hoo hah.
    • View Profile
    • facenbooken.
Re: [XP] Book Scene
« Reply #3 on: September 02, 2010, 08:59:35 PM »
A bit off topic, but Zer0, you should make all the list of scripts in your signature actual links to said scripts.
Dats convenient.
I think all scripters should have that! (cept maybe Blizzard, cuz he's got...a LOT.)

  :^_^':
A bright light can either illuminate or blind, but how will you know which until you open your eyes?

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19903
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3248
  • LV: 294
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
Re: [XP] Book Scene
« Reply #5 on: September 02, 2010, 10:27:47 PM »
Good idea about the sig. I think it needs updated anyway.  ;)
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Offline Taiine

  • Ethereal Devastator
  • ****
  • Posts: 311
  • LV: 14
  • Gender: Female
    • View Profile
Re: [XP] Book Scene
« Reply #6 on: September 03, 2010, 01:03:57 AM »
That mod will be swell. :3

So fare I have seen no bugs even when tossed in my script computability testing game, it works fine with everything I use.

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3248
  • LV: 294
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
Re: [XP] Book Scene
« Reply #7 on: September 03, 2010, 06:06:53 PM »
* Updates to Version 1.1 *
Okay try that out. It now has the option of how you want the text window to be displayed.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Offline Taiine

  • Ethereal Devastator
  • ****
  • Posts: 311
  • LV: 14
  • Gender: Female
    • View Profile
Re: [XP] Book Scene
« Reply #8 on: September 04, 2010, 12:31:16 AM »
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.
« Last Edit: September 04, 2010, 11:02:37 AM by Taiine »

Offline Taiine

  • Ethereal Devastator
  • ****
  • Posts: 311
  • LV: 14
  • Gender: Female
    • View Profile
Re: [XP] Book Scene
« Reply #9 on: September 16, 2010, 07:44:00 PM »
Any progress on this?

Offline Taiine

  • Ethereal Devastator
  • ****
  • Posts: 311
  • LV: 14
  • Gender: Female
    • View Profile
Re: [XP] Book Scene
« Reply #10 on: September 20, 2010, 07:04:10 PM »
I think this was forgotten about.  :hm:

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3248
  • LV: 294
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
Re: [XP] Book Scene
« Reply #11 on: September 20, 2010, 09:52:45 PM »
I think this was forgotten about.  :hm:

Patience, grasshopper. This is not on my list of high priorities.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Offline Ravenith

  • Trained Member
  • *
  • Posts: 25
  • LV: 0
    • View Profile
Re: [XP] Book Scene
« Reply #12 on: September 21, 2010, 02:43:27 PM »
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..

(Why do I use VX? Long story... :/ )

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3248
  • LV: 294
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
Re: [XP] Book Scene
« Reply #13 on: September 28, 2010, 06:13:43 PM »
Okay, I updated to 1.2
You can now just call the scene with an argument that will have the desired book all ready to go, without having any book list. The other option is still there,

Use this to call the scene:
Code: [Select]
$scene - Scene_Book.new(BOOK_INDEX)
Or just ignore the argument and it will open with the list displayed.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Offline Karltheking4

  • Transcended Spirit
  • ***
  • Posts: 101
  • LV: 1
  • Gender: Male
  • Quickly now turtles, mummy has meeting.
    • View Profile
Re: [XP] Book Scene
« Reply #14 on: October 04, 2010, 11:26:22 AM »
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?
It should be simple I think :)

something like:
Code: [Select]
if 0 then $game_screen.pictures[3].show(1, 1, 1, 1, 1, 1, 1, 1)
But I dunno...

Offline Taiine

  • Ethereal Devastator
  • ****
  • Posts: 311
  • LV: 14
  • Gender: Female
    • View Profile
Re: [XP] Book Scene
« Reply #15 on: November 16, 2010, 06:46:06 PM »
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.
Rather with
@text_window.font.color
@self.contents.font.color
same with font type.
yet
@text_window.windowskin
worked just fine to change the window skin O.o;;;

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3248
  • LV: 294
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
Re: [XP] Book Scene
« Reply #16 on: November 16, 2010, 07:03:49 PM »
The correct syntax would be :

Code: [Select]
@text_window.contents.font.name = 'FONTNAME'
@text_window.contents.font.size = SIZE
@text_window.contents.font.color = Color.new(R, G, B, ALPHA)

The window is a sprite, which has no methods for font, but "contents" refers the sprite's bitmap, which does.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5128
  • LV: 197
  • Gender: Male
  • Wants to write a compiler for fun
    • View Profile
Re: [XP] Book Scene
« Reply #17 on: December 05, 2010, 07:14:54 AM »
oh look, more lazy mods :V
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19903
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Book Scene
« Reply #18 on: December 05, 2010, 12:19:34 PM »
I just went through the script section and found more than 10 script topics that haven't been moved. O_o
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5128
  • LV: 197
  • Gender: Male
  • Wants to write a compiler for fun
    • View Profile
Re: [XP] Book Scene
« Reply #19 on: December 05, 2010, 12:46:04 PM »
they are all topics that don't have the template applied I take it? because I couldn't find these topics.


Zer0, I'm sorry were gonna hijack your thread and discuses moderation of the RGSS section now :V:
« Last Edit: December 05, 2010, 12:47:09 PM by Ryex »
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)