XP 스크립트

http://www.gamebaker.com/rmxp/scripts/hide-zero-sp-cost.htm
  스킬의 사용SP가 0일때 SP를 표시하지 않는 스크립트입니다.  패시브스킬사용시 유용?


#=============================================================================
# ** SG Hide Zero SP Cost (skills menu only)
#=============================================================================
# sandgolem
# Version 1a
# 19.03.06
#=============================================================================
#
# To disable this for whatever reason during gameplay, use:
#    $sg_show_zero_sp_cost = true
#
# To re-enable this script, use:
#    $sg_show_zero_sp_cost = nil
#
#=============================================================================
#
# To check for updates or find more scripts, visit:
# http://www.gamebaker.com/rmxp/scripts/
#
# This is a -very- simple edit. See the section marked as edited below if this
# is incompatible with any other scripts you're using.
#
# 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.
#
# If you're using a script that alters the Skills menu, try putting this
# above it as it rewrites one of the default methods.
#
# Have problems? You can leave me a message at:
# http://www.gamebaker.com/users/sandgolem
#
#=============================================================================

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

begin
  SDK.log("SG Hide Zero SP Cost", "Sandgolem", "1a", "26.02.06")
  if SDK.state("SG Hide Zero SP Cost") != true
    @sg_hide_zero_sp_disabled = true
  end
  rescue
end

#--------------------------------------------------------------------------
# * Begin SDK Enable Test
#--------------------------------------------------------------------------
if !@sg_hide_zero_sp_disabled

class Window_Skill < Window_Selectable

  def sg_draw_skill_color(skill,type)
    if @actor.skill_can_use?(skill.id)
      self.contents.font.color = normal_color
    else
      self.contents.font.color = disabled_color
    end
  end
 
  def draw_item(index)
    skill = @data[index]
# Broken apart for compatability with other scripts
    sg_draw_skill_color(skill,type)
    x = 4 + index % 2 * (288 + 32)
    y = index / 2 * 32
    rect = Rect.new(x, y, self.width / @column_max - 32, 32)
    self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
    bitmap = RPG::Cache.icon(skill.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, 204, 32, skill.name, 0)
#------------------------------------------------------------------------------
# Begin SG Hide Zero SP Cost Edit
#------------------------------------------------------------------------------
    sg_draw_skill_color(skill,1)
    if !$sg_show_zero_sp_cost
      if skill.sp_cost > 0
        self.contents.draw_text(x + 232, y, 48, 32, skill.sp_cost.to_s, 2)
      end
    else
      self.contents.draw_text(x + 232, y, 48, 32, skill.sp_cost.to_s, 2)
    end
#------------------------------------------------------------------------------
# End SG Hide Zero SP Cost Edit
#------------------------------------------------------------------------------
  end
end

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

Who's 백호

?

이상혁입니다.

http://elab.kr


List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6153
141 전투 전투 특수효과 ActionEX 스크립트 1 file 백호 2009.02.21 1659
140 전투 전투 특수효과 DamageEX 스크립트 1 file 백호 2009.02.21 1590
139 전투 전투링메뉴.(턴알) 7 백호 2009.02.21 2821
138 전투 전투배경 확장 3 file 백호 2009.02.21 1817
137 전투 전투배경확장 스크립트 3 file 아미상 2013.09.15 2769
136 전투 전투배경확장 한글 3 백호 2009.02.22 1472
135 전투 전투불능 케릭터 강제삭제 7 독도2005 2008.10.05 1918
134 전투 전투시 미묘한 효과 스크립트 file 백호 2009.02.21 1468
133 전투 전투시 아이콘 윈도우 2 file 백호 2009.02.21 1650
132 전투 전투에서도 맵 BGM 연결하는 스크립트 2 file 백호 2009.02.21 1130
131 전투 전투위치 보정 스크립트 1 file 백호 2009.02.21 1234
130 전투 전투의 승리마다 행동에 따라서 능력치가 상승한다! 1 백호 2009.02.22 1238
129 전투 전투의 커맨드에 따라 능력치를 상승 백호 2009.02.22 904
128 전투 전투중에 장비들 교체하기 file 레이스89 2017.08.19 594
127 장비 전투중에 장비변경 from RGSS Wiki 1 백호 2009.02.22 1988
126 전투 전투중의 윈도우 전부 투명화 3 file 백호 2009.02.21 1879
125 전투 전투후 경험치 분배와 레벨업시 HP/SP 전회복 15 백호 2009.02.21 2377
124 이동 및 탈것 점프 높이를 자유자제로 조절하는 스크립트!! 8 file 백호 2009.02.21 1539
123 점프 대쉬 스크립트 11 WMN 2008.03.17 2345
122 메뉴 제가 쓰고있는 메뉴 13 file 백호 2009.02.21 3029
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