L's Custom Menu Scenes

L's Custom Menu Scenes

Version: Initial
By: Landarma

Introduction

A small collection of my custom menu scene scripts. Including my old Simple CMS and new skill and status scenes.

Features
  • SDK compatible
  • For the rest, see the screenshots.


Screenshots
Scene_Skill Spoiler
Image
Using with DerVVulfman's Grouping and Details

Scene_Status Spoiler
Image
I know it's not pretty, but I don't have any other idea..



Demo

Demo Download - 4Shared

Script

About menu scripts, see my old CMS thread at Script Archive.

L's Custom Skill Scene Spoiler
  1.  
  2. # L's Custom Skill Scene
  3. #--------------------------------------------------------------------------
  4. # * Begin SDK Log
  5. #--------------------------------------------------------------------------
  6. SDK.log("L's Skill Scene", 'L', 'Initial', '2009-02-26')
  7.  
  8. #--------------------------------------------------------------------------
  9. # * Begin SDK Requirement Check
  10. #--------------------------------------------------------------------------
  11. SDK.check_requirements(2.0, [1, 3])
  12.  
  13. #--------------------------------------------------------------------------
  14. # * Begin SDK Enable Test
  15. #--------------------------------------------------------------------------
  16. if SDK.enabled?("L's Skill Scene")
  17.  
  18. #==============================================================================
  19. # * Window_Skill_Header (Currently Dummy)
  20. #==============================================================================
  21. class Window_Skill_Header < Window_Base
  22.   #--------------------------------------------------------------------------
  23.   # * Object Initialization
  24.   #--------------------------------------------------------------------------
  25.   def initialize
  26.      super(0, 0, 640, 64)
  27.      #Create Bitmap
  28.      self.contents = Bitmap.new(width - 32, height - 32)
  29.      #Refresh and add the contents to window
  30.      refresh
  31.   end
  32.   #--------------------------------------------------------------------------
  33.   # * Refresh
  34.   #--------------------------------------------------------------------------
  35.   def refresh
  36.      #Clear Bitmap
  37.      self.contents.clear
  38.   end
  39. end
  40.  
  41.  
  42. #==============================================================================
  43. # * Window_SkillStatus
  44. #==============================================================================
  45. class Window_SkillStatus < Window_Base
  46.   #--------------------------------------------------------------------------
  47.   # * Object Initialization
  48.   #--------------------------------------------------------------------------
  49.   def initialize(actor)
  50.      super(0, 64, 240, 352)
  51.      #Create Bitmap
  52.      self.contents = Bitmap.new(width - 32, height - 32)
  53.      #Refresh and add the contents to window
  54.      @actor = actor
  55.      refresh
  56.   end
  57.   #--------------------------------------------------------------------------
  58.   # * Refresh
  59.   #--------------------------------------------------------------------------
  60.   def refresh
  61.      #Clear Bitmap
  62.      self.contents.clear
  63.      #Draw actor's status
  64.      draw_actor_name(@actor, 16, 0)
  65.      draw_actor_level(@actor, 128, 0)
  66.      draw_actor_graphic(@actor, 96, 128)
  67.      draw_actor_class(@actor, 16, 160)
  68.      draw_actor_state(@actor, 16, 192)
  69.      draw_actor_hp(@actor, 16, 224)
  70.      draw_actor_sp(@actor, 16, 256)
  71.   end   
  72. end
  73.  
  74.  
  75. #==============================================================================
  76. # * Window_Skill
  77. #==============================================================================
  78. class Window_Skill < Window_Selectable
  79.   #--------------------------------------------------------------------------
  80.   # * Object Initialization
  81.   #--------------------------------------------------------------------------
  82.   def initialize(actor)
  83.      if $game_temp.in_battle
  84.         super(0, 128, 640, 352)
  85.      else
  86.         super(240, 64, 400, 352)
  87.      end
  88.      #Create Bitmap
  89.      self.contents = Bitmap.new(width - 32, height - 32)
  90.      @actor = actor
  91.      if $game_temp.in_battle
  92.        @column_max = 2
  93.      else
  94.        @column_max = 1
  95.      end
  96.      #Refresh and add the contents to window
  97.      refresh
  98.      self.index = 0
  99.      # If in battle, move window to center of screen
  100.      # and make it semi-transparent
  101.      if $game_temp.in_battle
  102.         self.y = 64
  103.         self.height = 256
  104.         self.back_opacity = 160
  105.      end
  106.   end
  107.   #--------------------------------------------------------------------------
  108.   # * Acquiring Skill
  109.   #--------------------------------------------------------------------------
  110.   def skill
  111.      return @data[self.index]
  112.   end
  113.   #--------------------------------------------------------------------------
  114.   # * Refresh
  115.   #--------------------------------------------------------------------------
  116.   def refresh
  117.      if self.contents != nil
  118.         self.contents.dispose
  119.         self.contents = nil
  120.      end
  121.      @data = []
  122.      for i in 0...@actor.skills.size
  123.         skill = $data_skills[@actor.skills[i]]
  124.         if skill != nil
  125.            @data.push(skill)
  126.         end
  127.      end
  128.      # If item count is not 0, make a bit map and draw all items
  129.      @item_max = @data.size
  130.      if @item_max > 0
  131.         self.contents = Bitmap.new(width - 32, row_max * 32)
  132.         for i in 0...@item_max
  133.            draw_item(i)
  134.         end
  135.      end
  136.   end
  137.   #--------------------------------------------------------------------------
  138.   # * Draw Item
  139.   #       index : item number
  140.   #--------------------------------------------------------------------------
  141.   def draw_item(index)
  142.      skill = @data[index]
  143.      if @actor.skill_can_use?(skill.id)
  144.         self.contents.font.color = normal_color
  145.      else
  146.         self.contents.font.color = disabled_color
  147.      end
  148.      x = 4 + index % 2 * (288 + 32)
  149.      y = index / 2 * 32
  150.      rect = Rect.new(x, y, self.width / @column_max - 32, 32)
  151.      self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
  152.      bitmap = RPG::Cache.icon(skill.icon_name)
  153.      opacity = self.contents.font.color == normal_color ? 255 : 128
  154.      self.contents.blt(x, y + 4, bitmap, Rect.new(0, 0, 24, 24), opacity)
  155.      self.contents.draw_text(x + 28, y, 204, 32, skill.name, 0)
  156.      if $game_temp.in_battle
  157.         self.contents.draw_text(x + 232, y, 48, 32, skill.sp_cost.to_s, 2)
  158.      else
  159.         self.contents.draw_text(x + 310, y, 48, 32, skill.sp_cost.to_s, 2)
  160.      end
  161.   end
  162.   #--------------------------------------------------------------------------
  163.   # * Help Text Update
  164.   #--------------------------------------------------------------------------
  165.   def update_help
  166.      @help_window.set_text(self.skill == nil ? "" : self.skill.description)
  167.   end
  168. end
  169.  
  170.  
  171. #==============================================================================
  172. # ** Scene_Skill
  173. #------------------------------------------------------------------------------
  174. #   This class performs skill screen processing.
  175. #==============================================================================
  176.  
  177. class Scene_Skill < SDK::Scene_Base
  178.   #--------------------------------------------------------------------------
  179.   # * Object Initialization
  180.   #       actor_index : actor index
  181.   #--------------------------------------------------------------------------
  182.   def initialize(actor_index = 0, equip_index = 0)
  183.      @actor_index = actor_index
  184.      super()
  185.   end
  186.   #--------------------------------------------------------------------------
  187.   # * Main Processing : Variable Initialization
  188.   #--------------------------------------------------------------------------
  189.   def main_variable
  190.      super
  191.      # Get actor
  192.      @actor = $game_party.actors[@actor_index]
  193.   end
  194.   #--------------------------------------------------------------------------
  195.   # * Main Processing : Window Initialization
  196.   #--------------------------------------------------------------------------
  197.   def main_window
  198.      super
  199.      # Make help window, status window, and skill window
  200.      @header_window = Window_Skill_Header.new
  201.      @help_window = Window_Help.new
  202.      @help_window.y = 416
  203.      @status_window = Window_SkillStatus.new(@actor)
  204.      @status_window.y = 64
  205.      @skill_window = Window_Skill.new(@actor)
  206.      @skill_window.y = 64
  207.      @skill_window.height = 352
  208.      # Associate help window
  209.      @skill_window.help_window = @help_window
  210.      # Make target window (set to invisible / inactive)
  211.      @target_window = Window_Target.new
  212.      @target_window.visible = false
  213.      @target_window.active = false
  214.   end
  215.   #--------------------------------------------------------------------------
  216.   # * Frame Update
  217.   #--------------------------------------------------------------------------
  218.   def update
  219.      super
  220.      # If skill window is active: call update_skill
  221.      if @skill_window.active
  222.         update_skill
  223.         return
  224.      # If skill target is active: call update_target
  225.      elsif @target_window.active
  226.         update_target
  227.         return
  228.      end
  229.   end
  230. end
  231.  
  232. #--------------------------------------------------------------------------
  233. # * End SDK Enable Test
  234. #--------------------------------------------------------------------------
  235. end
  236.  
Expand to see the code.

L's Custom Status Scene Spoiler
  1.  
  2. # L's Custom Status Screen
  3. #--------------------------------------------------------------------------
  4. # * Begin SDK Log
  5. #--------------------------------------------------------------------------
  6. SDK.log("L's Custom Status Screen", 'L', 'Initial', '2009-02-27')
  7.  
  8. #--------------------------------------------------------------------------
  9. # * Begin SDK Requirement Check
  10. #--------------------------------------------------------------------------
  11. SDK.check_requirements(2.0, [1, 3])
  12.  
  13. #--------------------------------------------------------------------------
  14. # * Begin SDK Enable Test
  15. #--------------------------------------------------------------------------
  16. if SDK.enabled?("L's Custom Status Screen")
  17.  
  18. class Window_Base < Window
  19.   SYSTEM_WORD_EVA = "Evade" #
  20.   #--------------------------------------------------------------------------
  21.   # * Draw Parameter
  22.   #       actor : actor
  23.   #       x       : draw spot x-coordinate
  24.   #       y       : draw spot y-coordinate
  25.   #       type   : parameter type (0-6)
  26.   #--------------------------------------------------------------------------
  27.   def draw_actor_parameter(actor, x, y, type)
  28.      case type
  29.      when 0
  30.         parameter_name = $data_system.words.atk
  31.         parameter_value = actor.atk
  32.      when 1
  33.         parameter_name = $data_system.words.pdef
  34.         parameter_value = actor.pdef
  35.      when 2
  36.         parameter_name = $data_system.words.mdef
  37.         parameter_value = actor.mdef
  38.      when 3
  39.         parameter_name = $data_system.words.str
  40.         parameter_value = actor.str
  41.      when 4
  42.         parameter_name = $data_system.words.dex
  43.         parameter_value = actor.dex
  44.      when 5
  45.         parameter_name = $data_system.words.agi
  46.         parameter_value = actor.agi
  47.      when 6
  48.         parameter_name = $data_system.words.int
  49.         parameter_value = actor.int
  50.      when 7 #
  51.         parameter_name = SYSTEM_WORD_EVA #
  52.         parameter_value = actor.eva #
  53.      end
  54.      self.contents.font.color = system_color
  55.      self.contents.draw_text(x, y, 120, 32, parameter_name)
  56.      self.contents.font.color = normal_color
  57.      self.contents.draw_text(x + 120, y, 36, 32, parameter_value.to_s, 2)
  58.   end
  59. end
  60.  
  61.  
  62. #==============================================================================
  63. # * Window_Actor_NamePlate
  64. #==============================================================================
  65. class Window_Actor_NamePlate < Window_Base
  66.   #--------------------------------------------------------------------------
  67.   # * Object Initialization
  68.   #--------------------------------------------------------------------------
  69.   def initialize(actor)
  70.      super(240, 0, 400, 64)
  71.      #Create Bitmap
  72.      self.contents = Bitmap.new(width - 32, height - 32)
  73.      @actor = actor
  74.      #Refresh and add the contents to window
  75.      refresh
  76.   end
  77.   #--------------------------------------------------------------------------
  78.   # * Refresh
  79.   #--------------------------------------------------------------------------
  80.   def refresh
  81.      #Clear Bitmap
  82.      self.contents.clear
  83.      draw_actor_name(@actor, 16, 0)
  84.      draw_actor_class(@actor, 240, 0)
  85.   end
  86. end
  87.  
  88.  
  89. #==============================================================================
  90. # * Window_Actor_Info1
  91. #==============================================================================
  92. class Window_Actor_Info1 < Window_Base
  93.   #--------------------------------------------------------------------------
  94.   # * Object Initialization
  95.   #--------------------------------------------------------------------------
  96.   def initialize(actor)
  97.      super(0, 0, 240, 480)
  98.      #Create Bitmap
  99.      self.contents = Bitmap.new(width - 32, height - 32)
  100.      @actor = actor
  101.      #Refresh and add the contents to window
  102.      refresh
  103.   end
  104.   #--------------------------------------------------------------------------
  105.   # * Refresh
  106.   #--------------------------------------------------------------------------
  107.   def refresh
  108.      #Clear Bitmap
  109.      self.contents.clear
  110.      self.contents.draw_text(64, 64, 120, 32, "- No Picture - ")
  111.      draw_actor_state(@actor, 16, 224)
  112.      draw_actor_level(@actor, 16, 256)
  113.      draw_actor_hp(@actor, 16, 352, 172)
  114.      draw_actor_sp(@actor, 16, 384, 172)
  115.      self.contents.font.color = system_color
  116.      self.contents.draw_text(16, 288, 80, 32, "EXP")
  117.      self.contents.draw_text(16, 320, 80, 32, "NEXT")
  118.      self.contents.font.color = normal_color
  119.      self.contents.draw_text(16 + 80, 288, 84, 32, @actor.exp_s, 2)
  120.      self.contents.draw_text(16 + 80, 320, 84, 32, @actor.next_rest_exp_s, 2)
  121.   end
  122. end
  123.  
  124.  
  125. #==============================================================================
  126. # * Window_Actor_Info2
  127. #==============================================================================
  128. class Window_Actor_Info2 < Window_Base
  129.   #--------------------------------------------------------------------------
  130.   # * Object Initialization
  131.   #--------------------------------------------------------------------------
  132.   def initialize(actor)
  133.      super(240, 64, 400, 416)
  134.      #Create Bitmap
  135.      self.contents = Bitmap.new(width - 32, height - 32)
  136.      self.contents.font.size = 21
  137.      @actor = actor
  138.      #Refresh and add the contents to window
  139.      refresh
  140.   end
  141.   #--------------------------------------------------------------------------
  142.   # * Refresh
  143.   #--------------------------------------------------------------------------
  144.   def refresh
  145.      #Clear Bitmap
  146.      self.contents.clear
  147.      self.contents.font.color = system_color
  148.      self.contents.draw_text(0, 0, 96, 32, "Status")
  149.      self.contents.font.color = normal_color
  150.      draw_actor_parameter(@actor, 0, 32, 0)
  151.      draw_actor_parameter(@actor, 0, 64, 1)
  152.      draw_actor_parameter(@actor, 0, 96, 2)
  153.      draw_actor_parameter(@actor, 0, 184, 3)
  154.      draw_actor_parameter(@actor, 0, 216, 4)
  155.      draw_actor_parameter(@actor, 0, 248, 5)
  156.      draw_actor_parameter(@actor, 0, 280, 6)
  157.      draw_actor_parameter(@actor, 0, 128, 7)
  158.      self.contents.font.color = system_color
  159.      self.contents.draw_text(200, 0, 96, 32, "Equipment")
  160.      self.contents.font.color = normal_color
  161.      draw_item_name($data_weapons[@actor.weapon_id], 200 + 16, 32)
  162.      draw_item_name($data_armors[@actor.armor1_id], 200 + 16, 64)
  163.      draw_item_name($data_armors[@actor.armor2_id], 200 + 16, 96)
  164.      draw_item_name($data_armors[@actor.armor3_id], 200 + 16, 128)
  165.      draw_item_name($data_armors[@actor.armor4_id], 200 + 16, 160)
  166.   end
  167. end
  168.  
  169.  
  170. #==============================================================================
  171. # ** Scene_Status
  172. #------------------------------------------------------------------------------
  173. #   This class performs status screen processing.
  174. #==============================================================================
  175.  
  176. class Scene_Status < SDK::Scene_Base
  177.   #--------------------------------------------------------------------------
  178.   # * Object Initialization
  179.   #       actor_index : actor index
  180.   #--------------------------------------------------------------------------
  181.   def initialize(actor_index = 0, equip_index = 0)
  182.      @actor_index = actor_index
  183.   end
  184.   #--------------------------------------------------------------------------
  185.   # * Main Processing : Variable Initialization
  186.   #--------------------------------------------------------------------------
  187.   def main_variable
  188.      super
  189.      # Get actor
  190.      @actor = $game_party.actors[@actor_index]
  191.   end
  192.   #--------------------------------------------------------------------------
  193.   # * Main Processing : Window Initialization
  194.   #--------------------------------------------------------------------------
  195.   def main_window
  196.      super
  197.      # Make status window
  198.      @window_actor_name = Window_Actor_NamePlate.new(@actor)
  199.      @window_actor_state1 = Window_Actor_Info1.new(@actor)
  200.      @window_actor_state2 = Window_Actor_Info2.new(@actor)
  201.   end
  202. end
  203.  
  204. #--------------------------------------------------------------------------
  205. # * End SDK Enable Test
  206. #--------------------------------------------------------------------------
  207. end
  208.  
Expand to see the code.


Instructions

These scripts require RMXP SDK 2.x. Copy and paste script under SDK, above 'main'. It's a simple 'copy & paste', but you may need some tweaking(like showing face or battler picture in Scene_Status).

FAQ

Q: Can you make them non-SDK?
A: I have no plan. But it's not hard to convert them.
Q: What is the purpose of 'Window_Skill_Header'?
A: It's just a dummy, a placeholder. You can add some text there, or remove it from the scene(you have to change height of 'Window_SkillStatus' and 'Window_Skill' if you do that)
Q: 'No Picture'? WTF?
A: You can add face picture, but since I didn't provide the 'draw_actor_face' method, you have to add the method and picture.

Compatibility

So far, this is compatible to:
- Any CMS that changes main menu only
- Grouping and Details by DerVVulfman. Although you have to edit window position to make it look right.
(compatibility with KGC_SkillGrouping is yet unconfirmed)

Credits and Thanks

Thanks to:
Mr. Mo for Window Scene Wizard
and other scripters for showing me how to make these scenes

Authoress' Notes

Since I'm away from the scene now, maybe there won't be enough support for my scripts.

Terms and Conditions

Feel free to use. Credit would be fine.
I think the lay-out is a bit too basic, but the script itself is great.
Geez, Adding one more script broke everything. I had to copy and paste it from other place which I posted these scripts. Should I add it by making new thread? or attach it on this topic?
looks great keep the good work Making My gaMe look better...

I will credit you thanks
You can check my addition that was not posted here: 'Simple' CMS #4: 'Compact'
Hmm, it looks pretty decent, although I think your Scene_Skill (And maybe the other) would benefit alot more if you used the battler image instead of the characterset, cause it seems too small and isn't filling the space up.
jbrist wrote:
Hmm, it looks pretty decent, although I think your Scene_Skill (And maybe the other) would benefit alot more if you used the battler image instead of the characterset, cause it seems too small and isn't filling the space up.


Heh... You can replace it to battler or face picture if you want. ;)
I had an error with your script in my game. It said

"Script [name of script] line 6: NameError occurred.
uninitalized SDK."

Is there a way to fix this? I really like the script.
ConstantReminder wrote:
I had an error with your script in my game. It said

"Script [name of script] line 6: NameError occurred.
uninitalized SDK."

Is there a way to fix this? I really like the script.


Are you sure you have SDK in your project? I'm now away from the scene(started to play TES4: Oblivion again), so I wouldn't give enought support for my scripts.
Considering that this may be an old thread, I don't know where I could find a scripter to help me.

As much as I like the script, I currently have Rune's Biography script and Momomo's Bestiary script in my project... I have them shown on the normal menu, but not being a scripter, I can't seem to get it to replace the 'Order' command, and insert the two new entries. Nor can I remove the 'Option' command from the save/load/exit menu... I would also like the 'load' option removed.

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=62446