질문과 답변

Extra Form

메뉴창에서 나타나는 소지금 (Window_Gold) 부분을 개조해보았습니다.


개조 목적은 메뉴창에 나타나는 소지금을 오전, 오후 등의 시간대를 나타내기 위해 만든 것입니다.

미연시라고 하는 것이 편할라나, 그런 위주의 게임을 만들기 위해서요.


일단 이게 개조한 것이구요.

#==============================================================================

#==============================================================================


class Window_Times < Window_Base

  #--------------------------------------------------------------------------

  #--------------------------------------------------------------------------

  def initialize

    super(0, 0, window_width, fitting_height(1))

    refresh

  end

  #--------------------------------------------------------------------------

  #--------------------------------------------------------------------------

  def window_width

    return 160

  end

  #--------------------------------------------------------------------------

  #--------------------------------------------------------------------------

  def refresh

    contents.clear

      if $game_variables[20] == 0

      draw_currency_value("오전", 4, 0, contents.width - 8)

      elsif $game_variables[20] == 1

      draw_currency_value("오후", 4, 0, contents.width - 8)

      elsif $game_variables[20] == 2

      draw_currency_value("저녁", 4, 0, contents.width - 8)

      elsif $game_variables[20] == 3

      draw_currency_value("밤", 4, 0, contents.width - 8)

      elsif $game_variables[20] == 4

      draw_currency_value("새벽", 4, 0, contents.width - 8)

  end


  #--------------------------------------------------------------------------

  #--------------------------------------------------------------------------

  def open

    refresh

    super

  end

end


VXA 강좌 게시판에서 오리별자리님꼐서 올려주신 강의를 보면서 만든 것입니다.

http://avangs.info/index.php?mid=study_rpg_vx_ace&category=969307&document_srl=1169259


위의 스크립트대로 실행을 해보니 계속 마지막 줄의 $end오류가 나타나네요.

물론 본인께 직접 묻는 것이 맞지만 애석하게도 저와 똑같은 오류로 고생하시는 분들이 이미 해결방법을 덧글로 신청했지만
답이 없으시네요.

제 방법이 잘못된 것일까요?
많은 답변들을 기다리겠습니다.
Comment '2'
  • profile
    9qxb6 2015.03.14 15:01
    refresh 메서드에서 end하나 더 넣으셔야 합니다~
  • ?
    Neko 2015.03.14 16:41
    감사합니다!
    덕분에 잘 실행되네요

List of Articles
종류 분류 제목 글쓴이 날짜 조회 수
공지 묻고 답하기 가이드 습작 2014.06.14 12448
Board Pagination Prev 1 ... 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 Next
/ 83