YesNoOk
avatar

How to stop music (Read 4679 times)

Started by AlumDixon, October 24, 2008, 01:17:14 pm
Share this topic:
How to stop music
#1  October 24, 2008, 01:17:14 pm
  • **
  • Kung Lao - 70% Almost ready to release!
I was wondering how i could stop music after someone gets knocked out. It might be that I have to edit all the characters but idk ill still do it if i have to.

Making Stick Figures in MS Paint is Fun....
Continuing Kung Lao =]
Re: How to stop music
#2  October 24, 2008, 02:07:49 pm
  • ******
  • I am a ghost.
    • USA
    • www.bmarquis.com
In your Statedef -2:

[State -2, Stopdamusik]
type = AssertSpecial
trigger1 = !Life
flag = nomusic

You can add this in your common1.cns, so that you do not need to update all your characters with it.
Accusare nemo se debet nisi coram Veridis
DYNOMITE
Re: How to stop music
#3  October 24, 2008, 09:41:26 pm
  • **
  • Kung Lao - 70% Almost ready to release!
hmmm.. for some reason it doesnt seem to work, btw im using mugen plus

Edit: Also where do i find my statedef -2, i dont know what u mean, and the is it the file in my data folder?

Making Stick Figures in MS Paint is Fun....
Continuing Kung Lao =]
Last Edit: October 24, 2008, 09:53:42 pm by alum2
Re: How to stop music
#4  October 24, 2008, 10:54:22 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
We had assumed you wanted to turn music off for one character or move.

If you don't want any music at all, delete the contents of your mugen\sound folder.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: How to stop music
#5  October 24, 2008, 11:00:08 pm
  • **
  • Kung Lao - 70% Almost ready to release!
no i mean like when the character is ko'ed the music stops

Making Stick Figures in MS Paint is Fun....
Continuing Kung Lao =]
Re: How to stop music
#6  October 24, 2008, 11:07:21 pm
  • *****
  • Coffee, Chocolate and MUGEN
    • Brazil
    • www.justnopoint.com/sparta/
complementing the answer of clsn2

Copy this code to notepad.


[Statedef -2]
[State -2, Stopdamusik]
type = AssertSpecial
trigger1 = !Life
flag = nomusic





save the file as "nomusic.cns"

copy the file (nomusic.cns) to each of your character's folder.

open each character .def file.

add the following line:

st# = nomusic.cns


# being any number. check how many "st#" lines the character have and add 1 more.

example:

st1=hypers.cns
st2=nakedladies.cns
st3=nomusic.cns



or, you cold add the code to the common1.cns file under the data folder. unfortunatelly, the possibility of this working under today's conditions is slim to none. adding the code to each character is eventually the best way of doing it.
Re: How to stop music
#7  October 24, 2008, 11:20:39 pm
  • **
  • Kung Lao - 70% Almost ready to release!
complementing the answer of clsn2

Copy this code to notepad.


[Statedef -2]
[State -2, Stopdamusik]
type = AssertSpecial
trigger1 = !Life
flag = nomusic





save the file as "nomusic.cns"

copy the file (nomusic.cns) to each of your character's folder.

open each character .def file.

add the following line:

st# = nomusic.cns


# being any number. check how many "st#" lines the character have and add 1 more.

example:

st1=hypers.cns
st2=nakedladies.cns
st3=nomusic.cns



or, you cold add the code to the common1.cns file under the data folder. unfortunatelly, the possibility of this working under today's conditions is slim to none. adding the code to each character is eventually the best way of doing it.
Hmm... doesnt seem to work. I did exactly what you said to do. Could it be that im using .ogg files and midi's?

Making Stick Figures in MS Paint is Fun....
Continuing Kung Lao =]
Re: How to stop music
#8  October 24, 2008, 11:29:07 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
No.

It's because the characters you're pasting tony's solution into already have a statedef -2

Search through all the .cns files until you find it. Then add the nomusic code. And please, learn what assertspecial does.

Preferably learn how code in general works while you do this. You're going to have to know something. You can't fly a plane without some training, you won't be able to just ram code in anywhere and have it work.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: How to stop music
#9  October 24, 2008, 11:34:43 pm
  • **
  • Kung Lao - 70% Almost ready to release!
A sweet, it worked. Yeah i was just reading the trigger reference thing that was linked on the assertspecial. thx for the help. Another question came to my mind. Like after the KO could i reloop the music to the beginning?

Making Stick Figures in MS Paint is Fun....
Continuing Kung Lao =]
Re: How to stop music
#10  October 24, 2008, 11:40:33 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
I don't think so. Pretty sure the nomusic just kills the volume for it. Doesn't actually stop the track.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: How to stop music
#11  October 25, 2008, 12:13:17 am
  • **
  • Kung Lao - 70% Almost ready to release!
aww that sux, but o well thx for the help

Making Stick Figures in MS Paint is Fun....
Continuing Kung Lao =]