RPGXP 스크립트
2013.09.24 08:00

플레이어 발소리 스크립트

조회 수 939 추천 수 0 댓글 1
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

플레이가 걸을때 발소리가 나게 하는 스크립트입니다 
캐릭터 마다 다르게 설정 할수도 있고 음량 피치 패턴등도 설정이 가능합니다 


#------------여기서부터 
# 플레이어 발소리 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 
#--------------끝

사용법 

스크립트 26~34줄까지 설명이 있습니다. 


출처: 게임공작소 

?

  1. 일시정지 스크립트

    Date2013.09.29 CategoryRPGXP 스크립트 By청담 Views929 Votes0
    Read More
  2. Random Dungeon Generator - Random Room

    Date2014.10.11 CategoryRPGVX Ace 스크립트 ByJunkMan Views930 Votes0
    Read More
  3. UNR (아시려나... ) - 상태 이상

    Date2013.01.20 CategoryRPGXP 스크립트 By동동주 Views936 Votes0
    Read More
  4. 플레이어 발소리 스크립트

    Date2013.09.24 CategoryRPGXP 스크립트 By청담 Views939 Votes0
    Read More
  5. RPG XP Xas액알

    Date2018.10.30 CategoryRPGXP 스크립트 By심심치 Views942 Votes0
    Read More
  6. Ghost Effect

    Date2019.01.20 CategoryRPGMV 플러그인 By러닝은빛 Views945 Votes0
    Read More
  7. 아이템 사용 클래스 한정 스크립트

    Date2013.09.24 CategoryRPGXP 스크립트 By청담 Views947 Votes0
    Read More
  8. 오렌지 - 타임 시스템 플러그인(Time system). (게임 시간시스템 관련)

    Date2015.11.07 CategoryRPGMV 플러그인 Byplam Views948 Votes1
    Read More
  9. Wave Filter

    Date2016.01.14 CategoryRPGMV 플러그인 By러닝은빛 Views965 Votes0
    Read More
  10. Menu Music MV (메뉴를 열때 음악을 콘트롤 하는 플러그인)

    Date2015.11.09 CategoryRPGMV 플러그인 By파란별빛 Views966 Votes0
    Read More
  11. 현재위치&임무 표시

    Date2013.10.01 CategoryRPGXP 스크립트 By Views968 Votes0
    Read More
  12. RPG Maker VX Lite Maze(미로) 만들기 (DFS 사용)

    Date2014.10.06 CategoryRPGVX Ace 스크립트 ByJunkMan Views969 Votes2
    Read More
  13. 유니티)캐릭터 좌우 이동 (C#)

    Date2016.01.05 Category유니티 스크립트 Byzerosium Views982 Votes0
    Read More
  14. 화면의 쉐이크를 더 어지럽게 바꿔보자!

    Date2013.10.01 CategoryRPGXP 스크립트 By Views986 Votes0
    Read More
  15. 창고 시스템

    Date2013.09.24 CategoryRPGXP 스크립트 By청담 Views987 Votes0
    Read More
  16. 밤낮 설정

    Date2013.10.01 CategoryRPGXP 스크립트 By Views994 Votes0
    Read More
  17. 아이템 소지수 무제한 스크립트

    Date2013.09.24 CategoryRPGXP 스크립트 By청담 Views1001 Votes0
    Read More
  18. 상점 메뉴 개조시킨 스크립트

    Date2013.09.24 CategoryRPGXP 스크립트 By청담 Views1004 Votes0
    Read More
  19. EnemyBook v1.1 - SkottyTV Update(몬스터북 플러그인)

    Date2015.10.27 CategoryRPGMV 플러그인 Byplam Views1008 Votes0
    Read More
  20. c[n] 명령어 줄때의 색상 결정.

    Date2008.02.14 CategoryRPGXP 스크립트 By창조도시 Views1015 Votes1
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 15 Next
/ 15






[개인정보취급방침] | [이용약관] | [제휴문의] | [후원창구] | [인디사이드연혁]

Copyright © 1999 - 2016 INdiSide.com/(주)씨엘쓰리디 All Rights Reserved.
인디사이드 운영자 : 천무(이지선) | kernys(김원배) | 사신지(김병국)