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 6203
» 아이템 SG_Hide free item cose by sandgolem (SDK호환) 백호 2009.02.22 935
80 기타 Economy System by Nick@Creation Asylum 1 file 백호 2009.02.22 934
79 기타 KGC 디버거 (최신 올라온 것에 비해 성능은 딸리지만) file 백호 2009.02.22 929
78 이동 및 탈것 Mouse_move file 백호 2009.02.21 923
77 전투 위치보정스크립트 한글화 1 백호 2009.02.22 922
76 파티 Reserve Party Tools by RPG Advocate 백호 2009.02.22 920
75 기타 지정범위안에 들어오면 특정한 움직임을 취한다!! 1 백호 2009.02.21 920
74 전투 배틀 포인트 1 백호 2009.02.22 918
73 기타 좌표 스크립트 2 백호 2009.02.21 908
72 기타 스크립트 자료 3 file 백호 2009.02.22 905
71 전투 전투의 커맨드에 따라 능력치를 상승 백호 2009.02.22 904
70 변수/스위치 SG_Gold Window Variables v2 by sandgolem (SDK호환) 백호 2009.02.22 899
69 아이템 SG_Item Break by sandgolem (SDK호환) 백호 2009.02.22 898
68 기타 파노라마 스크롤 스크립트 개량판 by Guillaume777 1 백호 2009.02.22 896
67 스킬 SG_Skill Invoking Battle Items by sandgolem (SDK호환) 백호 2009.02.22 894
66 아이템 Additional Item Drop by SephirothSpawn (SDK호환) 1 백호 2009.02.22 891
65 기타 AMS___Advanced_Message_Script 1 file 백호 2009.02.22 889
64 기타 [XP/VX/VXA] Drago Core Engine Alkaid 2014.02.13 887
63 아이템 아이템 소지수 무제한 1 백호 2009.02.21 887
62 기타 다중 파노라마 사용 by Guillaume777 file 백호 2009.02.22 886
Board Pagination Prev 1 ... 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 Next
/ 52