Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> Read!, Make the player read a book/scroll oldschoolstyle!
SojaBird
post Sep 2 2008, 10:40 AM
Post #1


Level 51
Group Icon

Group: Revolutionary
Posts: 1,573
Type: Scripter
RM Skill: Advanced




Read!

Version v2.5
Author SojaBird
Release Date
v1.0 > 02-09-08
v1.1 > 03-09-08
v1.2 > 04-09-08
v2.0 > 10-12-08
v2.1 > 11-12-08
v2.2 > 11-12-08
v2.5 > 29-01-09


Introduction
Read! A script that makes your players read something you like! Make books or scrolls with any picture program and make them appear, ready to be read!

Features
v1.0
  • Make the player read a picturebased book.
v1.1
  • Fixed bug with amount to go forward.
v1.2
  • Added sounds setup.
v2.0
  • Read_A_Book! > Read;
  • No more stupid pagessize input, no more stupid .png or .jpg input;
  • Read a scroll, instead of a book;
  • Now a book/scroll can also be read without returning to the itemmenu;
  • Sound setup disapeard!? (will not be included until request);
  • More easy and shorter callscript functions.
v2.1
  • Bug fixed, background is disposed now when a scroll or book is closed.
v2.2
  • Some more easy use of pictures, as well as some extra functions (useing spreads for example).
v2.5
  • Code can be placed in the itemnote field and will be executed;
  • Automaticly read if the code comes from an itemnote;
  • A more clear code;
  • Some extra call script functions.


To come features
- Only on request.


Script
Attached File  Read.txt ( 18.23K ) Number of downloads: 314



Customization
[Show/Hide] How-to-use
Call the next script or make your book/scroll as an item and put the code in the note field of that item. Use the following;
CODE
read_book(book, *back, *draw_style, *from_item)
read_scroll(scroll, *from_item)
For the variables "book" and "scroll", you'll have to set the
name of the book/scroll ('picturename'). For the variable "back", you can setthe name of the back images of a book. If you leave it for what is, it'll use the default settings from the script-setup ("BACK_PIC"). For the "draw_style", you can change the way of how you've set up the pictures. This variable is optional. You do have to set "back" if you want to use this. If you leave it empty, it'll use the default you've set in the script-setup ("DRAW_STYLE"). For the variable "from_item", you can set if you want to return to the item window when you close the book/scroll. But if you leave it for what it is, it'll see for itself if the code came from an item or not (recommented).


[Show/Hide] File-Names
Use correct filenames for your book! First of all check the script-setup and make it to how you want it before making your pictures. Look at the "BOOK_MAP", this is the place where you're going to put your pictures. Now you can make the pictures... Though be aware! You need a to make a background for your pages to show on. Size it (max) 544*416 and name it whatever you want. Go to the scriptsetup and put the name of that background after "BACK_PIC". Next you are going to make the pages with your text and/or pictures and all, that's all up to you since they are
pictures, so everything is possible. Just go and start making your pages with any size you like (change the "DRAW_STYLE" in the script-setup to your style). Every page should have it's own picture! When you're done with a page, and you're going to save and name it, set the name like this; 'bookname-pagenumber'. So if you just created the 2nd page of your book called 'ghost', the name of the picture must be 'ghost-1'. Make sure you see that the second page of the book, has the number 1. So the first page has the number 0.
For the scrolls, first check in wich map the pictures need to come. After that, just go and make some nifty looking pictures that will be shown and can be scrolled by the user in all 4
directions.
PS: RPGMakerVX only supports png/jpg/jpeg picture-files.


[Show/Hide] More Setup
The last 3 settings of the setup; CENTER_OFFSET, NEXT_PAGE and PREV_PAGE, are explaind below.
{CENTER_OFFSET}
The center_offset setting defermens the y-offset of the pages from the middle. So if you want your pages not to be drawn at the very middle of the back-picture, you'll have to set the center_offset to any given number you want the pages to be offset from the middle. For example if you have page-pictures that are sized 270*412, and you want them to be shown, not directly on the center of your background, but in the center of each half, you want to set the center_offset to 2 since this will center them out on every half.
{NEXT_PAGE}
This setting determens wich key needs to be pressed to move the pages to the next. You can only use known inputs by the game. Though, you can extend this by useing various other scripts that will allow you to use all inputs from your whole keyboard.
{PREV_PAGE}
This is actualy the same as the next_page setting, only this will bring the reader to the previous page.
For the scrolling part of the setup, the 4 SCROLL_directions and SCROLL_SPEED remains.
{SCROLL_UP/DOWN/RIGHT/LEFT}
For the directions, just changes the input to what you prefer, though the default are the most usefull (in my opinion).
{SCROLL_SPEED}
The scrollspeed, is the amount of pixels the scroll moves when the player presses one of the directionbutons once.



Compatibility
VX only.


Screenshot
Attached File  read_the_bible.jpg ( 148.32K ) Number of downloads: 1265



DEMO



Installation
Put the script above main.
Customise the script to your needs.
Credit me pls.


FAQ
Comming soon.


Terms and Conditions
Credit me with site, and the script is free for use in NONCOMERCIAL projects.
If anyone want some changes, please pm me or post it here, I'll track the topic.


__________________________
Art from the highest shelf?

Scriptology, scripting podcast



HUD's Request Lobby (multiple hud-scripts)


------------------------------------------------------------------

Random Stuff
OMG, it's Hab!!


This is a crazy drawing application! (by me)

How did I learned to script
QUOTE
Hey pim! I'm the Law G14!

For the past couple of months I've been learning RGSS and I've got the basic stuff down such windows, variables, conditional statements, ect. But, I can't see myself making big scripts such as a jumping system or a side view battle system. I was wondering how you learned to script because I really want to know how to script really well.

Thanks in advance.


Hey there,

Well I don't make battle neither though I can still teach you some things :)...
The way I've learned to script is by reading other scripts for the most part.
I've allways been interested in other peoples work but this time I though I had to try to make something myself...and it worked!!
The most importand thing when you go scripting is (at least in my case) that you want to make something to help an other wich can't script.
You also need to feel the competition that's around in the scripting-community.
Cause, I have to say, if you get pushed to get a sertain request done before an other scripter does, you feel POWERFULL!! :P
So that's an other thing...
You also don't need to be afraid to learn from others or helpfiles.
When I write my scripts, I actualy always have the helpfiles open to look things up I don't know or remember.
Then, you must be calm, cause you need to try the script a lot of times.
When I write a script, I test it after almost every changes.
First I set up the major structure.
Like when I make a window-script or part of a script I start with something like this:
CODE
class Window_Name < Window_Base
def initialize(x,y,width,height)
super(x,y,width,height)
refresh
end

def refresh
self.contents.clear
draw_contents
end

def draw_contents
draw_something(with, some, parameters)
end

def update
refresh if @something != @what_it_should_be
end
end
So that's also very important.
Then, the biggest thing I learned scripting from is TRIAL AND ERROR.
That's the most irritating way to learn something, cause it's more ERROR than TRIAL, but it does the trick realy good.

So that's it how I did it.
Now it's up to you.
Do some requests (if I didn't do it allready :P) and learn from them.

Hope that helped you out a little.
If not, keep your eye on the Scriptology-topic (see my sig) where I'll be updating for my scripting(video)tutorials.
Perhaps they're going to be usefull for you one day ;)


Greatzz,
SojaBird.
Go to the top of the page
 
+Quote Post
   
 
Start new topic
Replies
Twilight27
post Dec 5 2008, 08:29 AM
Post #2


Level 19
Group Icon

Group: Revolutionary
Posts: 371
Type: Event Designer
RM Skill: Beginner




Sorry for reviving this topic, but the demo link is broken =p
Can someone upload a new link or something?


__________________________

Fall to the power of the Emo!
We have cookies!


Notice!! Check out my topic (http://www.rpgrevolution.com/forums/index.php?showtopic=45736&st=0#entry454175) if you're interested in helping me make a script that limits the number of characters & items you use in battle AND also an item durability feature! Thanks for any help in advance!
Go to the top of the page
 
+Quote Post
   

Posts in this topic
- pim321   Read!   Sep 2 2008, 10:40 AM
- - HotSpot6   Sweet, thanks for this.   Sep 2 2008, 03:02 PM
- - jasonicus   This is perfect for what I need. Thanks.   Sep 2 2008, 03:14 PM
- - GunZz   will you upload a demo ?   Sep 2 2008, 05:17 PM
- - pim321   thanks for all the good comments nice ya all like...   Sep 2 2008, 09:28 PM
- - pim321   mmm sorry for the dubble post, but i found some bu...   Sep 3 2008, 03:45 AM
- - GunZz   Thx :] ;] LoL awesome script   Sep 3 2008, 05:33 AM
- - xeyla   This is awsome! I've been wanting to put m...   Sep 3 2008, 09:19 AM
- - pim321   Well thanks... Anyway to improve? I like to work w...   Sep 3 2008, 09:38 AM
- - maker2008   Thank you very much.. can you make variables appea...   Sep 3 2008, 12:26 PM
- - pim321   could do ya...but can ya be more spesific?   Sep 3 2008, 10:24 PM
- - Mr. Bubble   I think it would be cool to have a customized soun...   Sep 4 2008, 05:09 AM
- - pim321   heya mr. bubble I indeed discoverd that I didn...   Sep 4 2008, 10:24 AM
- - Magdreamer   So this is like the Ansem Reports in Kingdom Heart...   Sep 4 2008, 08:58 PM
- - pim321   don't know that game   Sep 4 2008, 11:22 PM
- - Pipokary   Maybe you can also make one for RMXP, since I wann...   Sep 26 2008, 08:17 PM
- - pim321   Sorry I only can script RGSS2, though perhaps some...   Sep 26 2008, 11:20 PM
- - HotSpot6   Maybe the ability to have like, one callscript be ...   Oct 8 2008, 04:17 PM
|- - leqesai   QUOTE (HotSpot6 @ Oct 8 2008, 04:39 PM) M...   Oct 9 2008, 12:20 AM
- - pim321   @Hotspot That's nice, I'll go and try that...   Oct 9 2008, 02:12 AM
- - lahandi   Mmm... I tried to downloaded the demo, but the lin...   Oct 18 2008, 05:56 PM
- - pim321   Oke comming again...soon   Oct 19 2008, 05:09 AM
- - pim321   Hey some little update (and sory if it is dubble p...   Nov 7 2008, 03:13 AM
- - pim321   hehe yea know, I'll do it in some time also ...   Dec 5 2008, 09:11 AM
- - Twilight27   Ok cool then. I'll wait a while for it.   Dec 5 2008, 05:18 PM
- - pim321   A small bump and update. I hope I can start tomor...   Dec 8 2008, 02:35 PM
- - pim321   UPDATE v2 - Read_A_Book! > Read - No more s...   Dec 9 2008, 03:25 PM
- - pim321   Small bug fixed in new version 2.1. The backgroun...   Dec 11 2008, 07:00 AM
- - pim321   update nr2 today version 2.2 is launched Some ext...   Dec 11 2008, 02:31 PM
- - vandelfan   Are you going to upload a demo soon? I understand ...   Dec 29 2008, 01:59 PM
- - pim321   Yep I will, Though when I'm making demo's...   Dec 30 2008, 04:49 AM
- - buny   Where Must I put the book..? how can we make the b...   Jan 25 2009, 07:01 AM
- - pim321   Hey Buny, There's no demo jet...Though I try ...   Jan 25 2009, 10:24 AM
- - pim321   BIG BIG UPDATE!! Version 2.5 is ready to b...   Jan 29 2009, 07:01 AM
- - somersaultsofa   Sorry if the answer is obvious, but could you not ...   Aug 17 2009, 08:58 AM
- - pim321   Well some of the features that cover this scipt ca...   Aug 20 2009, 01:59 AM
- - woahfish   thanks for the script, but the demo download place...   Apr 22 2010, 10:05 AM
- - exkabuto   sorry for very old bum but i cant hold myself anym...   Jun 28 2012, 08:08 AM


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 25th May 2013 - 02:24 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker