Page 1 of 1

Change the sound effect of npc ???

Posted: Thu Jun 29, 2017 5:20 pm
by HunterX1X
Hey .. Anyone know a way to change the sound effect of an npc or stuff in one level .. id like to change the fireball sound ....Can anyone help plz ???
i need it For this one ..
http://imgur.com/lqFzLma

Re: Change the sound effect of npc ???

Posted: Fri Jun 30, 2017 2:32 am
by ElectriKong
Sounds.ini

Re: Change the sound effect of npc ???

Posted: Fri Jun 30, 2017 7:51 am
by HunterX1X
Yes I created a sound.ini file and put audio.sfx(#) in it but didnt work..can u explain plz ?? :)

Re: Change the sound effect of npc ???

Posted: Fri Jun 30, 2017 8:00 am
by HeroLinik
HunterX1X wrote:Yes I created a sound.ini file and put audio.sfx(#) in it but didnt work..can u explain plz ?? :)
You put the sound ID, the filename of the sound you're replacing and then the name of the sound that you're going to use instead. For instance:

Code: Select all

[sound-20]
name="Defeat Boss"
file="All Ace Coins Collected.ogg"
The sound IDs go in order of their drop-down in the Events box.

Re: Change the sound effect of npc ???

Posted: Fri Jun 30, 2017 8:36 am
by PixelPest
Follow what Linik said.

Btw, Audio.playSFX() is a LunaLua function so it is used in .Lua files and not .ini files. Always watch that you're looking at the documentation for the correct language/file type

Re: Change the sound effect of npc ???

Posted: Fri Jun 30, 2017 6:49 pm
by HunterX1X
It really didnt work ....must be samething not in its place or samething .....>_<
http://imgur.com/SiBpMTH
Lvl name : game test
http://wohlsoft.ru/pgewiki/SFX_list_(SMBX64)

Re: Change the sound effect of npc ???

Posted: Sat Jul 01, 2017 4:38 am
by ElectriKong
BTW, I use music.ini and sounds.ini in SMBX 2.0, so I don't know if it works in 1.3 (you may need 1.3.0.2 (1.3.0.1 with lunalua) at the very least).

Re: Change the sound effect of npc ???

Posted: Sat Jul 01, 2017 11:20 am
by HunterX1X
Oh it work now on smbx 2.0 .. i was using the smbx 1.4 .. Thank you ^^