XP 스크립트

http://www.gamebaker.com/rmxp/scripts/hide-free-item-cost.htm
  아이템의 가격이 0일 경우, 가격을 표시하지 않습니다.  SG Artifact Colors를 같이 사용할 경우 이 스크립트가 Artifact Colors아래에 들어가야 함.


#=============================================================================
# ** SG Hide Free Item Cost
#=============================================================================
# sandgolem
# Version 2
# 20.05.06
#=============================================================================
#
# To temporarily disable it in a specific shop, use this before it:
#$sg_shop_show_free = true
#
#=============================================================================
#
# To check for updates or find more scripts, visit:
# http://www.gamebaker.com/rmxp/scripts/
#
# To use this script, copy it and insert it in a new section above "Main",
# but under the default scripts and the SDK if you're using it. This needs
# to be above any that alias Window_ShopBuy's draw_item
#
# SG Artifact Colors compatability: Place Hide Free Item Cost anywhere under it.
#
# Have problems? You can leave me a message at:
# http://www.gamebaker.com/users/sandgolem
#
#=============================================================================

#--------------------------------------------------------------------------
# * SDK Log Script
#--------------------------------------------------------------------------

begin
  SDK.log("SG Hide Free Item Cost", "Sandgolem", 2, "20.05.06")
  if SDK.state("SG Hide Free Item Cost") != true
    @sg_hidefree_disabled = true
  end
  rescue
end

#--------------------------------------------------------------------------
# * Begin SDK Enable Test
#--------------------------------------------------------------------------
if @sg_hidefree_disabled != true

class Window_ShopBuy < Window_Selectable
 
  def draw_item(index)
    item = @data[index]
    case item
    when RPG::Item
      number = $game_party.item_number(item.id)
    when RPG::Weapon
      number = $game_party.weapon_number(item.id)
    when RPG::Armor
      number = $game_party.armor_number(item.id)
    end
#------------------------------------------------------------------------------
# For compatability with SG Artifact Colors
#------------------------------------------------------------------------------
    if item.price <= $game_party.gold and number < 99
      if $sg_artifact_colors     
        self.contents.font.color = sg_artifact_colors(item)
      else
        self.contents.font.color = normal_color
      end
    else
      if $sg_artifact_colors
        self.contents.font.color = sg_artifact_colors(item,1)
      else
        self.contents.font.color = disabled_color
      end
    end
#------------------------------------------------------------------------------
    x = 4
    y = index * 32
    rect = Rect.new(x, y, self.width - 32, 32)
    self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
    bitmap = RPG::Cache.icon(item.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, 212, 32, item.name, 0)
#------------------------------------------------------------------------------
# Begin SG Hide Free Item Cost edit
#------------------------------------------------------------------------------
    if item.price >= 1
      self.contents.draw_text(x + 240, y, 88, 32, item.price.to_s, 2)
    elsif $sg_shop_show_free
      self.contents.draw_text(x + 240, y, 88, 32, item.price.to_s, 2)
    end
#------------------------------------------------------------------------------
# End SG Hide Free Item Cost
#------------------------------------------------------------------------------
  end
end

class Scene_Shop
 
  alias sandgolem_hidefree_sceneshop_main main
 
  def main
    sandgolem_hidefree_sceneshop_main
    if $sg_shop_show_free
      $sg_shop_show_free = nil
    end
  end
end

#--------------------------------------------------------------------------
# * End SDK Enable Test
#--------------------------------------------------------------------------
end

Who's 백호

?

이상혁입니다.

http://elab.kr


List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6153
701 기타 쓸 용도가 없지만 마비노기 게임 만들 때 좋죠[장작스크립트] 5 백호 2009.02.22 2408
700 기타 레벨을 표시해주는 스크립트 5 백호 2009.02.22 2403
699 오디오 CG, 음악 감상 스크립트 [한글화] 11 file 백호 2009.02.21 2403
698 화면에 축소된 맵을 표시하는 스크립트 7 file 백호 2009.02.21 2394
697 파티 파티교환 시스템...이걸로 순서 교체도 가능할 듯... 9 file 백호 2009.02.21 2393
696 이동 및 탈것 텔레포트 스크립트. 11 XP광 2010.01.12 2392
695 HUD HUD Menu 1.2 by Raziel 6 file 백호 2009.02.22 2390
694 기타 거울에 캐릭 반사 20 ok하승헌 2010.02.18 2388
693 HUD 맵이름표시 6 캉쿤 2011.09.14 2382
692 전투 전투후 경험치 분배와 레벨업시 HP/SP 전회복 15 백호 2009.02.21 2377
691 전투 Active Time Battle 2.57 by パラ犬 6 file 백호 2009.02.22 2371
690 이동 및 탈것 이거만드느라 똥줄탓다!(는뻥) 초간단스크립트 10 *PS인간 2009.02.10 2369
689 이동 및 탈것 하이 대쉬 시스템 ver.1.0 15 백호 2009.02.22 2365
688 메뉴 자세항 개인 상태화면 8 아방스 2009.01.12 2361
687 메뉴 L's Custom Menu #3: 1인용 메뉴 Revision 1 3 Alkaid 2010.09.12 2360
686 메뉴 메뉴 변경 스크립트 2 file 백호 2009.02.21 2359
685 장비 에러 안나는 장비창 전능력 표시 스크립트... 3 백호 2009.02.21 2353
684 메뉴 자작 커스텀 메뉴(데모 첨부) 3 백호 2009.02.22 2348
683 점프 대쉬 스크립트 11 WMN 2008.03.17 2345
682 메뉴 Breath Of Fire 스타일의 메뉴 3 file 백호 2009.02.21 2342
Board Pagination Prev 1 ... 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 ... 52 Next
/ 52