Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> *NEW* Face Script!, Fully customizable script
SetandSpike
post Jun 20 2009, 12:34 PM
Post #1


Level 1
Group Icon

Group: Member
Posts: 10
Type: Musician
RM Skill: Skilled




Alright, I hate to be a tease, but here is a screenshot. I'm still tweaking the code to make it more user-friendly. Note that on the image, I added some noise so my tileset and charsets won't be stolen.

All this script involves is editing one line in the pre-rendered code in every game. Then, you create a common event for each face that you want to appear. The end result is:

Attached File  New_Script.png ( 501.61K ) Number of downloads: 795


Full script will be posted only here on RPG Revolution, and as a reply to this post, TONIGHT! Check back!!
Go to the top of the page
 
+Quote Post
   
SetandSpike
post Jun 20 2009, 09:07 PM
Post #2


Level 1
Group Icon

Group: Member
Posts: 10
Type: Musician
RM Skill: Skilled




(Note that this example calls for two separate graphic files: one file containing the speaker's name (160x40) and one containing its face (160x120). You may use only one image (160x160) to make things easier. If you do, omit any script lines that refer to Picture 2)

Instructions:
1. Edit line 12 in Window_Message so that it looks like:
super(160, 320, 470, 160) # super(80, 304, 480, 160)

2. Highlight and delete lines 173-178 so that line 173 is blank. Paste the following into the now blank line 173:
when 0 # up
self.x = 5
self.y = 304
when 1 # middle
self.x = 85
self.y = 160
when 2 # down
self.x = 165
self.y = 304

3. Create a common event with the following two lines:
For a Left-indent:
@>Show Picture: 1, 'Face-Seiya', Upper Left (5,304), (100%,100%), 235, Normal
@>Show Picture: 2, 'Face-Seiya1', Upper Left (5,344), (100%,100%), 235, Normal


For a Right-indent:
@>Show Picture: 1, 'Face-Seiya', Upper Left (475,304), (100%,100%), 235, Normal
@>Show Picture: 2, 'Face-Seiya1', Upper Left (475,344), (100%,100%), 235, Normal


4. Save this event as "Seiya".
5. Create a new event on the map. Add the following lines (RED text is optional):
If your Common Event shows a face on the right:
@>Call Common Event: Seiya
@>Change Text Options: Top, Show
@>Text: Hello. I am:
: Change Text Options: Top, Show

@>Move Picture: 1, @4, Upper Left (475,304), (100%,100%), 0, Normal
@>Move Picture: 2, @4, Upper Left (475,344), (100%,100%), 0, Normal
@>Wait: 5 frame(s)

@>Erase Picture: 1
@>Erase Picture: 2


If your Common Event shows a face on the left:
@>Call Common Event: Seiya
@>Change Text Options: Bottom, Show
@>Text: Hello. I am:
: Change Text Options: Top, Show

@>Move Picture: 1, @4, Upper Left (5,304), (100%,100%), 0, Normal
@>Move Picture: 2, @4, Upper Left (5,344), (100%,100%), 0, Normal
@>Wait: 5 frame(s)

@>Erase Picture: 1
@>Erase Picture: 2


And you're done! The end result should look like the following:
Attached File  Indent_left.png ( 249.75K ) Number of downloads: 117

Attached File  Indent_right.png ( 247.4K ) Number of downloads: 69

Attached File  Indent_middle.png ( 198.37K ) Number of downloads: 55


This post has been edited by SetandSpike: Jun 20 2009, 09:08 PM
Go to the top of the page
 
+Quote Post
   
dacloudster
post Jun 21 2009, 10:38 AM
Post #3



Group Icon

Group: Member
Posts: 4
Type: Event Designer
RM Skill: Skilled




Nice thats great now i can have my pics on itherside,
Good work thumbsup.gif
Go to the top of the page
 
+Quote Post
   
SetandSpike
post Jun 22 2009, 04:06 PM
Post #4


Level 1
Group Icon

Group: Member
Posts: 10
Type: Musician
RM Skill: Skilled




Here are some screenshots of what the coding should look like:
Attached File  Face1.png ( 35.65K ) Number of downloads: 108

Attached File  Face2.png ( 35.54K ) Number of downloads: 47

Attached File  Face3.png ( 111.25K ) Number of downloads: 45

Attached File  Face4.png ( 137.41K ) Number of downloads: 39

Attached File  Face5.png ( 111.35K ) Number of downloads: 20

Attached File  Face6.png ( 138.03K ) Number of downloads: 24

Attached File  Face7.png ( 44.28K ) Number of downloads: 50


I'm also working on this script to have it work similarly to the other popular script (the one that uses an in-text command, \f) so that you won't have to create common events, or manually make the pictures disappear. It's a lot of work to get it set up, but once you have everything working, you'll see the results are very aesthetically pleasing.

Let me know if it works, let me know if it doesn't work. If I have to, I'll post a Test Game Demo with the code in place, so you can just modify it to your needs, or copy&paste to your own game.

Cheers!
Go to the top of the page
 
+Quote Post
   
Xach-Crisis
post Jun 23 2009, 12:30 AM
Post #5


"In a world called Tenebrae..."
Group Icon

Group: Revolutionary
Posts: 566
Type: Developer
RM Skill: Skilled




would you mind posting a demo( not that its needed ), but it would make it abit easier

hey i managed to set it up, but the pictures ends up in the background and the text is just showing over the players face now thats abit annoying


__________________________
Title: Final Fantasy V.2 Ascension Engine: RPG Maker XP Original Story and Concept by Xach-Crisis


"Graphical Beast Xach-Crisis working on Gai's Hunter with Vision Studios, check it out!"
Go to the top of the page
 
+Quote Post
   
SetandSpike
post Jun 23 2009, 03:14 PM
Post #6


Level 1
Group Icon

Group: Member
Posts: 10
Type: Musician
RM Skill: Skilled




QUOTE (Sicon @ Jun 23 2009, 04:30 AM) *
would you mind posting a demo( not that its needed ), but it would make it abit easier

hey i managed to set it up, but the pictures ends up in the background and the text is just showing over the players face now thats abit annoying



Can you show me a screenshot of what it looks like for you? Perhaps you forgot to change the text options, or are using the wrong coordinates for the picture. Keep in mind that by default, the text will indent from the left; in other words, there will be an empty space on the left side of the text, where the picture graphic should load.

I tried uploading it as a .rar file, but it wouldn't let me.

RapidShare - can only be downloaded 10 times
Go to the top of the page
 
+Quote Post
   

Reply to this 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 - 11:20 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker