Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

8 Pages V   1 2 3 > »   
Closed TopicStart new topic
> *Beta-Release* Neo-Face System Advance 3.0, *Merged with NMS - Neo Message System 2*
woratana
post Jan 20 2008, 12:19 PM
Post #1


Looking for scripter to hire? PM me *O*
Group Icon

Group: +Gold Member
Posts: 1,038
Type: Scripter
RM Skill: Undisclosed




Neo-Face System
Version 2.0
by Woratana
Release Date: 22/01/2008


Here is the second place I post this script,
I've posted this script in:
http://www.rpgrevolution.com/forums/index.php?showtopic=8131

Introduction
Yesterday I read this thread: Your RPG Maker VX Maps and found Rabu's show face style
[Show/Hide] Rabu's Screenshot

I heard that he used show picture for this, and he posted the face graphic that cut already.

So I script one to make it easier~^^

Features
Version 2.0
- No limitation in face size, use 1 face per file
Example:
Face size 192*192 pixel
http://i83.photobucket.com/albums/j295/woratana/facess1.jpg
Face size 255*255
http://i83.photobucket.com/albums/j295/woratana/facess2.jpg

- Show face in left side, right side, or switch back to normal RMVX face system.

- Fix bug when use "Show Choice" command.
Before and After:
Version 1.0
http://i83.photobucket.com/albums/j295/woratana/faced1.png
Version 2.0
http://i83.photobucket.com/albums/j295/woratana/faced2.png

Version 1.0
- Face size: 192*192 pixel, use 1 face per file
- Show face in left side or right side.
- Turn on/off face's Fade In effect, and change speed of Fade In effect.

Script
Place it above main
CODE

#==============================================================================
# NeoFace System v.2.0 [RMVX Script]
#------------------------------------------------------------------------------
# by Woratana [woratana@hotmail.com]
# Thaiware RPG Maker Community
# Special Thanks: Rabu
#------------------------------------------------------------------------------
# Released on: 22/01/2008
# - Put face graphics in folder "face" of your project.

# [New Features in Version 2.0]
# - Auto arrange face position (You can use any size of face file)

# - Call Script "$game_message.side = (number)" to switch show face mode.
# $game_message.side = 0 << switch to normal face system (default face system of RMVX)
# $game_message.side = 1 << switch to NeoFace system (show face in left side)
# $game_message.side = 2 << switch to NeoFace system (show face in right side)
# Default system when you first setup this script is 1
# THESE NUMBERS & RESULTS ARE DIFFERENT FROM VERSION 1.0 #

# Fixed bug in Show Choice command.
#==============================================================================

#==============================================================================
# Window_Base
#------------------------------------------------------------------------------
#==============================================================================
class Window_Base

def draw_face2(face_name, x, y)
@face.z = 201
@face.bitmap = Cache.face(face_name)
if $game_message.side == 1
@face.mirror = false
@face.x = x + 6
else
@face.mirror = true
@face.x = x + (538 - @face.width)
end
@face.y = y - (@face.width - 123)
@face.opacity = 0 # Change 0 to 255 to turn off face's fade in effect.
end
end

#==============================================================================
# Window_Message
#------------------------------------------------------------------------------
#==============================================================================
class Window_Message

alias msg_ini initialize
def initialize
msg_ini
@face = Sprite.new
$game_message.side = 1 # Default face's side when game start~ (default: 1)
@default_conx = 0
# Move text left (-) or right (+) when there's face in right side or no face (default: 0)
end

def new_page
contents.clear
if @face.bitmap != nil
@face.bitmap.dispose
end
if $game_message.face_name.empty?
@contents_x = @default_conx
else
name = $game_message.face_name
index = $game_message.face_index
if $game_message.side == 0 ##
draw_face(name, index, 0, 0)
else
draw_face2(name, self.x, self.y)
end
get_x_face
@contents_x = @fx
end
@contents_y = 0
@line_count = 0
@show_fast = false
@line_show_fast = false
@pause_skip = false
contents.font.color = text_color(0)
end

def new_line
if $game_message.face_name.empty?
@contents_x = @default_conx
else
get_x_face
@contents_x = @fx
end
@contents_y += WLH
@line_count += 1
@line_show_fast = false
end

def update
super
update_gold_window
update_number_input_window
update_back_sprite
update_show_fast
if @face.bitmap != nil and @face.opacity < 255
@face.opacity += 20 # Speed up face's fade in by increase this number
end
unless @opening or @closing
if @wait_count > 0
@wait_count -= 1
elsif self.pause
input_pause
elsif self.active
input_choice
elsif @number_input_window.visible
input_number
elsif @text != nil
update_message
elsif continue?
start_message
open
$game_message.visible = true
else
close
if @face.bitmap != nil
@face.bitmap.dispose
end
$game_message.visible = @closing
end
end
end

def start_number_input
digits_max = $game_message.num_input_digits_max
number = $game_variables[$game_message.num_input_variable_id]
@number_input_window.digits_max = digits_max
@number_input_window.number = number
if $game_message.face_name.empty?
@number_input_window.x = x - 23
else
case $game_message.side ##
when 0
@number_input_window.x = (x + 112) - 23
when 1
@number_input_window.x = (x + @face.width) - 23
when 2
@number_input_window.x = x - 23
end
end
@number_input_window.y = y + @contents_y
@number_input_window.active = true
@number_input_window.visible = true
@number_input_window.update
end

def update_cursor
if @index >= 0
if $game_message.face_name.empty?
x = @default_conx
else
get_x_face
x = @fx
end
y = ($game_message.choice_start + @index) * WLH
if $game_message.face_name.empty?
facesize = x
else
facesize = @face.width
end
self.cursor_rect.set(x, y, contents.width - facesize, WLH)
else
self.cursor_rect.empty
end
end

def get_x_face
case $game_message.side
when 0
@fx = 112
when 1
@fx = @face.width
when 2
@fx = @default_conx
else
@fx = @default_conx
end
end



end # Class

#==============================================================================
# Game_Message: + store side variable
#------------------------------------------------------------------------------
#==============================================================================
class Game_Message
attr_accessor :side
end

#==============================================================================
# END NeoFace System
# by Woratana (woratana@hotmail)
#==============================================================================


Download
- If you have problem with copy text from codebox,
you can download text file here.
Attached File  NeoFace_Script_2.txt ( 5.9K ) Number of downloads: 1296


- If you want to try version 1.0 of this script, download text file here.
Attached File  NeoFace_Script_1.txt ( 5.1K ) Number of downloads: 210


- Face graphic cut in 192*192 pixel by Rabu
Download Faces Pack Here!
Uploaded New Link @ 17/02/2008

example:



Instruction Version 2.0
1) First, import the face graphic (any size) to folder "Face" in your game folder.

2) When you're choosing face graphic in event command "Show Message", you will see that it divided in 8 parts.
Don't worry about it, choose any part you want. All parts will show face same result in this script.

3) Type the message you want, and "Show Message" window should look like this:

4) Test the game, and you will see the result!

=================================

Change Face's Side & Switch to Normal VX Face System
You can show face in left or right side, or switch back to normal VX face system.

To change face's side, use event command "Call Script" and type this:
CODE
$game_message.side = (0 or 1 or 2)

0 << switch to normal face system (default face system of RMVX)
1 << switch to NeoFace system (show face in left side)
2 << switch to NeoFace system (show face in right side)
^ 1 is DEFAULT MODE when you first place this script
(If you don't use this script before show message, face will show in the last side that you set)

Example:
$game_message.side = 0 Normal RMVX Face System
http://i83.photobucket.com/albums/j295/woratana/facess8.jpg << In Editor
[Show/Hide] $game_message.side = 0


$game_message.side = 1 NeoFace system in Left side
http://i83.photobucket.com/albums/j295/woratana/facess4.jpg << In Editor
[Show/Hide] $game_message.side = 1


$game_message.side = 2 NeoFace system in Right side
http://i83.photobucket.com/albums/j295/woratana/facess6.jpg << In Editor
[Show/Hide] $game_message.side = 2

=================================

Author's Notes
Free for use in your non-commercial work if credit included. If your project is commercial, please contact me.

Please do not redistribute this script without permission. If you want to post it on any forum, please link to this topic.

Special Thanks
- Rabu (for cutout face graphics)
- ccoa's script thread, for outline of the script thread.

This post has been edited by woratana: Mar 8 2008, 12:11 PM


__________________________
Check out my NEW blog!!!



MVP (Most Valuable Poster) Award 2008


Go to the top of the page
 
+Quote Post
   
jasonicus
post Jan 20 2008, 03:43 PM
Post #2


All Lies Lead to the Truth
Group Icon

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




Thanks. Nice job on this. It is very helpful. Thanks for sharing.
Go to the top of the page
 
+Quote Post
   
KiteDXX
post Jan 20 2008, 03:56 PM
Post #3


Level 7
Group Icon

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




Thanks for this. I will be using this, definitely.


__________________________
Go to the top of the page
 
+Quote Post
   
SeeYouAlways
post Jan 20 2008, 11:44 PM
Post #4


Demented Moogle
Group Icon

Group: Banned
Posts: 1,130
Type: None
RM Skill: Undisclosed




I am a bit too lazy to use this, but it looks neat anyway. When I make some serious projects then I may find use for this script. Cheers!


__________________________
Go to the top of the page
 
+Quote Post
   
Kinnison
post Jan 20 2008, 11:54 PM
Post #5


The not-so-revolutionary guy
Group Icon

Group: Revolutionary
Posts: 162
Type: Event Designer
RM Skill: Masterful




Nice system, the default one doesn't stretch the head out of the window screen right?

Off topicness below:
It's good to have many RGSS2 scripts posted early before VX's release. RRR rocks happy.gif


__________________________
[Show/Hide] Current Game Project:

[Show/Hide] On Hold:
Go to the top of the page
 
+Quote Post
   
jasonicus
post Jan 20 2008, 11:57 PM
Post #6


All Lies Lead to the Truth
Group Icon

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




Tried it out and it works great. Thanks.
Go to the top of the page
 
+Quote Post
   
woratana
post Jan 21 2008, 12:45 AM
Post #7


Looking for scripter to hire? PM me *O*
Group Icon

Group: +Gold Member
Posts: 1,038
Type: Scripter
RM Skill: Undisclosed




Thank you, everyone~^^ feel free to post for any question, bug, or idea to improve this script. smile.gif

QUOTE
Nice system, the default one doesn't stretch the head out of the window screen right?

Yes, the old one is in the window screen and smaller.
It use different method to show face too, because you cannot draw something out of the window by self.contents.

QUOTE
I am a bit too lazy to use this, but it looks neat anyway. When I make some serious projects then I may find use for this script. Cheers!

I agree that this script may scripted just for new project or serious project, because it may needs a lot of work when your game is in progress and used show message a lot already, or if the project is just make for try the new engine and didn't need to be really neat, the maker may want to skip this script~^^.

Thanks for interesting in this script btw~^^, and thanks to put it in first page too.

This post has been edited by woratana: Jan 21 2008, 12:53 AM


__________________________
Check out my NEW blog!!!



MVP (Most Valuable Poster) Award 2008


Go to the top of the page
 
+Quote Post
   
darkkyros
post Jan 21 2008, 01:51 PM
Post #8


Level 4
Group Icon

Group: Member
Posts: 50
Type: Artist
RM Skill: Intermediate




This looks awesome. I will try this out when I get the chance.
Go to the top of the page
 
+Quote Post
   
Yellow Magic
post Jan 21 2008, 02:02 PM
Post #9


Welcome to the world of gentlemen, gentlemen
Group Icon

Group: Revolutionary
Posts: 1,865
Type: Event Designer
RM Skill: Skilled




Wow. This is really really good stuff. Almost makes me want to use RMVX right now ^^


__________________________
This isn't right
Go to the top of the page
 
+Quote Post
   
woratana
post Jan 21 2008, 04:40 PM
Post #10


Looking for scripter to hire? PM me *O*
Group Icon

Group: +Gold Member
Posts: 1,038
Type: Scripter
RM Skill: Undisclosed




Hi! everyone,

Is anyone has any idea to improve this script?
I'm going to edit this script by:
QUOTE
- Make it easier when you change size of face
- Make the new option to change face system back to normal one


Please tell me~^^ so I can edit them all in one time.


__________________________
Check out my NEW blog!!!



MVP (Most Valuable Poster) Award 2008


Go to the top of the page
 
+Quote Post
   
Elighja
post Jan 21 2008, 05:53 PM
Post #11


Graphics Designer/Programmer
Group Icon

Group: Revolutionary
Posts: 202
Type: Developer
RM Skill: Advanced




Wow thanks for this, I was really thinking about getting the trial but this just helped me decide on getting it more. lol
Go to the top of the page
 
+Quote Post
   
woratana
post Jan 21 2008, 06:46 PM
Post #12


Looking for scripter to hire? PM me *O*
Group Icon

Group: +Gold Member
Posts: 1,038
Type: Scripter
RM Skill: Undisclosed




Version 2.0 Finished!!

New Features
QUOTE
# [New Features in Version 2.0]
# - Auto arrange face position (You can use any size of face file)

# - Call Script "$game_message.side = (number)" to switch show face mode.
# $game_message.side = 0 << switch to normal face system (default face system of RMVX)
# $game_message.side = 1 << switch to NeoFace system (show face in left side)
# $game_message.side = 2 << switch to NeoFace system (show face in right side)
# Default system when you first setup this script is 1
# THESE NUMBERS & RESULTS ARE DIFFERENT FROM VERSION 1.0 #

# Fixed bug in Show Choice command.

==========================

I hope there's no one use $game_message.side a lot so far. I you did, I apologize. Because I just change the number and result to...
QUOTE
# $game_message.side = 0 << switch to normal face system (default face system of RMVX)
# $game_message.side = 1 << switch to NeoFace system (show face in left side)
# $game_message.side = 2 << switch to NeoFace system (show face in right side)

in version 2.0

So, now you can use this system with the normal face system^^

=============================

Script is coming soon~^^ I just want to know what do you think about the new features. Anything to change? Anything to improve?
So I can fixed it and release^^


__________________________
Check out my NEW blog!!!



MVP (Most Valuable Poster) Award 2008


Go to the top of the page
 
+Quote Post
   
GubiD
post Jan 21 2008, 07:58 PM
Post #13


Level 9
Group Icon

Group: Revolutionary
Posts: 145
Type: Scripter
RM Skill: Masterful




v1 to v2 in a single day. That sounds like the fastest update ever.


__________________________



Go to the top of the page
 
+Quote Post
   
Yellow Magic
post Jan 22 2008, 11:56 AM
Post #14


Welcome to the world of gentlemen, gentlemen
Group Icon

Group: Revolutionary
Posts: 1,865
Type: Event Designer
RM Skill: Skilled




I bet Woratana's a workoholic. XD


__________________________
This isn't right
Go to the top of the page
 
+Quote Post
   
woratana
post Jan 22 2008, 05:40 PM
Post #15


Looking for scripter to hire? PM me *O*
Group Icon

Group: +Gold Member
Posts: 1,038
Type: Scripter
RM Skill: Undisclosed




Update Version 2.0!!!

You can get the script and read tutorial in he first post.

Feel free to ask the question, tell me the bug, or suggest an idea to improve this script. biggrin.gif

QUOTE (GubiD @ Jan 21 2008, 07:05 PM) *
v1 to v2 in a single day. That sounds like the fastest update ever.

In fact, I finished version 1.0 on 19 Jan (but release on 20), and I finished version 2.0 on 21 Jan (but again, release on 22).
So I don't think it's very fast laugh.gif
(I think I'm the slow scripter wink.gif )

QUOTE
I bet Woratana's a workoholic. XD

No rolleyes.gif , I just having fun with script laugh.gif


__________________________
Check out my NEW blog!!!



MVP (Most Valuable Poster) Award 2008


Go to the top of the page
 
+Quote Post
   
Ratbag
post Jan 23 2008, 05:01 AM
Post #16


Level 1
Group Icon

Group: Member
Posts: 6
Type: Artist
RM Skill: Advanced




I'll obviously use the script, nice job dude! Thanks
Go to the top of the page
 
+Quote Post
   
alucart13
post Jan 24 2008, 11:23 AM
Post #17


Level 1
Group Icon

Group: Member
Posts: 12
Type: Event Designer
RM Skill: Masterful




I would use this, but i still have no idea how to use scripts with rpg maker...=[
Go to the top of the page
 
+Quote Post
   
lahandi
post Jan 29 2008, 08:56 PM
Post #18


Level 8
Group Icon

Group: Revolutionary
Posts: 111
Type: Artist
RM Skill: Skilled




This systems is great mate. It will make reading conversation dialogue more easy, because the text will directly started from the left and the picture moved to the right. Very nice. yes.gif


__________________________
Go to the top of the page
 
+Quote Post
   
alucart13
post Jan 30 2008, 04:02 PM
Post #19


Level 1
Group Icon

Group: Member
Posts: 12
Type: Event Designer
RM Skill: Masterful




It wont work for me man... It says

????? NeoFace'? 105??? NoMethodError ?????
undefined method 'bitmap' for nil:NilClass
Go to the top of the page
 
+Quote Post
   
woratana
post Jan 30 2008, 05:27 PM
Post #20


Looking for scripter to hire? PM me *O*
Group Icon

Group: +Gold Member
Posts: 1,038
Type: Scripter
RM Skill: Undisclosed




@Alucart1
What version you are using?
And can you show me what is line 105? Because line 105 that I have is not about bitmap.

It will be best if you can sent me demo of your game~^^ so I can find the real solution.

Thanks


__________________________
Check out my NEW blog!!!



MVP (Most Valuable Poster) Award 2008


Go to the top of the page
 
+Quote Post
   

8 Pages V   1 2 3 > » 
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: 17th June 2013 - 09:41 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker