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 5410
397 메뉴 캐릭터설명을 심플하게! 스크립트. 13 file 할렘 2009.02.03 4848
396 퀘스트 디아블로 스타일 퀘스트 시스템(번역) 38 file 훈덕 2009.02.03 6050
395 온라인 NETVX 2버전 18 아방스 2009.02.04 3908
394 전투 스킬 커맨드 스크립트 16 아방스 2009.02.05 4535
393 기타 작은 게이지바 표시 스크립트 44 file 허걱 2009.02.05 5979
392 전투 GTBS 1.0 [스크립트] 24 아방스 2009.02.05 6141
391 기타 Base Project 15 아방스 2009.02.05 3063
390 이동 및 탈것 피티원이 따라다니는 스크립트 38 file 아방스 2009.02.05 5024
389 전투 RPG Tankentai SBS 3.3 Kaduki Eng 2 아방스 2009.02.05 5468
388 전투 RPG Tankentai SBS 3.3 + ATB Kaduki Eng 58 아방스 2009.02.05 9071
387 직업 [직업 변경] TBK_JobChanger_Demo_v1.2 10 아방스 2009.02.05 3469
386 스킬 스킬 사용시 컷인 연출 (번역) 26 file 훈덕 2009.02.05 5387
385 메뉴 스테이터스 창을 멋있게 쿨하게~!전신을 보여주자. 24 file 할렘 2009.02.06 6236
384 이동 및 탈것 8 방향 이동스크립트 + 스프라이트 효과 12 file 레오 2009.02.06 7565
383 메뉴 파이날 판타지 IX 메뉴. 12 file 할렘 2009.02.06 6287
382 전투 ORBS_v1[1].06 전투시스템. 22 file 할렘 2009.02.06 7408
381 이름입력 주인공이름으로 저장하는 스크립트 6 file 아방스 2009.02.07 4079
380 기타 라이트 이펙트 스크립트 12 file 아방스 2009.02.07 3262
379 전투 Requiem SBABS (Requiem Squad Based Battle System) 14 vk 2009.02.07 7543
378 전투 방패가없어? 그럼 방어못하게하는 스크립트. 16 file 할렘 2009.02.07 3425
Board Pagination Prev 1 ... 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 ... 32 Next
/ 32