Help - Search - Members - Calendar
Full Version: Law's Custom Name Screen
RPG RPG Revolution Forums > Scripting > Script Submissions > RGSS-Submissions
The Law G14
Law’s Custom Name Screen

Version 1.0
The Law G14
9/27/09


Introduction

Took me a while to release something this week, sorry about that guys sweat.gif I was playing a vx game the other day and it told me to name this person that was gonna be on my team, and I noticed that his face was next to what you were gonna type, and I was like, hmmm, that’s not like in xp. So I made this script which replaces the character graphic in the name edit screen with a face graphic. Also, since I realized that didn’t really add a lot to the name edit screen, I also added 8 more characters in the name edit screen so if you’re wanting to make a complex password or something. I know almost no one is gonna use this script, but it would be nice if someone does biggrin.gif


Features

Adds 8 more characters in the name edit screen

Changes the character graphic in the name edit screen with a face graphic


Script

Click to view attachment

Compatibility

No compatibility issues as of now.

Screenshot




Installation

Import all the face graphics of your actors into the pictures section of the recource manager and name the first actor (in respect to the first actor in the actors tab of the database) '1'. Then name your second actor '2' and so on.


Terms and Conditions

Please credit me where it is due biggrin.gif

Also, do NOT put this scripts on other sites unless you have my permission.
Soul_Torn
Neat little script, I will most likely use it in the next game I make. Lol.
Its going to be a Suikoden Fan Game... pity me... lol.

Any ways, moving on.

Good script. biggrin.gif
The Law G14
Wow, thanks, I'm glad someone found this useful biggrin.gif

Please tell me if you find any bugs smile.gif
Soul_Torn
QUOTE (The Law G14 @ Sep 27 2009, 03:08 PM) *
Wow, thanks, I'm glad someone found this useful biggrin.gif

Please tell me if you find any bugs smile.gif


Will do. biggrin.gif.

Cheers,
Soul_Torn
wltr3565
A feature from VX... Great brought up. laugh.gif
The Law G14
Hey thanks biggrin.gif It was actually an idea I got from Holder where I make scripts based on stuff in vx or scripts for vx that I make for xp.

If you use it and find any problems, please tell me smile.gif
wltr3565
Let me see...
I'm only telling you, that you're using too much overrides. Incompatibility can occur because the old overridden method will be 'deleted', instead the new one . And I saw a new method named draw_actor_face_graphic, but you put it in Window_NameEdit class or somewhat similar (I'm a VX scripter, so...) the best to put drawing methods in Window_Base class. That can make other scripters to use that method for their own made windows biggrin.gif.

I suggest you to delete the unchanged methods there, and only use the one you edited. Aliasing is a very great idea too.

From your scripting style now, seems you're still fresh at this thing. I'm looking forward for your advancements laugh.gif
The Law G14
Ah thanks for the suggestions smile.gif

QUOTE
but you put it in Window_NameEdit class or somewhat similar (I'm a VX scripter, so...) the best to put drawing methods in Window_Base class. That can make other scripters to use that method for their own made windows


Yeah, I was considering doing that but I thought that it would be too much of a hassle to make it so that the person using the script would have to add the draw_actor_face_graphic method to the Window_Base, but it would leave less code, so I'll do that biggrin.gif

QUOTE
I suggest you to delete the unchanged methods there, and only use the one you edited. Aliasing is a very great idea too.


Good idea, I'l do that as well. Also, um, I've trying to find out what aliasing is but I still don't understand it. What exactly does it do?

EDIT: Changed the first post, the script is now alot smaller.
03shalan
Oh, I really like it! Since I went crazy with Face Maker I've been loving scripts that allow you to add face graphics in places rolleyes.gif lol..
Thanks for this great little script! x
The Law G14
Hey glad someone else found this useful biggrin.gif Please ask me anything about the script if you have questions smile.gif
wltr3565
...
CODE
class Window_Base < Window
#--------------------------------------------------------------------------
  # * Draw Actor Face Graphic
  #--------------------------------------------------------------------------
  def draw_actor_face_graphic(actor, x, y)
    bitmap = RPG::Cache.picture(actor.id.to_s)
    self.contents.blt(x, y, bitmap, Rect.new(0, 0, bitmap.width, bitmap.height))
  end
end

Isn't this more plug and play?
The Law G14
*slaps self in face*

Yeah, you're right sweat.gif I'll change that as soon as I can, thanks for your help smile.gif
carnie_natas
i would actually consider this piece of art if it didnt conflict with my current features (can think off top of my head it wont work) but its great,another mindblower by law
The Law G14
Thanks Carnie biggrin.gif

What scripts are you using? That might be why my script isn't working for you. I'll see if I can make it compatible for you smile.gif
carnie_natas
well first off,i have a set name for the main character,so i would have to go back and change alot of the messages within my game,and second itd just be to much for me to wanna deal with.....thnks tho
The Law G14
Ah, I understand what you mean now, it's cool though, thanks for commenting in the first place smile.gif
The Law G14
I have updated the script so that it is easier to install.

Enjoy smile.gif
yamina-chan
A very nice script and just what I'v been looking for some time ago.
Even though I don't need it anymore, I still like it and maybe I'm gonna use it later.

I was wondering...would there be a way to just add the 8 digets without the facegrafic? I know this is what it was originaly made for and as of now I woulnd't need something like that, I just though it would be nice to have an option ^^
Night_Runner
That can be done, quite easily in fact smile.gif

Copy the first couple of paragraphs of the script, down to the Window_Base, don't copy the Window_Base itself though. And that top bit is all you need to get the extra "{ } ~ |" etc characters smile.gif

Upon closer inspection.... never mind.
Yusshin
Is there a way to modify this to permit accents

i.e.

é è à ô ç

smile.gif
The Law G14
Is something along the lines of what you're looking for?

Modified Script

CODE
#------------------------------------------------------------------------------
#==============================================================================
#==============================================================================
#==========================*Law's Custom Name Screen*==========================
#=============================Author: The Law G14 =============================
#=================================Version 1.0==================================
#==============================================================================
#------------------------------------------------------------------------------
#==============================================================================
# ** Window_NameInput
#------------------------------------------------------------------------------
#  This window is used to select text characters on the input name screen.
#==============================================================================

class Window_NameInput < Window_Base
  CHARACTER_TABLE =
  [
    "A","B","C","D","E",
    "F","G","H","I","J",
    "K","L","M","N","O",
    "P","Q","R","S","T",
    "U","V","W","X","Y",
    "Z","é","è","à","ô",
    "+","-","*","/","!",
    "1","2","3","4","5",
    "%","@","&","{" ,"}" ,
    "a","b","c","d","e",
    "f","g","h","i","j",
    "k","l","m","n","o",
    "p","q","r","s","t",
    "u","v","w","x","y",
    "z"," "," "," "," ",
    "#","$","%","&","@",
    "6","7","8","9","0",
    "^","$","#","~","|"
  ]
  
end

#==============================================================================
# ** Window_Base
#------------------------------------------------------------------------------
#  This class is for all in-game windows.
#==============================================================================

class Window_Base < Window  
  #--------------------------------------------------------------------------
  # * Draw Actor Face Graphic
  #--------------------------------------------------------------------------
  def draw_actor_face_graphic(actor, x, y)
    bitmap = RPG::Cache.picture(actor.id.to_s)
    self.contents.blt(x, y, bitmap, Rect.new(0, 0, bitmap.width, bitmap.height))
  end
end

#==============================================================================
# ** Window_NameEdit
#------------------------------------------------------------------------------
#  This window is used to edit your name on the input name screen.
#==============================================================================

class Window_NameEdit < Window_Base
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    # Draw name
    name_array = @name.split(//)
    for i in 0...@max_char
      c = name_array[i]
      if c == nil
        c = "_"
      end
      x = 320 - @max_char * 14 + i * 28
      self.contents.draw_text(x, 32, 28, 32, c, 1)
    end
    # Draw graphic
    draw_actor_face_graphic(@actor, 250 - @max_char * 14 - 40, 0)
  end
end
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.