Galv Shop Upgrade + CSCA Skill Shop

Heya, I was wondering if someone could make it so that I could use these two scripts together!
Would it be possible for someone to make this script work together?
Or is there a script that works very similar to Skill Shop?

Or does something like this already exist? And if so can I have a link for it?
Better question is what do you want the skill shop to do that it doesn't?
The shop upgrade modifies the default shop scene and the skill shop uses a new scene that does not overlap with galv shop upgrade.
Better question is what do you want the skill shop to do that it doesn't?
The shop upgrade modifies the default shop scene and the skill shop uses a new scene that does not overlap with galv shop upgrade.
Okay, originally I had a crash that would happen when I tried using skill shop, which is why I thought there was a compatibility issue. But it seems that its working fine now.
So yes, related to your better question.
I would like it if possible, for the skill shop to use the UI/Style of Galv’s shop.
I would like it if possible, for the skill shop to use the UI/Style of Galv’s shop.
I designed this to use both scripts, so as long as you have both in your project then this should work for you.
Spoiler: Roninator2 - CSCA Skill Shop UI Mod for Galv Shop Upgrade
Ruby:
# ╔═══════════════════════════════════════════════╦════════════════════╗
# ║ Title: CSCA Skill Shop UI - Galv Shop Upgrade ║  Version: 1.01     ║
# ║ Author: Roninator2                            ║                    ║
# ╠═══════════════════════════════════════════════╬════════════════════╣
# ║ Function:                                     ║   Date Created     ║
# ║                                               ╠════════════════════╣
# ║   Mod Windows for visual effect               ║    24 Mar 2025     ║
# ╚═══════════════════════════════════════════════╩════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Requires: CSCA Skill Shop                                          ║
# ║           Galv Shop Upgrade                                        ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Brief Description:                                                 ║
# ║       Make CSCA Skill Shop look like Galv Shop Upgrade             ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Instructions:                                                      ║
# ║   Change Windowskin for Skill Shop with                            ║
# ║   $game_system.skill_shop_windowskin = "ImageName"                 ║
# ║      Must put Window files in /Graphics/System/ folder             ║
# ║                                                                    ║
# ║   Alter the icons and text below as desired                        ║
# ║                                                                    ║
# ║   Place below both scripts                                         ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Updates:                                                           ║
# ║ 1.00 - 24 Mar 2025 - Script finished                               ║
# ║ 1.01 - 25 Mar 2025 - Added missing text and aligned display        ║
# ║                                                                    ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Credits and Thanks:                                                ║
# ║   Roninator2                                                       ║
# ║                                                                    ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Terms of use:                                                      ║
# ║  Follow the original Authors terms of use where applicable         ║
# ║    - When not made by me (Roninator2)                              ║
# ║  Free for all uses in RPG Maker except nudity                      ║
# ║  Anyone using this script in their project before these terms      ║
# ║  were changed are allowed to use this script even if it conflicts  ║
# ║  with these new terms. New terms effective 03 Apr 2024             ║
# ║  No part of this code can be used with AI programs or tools        ║
# ║  Credit must be given                                              ║
# ╚════════════════════════════════════════════════════════════════════╝

module R2_Skill_Shop_Settings
  WINDOWSKIN = "Window"            # windowskin used by shop
  
  FONTSIZE = 20 # Use 18 or 20    # Font size used for data text.
  
  SKILL_TYPE = "Skill Type"       # text for skill type
  
  ITEM_DAM_TYPE = "Damage Type"   # Text for item stats
  ITEM_STAT_HP_DAM = "HP Damage"  # Text for item stats
  ITEM_STAT_MP_DAM = "MP Damage"  # Text for item stats
  ITEM_STAT_HP_REC = "HP Recover" # Text for item stats
  ITEM_STAT_MP_REC = "MP Recover" # Text for item stats
  ITEM_STAT_HP_DRN = "HP Drain"   # Text for item stats
  ITEM_STAT_MP_DRN = "MP Drain"   # Text for item stats
  
  SHOWN_ELEMENTS ={
  # Element ID => Icon ID
        1 => 11,
        2 => 16,
        3 => 96,
        4 => 97,
        5 => 98,
        6 => 99,
        7 => 100,
        8 => 101,
        9 => 102,
        10 => 103,
    } # Do not remove this.
  
  SHOW_SCOPE = true
  SCOPE_NAME = "Target"
  SCOPE_ID ={
  # Element ID => Icon ID
        0 => "None",
        1 => "One Enemy",
        2 => "All Enemies",
        3 => "1 Radnom Enemy",
        4 => "2 Radnom Enemies",
        5 => "3 Radnom Enemies",
        6 => "4 Radnom Enemies",
        7 => "One Ally",
        8 => "All Allies",
        9 => "One Ally (Dead)",
        10 => "All Allies (Dead)",
        11 => "The User",
    } # Do not remove this.
  
  SKILL_TYPE = true       # show the skill type
  SKILL_TYPE_TEXT = "Skill Type"       # display text
  USE_SPACES = false       # Attempt to separate information in blocks
  
  SHOW_COSTS = true
  MP_COST = "MP Cost"
  TP_COST = "TP Cost"
  
  TEXT_HP  = "HP"         # Text for HP
  TEXT_MP  = "MP"         # Text for MP
  TEXT_TP  = "TP"         # Text for TP
  ICON_TP  = 33           # Icon for TP
  ICON_HP  = 32           # Icon for MAXHP
  ICON_MP  = 33           # Icon for MAXMP
  ICON_ATK = 34           # Icon for ATK
  ICON_DEF = 35           # Icon for DEF
  ICON_MAT = 36           # Icon for SPI
  ICON_MDF = 37           # Icon for AGI
  ICON_AGI = 38           # Icon for HIT
  ICON_LUK = 39           # Icon for EVA
  
  ITEM_STATES = true      # Show item states applied
  ITEM_BUFFS  = true      # Show item buffs added/removed
  ITEM_STATS  = true      # Show item stat additions
  
  TEXT_ADD_STATES = "States Added"       # States added text
  TEXT_RM_STATES  = "States Removed"     # States removed text
  
  ITEM_ADD_BUFF   = "Add Buff"        # Text for item buffs
  ITEM_ADD_DEBUFF = "Add Debuff"      # Text for item buffs
  ITEM_RM_BUFF    = "Remove Buff"     # Text for item buffs
  ITEM_RM_DEBUFF  = "Remove Debuff"   # Text for item buffs

  ITEM_STAT_TEXT = "Change Base Stats"
end

# ╔════════════════════════════════════════════════════════════════════╗
# ║                      End of editable region                        ║
# ╚════════════════════════════════════════════════════════════════════╝

class Window_Base < Window
  alias r2_skillshop_windowbase_initialize initialize
  def initialize(x, y, width, height)
    r2_skillshop_windowbase_initialize(x, y, width, height)
    if SceneManager.scene_is?(CSCA_Scene_Skill_Shop)
      self.windowskin = Cache.system($game_system.skill_shop_windowskin)
    end
  end
end

class Game_System
  attr_accessor :skill_shop_windowskin
  alias r2_skillshop_system_initialize initialize
  def initialize
    r2_skillshop_system_initialize
    @skill_shop_windowskin = R2_Skill_Shop_Settings::WINDOWSKIN
  end
end

class Game_Interpreter
  def reset_skill_shop_settings
    $game_system.skill_shop_windowskin = R2_Skill_Shop_Settings::WINDOWSKIN
  end
end

class CSCA_Scene_Skill_Shop < Scene_MenuBase
  def start
    super
    create_help_window
    create_gold_window
    create_command_window
    create_dummy_window
    create_status_window
    create_buy_window
    @shoptime = 0
    @has_shopped = false
    create_talk_window
    create_desc_window
    create_shop_background
    create_shopkeeper
    create_images
    @leave_shop = false
    @keeper.bitmap = Cache.picture($game_system.shopkeeper + Galv_Shopkeeper::GREET) rescue Cache.picture($game_system.shopkeeper)
    @shoptime = Galv_Shopkeeper::FRAME_TIME
  end
  
  def create_desc_window
    wx = @buy_window.x
    wy = @buy_window.y
    ww = @buy_window.width
    wh = @buy_window.height
    @desc_window = Window_SkillDesc.new(wx, wy, ww, wh)
    @desc_window.viewport = @viewport
    @desc_window.hide
  end
  
  def create_talk_window
    @talk_window = Window_Help.new
    @talk_window.viewport = @viewport
    @talk_window.set_text($game_system.shop_talk[0])
    @help_window.hide
  end
  
  # OVERWRITE
  def create_dummy_window
    wx = Graphics.width - 304
    wy = @command_window.y + @command_window.height
    wh = Graphics.height - wy - @gold_window.height * 2
    ww = Graphics.width - wx
    @dummy_window = Window_Base.new(wx, wy, ww, wh)
    @dummy_window.viewport = @viewport
  end
  
  # OVERWRITE
  def create_buy_window
    wy = @dummy_window.y
    wh = @dummy_window.height
    @buy_window = CSCA_Window_SkillShopBuy.new(0, wy, wh, @goods)
    @buy_window.viewport = @viewport
    @buy_window.help_window = @help_window
    @buy_window.status_window = @status_window
    @buy_window.desc_window = @desc_window
    @buy_window.hide
    @buy_window.set_handler(:ok,     method(:on_buy_ok))
    @buy_window.set_handler(:cancel, method(:on_buy_cancel))
    @buy_window.x = Graphics.width - @buy_window.width
  end
  
  # OVERWRITE
  def create_status_window
    wx = @dummy_window.x
    wy = @dummy_window.y + @dummy_window.height
    ww = @dummy_window.width
    wh = Graphics.height - @dummy_window.height - @dummy_window.y
    @status_window = CSCA_Window_SkillShopStatus.new(wx, wy, ww, wh)
    @status_window.viewport = @viewport
    @status_window.hide
    @status_window.set_handler(:ok,     method(:on_number_ok))
    @status_window.set_handler(:cancel, method(:on_number_cancel))
  end
  
  def create_shopkeeper
    @keeper = Sprite.new
    @keeper.bitmap = Cache.picture($game_system.shopkeeper)
    @keeper.y = Graphics.height - @keeper.bitmap.height
  end
  
  def create_images
    @dkey = Sprite.new
    @dkey.opacity = 0
    @dkey.bitmap = Cache.system(Galv_Shopkeeper::D_IMAGE) rescue Cache.system("")
    @dkey.y = Graphics.height - @dkey.bitmap.height
  end
  
  def create_shop_background
    @shopback = Plane.new
    @shopback.bitmap = Cache.picture($game_system.shopback)
  end
  
  # OVERWRITE
  def on_buy_cancel
    @command_window.activate
    @buy_window.hide
    @status_window.hide
    @status_window.item = nil
    @help_window.clear
    if @has_shopped == true
      @talk_window.set_text($game_system.shop_talk[3])
      @keeper.bitmap = Cache.picture($game_system.shopkeeper)
    else
      @talk_window.set_text($game_system.shop_talk[4])
      @keeper.bitmap = Cache.picture($game_system.shopkeeper + Galv_Shopkeeper::DONT_BUY)
    end
    show_talk
    @has_shopped = false
    @dkey.opacity = 0
  end
  
  def activate_buy_window
    @buy_window.money = money
    @buy_window.show.activate
    @status_window.show.unselect
  end

  def command_buy
    @dummy_window.hide
    activate_buy_window
    @keeper.bitmap = Cache.picture($game_system.shopkeeper)
    hide_talk
    @dkey.opacity = 255
    @desc_window.y = @buy_window.y
    @desc_window.height = @buy_window.height
  end
  
  def do_buy(actor, skill)
    $game_party.lose_gold(buying_price)
    $game_actors[actor.id].learn_skill(skill.id)
    @talk_window.set_text($game_system.shop_talk[1])
    show_talk
    @keeper.bitmap = Cache.picture($game_system.shopkeeper + Galv_Shopkeeper::BUY) rescue Cache.picture($game_system.shopkeeper)
    @shoptime = Galv_Shopkeeper::FRAME_TIME
  end
  
  def on_buy_ok
    @item = @buy_window.item
    @buy_window.deactivate
    @status_window.set(@item, buying_price)
    @status_window.show.activate.select(0)
    @dkey.opacity = 0
  end
  
  def on_number_ok
    Sound.play_shop
    do_buy(@status_window.item,@buy_window.item)
    end_input
    @gold_window.refresh
    @status_window.refresh
  end

  def on_number_cancel
    Sound.play_cancel
    end_input
  end

  def end_shopanim
    SceneManager.return if @leave_shop == true
    @keeper.bitmap = Cache.picture($game_system.shopkeeper)
    hide_talk unless @command_window.active
  end
  
  def end_input
    @status_window.unselect
    activate_buy_window
  end

  def show_talk
    @talk_window.show
    @help_window.hide
  end
  
  def hide_talk
    @talk_window.hide
    @help_window.show
  end
  
  def update
    super
    @shoptime -= 1
    end_shopanim if @shoptime == 0
    if @shoptime.odd?
      @shopback.ox += Galv_Shopkeeper::BACKGROUND_SCROLL_X
      @shopback.oy += Galv_Shopkeeper::BACKGROUND_SCROLL_Y
    end
    check_button
    other_poses if $game_system.shop_spose != nil
  end
  
  def check_button
    if @desc_window.visible
      if Input.trigger?(Galv_Shopkeeper::DETAILS_KEY) || Input.trigger?(:B)
        @buy_window.show.activate
        RPG::SE.new(Galv_Shopkeeper::SE2[0], Galv_Shopkeeper::SE2[1], Galv_Shopkeeper::SE2[2]).play
        @desc_window.show_off
        @desc_window.hide
        @keeper.bitmap = Cache.picture($game_system.shopkeeper)
      end
    elsif @buy_window.active
      if Input.trigger?(Galv_Shopkeeper::DETAILS_KEY)
        return if @buy_window.item.nil?
        @buy_window.hide.deactivate
        @desc_window.refresh(@buy_window.item,0)
        @shoptime = 0
        RPG::SE.new(Galv_Shopkeeper::SE1[0], Galv_Shopkeeper::SE1[1], Galv_Shopkeeper::SE1[2]).play
        @keeper.bitmap = Cache.picture($game_system.shopkeeper + Galv_Shopkeeper::SHOW_DETAILS) rescue Cache.picture($game_system.shopkeeper)
        hide_talk
        @desc_window.show
      end
    end
  end
  
  def other_poses
    case $game_system.shop_spose
    when 0
      @talk_window.set_text($game_system.shop_talk[6])
      @keeper.bitmap = Cache.picture($game_system.shopkeeper + Galv_Shopkeeper::CANT_BUY) rescue Cache.picture($game_system.shopkeeper)
    when 1
      @talk_window.set_text($game_system.shop_talk[7])
      @keeper.bitmap = Cache.picture($game_system.shopkeeper + Galv_Shopkeeper::CANT_SELL) rescue Cache.picture($game_system.shopkeeper)
    when 2
      @talk_window.set_text($game_system.shop_talk[8])
      @keeper.bitmap = Cache.picture($game_system.shopkeeper + Galv_Shopkeeper::MAX_ITEMS) rescue Cache.picture($game_system.shopkeeper)
    when 3
      @talk_window.set_text($game_system.shop_talk[10])
      @keeper.bitmap = Cache.picture($game_system.shopkeeper + Galv_Shopkeeper::NO_DETAILS) rescue Cache.picture($game_system.shopkeeper)
    when 4
      @talk_window.set_text($game_system.shop_talk[11])
      @keeper.bitmap = Cache.picture($game_system.shopkeeper + Galv_Shopkeeper::SOLD_OUT) rescue Cache.picture($game_system.shopkeeper)
    end
    show_talk
    @shoptime = Galv_Shopkeeper::FRAME_TIME
    $game_system.shop_spose = nil
  end
  
  def return_scene
    @talk_window.set_text($game_system.shop_talk[9])
    @keeper.bitmap = Cache.picture($game_system.shopkeeper + Galv_Shopkeeper::FAREWELL) rescue Cache.picture($game_system.shopkeeper)
    show_talk
    @shoptime = Galv_Shopkeeper::FRAME_TIME
    @leave_shop = true
    $game_system.shop_selected = 0
  end
  
  def terminate
    super
    @keeper.dispose
    @keeper.bitmap.dispose
    @shopback.dispose
    @dkey.bitmap.dispose
    @dkey.dispose
  end
  
end # Scene_Shop < Scene_MenuBase

class CSCA_Window_SkillShopStatus < Window_Selectable
  
  def set(skill, price)
    @skill = skill
    @price = price
    refresh
  end

  def initialize(x, y, width, height)
    super(x, y, width, height)
    @walk = 0
    @step = 0
    @animtime = 0
    @e_images = {}
    @skill = nil
    @page_index = 0
    refresh
    select(0)
  end
  
  def item_max
    @data ? @data.size : 1
  end
  
  def item
    @data[index]
  end
  
  def item=(item)
    @skill = item
    refresh
  end

  def current_item_enabled?
    enable?(@data[index])
  end

  def enable?(actor)
    for i in 0...actor.skills.size
      if actor.skills[i] == @skill
        return false
      end
    end
    for i in 0...actor.csca_learnable_skills.size
      unless @skill.nil?
        if actor.csca_learnable_skills[i] == @skill.id
          return true
        end
      end
    end
    return false
  end

  def refresh
    contents.clear
    make_item_list
    create_contents
    draw_all_items
  end

  def status_members
    $game_party.members[@page_index * page_size, page_size]
  end
  
  def col_max
    return Galv_Shopkeeper::ACTORS_SHOWN
  end
  
  def make_item_list
    @data = []
    $game_party.members.each do |actor|
      item = actor
      if !item.nil?
        @data.push(item)
      end
    end
  end

  def draw_item(index)
    item = @data[index]
    rect = item_rect(index)
    draw_equip_info(Galv_Shopkeeper::ACTORS_X + 5, 40) 
  end
  
  def item_rect(index)
    rect = Rect.new
    rect.width = item_width
    rect.height = item_height - spacing / 2
    rect.x = index % col_max * item_width + (index * Galv_Shopkeeper::ACTORS_SPACE) + Galv_Shopkeeper::ACTORS_X - (index * 40) - 4
    rect.y = index / col_max * item_height + spacing / 2 - 4
    rect
  end

  def item_width
    return 40
  end

  def item_height
    return 60
  end
  
  # OVERWRITE
  def draw_equip_info(x, y)
    status_members.each_with_index do |actor, i|
      draw_actor_equip_info(x + (i * Galv_Shopkeeper::ACTORS_SPACE), y, actor)
    end
  end
  
  # OVERWRITE
  def page_size
    return Galv_Shopkeeper::ACTORS_SHOWN
  end
  
  # OVERWRITE
  def draw_actor_equip_info(x, y, actor)
    draw_character(actor.character_name, actor.character_index, x + 10, y + 11, enable?(actor))
  end
    
  def draw_character(character_name, character_index, x, y, enabled = false)
    return unless character_name
    bitmap = Cache.character(character_name)
    sign = character_name[/^[\!\$]./]
    if sign && sign.include?('$')
      cw = bitmap.width / 3
      ch = bitmap.height / 4
    else
      cw = bitmap.width / 12
      ch = bitmap.height / 8
    end
    n = character_index
    step = 0
    step = @walk if enabled
    src_rect = Rect.new((n%4*3+1+step)*cw, (n/4*4)*ch, cw, ch)
    contents.blt(x - cw / 2, y - ch, bitmap, src_rect)
  end

  def ani_motion
    @animtime += 1
    if @animtime == 10
      case @walk
      when 1; @walk -= 1
      when -1; @walk += 1
      when 0
        if @step == 1
          @walk = -1
          @step = 0
        else
          @walk = 1
          @step = 1
        end
      end
      refresh
      @animtime = 0
    end
  end

  def update
    super
    ani_motion
  end
end

class Window_SkillDesc < Window_Base
  def initialize(x, y, width, height)
    super(x, y, width, height)
    @item = nil
    @shown = false
  end
  
  def refresh(item,type)
    @shown = true
    @item = item
    return if item.nil?
    check_contents_height
    draw_item_name(@item, 0, 0)
    draw_currency_value(get_price, Vocab::currency_unit, 0, 0, contents.width)
    draw_item_stats(0,contents.width)
  end
  
  def get_price
    return @item.skill_price
  end
  
  def show_off
    @shown = false
    self.oy = 0
  end
  
  def item=(item)
    @item = item
    refresh
  end
  
  def check_contents_height
    contents.clear
    ht = self.height
    l = 1
    if R2_Skill_Shop_Settings::SKILL_TYPE
      l += 1
    end
    if R2_Skill_Shop_Settings::SHOW_COSTS
      if @item.mp_cost != 0
        l += 1
      end
      if @item.tp_cost != 0
        l += 1
      end
    end
    if R2_Skill_Shop_Settings::SHOW_SCOPE
      l += 1
    end
    if @item.damage.type != 0
      l += 1
      if R2_Skill_Shop_Settings::USE_SPACES
        l += 1
      end
    end
    c = 0
    d = 0
    e = false
    @item.effects.each do |set|
      case set.code
      when 11
        c += 1
        l += 1
        l += 1 if c == 3
        if R2_Skill_Shop_Settings::USE_SPACES
          l += 1 if c == 3
        end
      when 12
        c += 1
        l += 1
        l += 1 if c == 3
        if R2_Skill_Shop_Settings::USE_SPACES
          l += 1 if c == 3
        end
      when 13
        c += 1
        l += 1
        l += 1 if c == 3
        if R2_Skill_Shop_Settings::USE_SPACES
          l += 1 if c == 3
        end
      when 21
        d += 1
        l += 1
        if R2_Skill_Shop_Settings::USE_SPACES
          l += 1 if d == 2
        end
      when 22
        d += 1
        l += 1
        if R2_Skill_Shop_Settings::USE_SPACES
          l += 1 if d == 2
        end
      when 31
        e = true
        l += 1
      when 32
        e = true
        l += 1
      when 33
        e = true
        l += 1
      when 34
        e = true
        l += 1
      when 42
        l += 1
      end
    end
    if R2_Skill_Shop_Settings::USE_SPACES
      l += 1 if e == true
      l += 1
    end
    self.height = line_height * l
    create_contents
    self.height = ht
  end
  
##########################################################################
  #--------------------------------------------------------------------------
  # draw_item_stats
  #--------------------------------------------------------------------------
##########################################################################
  def draw_item_stats(dy, sw)
    dy += 24
    ########
    if R2_Skill_Shop_Settings::SKILL_TYPE
      scope = $data_system.skill_types[@item.stype_id]
      change_color(system_color)
      draw_text(0, dy, sw-24, 24, R2_Skill_Shop_Settings::SKILL_TYPE_TEXT, 0)
      contents.font.size = R2_Skill_Shop_Settings::FONTSIZE
      change_color(normal_color)
      draw_text(130, dy + 2, sw/2-24, 24, scope, 0)
      dy += 24
    end
    ############
    if R2_Skill_Shop_Settings::SHOW_COSTS
      if @item.mp_cost != 0
        change_color(system_color)
        draw_text(0, dy, sw-24, 24, R2_Skill_Shop_Settings::MP_COST, 0)
        contents.font.size = R2_Skill_Shop_Settings::FONTSIZE
        change_color(normal_color)
        draw_text(130, dy + 2, sw/2-24, 24, @item.mp_cost, 0)
        dy += 24
      end
      ##########
      if @item.tp_cost != 0
        change_color(system_color)
        draw_text(0, dy, sw-24, 24, R2_Skill_Shop_Settings::TP_COST, 0)
        contents.font.size = R2_Skill_Shop_Settings::FONTSIZE
        change_color(normal_color)
        draw_text(130, dy + 2, sw/2-24, 24, @item.tp_cost, 0)
        dy += 24
      end
    end
    ##########
    if R2_Skill_Shop_Settings::SHOW_SCOPE
      change_color(system_color)
      draw_text(0, dy, sw-24, 24, R2_Skill_Shop_Settings::SCOPE_NAME, 0)
      contents.font.size = R2_Skill_Shop_Settings::FONTSIZE
      change_color(normal_color)
      draw_text(130, dy + 2, sw/2-24, 24, R2_Skill_Shop_Settings::SCOPE_ID[@item.scope], 0)
      dy += 24
    end
    ##########
    if @item.damage.type != 0
      case @item.damage.type
      when 1
        text = R2_Skill_Shop_Settings::ITEM_STAT_HP_DAM
      when 2
        text = R2_Skill_Shop_Settings::ITEM_STAT_MP_DAM
      when 3
        text = R2_Skill_Shop_Settings::ITEM_STAT_HP_REC
      when 4
        text = R2_Skill_Shop_Settings::ITEM_STAT_MP_REC
      when 5
        text = R2_Skill_Shop_Settings::ITEM_STAT_HP_DRN
      when 6
        text = R2_Skill_Shop_Settings::ITEM_STAT_MP_REC
      end
      change_color(system_color)
      draw_text(0, dy, sw-24, 24, R2_Skill_Shop_Settings::ITEM_DAM_TYPE, 0)
      contents.font.size = R2_Skill_Shop_Settings::FONTSIZE
      change_color(normal_color)
      draw_text(130, dy + 2, sw/2-24, 24, text, 0)
      if @item.damage.element_id != 0
        if @item.damage.element_id != -1
          draw_icon(R2_Skill_Shop_Settings::SHOWN_ELEMENTS[@item.damage.element_id], 250, dy, 2)
        end
      end
      dy += 24 if R2_Skill_Shop_Settings::USE_SPACES
    end
    count = 0
    dy += 24
    @item.effects.each do |set|
      case set.code
      when 11 #---HP---
        count += 1
        word = R2_Skill_Shop_Settings::TEXT_HP
        icon = R2_Skill_Shop_Settings::ICON_HP
      when 12 #---MP---
        count += 1
        word = R2_Skill_Shop_Settings::TEXT_MP
        icon = R2_Skill_Shop_Settings::ICON_MP
      when 13 #---TP---
        count += 1
        word = R2_Skill_Shop_Settings::TEXT_TP
        icon = R2_Skill_Shop_Settings::ICON_TP
      else
        next
      end
      num1 = 0
      num2 = 0
      if set.value1 != 0
        num1 = set.value1
        num1 = (num1 * 1).to_i
      end
      if set.value2 != 0
        num2 = set.value2.to_i
      end
      if num1 != 0 && num2 != 0
        text1 = sprintf("%d", num1)
        text2 = sprintf("%d", num2)
        text = "+" + text2 + " & " + text1 + "%"
      elsif num1 != 0 && num2 == 0
        text = sprintf("%d", num1)
        text = "+" + text + "%"
      elsif num2 != 0
        text = sprintf("%d", num2)
        text = "+" + text
      end
      if count % 2 == 1 && count > 2
        dy += 24
      end
      if count.odd?
        change_color(system_color)
        draw_text(29, dy, sw/2-24, 24, word)
        change_color(normal_color)
        draw_icon(icon, 0, dy, icon != 0)
        if (text.size * 8) > (sw / 5)
          draw_text(sw*1/6-50, dy, sw/2, 24, text, 2)
        else
          draw_text(sw*1/4, dy, sw/5, 24, text, 2)
        end
      else
        change_color(system_color)
        draw_text(sw/2+29, dy, sw/2-24, 24, word)
        change_color(normal_color)
        draw_icon(icon, sw/2, dy, icon != 0)
        if (text.size * 8) > (sw / 5)
          draw_text(sw*3/6, dy, sw/2, 24, text, 2)
        else
          draw_text(sw*3/4, dy, sw/5, 24, text, 2)
        end
      end
    end
##########################################################################
    if R2_Skill_Shop_Settings::ITEM_STATES
      dy += 24 if R2_Skill_Shop_Settings::USE_SPACES
      add_states = []
      remove_states = []
      @item.effects.each do |set|
        next if set.code == 0
        next if set.data_id == 0
        if set.code == 21
          add_states.push(set.data_id)
        elsif set.code == 22
          remove_states.push(set.data_id)
        end
      end
      if add_states != [] # Draw Add States
        dy += 24
        text = R2_Skill_Shop_Settings::TEXT_ADD_STATES
        change_color(system_color)
        draw_text(0, dy, sw/2, 24, text)
        dx = sw - (add_states.size * 24)
        for i in add_states
          icon = $data_states[i].icon_index
          draw_icon(icon, dx, dy)
          dx += 24
        end
      end
      if remove_states != [] # Draw Remove States
        dy += 24
        text = R2_Skill_Shop_Settings::TEXT_RM_STATES
        change_color(system_color)
        draw_text(0, dy, sw/2, 24, text)
        dx = sw - (remove_states.size * 24)
        for i in remove_states
          icon = $data_states[i].icon_index
          draw_icon(icon, dx, dy)
          dx += 24
        end
      end
      dy += 24 if R2_Skill_Shop_Settings::USE_SPACES
    end
##########################################################################
    if R2_Skill_Shop_Settings::ITEM_BUFFS
      @item.effects.each do |set|
        case set.code
        when 31 #---ADD BUFF---
          buff = R2_Skill_Shop_Settings::ITEM_ADD_BUFF
        when 32 #---ADD DEBUFF---
          buff = R2_Skill_Shop_Settings::ITEM_ADD_DEBUFF
        when 33 #---REMOVE BUFF---
          buff = R2_Skill_Shop_Settings::ITEM_RM_BUFF
        when 34 #---REMOVE DEBUFF---
          buff = R2_Skill_Shop_Settings::ITEM_RM_DEBUFF
        else
          next
        end
        case set.data_id
        when 0 #---HP---
          word = Vocab::param(set.data_id)
          icon = R2_Skill_Shop_Settings::ICON_HP
        when 1 #---MP---
          word = Vocab::param(set.data_id)
          icon = R2_Skill_Shop_Settings::ICON_MP
        when 2 #---ATK---
          word = Vocab::param(set.data_id)
          icon = R2_Skill_Shop_Settings::ICON_ATK
        when 3 #---DEF---
          word = Vocab::param(set.data_id)
          icon = R2_Skill_Shop_Settings::ICON_DEF
        when 4 #---MAT---
          word = Vocab::param(set.data_id)
          icon = R2_Skill_Shop_Settings::ICON_MAT
        when 5 #---MDF---
          word = Vocab::param(set.data_id)
          icon = R2_Skill_Shop_Settings::ICON_MDF
        when 6 #---AGI---
          word = Vocab::param(set.data_id)
          icon = R2_Skill_Shop_Settings::ICON_AGI
        when 7 #---LUK---
          word = Vocab::param(set.data_id)
          icon = R2_Skill_Shop_Settings::ICON_LUK
        end
        num = 0
        if set.value1 != 0
          num = set.value1.to_i
        end
        if num != 0 && set.code == 31
          text = sprintf("%d", num)
          text = "+" + text + " turns"
        elsif num != 0 && set.code == 32
          text = sprintf("%d", num)
          text = "+" + text + " turns"
        end
        dy += 24
        change_color(system_color)
        draw_text(0, dy, sw/2, 24, buff)
        draw_text(110, dy, sw/2-24, 24, word)
        change_color(normal_color)
        draw_icon(icon, 150, dy, icon != 0)
        draw_text(170, dy, sw/3, 24, text, 2)
        dy += 24 if R2_Skill_Shop_Settings::USE_SPACES
      end
    end
##########################################################################
    if R2_Skill_Shop_Settings::ITEM_STATS
      @item.effects.each do |set|
        case set.code
        when 42 #---Grow Stat---
          buff = R2_Skill_Shop_Settings::ITEM_STAT_TEXT
        else
          next
        end
        case set.data_id
        when 0 #---HP---
          word = Vocab::param(set.data_id)
          icon = R2_Skill_Shop_Settings::ICON_HP
        when 1 #---MP---
          word = Vocab::param(set.data_id)
          icon = R2_Skill_Shop_Settings::ICON_MP
        when 2 #---ATK---
          word = Vocab::param(set.data_id)
          icon = R2_Skill_Shop_Settings::ICON_ATK
        when 3 #---DEF---
          word = Vocab::param(set.data_id)
          icon = R2_Skill_Shop_Settings::ICON_DEF
        when 4 #---MAT---
          word = Vocab::param(set.data_id)
          icon = R2_Skill_Shop_Settings::ICON_MAT
        when 5 #---MDF---
          word = Vocab::param(set.data_id)
          icon = R2_Skill_Shop_Settings::ICON_MDF
        when 6 #---AGI---
          word = Vocab::param(set.data_id)
          icon = R2_Skill_Shop_Settings::ICON_AGI
        when 7 #---LUK---
          word = Vocab::param(set.data_id)
          icon = R2_Skill_Shop_Settings::ICON_LUK
        end
        num = 0
        if set.value1 != 0
          num = set.value1.to_i
        end
        if num != 0 && set.code == 42
          text = sprintf("%d", num)
          if num >= 1
            text = "+" + text
          else
            text = "-" + text
          end
        end
        dy += 24
        change_color(system_color)
        draw_text(0, dy, sw/2, 24, buff)
        draw_text(150, dy, sw/2-24, 24, word)
        change_color(normal_color)
        draw_icon(icon, 190, dy, icon != 0)
        draw_text(210, dy, sw/5, 24, text, 2)
      end
    end
  end # end draw_item_stats
  
  def check_color(amount)
    if amount < 0
      change_color(power_down_color)
    else
      change_color(normal_color)
    end
  end

  def cursor_down(wrap = false)
    if self.oy < self.contents.height - self.height
      self.oy += 16
    end
  end

  def cursor_up(wrap = false)
    if self.oy > 0
      self.oy -= 16
    end
  end

  def update
    super
    process_cursor_move
  end

  def process_cursor_move
    return unless @shown
    cursor_down (Input.trigger?(:DOWN))  if Input.repeat?(:DOWN)
    cursor_up   (Input.trigger?(:UP))    if Input.repeat?(:UP)
  end
end # Window_SkillDesc < Window_Base

class CSCA_Window_SkillShopBuy < Window_Selectable
  def desc_window=(desc_window)
    @desc_window = desc_window
  end
end
Spoiler: Image
1742927341462.png
I designed this to use both scripts, so as long as you have both in your project then this should work for you.
Spoiler: Roninator2 - CSCA Skill Shop UI Mod for Galv Shop Upgrade
Ruby:
# ╔═══════════════════════════════════════════════╦════════════════════╗
# ║ Title: CSCA Skill Shop UI - Galv Shop Upgrade ║  Version: 1.00     ║
# ║ Author: Roninator2                            ║                    ║
# ╠═══════════════════════════════════════════════╬════════════════════╣
# ║ Function:                                     ║   Date Created     ║
# ║                                               ╠════════════════════╣
# ║   Mod Windows for visual effect               ║    24 Mar 2025     ║
# ╚═══════════════════════════════════════════════╩════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Requires: CSCA Skill Shop                                          ║
# ║           Galv Shop Upgrade                                        ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Brief Description:                                                 ║
# ║       Make CSCA Skill Shop look like Galv Shop Upgrade             ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Instructions:                                                      ║
# ║   Change Windowskin for Skill Shop with                            ║
# ║   $game_system.skill_shop_windowskin = "ImageName"                 ║
# ║      Must put Window files in /Graphics/System/ folder             ║
# ║                                                                    ║
# ║   Alter the icons and text below as desired                        ║
# ║                                                                    ║
# ║   Place below both scripts                                         ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Updates:                                                           ║
# ║ 1.00 - 24 Mar 2025 - Script finished                               ║
# ║                                                                    ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Credits and Thanks:                                                ║
# ║   Roninator2                                                       ║
# ║                                                                    ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Terms of use:                                                      ║
# ║  Follow the original Authors terms of use where applicable         ║
# ║    - When not made by me (Roninator2)                              ║
# ║  Free for all uses in RPG Maker except nudity                      ║
# ║  Anyone using this script in their project before these terms      ║
# ║  were changed are allowed to use this script even if it conflicts  ║
# ║  with these new terms. New terms effective 03 Apr 2024             ║
# ║  No part of this code can be used with AI programs or tools        ║
# ║  Credit must be given                                              ║
# ╚════════════════════════════════════════════════════════════════════╝

module R2_Skill_Shop_Settings
  WINDOWSKIN = "Window"            # windowskin used by shop
 
  FONTSIZE = 20 # Use 18 or 20    # Font size used for data text.
 
  SKILL_TYPE = "Skill Type"       # text for skill type
 
  ITEM_DAM_TYPE = "Damage Type"   # Text for item stats
  ITEM_STAT_HP_DAM = "HP Damage"  # Text for item stats
  ITEM_STAT_MP_DAM = "MP Damage"  # Text for item stats
  ITEM_STAT_HP_REC = "HP Recover" # Text for item stats
  ITEM_STAT_MP_REC = "MP Recover" # Text for item stats
  ITEM_STAT_HP_DRN = "HP Drain"   # Text for item stats
  ITEM_STAT_MP_DRN = "MP Drain"   # Text for item stats
 
  SHOWN_ELEMENTS ={
  # Element ID => Icon ID
        1 => 11,
        2 => 16,
        3 => 96,
        4 => 97,
        5 => 98,
        6 => 99,
        7 => 100,
        8 => 101,
        9 => 102,
        10 => 103,
    } # Do not remove this.
 
  SHOW_SCOPE = true
  SCOPE_NAME = "Target"
  SCOPE_ID ={
  # Element ID => Icon ID
        0 => "None",
        1 => "One Enemy",
        2 => "All Enemies",
        3 => "1 Radnom Enemy",
        4 => "2 Radnom Enemies",
        5 => "3 Radnom Enemies",
        6 => "4 Radnom Enemies",
        7 => "One Ally",
        8 => "All Allies",
        9 => "One Ally (Dead)",
        10 => "All Allies (Dead)",
        11 => "The User",
    } # Do not remove this.
 
  SKILL_TYPE = true       # show the skill type
  SKILL_TYPE_TEXT = "Skill Type"       # display text
  USE_SPACES = false       # Attempt to separate information in blocks
 
  SHOW_COSTS = true
  MP_COST = "MP Cost"
  TP_COST = "TP Cost"
 
  TEXT_HP  = "HP"         # Text for HP
  TEXT_MP  = "MP"         # Text for MP
  TEXT_TP  = "TP"         # Text for TP
  ICON_TP  = 33           # Icon for TP
  ICON_HP  = 32           # Icon for MAXHP
  ICON_MP  = 33           # Icon for MAXMP
 
  ITEM_STATES = true      # Show item states applied
  ITEM_BUFFS  = true      # Show item buffs added/removed
  ITEM_STATS  = true      # Show item stat additions
 
  TEXT_ADD_STATES = "States Added"       # States added text
  TEXT_RM_STATES  = "States Removed"     # States removed text
 
  ITEM_ADD_BUFF   = "Add Buff"        # Text for item buffs
  ITEM_ADD_DEBUFF = "Add Debuff"      # Text for item buffs
  ITEM_RM_BUFF    = "Remove Buff"     # Text for item buffs
  ITEM_RM_DEBUFF  = "Remove Debuff"   # Text for item buffs
end

# ╔════════════════════════════════════════════════════════════════════╗
# ║                      End of editable region                        ║
# ╚════════════════════════════════════════════════════════════════════╝

class Window_Base < Window
  alias r2_skillshop_windowbase_initialize initialize
  def initialize(x, y, width, height)
    r2_skillshop_windowbase_initialize(x, y, width, height)
    if SceneManager.scene_is?(CSCA_Scene_Skill_Shop)
      self.windowskin = Cache.system($game_system.skill_shop_windowskin)
    end
  end
end

class Game_System
  attr_accessor :skill_shop_windowskin
  alias r2_skillshop_system_initialize initialize
  def initialize
    r2_skillshop_system_initialize
    @skill_shop_windowskin = R2_Skill_Shop_Settings::WINDOWSKIN
  end
end

class Game_Interpreter
  def reset_skill_shop_settings
    $game_system.skill_shop_windowskin = R2_Skill_Shop_Settings::WINDOWSKIN
  end
end

class CSCA_Scene_Skill_Shop < Scene_MenuBase
  def start
    super
    create_help_window
    create_gold_window
    create_command_window
    create_dummy_window
    create_status_window
    create_buy_window
    @shoptime = 0
    @has_shopped = false
    create_talk_window
    create_desc_window
    create_shop_background
    create_shopkeeper
    create_images
    @leave_shop = false
    @keeper.bitmap = Cache.picture($game_system.shopkeeper + Galv_Shopkeeper::GREET) rescue Cache.picture($game_system.shopkeeper)
    @shoptime = Galv_Shopkeeper::FRAME_TIME
  end
 
  def create_desc_window
    wx = @buy_window.x
    wy = @buy_window.y
    ww = @buy_window.width
    wh = Graphics.height - wy
    @desc_window = Window_SkillDesc.new(wx, wy, ww, wh)
    @desc_window.viewport = @viewport
    @desc_window.hide
  end
 
  def create_talk_window
    @talk_window = Window_Help.new
    @talk_window.viewport = @viewport
    @talk_window.set_text($game_system.shop_talk[0])
    @help_window.hide
  end
 
  # OVERWRITE
  def create_dummy_window
    wx = Graphics.width - 304
    wy = @command_window.y + @command_window.height
    wh = Graphics.height - wy - @gold_window.height * 2
    ww = Graphics.width - wx
    @dummy_window = Window_Base.new(wx, wy, ww, wh)
    @dummy_window.viewport = @viewport
  end
 
  # OVERWRITE
  def create_buy_window
    wy = @dummy_window.y
    wh = @dummy_window.height
    @buy_window = CSCA_Window_SkillShopBuy.new(0, wy, wh, @goods)
    @buy_window.viewport = @viewport
    @buy_window.help_window = @help_window
    @buy_window.status_window = @status_window
    @buy_window.desc_window = @desc_window
    @buy_window.hide
    @buy_window.set_handler(:ok,     method(:on_buy_ok))
    @buy_window.set_handler(:cancel, method(:on_buy_cancel))
    @buy_window.x = Graphics.width - @buy_window.width
  end
 
  # OVERWRITE
  def create_status_window
    wx = @dummy_window.x
    wy = @dummy_window.y + @dummy_window.height
    ww = @dummy_window.width
    wh = Graphics.height - @dummy_window.height - @dummy_window.y
    @status_window = CSCA_Window_SkillShopStatus.new(wx, wy, ww, wh)
    @status_window.viewport = @viewport
    @status_window.hide
    @status_window.set_handler(:ok,     method(:on_number_ok))
    @status_window.set_handler(:cancel, method(:on_number_cancel))
  end
 
  def create_shopkeeper
    @keeper = Sprite.new
    @keeper.bitmap = Cache.picture($game_system.shopkeeper)
    @keeper.y = Graphics.height - @keeper.bitmap.height
  end
 
  def create_images
    @dkey = Sprite.new
    @dkey.opacity = 0
    @dkey.bitmap = Cache.system(Galv_Shopkeeper::D_IMAGE) rescue Cache.system("")
    @dkey.y = Graphics.height - @dkey.bitmap.height
  end
 
  def create_shop_background
    @shopback = Plane.new
    @shopback.bitmap = Cache.picture($game_system.shopback)
  end
 
  # OVERWRITE
  def on_buy_cancel
    @command_window.activate
    @buy_window.hide
    @status_window.hide
    @status_window.item = nil
    @help_window.clear
    if @has_shopped == true
      @talk_window.set_text($game_system.shop_talk[3])
      @keeper.bitmap = Cache.picture($game_system.shopkeeper)
    else
      @talk_window.set_text($game_system.shop_talk[4])
      @keeper.bitmap = Cache.picture($game_system.shopkeeper + Galv_Shopkeeper::DONT_BUY)
    end
    show_talk
    @has_shopped = false
    @dkey.opacity = 0
  end
 
  def activate_buy_window
    @buy_window.money = money
    @buy_window.show.activate
    @status_window.show.unselect
  end

  def command_buy
    @dummy_window.hide
    activate_buy_window
    @keeper.bitmap = Cache.picture($game_system.shopkeeper)
    hide_talk
    @dkey.opacity = 255
    @desc_window.y = @buy_window.y
    @desc_window.height = @buy_window.height
  end
 
  def do_buy(actor, skill)
    $game_party.lose_gold(buying_price)
    $game_actors[actor.id].learn_skill(skill.id)
    @talk_window.set_text($game_system.shop_talk[1])
    show_talk
    @keeper.bitmap = Cache.picture($game_system.shopkeeper + Galv_Shopkeeper::BUY) rescue Cache.picture($game_system.shopkeeper)
    @shoptime = Galv_Shopkeeper::FRAME_TIME
  end
 
  def on_buy_ok
    @item = @buy_window.item
    @buy_window.deactivate
    @status_window.set(@item, buying_price)
    @status_window.show.activate.select(0)
    @dkey.opacity = 0
  end
 
  def on_number_ok
    Sound.play_shop
    do_buy(@status_window.item,@buy_window.item)
    end_input
    @gold_window.refresh
    @status_window.refresh
  end

  def on_number_cancel
    Sound.play_cancel
    end_input
  end

  def end_shopanim
    SceneManager.return if @leave_shop == true
    @keeper.bitmap = Cache.picture($game_system.shopkeeper)
    hide_talk unless @command_window.active
  end
 
  def end_input
    @status_window.unselect
    activate_buy_window
  end

  def show_talk
    @talk_window.show
    @help_window.hide
  end
 
  def hide_talk
    @talk_window.hide
    @help_window.show
  end
 
  def update
    super
    @shoptime -= 1
    end_shopanim if @shoptime == 0
    if @shoptime.odd?
      @shopback.ox += Galv_Shopkeeper::BACKGROUND_SCROLL_X
      @shopback.oy += Galv_Shopkeeper::BACKGROUND_SCROLL_Y
    end
    check_button
    other_poses if $game_system.shop_spose != nil
  end
 
  def check_button
    if @desc_window.visible
      if Input.trigger?(Galv_Shopkeeper::DETAILS_KEY) || Input.trigger?(:B)
        @buy_window.show.activate
        RPG::SE.new(Galv_Shopkeeper::SE2[0], Galv_Shopkeeper::SE2[1], Galv_Shopkeeper::SE2[2]).play
        @desc_window.show_off
        @desc_window.hide
        @keeper.bitmap = Cache.picture($game_system.shopkeeper)
      end
    elsif @buy_window.active
      if Input.trigger?(Galv_Shopkeeper::DETAILS_KEY)
        return if @buy_window.item.nil?
        @buy_window.hide.deactivate
        @desc_window.refresh(@buy_window.item,0)
        @shoptime = 0
        RPG::SE.new(Galv_Shopkeeper::SE1[0], Galv_Shopkeeper::SE1[1], Galv_Shopkeeper::SE1[2]).play
        @keeper.bitmap = Cache.picture($game_system.shopkeeper + Galv_Shopkeeper::SHOW_DETAILS) rescue Cache.picture($game_system.shopkeeper)
        hide_talk
        @desc_window.show
      end
    end
  end
 
  def other_poses
    case $game_system.shop_spose
    when 0
      @talk_window.set_text($game_system.shop_talk[6])
      @keeper.bitmap = Cache.picture($game_system.shopkeeper + Galv_Shopkeeper::CANT_BUY) rescue Cache.picture($game_system.shopkeeper)
    when 1
      @talk_window.set_text($game_system.shop_talk[7])
      @keeper.bitmap = Cache.picture($game_system.shopkeeper + Galv_Shopkeeper::CANT_SELL) rescue Cache.picture($game_system.shopkeeper)
    when 2
      @talk_window.set_text($game_system.shop_talk[8])
      @keeper.bitmap = Cache.picture($game_system.shopkeeper + Galv_Shopkeeper::MAX_ITEMS) rescue Cache.picture($game_system.shopkeeper)
    when 3
      @talk_window.set_text($game_system.shop_talk[10])
      @keeper.bitmap = Cache.picture($game_system.shopkeeper + Galv_Shopkeeper::NO_DETAILS) rescue Cache.picture($game_system.shopkeeper)
    when 4
      @talk_window.set_text($game_system.shop_talk[11])
      @keeper.bitmap = Cache.picture($game_system.shopkeeper + Galv_Shopkeeper::SOLD_OUT) rescue Cache.picture($game_system.shopkeeper)
    end
    show_talk
    @shoptime = Galv_Shopkeeper::FRAME_TIME
    $game_system.shop_spose = nil
  end
 
  def return_scene
    @talk_window.set_text($game_system.shop_talk[9])
    @keeper.bitmap = Cache.picture($game_system.shopkeeper + Galv_Shopkeeper::FAREWELL) rescue Cache.picture($game_system.shopkeeper)
    show_talk
    @shoptime = Galv_Shopkeeper::FRAME_TIME
    @leave_shop = true
    $game_system.shop_selected = 0
  end
 
  def terminate
    super
    @keeper.dispose
    @keeper.bitmap.dispose
    @shopback.dispose
    @dkey.bitmap.dispose
    @dkey.dispose
  end
 
end # Scene_Shop < Scene_MenuBase

class CSCA_Window_SkillShopStatus < Window_Selectable
 
  def set(skill, price)
    @skill = skill
    @price = price
    refresh
  end

  def initialize(x, y, width, height)
    super(x, y, width, height)
    @walk = 0
    @step = 0
    @animtime = 0
    @e_images = {}
    @skill = nil
    @page_index = 0
    refresh
    select(0)
  end
 
  def item_max
    @data ? @data.size : 1
  end
 
  def item
    @data[index]
  end
 
  def item=(item)
    @skill = item
    refresh
  end

  def current_item_enabled?
    enable?(@data[index])
  end

  def enable?(actor)
    for i in 0...actor.skills.size
      if actor.skills[i] == @skill
        return false
      end
    end
    for i in 0...actor.csca_learnable_skills.size
      unless @skill.nil?
        if actor.csca_learnable_skills[i] == @skill.id
          return true
        end
      end
    end
    return false
  end

  def refresh
    contents.clear
    make_item_list
    create_contents
    draw_all_items
  end

  def status_members
    $game_party.members[@page_index * page_size, page_size]
  end
 
  def col_max
    return Galv_Shopkeeper::ACTORS_SHOWN
  end
 
  def make_item_list
    @data = []
    $game_party.members.each do |actor|
      item = actor
      if !item.nil?
        @data.push(item)
      end
    end
  end

  def draw_item(index)
    item = @data[index]
    rect = item_rect(index)
    draw_equip_info(Galv_Shopkeeper::ACTORS_X + 5, 40)
  end
 
  def item_rect(index)
    rect = Rect.new
    rect.width = item_width
    rect.height = item_height - spacing / 2
    rect.x = index % col_max * item_width + (index * Galv_Shopkeeper::ACTORS_SPACE) + Galv_Shopkeeper::ACTORS_X - (index * 40) - 4
    rect.y = index / col_max * item_height + spacing / 2 - 4
    rect
  end

  def item_width
    return 40
  end

  def item_height
    return 60
  end
 
  # OVERWRITE
  def draw_equip_info(x, y)
    status_members.each_with_index do |actor, i|
      draw_actor_equip_info(x + (i * Galv_Shopkeeper::ACTORS_SPACE), y, actor)
    end
  end
 
  # OVERWRITE
  def page_size
    return Galv_Shopkeeper::ACTORS_SHOWN
  end
 
  # OVERWRITE
  def draw_actor_equip_info(x, y, actor)
    draw_character(actor.character_name, actor.character_index, x + 10, y + 11, enable?(actor))
  end
  
  def draw_character(character_name, character_index, x, y, enabled = false)
    return unless character_name
    bitmap = Cache.character(character_name)
    sign = character_name[/^[\!\$]./]
    if sign && sign.include?('$')
      cw = bitmap.width / 3
      ch = bitmap.height / 4
    else
      cw = bitmap.width / 12
      ch = bitmap.height / 8
    end
    n = character_index
    step = 0
    step = @walk if enabled
    src_rect = Rect.new((n%4*3+1+step)*cw, (n/4*4)*ch, cw, ch)
    contents.blt(x - cw / 2, y - ch, bitmap, src_rect)
  end

  def ani_motion
    @animtime += 1
    if @animtime == 10
      case @walk
      when 1; @walk -= 1
      when -1; @walk += 1
      when 0
        if @step == 1
          @walk = -1
          @step = 0
        else
          @walk = 1
          @step = 1
        end
      end
      refresh
      @animtime = 0
    end
  end

  def update
    super
    ani_motion
  end
end

class Window_SkillDesc < Window_Base
  def initialize(x, y, width, height)
    super(x, y, width, height)
    @item = nil
    @shown = false
  end
 
  def refresh(item,type)
    @shown = true
    @item = item
    contents.clear
    return if item.nil?
    draw_item_name(@item, 0, 0)
    draw_currency_value(get_price, Vocab::currency_unit, 0, 0, contents.width)
    draw_item_stats(0,contents.width)
  end
 
  def get_price
    return @item.skill_price
  end
 
  def stat_col
    contents.width / 2
  end
 
  def show_off
    @shown = false
    self.oy = 0
  end
 
  def item=(item)
    @item = item
    refresh
  end
 
##########################################################################
  #--------------------------------------------------------------------------
  # draw_item_stats
  #--------------------------------------------------------------------------
##########################################################################
  def draw_item_stats(dy, sw)
    dy += 24
    ########
    if R2_Skill_Shop_Settings::SKILL_TYPE
      scope = $data_system.skill_types[@item.stype_id]
      change_color(system_color)
      draw_text(0, dy, sw-24, 24, R2_Skill_Shop_Settings::SKILL_TYPE_TEXT, 0)
      contents.font.size = R2_Skill_Shop_Settings::FONTSIZE
      change_color(normal_color)
      draw_text(130, dy + 2, sw/2-24, 24, scope, 0)
      dy += 24
    end
    ############
    if R2_Skill_Shop_Settings::SHOW_COSTS
      if @item.mp_cost != 0
        change_color(system_color)
        draw_text(0, dy, sw-24, 24, R2_Skill_Shop_Settings::MP_COST, 0)
        contents.font.size = R2_Skill_Shop_Settings::FONTSIZE
        change_color(normal_color)
        draw_text(130, dy + 2, sw/2-24, 24, @item.mp_cost, 0)
        dy += 24
      end
      ##########
      if @item.tp_cost != 0
        change_color(system_color)
        draw_text(0, dy, sw-24, 24, R2_Skill_Shop_Settings::TP_COST, 0)
        contents.font.size = R2_Skill_Shop_Settings::FONTSIZE
        change_color(normal_color)
        draw_text(130, dy + 2, sw/2-24, 24, @item.tp_cost, 0)
        dy += 24
      end
    end
    ##########
    if R2_Skill_Shop_Settings::SHOW_SCOPE
      change_color(system_color)
      draw_text(0, dy, sw-24, 24, R2_Skill_Shop_Settings::SCOPE_NAME, 0)
      contents.font.size = R2_Skill_Shop_Settings::FONTSIZE
      change_color(normal_color)
      draw_text(130, dy + 2, sw/2-24, 24, R2_Skill_Shop_Settings::SCOPE_ID[@item.scope], 0)
      dy += 24
    end
    ##########
    if @item.damage.type != 0
      case @item.damage.type
      when 1
        text = R2_Skill_Shop_Settings::ITEM_STAT_HP_DAM
      when 2
        text = R2_Skill_Shop_Settings::ITEM_STAT_MP_DAM
      when 3
        text = R2_Skill_Shop_Settings::ITEM_STAT_HP_REC
      when 4
        text = R2_Skill_Shop_Settings::ITEM_STAT_MP_REC
      when 5
        text = R2_Skill_Shop_Settings::ITEM_STAT_HP_DRN
      when 6
        text = R2_Skill_Shop_Settings::ITEM_STAT_MP_REC
      end
      change_color(system_color)
      draw_text(0, dy, sw-24, 24, R2_Skill_Shop_Settings::ITEM_DAM_TYPE, 0)
      contents.font.size = R2_Skill_Shop_Settings::FONTSIZE
      change_color(normal_color)
      draw_text(130, dy + 2, sw/2-24, 24, text, 0)
      if @item.damage.element_id != 0
        if @item.damage.element_id != -1
          draw_icon(R2_Skill_Shop_Settings::SHOWN_ELEMENTS[@item.damage.element_id], 250, dy, 2)
        end
      end
    end
    count = 0
    dy += 24 if R2_Skill_Shop_Settings::USE_SPACES
    @item.effects.each do |set|
      case set.code
      when 11 #---HP---
        count += 1
        word = R2_Skill_Shop_Settings::TEXT_HP
        icon = R2_Skill_Shop_Settings::ICON_HP
      when 12 #---MP---
        count += 1
        word = R2_Skill_Shop_Settings::TEXT_MP
        icon = R2_Skill_Shop_Settings::ICON_MP
      when 13 #---TP---
        count += 1
        word = R2_Skill_Shop_Settings::TEXT_TP
        icon = R2_Skill_Shop_Settings::ICON_TP
      else
        next
      end
      num1 = 0
      num2 = 0
      if set.value1 != 0
        num1 = set.value1
        num1 = (num1 * 100).to_i
      end
      if set.value2 != 0
        num2 = set.value2.to_i
      end
      if num1 != 0 && num2 != 0
        text1 = sprintf("%d", num1)
        text2 = sprintf("%d", num2)
        text = "+" + text2 + " & " + text1 + "%"
      elsif num1 != 0 && set.code == 13
        text = sprintf("%d", num1)
        text = "+" + text
      elsif num1 != 0 && set.code != 13
        text = sprintf("%d", num1)
        text = text + "%"
      elsif num2 != 0
        text = sprintf("%d", num2)
        text = "+" + text
      end
      if count.odd?
        change_color(system_color)
        draw_text(29, dy, sw/2-24, 24, word)
        change_color(normal_color)
        draw_icon(icon, 0, dy, icon != 0)
        if (text.size * 8) > (sw / 5)
          draw_text(sw*1/6-50, dy, sw/2, 24, text, 2)
        else
          draw_text(sw*1/4, dy, sw/5, 24, text, 2)
        end
      else
        change_color(system_color)
        draw_text(sw/2+29, dy, sw/2-24, 24, word)
        change_color(normal_color)
        draw_icon(icon, sw/2, dy, icon != 0)
        if (text.size * 8) > (sw / 5)
          draw_text(sw*3/6, dy, sw/2, 24, text, 2)
        else
          draw_text(sw*3/4, dy, sw/5, 24, text, 2)
        end
      end
      if count % 2 == 0
        dy += 24
      end
    end
##########################################################################
    if R2_Skill_Shop_Settings::ITEM_STATES
      add_states = []
      remove_states = []
      @item.effects.each do |set|
        next if set.code == 0
        next if set.data_id == 0
        if set.code == 21
          add_states.push(set.data_id)
        elsif set.code == 22
          remove_states.push(set.data_id)
        end
      end
      if add_states != [] # Draw Add States
        dy += 24
        text = R2_Skill_Shop_Settings::TEXT_ADD_STATES
        change_color(system_color)
        draw_text(0, dy, sw/2, 24, text)
        dx = sw - (add_states.size * 24)
        for i in add_states
          icon = $data_states[i].icon_index
          draw_icon(icon, dx, dy)
          dx += 24
        end
      end
      if remove_states != [] # Draw Remove States
        dy += 24
        text = R2_Skill_Shop_Settings::TEXT_RM_STATES
        change_color(system_color)
        draw_text(0, dy, sw/2, 24, text)
        dx = sw - (remove_states.size * 24)
        for i in remove_states
          icon = $data_states[i].icon_index
          draw_icon(icon, dx, dy)
          dx += 24
        end
      end
      dy += 24 if R2_Skill_Shop_Settings::USE_SPACES
    end
##########################################################################
    if R2_Skill_Shop_Settings::ITEM_BUFFS
      @item.effects.each do |set|
        case set.code
        when 31 #---ADD BUFF---
          buff = R2_Skill_Shop_Settings::ITEM_ADD_BUFF
        when 32 #---ADD DEBUFF---
          buff = R2_Skill_Shop_Settings::ITEM_ADD_DEBUFF
        when 33 #---REMOVE BUFF---
          buff = R2_Skill_Shop_Settings::ITEM_RM_BUFF
        when 34 #---REMOVE DEBUFF---
          buff = R2_Skill_Shop_Settings::ITEM_RM_DEBUFF
        else
          next
        end
        case set.data_id
        when 0 #---HP---
          word = Vocab::param(set.data_id)
          icon = R2_Skill_Shop_Settings::ICON_HP
        when 1 #---MP---
          word = Vocab::param(set.data_id)
          icon = R2_Skill_Shop_Settings::ICON_MP
        when 2 #---ATK---
          word = Vocab::param(set.data_id)
          icon = R2_Skill_Shop_Settings::ICON_ATK
        when 3 #---DEF---
          word = Vocab::param(set.data_id)
          icon = R2_Skill_Shop_Settings::ICON_DEF
        when 4 #---MAT---
          word = Vocab::param(set.data_id)
          icon = R2_Skill_Shop_Settings::ICON_MAT
        when 5 #---MDF---
          word = Vocab::param(set.data_id)
          icon = R2_Skill_Shop_Settings::ICON_MDF
        when 6 #---AGI---
          word = Vocab::param(set.data_id)
          icon = R2_Skill_Shop_Settings::ICON_AGI
        when 7 #---LUK---
          word = Vocab::param(set.data_id)
          icon = R2_Skill_Shop_Settings::ICON_LUK
        end
        num = 0
        if set.value1 != 0
          num = set.value1.to_i
        end
        if num != 0 && set.code == 31
          text = sprintf("%d", num)
          text = "+" + text + " turns"
        elsif num != 0 && set.code == 32
          text = sprintf("%d", num)
          text = "+" + text + " turns"
        end
        dy += 24
        change_color(system_color)
        draw_text(0, dy, sw/2, 24, buff)
        draw_text(90, dy, sw/2-24, 24, word)
        change_color(normal_color)
        draw_icon(icon, 120, dy, icon != 0)
        draw_text(150, dy, sw/3, 24, text, 2)
        dy += 24 if R2_Skill_Shop_Settings::USE_SPACES
      end
    end
##########################################################################
    if R2_Skill_Shop_Settings::ITEM_STATS
      @item.effects.each do |set|
        case set.code
        when 42 #---Grow Stat---
          buff = R2_Skill_Shop_Settings::ITEM_STAT_TEXT
        else
          next
        end
        case set.data_id
        when 0 #---HP---
          word = Vocab::param(set.data_id)
          icon = R2_Skill_Shop_Settings::ICON_HP
        when 1 #---MP---
          word = Vocab::param(set.data_id)
          icon = R2_Skill_Shop_Settings::ICON_MP
        when 2 #---ATK---
          word = Vocab::param(set.data_id)
          icon = R2_Skill_Shop_Settings::ICON_ATK
        when 3 #---DEF---
          word = Vocab::param(set.data_id)
          icon = R2_Skill_Shop_Settings::ICON_DEF
        when 4 #---MAT---
          word = Vocab::param(set.data_id)
          icon = R2_Skill_Shop_Settings::ICON_MAT
        when 5 #---MDF---
          word = Vocab::param(set.data_id)
          icon = R2_Skill_Shop_Settings::ICON_MDF
        when 6 #---AGI---
          word = Vocab::param(set.data_id)
          icon = R2_Skill_Shop_Settings::ICON_AGI
        when 7 #---LUK---
          word = Vocab::param(set.data_id)
          icon = R2_Skill_Shop_Settings::ICON_LUK
        end
        num = 0
        if set.value1 != 0
          num = set.value1.to_i
        end
        if num != 0 && set.code == 42
          text = sprintf("%d", num)
          if num >= 1
            text = "+" + text
          else
            text = "-" + text
          end
        end
        dy += 24
        change_color(system_color)
        draw_text(0, dy, sw/2, 24, buff)
        draw_text(140, dy, sw/2-24, 24, word)
        change_color(normal_color)
        draw_icon(icon, 170, dy, icon != 0)
        draw_text(200, dy, sw/5, 24, text, 2)
      end
    end
  end # end draw_item_stats
 
  def check_color(amount)
    if amount < 0
      change_color(power_down_color)
    else
      change_color(normal_color)
    end
  end

  def cursor_down(wrap = false)
    if self.oy < self.contents.height - self.height
      self.oy += 16
    end
  end

  def cursor_up(wrap = false)
    if self.oy > 0
      self.oy -= 16
    end
  end

  def update
    super
    process_cursor_move
  end

  def process_cursor_move
    return unless @shown
    cursor_down (Input.trigger?(:DOWN))  if Input.repeat?(:DOWN)
    cursor_up   (Input.trigger?(:UP))    if Input.repeat?(:UP)
  end
end # Window_SkillDesc < Window_Base

class CSCA_Window_SkillShopBuy < Window_Selectable
  def desc_window=(desc_window)
    @desc_window = desc_window
  end
end
Had to reorder my scripts list but holy crap...
Ron, you are an absolute wizard. Thank you so much. I tip my hat to you.
Ron, you are an absolute wizard
No problem. I actually reused a bunch of code from another script I made previously that took me weeks to finish. So that made making the description window much easier and the status window was a config that I combined ideas on. I originally had thought I would make the actor graphics fade to show the skills can't be used for them, but it didn't work so I changed it to an animated graphic as that was something I found out about a while ago.
All in all, it was just reusing code and merging them together to make it work while stripping out unnecessary parts.
No problem. I actually reused a bunch of code from another script I made previously that took me weeks to finish. So that made making the description window much easier and the status window was a config that I combined ideas on. I originally had thought I would make the actor graphics fade to show the skills can't be used for them, but it didn't work so I changed it to an animated graphic as that was something I found out about a while ago.
All in all, it was just reusing code and merging them together to make it work while stripping out unnecessary parts.
Was doing some testing with it, putting in my Skills but I kept running into a crash with 2 of the skills and found some other small errors, typically with the effects tab in the database.
Anytime a skill uses "Add Buff" under the effects tab in the skills database. It will cause a crash (image 1).
Anytime a skill uses "Gain TP" it adds 2 extra zeros to it. like 1 will be 100, 10 will be 1000 etc. (Also maybe wrong icon? Image 2)
Some text will also overlap when it comes to "remove buff" and "remove debuff" with some other text. (image 3)
If a skill for some reason grew a stat. it crashes. (image 4)
with the effects tab in the database.
I forgot to add a few text values.

I adjusted the display position for entries
Script above updated
wrong icon?
You have to specify the icon from your icon sheet. Since there is no TP gain icon "type" I just put in the MP one. Just create one and assign it.
I forgot to add a few text values.

I adjusted the display position for entries
Script above updated

You have to specify the icon from your icon sheet. Since there is no TP gain icon "type" I just put in the MP one. Just create one and assign it.
Everything seems to be working properly.
I know this isnt the first time we’ve interacted and im sure it wont be the last, so Ive also added you to the game’s credits in the Special Thanks section (not just the scripts).
And again. Thank you so much.

Original thread: https://forums.rpgmakerweb.com/threads/galv-shop-upgrade-csca-skill-shop.176515/