在新窗口中打开脚本页
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
| $VIPArcherScript ||= {};$VIPArcherScript[:footsound] = 20140909 module VIPArcher end module VIPArcher::FOOTSOUND SW = 1 NOSOUND = [0,1] SOUNDURL = "Audio/SE/Footsound/" VOL = 50 PITCH = 100 end class Game_Party < Game_Unit include VIPArcher::FOOTSOUND alias vip_20140909_on_player_walk on_player_walk def on_player_walk vip_20140909_on_player_walk foot_sound_play end def foot_sound_play tag = $game_player.terrain_tag return if $game_switches[SW] return if NOSOUND.include?(tag) Audio.se_play("#{SOUNDURL}Step#{tag}_#{rand(4)}",VOL,PITCH) if @step_off @step_off ^= true end end
|