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 6153
21 기타 [XP/VX/VXA] Drago Core Engine Alkaid 2014.02.13 883
20 기타 [XP/VX/VXA] Map Screenshot by LiTTleDRAgo 1 Alkaid 2014.02.13 851
19 그래픽 [XP/VX/VXA] Drago - Transition Pack Alkaid 2014.02.13 1206
18 기타 Drago - Custom Resolution by LiTTleDRAgo Alkaid 2014.02.13 1110
17 기타 [All RGSS] 윈도우 커서 숨기기/보이기 1 file Cheapmunk 2014.03.02 1956
16 기타 RM2kXP file 습작 2014.03.17 1551
15 기타 [All RGSS] 게임 다중 실행 방지 스크립트 1 file Cheapmunk 2014.05.24 1373
14 기타 [All RGSS] 윈도우 메세지박스 스크립트 (Completed ver) 5 file Cheapmunk 2014.06.22 2179
13 메뉴 MOG - Scroll Bar for XP file 습작 2014.07.06 1532
12 기타 레벨업스크립트(xp) 2 게임을만들자! 2014.08.05 1687
11 그래픽 Drago - Custom Resolution II 1 Alkaid 2014.09.10 1004
10 기타 [RGSS XP] 게임 해상도 조절 스크립트 (*2) 11 file Cheapmunk 2014.10.03 2564
9 기타 [All RGSS] FileTest (Unicode) file Cheapmunk 2014.12.29 611
8 기타 [All RGSS] File-Ex file Cheapmunk 2014.12.29 961
7 장비 착용한 장비에 따라 모습이 달라지는 스크립트 예제 5 file 게임애호가 2015.02.14 2012
6 온라인 인터넷 웹 상에서의 시간을 취득하는 스크립트 1 이우 2016.05.24 872
5 전투 전투중에 장비들 교체하기 file 레이스89 2017.08.19 594
4 맵/타일 맵연결 스크립트 (데모첨부) file 게임애호가 2018.06.15 687
3 이름입력 한글조합입력기(영어가능) file 조규진1 2019.11.10 497
2 메시지 Taylor's Simple Message System 2000 Alkaid 2020.07.05 242
Board Pagination Prev 1 ... 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 Next
/ 52