| 赞 | 189 |
| VIP | |
| 好人卡 | |
| 积分 | 96 |
| 经验 | |
| 最后登录 | 2026-5-4 |
| 在线时间 | 5074 小时 |
- 梦石
- 0
- 星屑
- 9557
- 在线时间
- 5074 小时
- 注册时间
- 2013-6-21
- 回帖
- 3459
  
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有账号?注册会员
×
本帖最后由 RyanBern 于 2014-12-4 17:23 编辑
再次做一个VA->XP的移植,这回移植的是@VIPArcher 的足音系统,感觉比ULDS容易好多啊。
用法是插入到Main前,冲突的可能:音量调节脚本。其它的看说明书就好了,比较容易用。
缺点就是如果某个地形只有一种声音素材的话,就要复制好多相同的素材了……
有BUG欢迎来报告~
[pre lang="Ruby"]#==============================================================================
# +++ 足音(for XP) v1.0 +++
#==============================================================================
# 原版 By:VIPArcher
# XP移植 :RyanBern
#
# -- 本脚本来自 https://rpg.blue 使用或转载请保留以上信息。
#
#==============================================================================
#
# 设定玩家在不同地形标志移动时不同的脚步声
#
# 脚步声的素材名称命名是有一定规则的。例如Step0_0
# "Step"+地形标志ID+"_"+随机编号(0-3)
# 脚步声素材每组4枚。例如地形标志为2的脚步声
# 就命名为[Step2_0.ogg;Step2_1.ogg;Step2_2.ogg;Step2_3.ogg]
# 也可以设置一些区域是没有脚步声的。
# 效果的开关可以通过控制设置的开关进行控制
#
#==============================================================================
#==============================================================================
# ★ 设定部分 ★
#==============================================================================
module VIPArcher;end
module VIPArcher::FOOTSOUND
#开启脚步声开关编号
FootSoundEnabled = 1
#没有脚步声的地形标志
NoSoundTerrains = [0]
#脚本声素材路径
SoundDir = "Audio/SE/Footsound/"
#音量
Volume = 50
#音调
Pitch = 100
end
class Game_Player < Game_Character
include VIPArcher::FOOTSOUND
#--------------------------------------------------------------------------
# ● 角色移动一步时的处理
#--------------------------------------------------------------------------
alias rb_increase_steps_20141203 increase_steps
def increase_steps
rb_increase_steps_20141203
foot_sound_play
end
#--------------------------------------------------------------------------
# ● 播放脚步声
#--------------------------------------------------------------------------
def foot_sound_play
tag = $game_player.terrain_tag
return if !$game_switches[FootSoundEnabled]
return if NoSoundTerrains.include?(tag)
filename = "#{SoundDir}Step#{tag}_#{rand(4)}"
Audio.se_play(filename, Volume, Pitch) if @step_off
# 这里只是为了每2步才播放一次脚本声
@step_off ^= true
end
end[/pre] |
评分
-
查看全部评分
|