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

Version 1.1
The Law G14
1/25/10


Introduction

I made this script off of looking at a Tales of Vesperia Status Screen that Satouryu showed me. It basically has the information in the normal status screen along with a picture of your character and a changeable background. Hope you guys like it smile.gif

Features

-Changeable Background
-A picture that you choose of the character in the status screen
-The ability to change the opacity of the windows
-The ability to directly change the positions of the contents in the status screen.


Script

Click to view attachment

Customization

You can customize your script in the customization module found on lines 15 to 52.


Compatibility

This script may run into problems with scripts that edit or change the status screen.


Screenshots




Installation

Just change whatever you’d like in the customization module found on lines 15 to 52 and then save the pictures you’ll need for your actors. To do this, name the files of your pictures as the actor ID and then add a ‘B’ to it and then save it in your pictures folder. For example, the first actor of the database would be named in the picture folder ‘1B’.


Terms and Conditions

Just credit me where it is due.


Special Thanks

Satouryu for giving me the picture of the Tales of Vesperia Status Screen to work off of.
Satouryu
YAY! now im gonna USE IT :0
Taiine
This is almost like what I've been trying to rearrange for my game just revirced with the player on the other side and stats above and gear below in one line rather then two.

*hint hint nudge nudge* :3


Kicken as always Law!
Blazblue Fan
This script looks amazing! Not to mention that Tales of Vesperia is one of my favorite RPGs. I will more than likely use it in my game.
The Law G14
Hey, thanks for the nice comments guys smile.gif

@Taiine: In the next verison of the script, I could try add something to the customization module in which you could directly change the position of each window and the battler. Do you think that could help you out?
cupski
Graet i using it its great!
The Law G14
@Cupski: Glad you like it smile.gif

Also, Version 1.1 is out!

In the customizatin module, you can now directly change the positions of the actor battler, the equipment window, the status window, and the name window. Hope you guys like it smile.gif
gimis
i had a little trouble putting this in (im way new at this),

i copied the script into Window_Status_Law, changed the call on Scene_Status to Window_NewStatus but when i look at someones status ingame it has a black background (i exported all the battlers and the title to pictures) and i can only see there stats, equipment and the name and the picture are not there
The Law G14
Well, first of all, you're not supposed to edit any of the default scripts, just make a new tab in your script editor by right-clicking and then pressing insert and then plasting the script in the space to the right. Next, save the pictures that you want of your character as their ID + the letter B so that your first actor's picture would be named 1B. Then save those pictures in the pictures folder of your recourse manager. Also, you need to name what picture you want to find as your background in the customization module at the beginning of the script. Also, be sure to place my script below the rest of all your other scripts.
gimis
ya i had it up near the other windows on the script list.

thanks for the help

looks like a great script btw
XaineC
I have one quick question, what if you want the face to change at some point during the game; is there any way to do that with this script?
Night_Runner
At the start of the code (after the customization), it has Window_Base, if you change that to:
CODE
#==============================================================================
# ** Window_Base
#------------------------------------------------------------------------------
#  This class is for all in-game windows.
#==============================================================================

class Window_Base < Window
  #--------------------------------------------------------------------------
  # * Draw Actor Battler
  #--------------------------------------------------------------------------
  def draw_actor_battler(actor, x, y)
    plus = "A"
    for i in 0...$game_variables[1]
      plus.next!
    end
    bitmap = RPG::Cache.picture(actor.id.to_s + plus)
    self.contents.blt(x, y, bitmap, Rect.new(0,0,400,480))
  end
end

What it will do, is it will look at the in-game variable #1 ( because of the $game_variables[1], to look at the variable #2, change it to $game_variables[2], and so on), and when the variable is as 0, for actor #1 it will look for the picture 1A, when the variable is 2, it will look for 1B, and when the variable is 3, it will look for 1C.

Where the 1 is the actor's ID, and the letter is taken from the (variable #1)th letter in the alphabet.

So if you were looking at actor #8, and your in-game variable #1 is set to 4, it will look for the picture 8D, and you can use this to change faces as the game progresses.
soldieroffilth
I have a game where every 20 levels the battler image is evented to change as well as the class of the character, is there away i can incorporate this into both the custom status and custom menu scripts?
Phantom0x0
Quick question why is the error

"Unable to find file Graphics/Pictures/*x*B"

When I playtest and try to open the status
The Law G14
@soilderoffilth: Change lines 54 to 68 to:

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

class Window_Base < Window
  #--------------------------------------------------------------------------
  # * Draw Actor Battler
  #     actor : actor
  #     x     : draw spot x-coordinate
  #     y     : draw spot y-coordinate
  #--------------------------------------------------------------------------
  def draw_actor_battler(actor, x, y)
    bitmap = RPG::Cache.character(actor.battler_name, actor.battler_hue)
    cw = bitmap.width
    ch = bitmap.height
    src_rect = Rect.new(0, 0, cw, ch)
    self.contents.blt(x, y, bitmap, src_rect)
  end
end


It will track the battler of your actor instead of drawing a picture from your files.


@Phantom0x0: That's because you need to put the pictures in your graphics folder so that the script knows what picture to draw for that actor. For example, for Actor 1, their picture in the Graphics/Pictures directory would be "1B"
Yusshin
How do I change the position of actor sprites 1-4B?

They're too far to the right of the screen and are getting cut off; to fit them, I have to resize them drastically and it looks a bit silly.

Thanks ^^
The Law G14
Hi smile.gif In the Customization Module there should be a part that reads:

CODE
# The x-coordinate of the actor's battler graphic. Default value is 430.
  BATTLER_X = 430
  
  # The y-coordinate of the actor's battler graphic. Default value is 195.
  BATTLER_Y = 195


Just edit the values to your liking and the sprites should move positions.
Nof56
Ok, so I run into this problem, There is no backdrop to my status window. I've got it set to "001-Title01" and all that comes up is a black screen. I DO NOT have the illegal version of RMXP so I don't know what is going wrong here maybe you can help.
The Law G14
Hey! First of all, you'll need to check if the "001-Title01" image is actually the image that it should be and not something else. After checking that, where is your script placed in your Script Directory? For now leave it at the bottom, right above "Main" and see if anything changes. Finally, can you post your script up to see if anything is different?

Hope this helps smile.gif
Nof56
I put it lower on the script list and it worked, Thanks Law that was a big help!
The Law G14
Glad I could help, good luck on your game smile.gif
carnie_natas
Hey woah there, im like a ninja "WHOOOOPOW" i pop in and out never seen again until a distant day comes and there i am just to drop by and say LAW IS A SCRIPTING GOD!!!

now you may not hear from me for a few more years (though i continuously work on projects tongue.gif)
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.