ZS Skills on Status Menu

ZS Skills on Status Menu // Forum request. Shows an actor's skills, and an optional toggle feature.

Customization:
  • Adjust the amount of skills shown.
  • Adjust the toggle button + whether or not you wish for toggle to be enabled.
Screenshots:
2.png


Setup:
  • Paste under the Materials slot, above main.
Known issues:
  • Any scripts that don't alias draw_block3(y) as well may not be compatible with this script.
Usage Notes:
  • Don't remove the script's credits or header.
  • Script is allowed for commercial and non-commercial projects.
  • Extra Credits: TOMO, for the skills drawing setup.
Code:
#==============================================================================
#
# ** Title: ZS Skills on Status Menu 1.0
#    Created: August 2019 (forum request)
#    Creator: ZirconStorms
#    Extra Credits: TOMO (tm.lucky-duet.com/viewtopic.php?t=3119)
#
#------------------------------------------------------------------------------
# ** Description: Toggles showing an actor's skills and equipment.
#------------------------------------------------------------------------------
#
# Script is allowed for commercial and non-commercial games.
# Do not remove this script's credits or header.
# In the game's credits or read.me, credit "ZirconStorms". 
# No compatibility fixes will be provided unless frequently asked.
#
#==============================================================================
# Customizable Section Begins Here.
#==============================================================================

module ZSSKILLSONSTATUS
 
  SKILL_LINE_LIMIT = 6
  #The amount of skills you want shown on screen. (One skill per line.)
 
  TOGGLE_FEATURE = false
  #if set to false, you will only be able to see an actor's skills.
 
  TOGGLE_BUTTON = :C
  #The button you want to use to toggle showing equipment and skills.
  #Recommended - :C, :SHIFT
  
end

#==============================================================================
# Customizable Section Ends Here.
#==============================================================================

class Window_Status < Window_Selectable
  #--------------------------------------------------------------------------
  # * Draw Block 3
  #--------------------------------------------------------------------------
  def draw_block3(y)
    draw_parameters(32, y)
    if @drawskills == true
      draw_skills(288,y)
    else
    if ZSSKILLSONSTATUS::TOGGLE_FEATURE == true
      draw_equipments(288, y)
    else
      draw_skills(288,y)
    end
    end
  end
  #--------------------------------------------------------------------------
  # * Draw Skills
  #--------------------------------------------------------------------------
  def draw_skills(x, y)
    @actor.skills.each_with_index do |item, i|
      break if i >= 6
      draw_item_name(item, x, y + line_height * i)
    end
  end
  #--------------------------------------------------------------------------
  # * Update
  #--------------------------------------------------------------------------
  def update
    super
    if Input.trigger?(ZSSKILLSONSTATUS::TOGGLE_BUTTON)
      @drawskills = @drawskills == true ? false : true
      refresh
    end
  end
  #--------------------------------------------------------------------------
end
Hey, That was quick this is a great script!!

Unfortunately, I had forgotten about one detail... the status menu has a limit of how many skills are shown!

Perhaps it would be better to display a full window covering the entire status menu in order to show every skill the actor has learned, or maybe being able to scroll that very same skill window with the arrow keys...!

I hope this is not too much work for you. This script is indeed amazing!!

Original thread: https://forums.rpgmakerweb.com/threads/zs-skills-on-status-menu.112178/