reijubv Kai Runes
Posts : 1476 Thanked : 33 Engine : RMVX
Trophies
Awards:
| Subyek: [XP]Rei Footstep Script 2009-10-03, 15:42 | |
| Rei Footstep Script Versi: 1.0 Tipe: Misc PengenalanRikues dari drone7, fungsinya utk munculin suara langkah kaki dari event atau player. . . Maaf, tidak ada demo . . . Fitur
- Suara langkah kaki
- Suara bisa tidak terbatas jumlahnya
ScreenshotsScreenshot dari sebuah suara? Hmmm. . . . DemoTidak ada demo . . . Scripts- Spoiler:
- Code:
-
#=============================================================================== # ● [XP] ◦ Rei Footstep Script ◦ □ # * Event dan player bakal punya suara langkah kaki . . . * #------------------------------------------------------------------------------- # ◦ by reijubv [aruyasoft@comic.com] # ◦ Rpgmakerid # ◦ Dipublikasikan pada: 02/10/2009 # ◦ Versi: 1.0 (2 Oktober 2009) #------------------------------------------------------------------------------- # Untuk membuat sebuah event memiliki suara footsptep, di nama event itu, tambah # kan kata <ftsp>. # Jangan lupa untuk mengeset terrain tag di tile editor! #=============================================================================== # Credit to reijubv #------------------------------------------------------------------------------- # ◦ Installation: # Taroh diatas Main dibawah Scene_Debug, edit dibawah #=============================================================================== $imported = {} if $imported == nil $imported["Rei_"+"Footstep"] = true #------------------------------------------------------------------------------- # Rei Module #------------------------------------------------------------------------------- module Rei module Footstep TAG = [] #------------------------------------------------------------------------ # Edit di dalam array yang ada dibawah, tambahkan sebanyak mungkin sound # effect dalam 1 array sesuai yang kamu mau # Semua sound effect harus ada di folder Audio/SE/ #------------------------------------------------------------------------ # Sound effects yang akan muncul saat player/event berjalan di tile dengan # Terran tag 0 TAG[0] = ["sound1", "sound2"] # Sound effects yang akan muncul saat player/event berjalan di tile dengan # Terran tag 1 TAG[1] = ["sound1", "sound2", "sound3", "sound4", "sound5"] # Sound effects yang akan muncul saat player/event berjalan di tile dengan # Terran tag 2 TAG[2] = ["sound1", "sound2", "sound3", "sound4", "sound5", "sound6"] # Sound effects yang akan muncul saat player/event berjalan di tile dengan # Terran tag 3 TAG[3] = ["sound1", "sound2", "sound3", "sound4", "sound5", "sound6", "sound7", "sound8"] # Sound effects yang akan muncul saat player/event berjalan di tile dengan # Terran tag 4 TAG[4] = ["sound1", "sound2", "sound3", "sound4", "sound5", "sound6", "sound7", "sound8"] # Sound effects yang akan muncul saat player/event berjalan di tile dengan # Terran tag 5 TAG[5] = ["sound1", "sound2", "sound3", "sound4", "sound5", "sound6", "sound7", "sound8"] # Sound effects yang akan muncul saat player/event berjalan di tile dengan # Terran tag 6 TAG[6] = ["sound1", "sound2", "sound3", "sound4", "sound5", "sound6", "sound7", "sound8"] # Sound effects yang akan muncul saat player/event berjalan di tile dengan # Terran tag 7 TAG[7] = ["sound1", "sound2", "sound3", "sound4", "sound5", "sound6", "sound7", "sound8"] # Apakah secara default, event memiliki suara footstep juga ? EVENT_FOOTSTEP = false # Switch Id untuk menyalakan/mematikan efek footstepnya player PS = 1 # Switch Id untuk menyalakan/mematikan efek footstepnya event ES = 2 end end #============================================================================== # ** Game_Character #============================================================================== class Game_Character include Rei::Footstep attr_accessor :footstep_se def play_se vol = rand(30) + 70 pitch = rand(30) + 70 case $game_map.terrain_tag(@x, @y) when 0 Audio.se_play(TAG[rand(TAG[0].size-1)], vol, pitch) when 1 Audio.se_play(TAG[rand(TAG[1].size-1)], vol, pitch) when 2 Audio.se_play(TAG[rand(TAG[2].size-1)], vol, pitch) when 3 Audio.se_play(TAG[rand(TAG[3].size-1)], vol, pitch) when 4 Audio.se_play(TAG[rand(TAG[4].size-1)], vol, pitch) when 5 Audio.se_play(TAG[rand(TAG[5].size-1)], vol, pitch) when 6 Audio.se_play(TAG[rand(TAG[6].size-1)], vol, pitch) when 7 Audio.se_play(TAG[rand(TAG[7].size-1)], vol, pitch) end end end #============================================================================== # ** Game_Player #============================================================================== class Game_Player < Game_Character alias rei_ftstp_initialize_gp initialize def initialize;@footstep_se = true;rei_ftstp_initialize_gp end alias rei_gp_ftstp_increase_steps increase_steps def increase_steps;rei_gp_ftstp_increase_steps play_se if @footstep_se == true and $game_switches[Rei::Footstep::PS] end end #============================================================================== # ** Game_Event #============================================================================== class Game_Event < Game_Character alias rei_ftstp_initialize_ge initialize def initialize(map_id, event) rei_ftstp_initialize_ge(map_id, event) @footstep_se = false if @event.name.upcase.include?('<ftsp>') or Rei::Footstep::EVENT_FOOTSTEP @footstep_se = true end end alias rei_ge_ftstp_increase_steps increase_steps def increase_steps;rei_ge_ftstp_increase_steps play_se if @footstep_se == true and $game_switches[Rei::Footstep::ES] end end #============================================================================== # ** End of Script #==============================================================================
Credits
Terakhir diubah oleh reijubv tanggal 2010-07-24, 10:43, total 3 kali diubah | |
|
bradhawk Admin
Posts : 637 Thanked : 8 Skill : Beginner
| Subyek: Re: [XP]Rei Footstep Script 2009-10-03, 15:53 | |
| jiah, rekues drone di selsein dolo, mana rekues script ku ? | |
|
reijubv Kai Runes
Posts : 1476 Thanked : 33 Engine : RMVX
Trophies
Awards:
| Subyek: Re: [XP]Rei Footstep Script 2009-10-03, 15:57 | |
| @brad urutannya tuh, gampang pertama, susah belakangan >.< rikuesnyah si jeepunk yg abis ini . . . baru yg anda. . . baru yg kk Jasprelao . . . whew . . . | |
|
idlewalker Advance
Posts : 326 Thanked : 0 Engine : RMVX Skill : Intermediate Type : Writer
| Subyek: Re: [XP]Rei Footstep Script 2009-10-03, 18:53 | |
| @kk rei KK EMANG BAIK!!! THANKS BUAT SCRIPTNYA! @kk brad sorry ya btw, ini RMID Interactive Game udah mau jadi, kk brad jadi server host kedua ya! | |
|
reijubv Kai Runes
Posts : 1476 Thanked : 33 Engine : RMVX
Trophies
Awards:
| Subyek: Re: [XP]Rei Footstep Script 2009-10-03, 18:58 | |
| @drone siph . . . Sekarang tinggal bikin script buat jeepunk . . . ( kasian udah dari dlu ) | |
|
sick666 Newbie
Posts : 3 Thanked : 0 Engine : Multi-Engine User Skill : Beginner Type : Artist
| Subyek: Re: [XP]Rei Footstep Script 2011-11-30, 22:20 | |
| Maaf sebelumnya kalau Necro bingung mau nanya gimana selain reply disini... @kk rei ada yg error nie kk scriptnya di aq... mungkin aq nya yg nda ngerti.. maklum bener2 newbie nie nie SSnya - Spoiler:
| |
|
LiTTleDRAgo Senior
Posts : 712 Thanked : 27 Engine : RMXP Skill : Skilled Type : Scripter
Trophies
Awards: | Subyek: Re: [XP]Rei Footstep Script 2011-11-30, 22:31 | |
| coba
Audio.se_play(TAG[rand(TAG[0].size-1)], vol, pitch)
diganti jadi
Audio.se_play(TAG[0][rand(TAG[0].size-1)], vol, pitch)
Note : Untested | |
|
Sponsored content
| Subyek: Re: [XP]Rei Footstep Script | |
| |
|