Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New Personalized status screen
#1
New Personalized status screen
alwayzconfuzed
Jun 4, 2007

This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.


Ok, this is my first script, but it isnt a CMS. Im still handicapped when it comes to those so i bring you a more char personalized status screen. Hope you like it. Not fully done but enough to get outta my game to others.

Just Paste above your main and there ya go.

Code:
=begin
================================================================================




It is best advised to look at the comments(green text) to make sure you get the
most out of this script.
Please give credit to either my real or username.
This script was made by:
CreationAsylum Username:Alwayzconfuzed
*****June 5, 2007*****
More description spaced added - Thanks for the idea leon
*****June 10, 2007*****
Equipment Slot names added - Noticed they weren't there ^-^
#editted by Jessey Laws aka Loki
=end
#===============================================================================



#Creates the Inforormation Window
#===============================================================================




class Window_Stats < Window_Base

def initialize(actor)
super(0,0,160,480)
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font.name = "Tahoma"
self.contents.font.size = 13
@actor = actor
refresh
end

alias edit_draw_parameter draw_actor_parameter
def draw_actor_parameter(actor, x, y, type)
case type
when 0
parameter_name = $data_system.words.atk
parameter_value = @actor.atk
when 1
parameter_name = $data_system.words.pdef
parameter_value = @actor.pdef
when 2
parameter_name = $data_system.words.mdef
parameter_value = @actor.mdef
when 3
parameter_name = $data_system.words.str
parameter_value = @actor.str
when 4
parameter_name = $data_system.words.dex
parameter_value = @actor.dex
when 5
parameter_name = $data_system.words.agi
parameter_value = @actor.agi
when 6
parameter_name = $data_system.words.int
parameter_value = @actor.int
when 7
parameter_name = "Evasion"
parameter_value = @actor.eva
end
self.contents.font.color = system_color
self.contents.draw_text(x, y, 120, 32, parameter_name)
self.contents.font.color = normal_color
self.contents.draw_text(x + 60, y, 36, 32, parameter_value.to_s, 2)
end


def refresh
self.contents.clear
x = 0
y = 0
self.contents.font.color = system_color
self.contents.draw_text(x,y,150,20,"Class:")
self.contents.font.color = normal_color
self.contents.draw_text(x+40,y,150,20,@actor.class_name)
draw_actor_parameter(@actor,x,y+20,0)
draw_actor_parameter(@actor,x,y+40,1)
draw_actor_parameter(@actor,x,y+60,2)
draw_actor_parameter(@actor,x,y+80,3)
draw_actor_parameter(@actor,x,y+100,4)
draw_actor_parameter(@actor,x,y+120,5)
draw_actor_parameter(@actor,x,y+140,6)
draw_actor_parameter(@actor,x,y+160,7)
draw_actor_battler(@actor,x,y+220)
end

def draw_actor_battler(actor, x, y)
bitmap = RPG::Cache.battler(@actor.battler_name, @actor.battler_hue)
self.contents.blt(x, y, bitmap, Rect.new(0, 0, 400, 400))
end
end

#===============================================================================




#Creates the window that displays what is equipped
#===============================================================================




class Window_Equiped < Window_Base

def initialize(actor)
super(160,0,480,128)
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font.name = "Tahoma"
self.contents.font.size = 18
@actor = actor
refresh
end

def refresh
self.contents.clear
x = 0
y = 0
self.contents.font.color = system_color
self.contents.draw_text(0,0,70,22,"Weapon",2)
self.contents.font.color = normal_color
draw_item_name($data_weapons[@actor.weapon_id],x+80,y-4)
self.contents.font.color = system_color
self.contents.draw_text(0,27,70,22,"Shield",2)
self.contents.font.color = normal_color
draw_item_name($data_armors[@actor.armor1_id],x+80,y+23)
self.contents.font.color = system_color
self.contents.draw_text(0,52,70,22,"Head",2)
self.contents.font.color = normal_color
draw_item_name($data_armors[@actor.armor2_id],x+80,y+48)
self.contents.font.color = system_color
self.contents.draw_text(200,y+18,70,22,"Chest",2)
self.contents.font.color = normal_color
draw_item_name($data_armors[@actor.armor3_id],x+280,y+14)
self.contents.font.color = system_color
self.contents.draw_text(200,42,70,22,"Relic",2)
self.contents.font.color = normal_color
draw_item_name($data_armors[@actor.armor4_id],x+280,y+38)
end
end


#===============================================================================




#Creates the window that displays the character's Information
#===============================================================================





class Window_Actorinfo < Window_Base

def initialize(actor)
super(160,128,480,352)
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font.name = "Tahoma"
self.contents.font.size = 30
@actor = actor
refresh
end

def refresh
self.contents.clear
x = 0
y = 0
draw_actor_description(@actor,x,y)
end

def draw_actor_description(actor,x,y)
#-------------------------------------------------------------------------------
#Insert the description you want inside the quotation marks
#Must make a variable(letter) for each character that will at any point be in
#your party.
#If the actor is in slot "001:" that means that is character 1
#If the actor is in slot "002:" that means that is character 2
#And it contiues like that.
#Recommend: No more then 108 characters - including spaces.
#There are markers showing to the right for those who dont count spaces like me
#^-^ ^-^ ^-^ ^-^ ^-^ ^-^
#Here a couple points that give you the best description without tight letters
#or you can have longer description.
#The "V" represent the markers for either choice.
#----------------------------------------------------------------------Non-tight letters V,2x amount of description V
a1 = "Once one of the four sentinels of Queen Velazul," #Character One 1st line
a2 = "Loki is a master of the dark arts and controls" #Character One 2nd line
a3 = "the essence of hate. A powerful ally but if you" #Character One 3rd line
a4 = "anger him there could be hell to pay." #Character One 4th line
b1 = "" #Character Two 1st line
b2 = "" #Character Two 2nd line
b3 = "" #Character Two 3rd line
b4 = "" #Character Two 4th line
c1 = "" #Character Three 1st line
c2 = "" #Character Three 2nd line
c3 = "" #Character Three 3rd line
c4 = "" #Character Three 4th line
d1 = "" #Character Four 1st line
d2 = "" #Character Four 2nd line
d3 = "" #Character Four 3rd line
d4 = "" #Character Four 4th line
e1 = "" #Character Five 1st line
e2 = "" #Character Five 2nd line
e3 = "" #Character Five 3rd line
e4 = "" #Character Five 4th line
f1 = "" #Character Six 1st line
f2 = "" #Character Six 2nd line
f3 = "" #Character Six 3rd line
f4 = "" #Character Six 4th line
g1 = "" #Character Seven 1st line
g2 = "" #Character Seven 2nd line
g3 = "" #Character Seven 3rd line
g4 = "" #Character Seven 4th line
h1 = "" #Character Eight 1st line
h2 = "" #Character Eight 2nd line
h3 = "" #Character Eight 3rd line
h4 = "" #Character Eight 4th line
#----------------------------------------------------------------------Non-tight letters ^,2x amount of description ^
#Edit the personal stuff bout your char in the "if" statements to best fit
#your game.
#Dont edit anymore then said unless you have more then 8 characters.
#Must also make one of these for each character that will at any point be in
#your party.
#-------------------------------------------------------------------------------
if actor.id == 1
age = "137"
race = "Unknown"
height = "6'4''"
weight = "215 lbs."
self.contents.font.color = Color.new (204, 221, 0, 255)
self.contents.draw_text(0,0,440,32,a1)
self.contents.draw_text(0,32,440,32,a2)
self.contents.draw_text(0,64,440,32,a3)
self.contents.draw_text(0,96,340,32,a4)
self.contents.font.color = system_color
self.contents.draw_text(0,128,90,32,"Name")
self.contents.draw_text(90,128,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,128,440,32,actor.name)
self.contents.font.color = system_color
self.contents.draw_text(0,160,90,32,"Age")
self.contents.draw_text(90,160,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,160,440,32,age)
self.contents.font.color = system_color
self.contents.draw_text(0,192,90,32,"Race")
self.contents.draw_text(90,192,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,192,440,32,race)
self.contents.font.color = system_color
self.contents.draw_text(0,256,90,32,"Height")
self.contents.draw_text(90,256,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,256,440,32,height)
self.contents.font.color = system_color
self.contents.draw_text(0,224,90,32,"Weight")
self.contents.draw_text(90,224,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,224,440,32,weight)
end
if actor.id == 2
age = " "
race = " "
height = " "
weight = " "
self.contents.draw_text(0,0,440,32,b1)
self.contents.draw_text(0,32,440,32,b2)
self.contents.draw_text(0,64,440,32,b3)
self.contents.draw_text(0,96,440,32,b4)
self.contents.font.color = system_color
self.contents.draw_text(0,128,90,32,"Name")
self.contents.draw_text(90,128,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,128,440,32,actor.name)
self.contents.font.color = system_color
self.contents.draw_text(0,160,90,32,"Age")
self.contents.draw_text(90,160,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,160,440,32,age)
self.contents.font.color = system_color
self.contents.draw_text(0,192,90,32,"Race")
self.contents.draw_text(90,192,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,192,440,32,race)
self.contents.font.color = system_color
self.contents.draw_text(0,256,90,32,"Height")
self.contents.draw_text(90,256,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,256,440,32,height)
self.contents.font.color = system_color
self.contents.draw_text(0,224,90,32,"Weight")
self.contents.draw_text(90,224,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,224,440,32,weight)
end
if actor.id == 3
age = " "
race = " "
height = " "
weight = " "
self.contents.draw_text(0,0,440,32,c1)
self.contents.draw_text(0,32,440,32,c2)
self.contents.draw_text(0,64,440,32,c3)
self.contents.draw_text(0,96,440,32,c4)
self.contents.font.color = system_color
self.contents.draw_text(0,128,90,32,"Name")
self.contents.draw_text(90,128,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,128,440,32,actor.name)
self.contents.font.color = system_color
self.contents.draw_text(0,160,90,32,"Age")
self.contents.draw_text(90,160,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,160,440,32,age)
self.contents.font.color = system_color
self.contents.draw_text(0,192,90,32,"Race")
self.contents.draw_text(90,192,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,192,440,32,race)
self.contents.font.color = system_color
self.contents.draw_text(0,256,90,32,"Height")
self.contents.draw_text(90,256,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,256,440,32,height)
self.contents.font.color = system_color
self.contents.draw_text(0,224,90,32,"Weight")
self.contents.draw_text(90,224,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,224,440,32,weight)
end
if actor.id == 4
age = " "
race = " "
height = " "
weight = " "
self.contents.draw_text(0,0,440,32,d1)
self.contents.draw_text(0,32,440,32,d2)
self.contents.draw_text(0,64,440,32,d3)
self.contents.draw_text(0,96,440,32,d4)
self.contents.font.color = system_color
self.contents.draw_text(0,128,90,32,"Name")
self.contents.draw_text(90,128,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,128,440,32,actor.name)
self.contents.font.color = system_color
self.contents.draw_text(0,160,90,32,"Age")
self.contents.draw_text(90,160,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,160,440,32,age)
self.contents.font.color = system_color
self.contents.draw_text(0,192,90,32,"Race")
self.contents.draw_text(90,192,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,192,440,32,race)
self.contents.font.color = system_color
self.contents.draw_text(0,256,90,32,"Height")
self.contents.draw_text(90,256,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,256,440,32,height)
self.contents.font.color = system_color
self.contents.draw_text(0,224,90,32,"Weight")
self.contents.draw_text(90,224,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,224,440,32,weight)
end
if actor.id == 5
age = " "
race = " "
height = " "
weight = " "
self.contents.draw_text(0,0,440,32,e1)
self.contents.draw_text(0,32,440,32,e2)
self.contents.draw_text(0,64,440,32,e3)
self.contents.draw_text(0,96,440,32,e4)
self.contents.font.color = system_color
self.contents.draw_text(0,128,90,32,"Name")
self.contents.draw_text(90,128,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,128,440,32,actor.name)
self.contents.font.color = system_color
self.contents.draw_text(0,160,90,32,"Age")
self.contents.draw_text(90,160,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,160,440,32,age)
self.contents.font.color = system_color
self.contents.draw_text(0,192,90,32,"Race")
self.contents.draw_text(90,192,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,192,440,32,race)
self.contents.font.color = system_color
self.contents.draw_text(0,256,90,32,"Height")
self.contents.draw_text(90,256,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,256,440,32,height)
self.contents.font.color = system_color
self.contents.draw_text(0,224,90,32,"Weight")
self.contents.draw_text(90,224,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,224,440,32,weight)
end
if actor.id == 6
age = " "
race = " "
height = " "
weight = " "
self.contents.draw_text(0,0,440,32,f1)
self.contents.draw_text(0,32,440,32,f2)
self.contents.draw_text(0,64,440,32,f3)
self.contents.draw_text(0,96,440,32,f4)
self.contents.font.color = system_color
self.contents.draw_text(0,128,90,32,"Name")
self.contents.draw_text(90,128,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,128,440,32,actor.name)
self.contents.font.color = system_color
self.contents.draw_text(0,160,90,32,"Age")
self.contents.draw_text(90,160,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,160,440,32,age)
self.contents.font.color = system_color
self.contents.draw_text(0,192,90,32,"Race")
self.contents.draw_text(90,192,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,192,440,32,race)
self.contents.font.color = system_color
self.contents.draw_text(0,256,90,32,"Height")
self.contents.draw_text(90,256,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,256,440,32,height)
self.contents.font.color = system_color
self.contents.draw_text(0,224,90,32,"Weight")
self.contents.draw_text(90,224,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,224,440,32,weight)
end
if actor.id == 7
age = " "
race = " "
height = " "
weight = " "
self.contents.draw_text(0,0,440,32,g1)
self.contents.draw_text(0,32,440,32,g2)
self.contents.draw_text(0,64,440,32,g3)
self.contents.draw_text(0,96,440,32,g4)
self.contents.font.color = system_color
self.contents.draw_text(0,128,90,32,"Name")
self.contents.draw_text(90,128,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,128,440,32,actor.name)
self.contents.font.color = system_color
self.contents.draw_text(0,160,90,32,"Age")
self.contents.draw_text(90,160,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,160,440,32,age)
self.contents.font.color = system_color
self.contents.draw_text(0,192,90,32,"Race")
self.contents.draw_text(90,192,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,192,440,32,race)
self.contents.font.color = system_color
self.contents.draw_text(0,256,90,32,"Height")
self.contents.draw_text(90,256,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,256,440,32,height)
self.contents.font.color = system_color
self.contents.draw_text(0,224,90,32,"Weight")
self.contents.draw_text(90,224,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,224,440,32,weight)
end
if actor.id == 8
age = " "
race = " "
height = " "
weight = " "
self.contents.draw_text(0,0,440,32,h1)
self.contents.draw_text(0,32,440,32,h2)
self.contents.draw_text(0,64,440,32,h3)
self.contents.draw_text(0,96,440,32,h4)
self.contents.font.color = system_color
self.contents.draw_text(0,128,90,32,"Name")
self.contents.draw_text(90,128,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,128,440,32,actor.name)
self.contents.font.color = system_color
self.contents.draw_text(0,160,90,32,"Age")
self.contents.draw_text(90,160,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,160,440,32,age)
self.contents.font.color = system_color
self.contents.draw_text(0,192,90,32,"Race")
self.contents.draw_text(90,192,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,192,440,32,race)
self.contents.font.color = system_color
self.contents.draw_text(0,256,90,32,"Height")
self.contents.draw_text(90,256,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,256,440,32,height)
self.contents.font.color = system_color
self.contents.draw_text(0,224,90,32,"Weight")
self.contents.draw_text(90,224,90,32,":")
self.contents.font.color = normal_color
self.contents.draw_text(106,224,440,32,weight)
end
end
end


#===============================================================================




#Creates the scene for the status screen
#===============================================================================





class Scene_Status

def initialize(actor_index = 0, equip_index = 0)
@actor_index = actor_index
end

def main
# Get actor
@actor = $game_party.actors[@actor_index]
# Make status window
@stats_window = Window_Stats.new(@actor)
@actorinfo_window = Window_Actorinfo.new(@actor)
@equiped_window = Window_Equiped.new(@actor)
# Execute transition
Graphics.transition
# Main loop
loop do
# Update game screen
Graphics.update
# Update input information
Input.update
# Frame update
update
# Abort loop if screen is changed
if $scene != self
break
end
end
# Prepare for transition
Graphics.freeze
# Dispose of windows
@stats_window.dispose
@actorinfo_window.dispose
@equiped_window.dispose
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
# If B button was pressed
if Input.trigger?(Input::B)
# Play cancel SE
$game_system.se_play($data_system.cancel_se)
# Switch to menu screen
$scene = Scene_Menu.new(3)
return
end
# If R button was pressed
if Input.trigger?(Input::R)
# Play cursor SE
$game_system.se_play($data_system.cursor_se)
# To next actor
@actor_index += 1
@actor_index %= $game_party.actors.size
# Switch to different status screen
$scene = Scene_Status.new(@actor_index)
return
end
# If L button was pressed
if Input.trigger?(Input::L)
# Play cursor SE
$game_system.se_play($data_system.cursor_se)
# To previous actor
@actor_index += $game_party.actors.size - 1
@actor_index %= $game_party.actors.size
# Switch to different status screen
$scene = Scene_Status.new(@actor_index)
return
end
end
end
}


Possibly Related Threads…
Thread Author Replies Views Last Post
  Advanced Equipment Screen Narc the Jester 0 2,518 04-04-2011, 01:00 PM
Last Post: Narc the Jester
  Advanced Menu Screen Kanon 1 3,196 11-21-2008, 01:00 PM
Last Post: Kanon
  New Status Window polraudio 0 2,298 01-30-2008, 01:00 PM
Last Post: polraudio
  Advanced Title Screen Kaito 0 2,220 09-19-2005, 01:00 PM
Last Post: Kaito



Users browsing this thread: