VX 스크립트

#==============================================================================
# ■ DeadlyDan_MessageSound v2.0 by DeadlyDan
#------------------------------------------------------------------------------
#  Simple "typewriting" style sound when messages are displayed.
#==============================================================================
# Usage:
=begin
 
  Simply change:
 
  MS_SOUND = "Audio/SE/cursor"
 
  To what ever sound file you want, for example:
 
  MS_SOUND = "Audio/SE/cow"
 
  If you want to change how fast it sounds, change
 
  MS_FRAME_INTERVAL = 2
 
  To, for example, if you want longer:
 
  MS_FRAME_INTERVAL = 4

=end

class Window_Message < Window_Selectable
 
  MS_SOUND = "Audio/SE/cursor"
  MS_FRAME_INTERVAL = 2
 
  def update_message
    loop do
      c = @text.slice!(/./m)
      case c
      when nil
        finish_message
        break
      when "x00"
        new_line
        if @line_count >= MAX_LINE
          unless @text.empty?
            self.pause = true
            break
          end
        end
      when "x01"
        @text.sub!(/[([0-9]+)]/, "")
        contents.font.color = text_color($1.to_i)
        next
      when "x02"
        @gold_window.refresh
        @gold_window.open
      when "x03"
        @wait_count = 15
        break
      when "x04"
        @wait_count = 60
        break
      when "x05"
        self.pause = true
        break
      when "x06"
        @line_show_fast = true
      when "x07"
        @line_show_fast = false
      when "x08"
        @pause_skip = true
      else
        if ( @line_show_fast == false and @show_fast == false )
          if ( Graphics.frame_count > ( @last_ms_sound_frame.to_i + MS_FRAME_INTERVAL ) )
            Audio.se_play ( MS_SOUND, 100, 100 )
            @last_ms_sound_frame = Graphics.frame_count
          end
        end
        contents.draw_text(@contents_x, @contents_y, 40, WLH, c)
        c_width = contents.text_size(c).width
        @contents_x += c_width
      end
      break unless @show_fast or @line_show_fast
    end
  end
 
end

Who's 작은샛별

?

제작중게임

 

1.코아스타온라인

2. 신비의숲

Comment '19'

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 3 습작 2012.12.24 6661
237 기타 VX에서 포그 그래픽을 사용하자 16 아방스 2008.01.31 3911
236 온라인 NETVX 2버전 18 아방스 2009.02.04 3932
235 전투 VX SRPG 스크립트를 수정해봤습니다(8) - 누적수정 30 아이미르 2011.09.09 3942
234 그래픽 RPG XP의 Transitions효과를 VX에도 적용을 해보자 4 아방스 2008.01.27 3966
233 이동 및 탈것 vx 걸을때 소리가 나도도록 하는 스크립트 33 아방스 2008.01.31 3975
232 파티 파티 변경 시스템 21 file 아방스 2008.03.09 3980
231 메뉴 커서 모양 바꾸는 스크립트 16 아방스 2009.01.20 3980
230 기타 vx 보안 시스템 19 file 허걱 2009.07.29 3985
» 메시지 문장에서1글자마다소리내기 19 작은샛별 2010.03.07 3987
228 직업 서브클래스 선택 시스템 Subclass Selection System 7 file 카르와푸딩의아틀리에 2009.06.30 3996
227 기타 화면 해상도(640 X 480) 스크립트 6 file 쿠쿠밥솥 2012.01.10 4000
226 상점 YERD - 커먼이벤트 샵 12 file 훈덕 2009.11.08 4004
225 2 Players Engine 2인용하기 15 file RPGbooster 2008.10.08 4015
224 아이템 아이템 믹서 21 file 미양 2010.07.02 4015
223 파티 파티원이 따라다니는 스크립트 11 file 놀러 2011.09.15 4021
222 온라인 VX Pheonix 2.0 한글 번역 버전 16 미니 2010.04.18 4023
221 기타 시야범위 스크립트 22 file 카르와푸딩의아틀리에 2009.06.30 4037
220 상점 상점의 자세한 표시 32 file RPGbooster 2008.10.11 4055
219 기타 시야범위 스크립트 18 file 좀비사냥꾼 2009.03.19 4058
218 미니맵 KGC 미니 맵 22 file RPGbooster 2008.10.08 4072
Board Pagination Prev 1 ... 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 ... 32 Next
/ 32