XP 스크립트


# 플레이어 발소리 SE ver. 1.01 (Since 2006/01/31)
# by Tetra-Z
#
# 맵상에서 플레이어에 발소리를 설정합니다.
#
# $game_system.player_step_se_permission : 발소리 허가.
#
# ver. 1.01(2006/02/18)
# 커스터마이즈 포인트에서 발밑 태그 ID·맵 ID를 참조 가능하게.

#==============================================================================
# TETRAZ61
#==============================================================================
module TETRAZ61
  def self.actor_step_se(id, tag, map)
    case id
    #==========================================================================
    # □ 커스터마이즈 포인트
    #==========================================================================
    # tag에서 발밑 태그 ID, map에서 맵 ID의 조건부도 할 수 있습니다.
    when 1
      return [[1, 3], "032-Switch01", 80, 100]
    when 2
      return [[1, 3], "040-Knock01", 80, 100]
    # when 엑터 ID
    #  return [[패턴], "SE명", 음량, 피치]
    #
    # 엑터 ID : 선두의 엑터의 ID.
    # 패턴  : 발소리가 있는 패턴. 캐릭터 화상의 왼쪽으로부터 0, 1, 2, 3.
    # SE명      : 발소리가 되는 SE파일명.
    # 음량      : SE의 음량. 생략 하면(자) 80.
    # 피치    : SE의 피치. 생략 하면(자) 100.
    #==========================================================================
    end
    return []
  end
end
#==============================================================================
# ■ Game_System
#==============================================================================
class Game_System
  #--------------------------------------------------------------------------
  # ● 공개 인스턴스 변수
  #--------------------------------------------------------------------------
  attr_accessor :player_step_se_permission
  #--------------------------------------------------------------------------
  # ● 오브젝트 초기화
  #--------------------------------------------------------------------------
  alias tetraz61_initialize initialize
  def initialize
    tetraz61_initialize
    @player_step_se_permission = true
  end
end
#==============================================================================
# ■ Game_Player
#==============================================================================
class Game_Player < Game_Character
  #--------------------------------------------------------------------------
  # ● 프레임 갱신
  #--------------------------------------------------------------------------
  alias tetraz61_update update
  def update
    last_pattern = @pattern
    tetraz61_update
    actor_id = tetraz61_party0
    return if (! $game_system.player_step_se_permission or $data_actors[actor_id]. nil? )
    se = TETRAZ61.actor_step_se(actor_id, self.terrain_tag, $game_map.map_id)
    return if (!(se.is_a? (Array)) or se.size < 2 or !(se[0]. is_a? (Array)) or se[1] == "")
    if (last_pattern != @pattern and se[0]. include? (@pattern))
      se[2] = 80 if (se.size < 3 or se[2]. nil? )
      se[3] = 100 if (se.size < 4 or se[3]. nil? )
      Audio.se_play("Audio/SE/" + se[1], se[2], se[3]) rescue nil
    end
  end
  #--------------------------------------------------------------------------
  # ● 선두의 엑터
  #--------------------------------------------------------------------------
  def tetraz61_party0
    if defined?  xrxs41_refresh
      id = $game_variables[XRXS41::MAPCHAR_VARIABLE_ID]
      return id unless $data_actors[id]. nil?
    end
    return $game_party.actors.size > 0 ?  $game_party.actors[0]. id : 0
  end
end

Who's 아방스

profile
Atachment
첨부 '1'
Comment '9'

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6169
561 키입력 전체키 입력 스크립트 v4 by Cybersam 5 file 백호 2009.02.22 1948
560 전투 RTAB방식의 CBS 스크립트 Final-2 5 file 백호 2009.02.22 1943
559 메뉴 KGC 메뉴화면 개조 스크립트 번역 3 file 백호 2009.02.22 1942
558 HUD 게임 플레이시 맵의 이름을 표시하는 스크립트 1 file 백호 2009.02.21 1935
557 기타 요리스크립트 (구) 6 *ps인간 2009.01.26 1932
556 이동 및 탈것 자동으로 장애물을 피해가는 스크립트 13 file 백호 2009.02.22 1929
555 장비 Equipment Upgrade System 1.1 by Charlie Fleed Alkaid 2010.11.18 1928
554 그래픽 Weather Creator 1.0 by ForeverZer0 2 file Alkaid 2011.01.22 1920
553 전투 전투불능 케릭터 강제삭제 7 독도2005 2008.10.05 1918
552 [자작]일괄조작 관련 스크립트 5 나뚜루 2009.01.10 1913
551 기타 RPG 만들기 XP의 숨겨진 모듈/클래스 재정의 스크립트 모음 1 Alkaid 2013.08.31 1913
550 액터 Actor Customization 6.0.2 by Synthesize 4 file Alkaid 2010.09.17 1912
549 기타 mog-스테이터스 업그레이드? ps인간 2009.01.23 1904
548 전투 Mr. Mo's ABS Ultimate 1.9 by DerVVulfman 2 Alkaid 2011.12.01 1900
547 전투 The Lycan ABS by DerVVulfman Alkaid 2013.07.22 1895
546 메뉴 링메뉴 제대로된것..오류안나느것. 7 백호 2009.02.21 1890
545 온라인 multy-netplay 로그인창에서 비밀번호를 ***표시해주는 script~! 1 백호 2009.02.22 1889
544 전투 레벨 상승 화면 개조 스크립트 4 file 백호 2009.02.21 1884
543 기타 무기& 방어구 레벨제한 스크립트 23 file 백호 2009.02.21 1880
542 전투 전투중의 윈도우 전부 투명화 3 file 백호 2009.02.21 1879
Board Pagination Prev 1 ... 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 ... 52 Next
/ 52