기타

레벨을 표시해주는 스크립트

by 백호 posted Feb 22, 2009
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄
#==============================================================================
# ■ Window_Steps
#------------------------------------------------------------------------------
#  메뉴 화면에서 보수를 표시하는 윈도우입니다.
#==============================================================================

class Window_Level < Window_Base
  #--------------------------------------------------------------------------
  # ● 오브젝트 초기화
  #--------------------------------------------------------------------------
  def initialize
    super(0, 0, 160, 64)
    self.contents = Bitmap.new(width - 32, height - 32)
    refresh
  end
  #--------------------------------------------------------------------------
  # ● 리프레쉬
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    self.contents.font.color = system_color
    self.contents.draw_text(4, 0, 120, 32, "레벨")
    self.contents.font.color = normal_color
    self.contents.draw_text(4, 0, 120, 32, $game_variables[35].to_s, 2)
  end
end

=============================================================================


문제가잇엇군요..

이스크립트를 찔러주신후.. 이벤트하나를 작성하셔서 스크립트를 넣습니다

    @level_window = Window_Level.new
    @level_window.x = 0
    @level_window.y = 0

자동실행해주시구요.. 마지막에 스위치만들어주셔야합니다..



<SCRIPT language=javascript> var md5_norobot_key = '4fe5149039b52765bde64beb9f674940'; </SCRIPT> <SCRIPT type=text/javascript> // 글자수 제한 var char_min = parseInt(0); // 최소 var char_max = parseInt(0); // 최대 </SCRIPT>
KimTJ 06-08-09 03:25
  #==============================================================================
# ■ Window_Level
#------------------------------------------------------------------------------
#  메뉴 화면 등에서 레벨을 표시하는 윈도우입니다.
#==============================================================================

class Window_Level < Window_Base
  #--------------------------------------------------------------------------
  # ● 오브젝트 초기화
  #--------------------------------------------------------------------------
  def initialize
    super(0, 0, 160, 64)
    self.contents = Bitmap.new(width - 32, height - 32)
    refresh
  end
  #--------------------------------------------------------------------------
  # ● 리프레쉬
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    self.contents.font.color = system_color
    self.contents.draw_text(4, 0, 120, 32, "레벨")
    self.contents.font.color = normal_color
    self.contents.draw_text(4, 0, 120, 32, $game_variables[35].to_s, 2)
  end
end

=============================================================================


이거 $game_variables[35]에 레벨을 입력받아야 하는 거 아닌지?

Who's 백호

?

이상혁입니다.

http://elab.kr