Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> Law's Custom Skill Screen, Just like the title says.
The Law G14
post Oct 5 2009, 05:31 PM
Post #1


Scripter FTW
Group Icon

Group: Local Mod
Posts: 1,346
Type: Scripter
RM Skill: Skilled
Rev Points: 5




Law’s Custom Skill Screen

Version 1.0
The Law G14
10/5/09


Introduction

Hey everyone, it’s me, Law, with another script smile.gif This script edits the skill screen and basically changes the whole interface. It shows your equipment, hp, sp, state and face graphic along with your skills of course. Enjoy biggrin.gif


Features

-Shows face graphic of character

-Changes whole Skill screen interface

-Shows player’s equipment


Script

Attached File  Custom_Skill_Screen.txt ( 5.79K ) Number of downloads: 374



Compatibility

This script will probably run into problems with scripts that edit the skill screen.


Screenshot




Installation

Import all the face graphics of the playable characters in your game and name them as '1' for the first character, '2' for your second character, '3' for your third cahracter and so on. Be sure to know that '1' is the first actor in actors tab of the database.


FAQ

None as of now.


Terms and Conditions

Just credit me where it is due smile.gif

Special Thanks

Special thanks to Loki333’s personalized status screen for helping me show the player’s current equipment.

This post has been edited by The Law G14: Nov 14 2009, 09:27 AM


__________________________

To put in sig, copy this link:
CODE
[url="http://www.rpgrevolution.com/forums/index.php?showtopic=51540"][img]http://img40.imageshack.us/img40/6504/conceptthelawbanner.png[/img][/url]


Sig Stuff


"When you first come, no one knows you. When help them out, they all know you. When you leave, they all love you. When you come back, they've already forgotten you." -- copy into your sig if you think this quote speaks true!

If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others. -Exiled One

My Project Thread: Gai's Hunters


Go to the top of the page
 
+Quote Post
   
 
Start new topic
Replies
The Law G14
post Jan 3 2010, 12:21 PM
Post #2


Scripter FTW
Group Icon

Group: Local Mod
Posts: 1,346
Type: Scripter
RM Skill: Skilled
Rev Points: 5




Alright, got it to work. Replace my custom skill screen with this:

CODE
#==============================================================================
# ** Window_Skill
#------------------------------------------------------------------------------
#  This window displays usable skills on the skill and battle screens.
#==============================================================================

class Window_Skill < Window_Selectable
  #--------------------------------------------------------------------------
  # * Object Initialization
  #     actor : actor
  #--------------------------------------------------------------------------
  def initialize(actor, skill_command_type = '')
    super(300, 64, 340, 412)
    @actor = actor
    @skill_command_type = skill_command_type
    @column_max = 1
    refresh
    self.index = 0
    # If in battle, move window to center of screen
    # and make it semi-transparent
    if $game_temp.in_battle
      self.y = 64
      self.height = 256
      self.back_opacity = 160
    end
  end
   #--------------------------------------------------------------------------
  # * Acquiring Skill
  #--------------------------------------------------------------------------
  def skill
    return @data[self.index]
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    if self.contents != nil
      self.contents.dispose
      self.contents = nil
    end
    @data = []
    for i in 0...@actor.skills.size
      skill = $data_skills[@actor.skills[i]]
      if skill != nil
        @data.push(skill)
      end
    end
    # If item count is not 0, make a bit map and draw all items
    @item_max = @data.size
    if @item_max > 0
      self.contents = Bitmap.new(width - 32, row_max * 32)
      for i in 0...@item_max
        draw_item(i)
      end
    end
  end
  #--------------------------------------------------------------------------
  # * Draw Item
  #     index : item number
  #--------------------------------------------------------------------------
  def draw_item(index)
    skill = @data[index]
    if @actor.skill_can_use?(skill.id)
      self.contents.font.color = normal_color
    else
      self.contents.font.color = disabled_color
    end
    y = index / 1 * 32
    x = 4 + index % 1 * (288 + 32)
    rect = Rect.new(x, y, self.width / @column_max - 32, 32)
    self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
    bitmap = RPG::Cache.icon(skill.icon_name)
    opacity = self.contents.font.color == normal_color ? 255 : 128
    self.contents.blt(x, y + 4, bitmap, Rect.new(0, 0, 24, 24), opacity)
    self.contents.draw_text(x + 28, y, 204, 32, skill.name, 0)
    self.contents.draw_text(x + 200, y, 48, 32, skill.sp_cost.to_s, 2)
  end
  #--------------------------------------------------------------------------
  # * Help Text Update
  #--------------------------------------------------------------------------
  def update_help
    @help_window.set_text(self.skill == nil ? "" : self.skill.description)
  end
end

#==============================================================================
# ** Window_SkillStatus
#------------------------------------------------------------------------------
#  This window displays the skill user's status on the skill screen.
#==============================================================================

class Window_SkillStatus < Window_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #     actor : actor
  #--------------------------------------------------------------------------
  def initialize(actor)
    super(0, 64, 300, 412)
    self.contents = Bitmap.new(width - 32, height - 32)
    @actor = actor
    refresh
  end
  #--------------------------------------------------------------------------
  # * Draw Face Graphic
  #     actor : actor
  #     x : draw spot x-coordinate
  #     y : draw spot y-coordinate
  #--------------------------------------------------------------------------
  def draw_actor_face_graphic(actor, x, y)
     bitmap = RPG::Cache.picture(actor.name)
     self.contents.blt(x, y, bitmap, Rect.new(0, 0, bitmap.width, bitmap.height))
   end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    self.contents.font.color = system_color
    self.contents.draw_text(15, 140, 100, 100,"State:", 2)
    draw_actor_face_graphic(@actor, 10, 50)
    draw_actor_name(@actor, 30, 10)
    draw_actor_state(@actor, 125, 174)
    draw_actor_hp(@actor, 120, 60)
    draw_actor_sp(@actor, 120, 110)
    self.contents.font.color = system_color
    self.contents.draw_text(10,220,90,22,"Weapon:",2)
    self.contents.font.color = normal_color
    draw_item_name($data_weapons[@actor.weapon_id],110,220)
    self.contents.font.color = system_color
    self.contents.draw_text(10,250,90,22,"Shield:",2)
    self.contents.font.color = normal_color
    draw_item_name($data_armors[@actor.armor1_id],110,250)
    self.contents.font.color = system_color
    self.contents.draw_text(10,280,90,22,"Helmet:",2)
    self.contents.font.color = normal_color
    draw_item_name($data_armors[@actor.armor2_id],110,280)
    self.contents.font.color = system_color
    self.contents.draw_text(10,310,90,22,"Armor:",2)
    self.contents.font.color = normal_color
    draw_item_name($data_armors[@actor.armor3_id],110,310)
    self.contents.font.color = system_color
    self.contents.draw_text(-10,340,110,22,"Accessory:",2)
    self.contents.font.color = normal_color
    draw_item_name($data_armors[@actor.armor4_id],110,330)
  end
end


__________________________

To put in sig, copy this link:
CODE
[url="http://www.rpgrevolution.com/forums/index.php?showtopic=51540"][img]http://img40.imageshack.us/img40/6504/conceptthelawbanner.png[/img][/url]


Sig Stuff


"When you first come, no one knows you. When help them out, they all know you. When you leave, they all love you. When you come back, they've already forgotten you." -- copy into your sig if you think this quote speaks true!

If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others. -Exiled One

My Project Thread: Gai's Hunters


Go to the top of the page
 
+Quote Post
   

Posts in this topic
- The Law G14   Law's Custom Skill Screen   Oct 5 2009, 05:31 PM
- - Zeffa   I'm liking the many custom menu screens you...   Oct 7 2009, 02:34 PM
- - The Law G14   Thanks for comments Zef, I was begining to feel th...   Oct 7 2009, 02:45 PM
- - Chibichan   Another one bites the dust! Wow Law, you are r...   Oct 11 2009, 11:36 AM
- - The Law G14   Thanks for the comments Chibichan So your saying...   Oct 11 2009, 11:40 AM
- - Chibichan   Yep yep yep! You're probably thinking befo...   Oct 11 2009, 11:45 AM
- - The Law G14   Hey, would you mind giving a link to the vx script...   Oct 11 2009, 11:52 AM
- - Chibichan   I believe this is it. Tell me if it's not, but...   Oct 11 2009, 12:20 PM
- - The Law G14   Hm, sounds like a good idea, thanks Chibichan Tho...   Oct 11 2009, 12:27 PM
- - Chibichan   I know, I just realized that.... It looked really ...   Oct 11 2009, 12:31 PM
- - The Law G14   I think I'll be able to pull it off, I'll ...   Oct 11 2009, 12:34 PM
- - Chibichan   Great! Glad I could help!   Oct 11 2009, 12:35 PM
- - The Law G14   Updated the script. The skill screen now displays ...   Nov 14 2009, 09:28 AM
- - skip258   This is so close to what i was looking for. Don...   Dec 13 2009, 04:42 PM
- - The Law G14   Well the script idea you've proposed sounds ve...   Dec 13 2009, 06:06 PM
- - Bigace   Nice custom script law, however it runs problems w...   Jan 2 2010, 08:52 AM
- - The Law G14   Would you mind posting up Enu's script? I coul...   Jan 2 2010, 09:09 AM
- - Bigace   Here's the whole battle system: Enu Tanketai S...   Jan 2 2010, 12:39 PM
|- - Bigace   QUOTE (The Law G14 @ Jan 3 2010, 03:21 PM...   Jan 3 2010, 01:03 PM
- - Redd   You should give this the option to have a backgrou...   Jan 4 2010, 03:31 PM
- - The Law G14   Nice idea Redd, I'll try to include this optio...   Jan 4 2010, 04:17 PM
|- - highlander4   QUOTE (The Law G14 @ Jan 5 2010, 08:17 AM...   Dec 7 2011, 09:13 PM
- - The Law G14   Hey Can I have your version of the Custom Skill s...   Dec 8 2011, 04:04 PM
|- - highlander4   QUOTE (The Law G14 @ Dec 9 2011, 08:04 AM...   Dec 8 2011, 05:16 PM
- - The Law G14   Hm, well I tried it all out and it's working f...   Dec 8 2011, 06:04 PM
|- - highlander4   QUOTE (The Law G14 @ Dec 9 2011, 10:04 AM...   Dec 8 2011, 06:26 PM
- - The Law G14   Alright, I did what you said and it still works fo...   Dec 8 2011, 06:48 PM
|- - highlander4   QUOTE (The Law G14 @ Dec 9 2011, 10:48 AM...   Dec 8 2011, 08:07 PM
- - The Law G14   lol that's weird, but I'm glad its working...   Dec 9 2011, 02:51 AM


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: 18th May 2013 - 09:06 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker