YesNoOk
avatar

Change music when Boss is weak (Read 1320 times)

Started by JTDaddy17, April 11, 2017, 10:45:45 pm
Share this topic:
Change music when Boss is weak
#1  April 11, 2017, 10:45:45 pm
  • **
  • Ret-2-Go
    • USA
There's a trick that I've seen most people do with some MUGEN fighters, particularly the boss enemies, where they're low on health the music changes to something more frantic, sometimes it happens in the 2nd round of the fight and the boss gets more challenging, I know the music change is a sound file in their .snd file, I'm trying to execute this myself but have never suceeded, what are the steps to do this? I got the music in their .snd file but what's the proper code? For both low health and for round 2, saying some bosses in the project I'm making are only fought on round 1 where as some are 2 rounds.
Re: Change music when Boss is weak
#2  April 12, 2017, 12:06:29 am
  • *****
  • Shame on you!
    • USA

  • Online
You'd want both

[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = life <= 250
flag = nomusic

[State 0, PlaySnd]
type = PlaySnd
trigger1 = life <= 250
value = S718,187
channel = 5
ignorehitpause = 1

And I'm pretty sure you'll need additional triggers for the round, obviously, but also to make sure they only fire off 1 time. At least on the playsnd. You dont want it trying to play over and over because you'll just get a weird buzzing noise.
vVv Ryuko718 Updated 10/31/22 vVv
Re: Change music when Boss is weak
#3  April 12, 2017, 12:09:42 am
  • **
  • Ret-2-Go
    • USA
Well I do want it to loop too, I've seen it done without any "weird buzzing sounds"
Re: Change music when Boss is weak
#4  April 12, 2017, 12:23:59 am
  • *****
  • Shame on you!
    • USA

  • Online
then add loop to the playsnd...
The buzzing noise would be the very first noise played by the sound repeated over and over instantly. You'd get 1/60th of a second of noise repeated. It'd be a buzz or a hum or just BAD. Make sure it doesn't trigger more than 1 time.
vVv Ryuko718 Updated 10/31/22 vVv
Re: Change music when Boss is weak
#5  April 12, 2017, 01:04:51 am
  • **
  • Ret-2-Go
    • USA
TBH that's a nitpick I could hardly tell since that's the case, but thanks for the code, I'll test it out and test it out and see if it works!
Re: Change music when Boss is weak
#6  April 12, 2017, 05:29:57 pm
  • **
  • Ret-2-Go
    • USA
It sorta works but not really, the music plays but the stage's background music is playing at the same time, the nomusic code works only for a few seconds then the stage's music kicks in, any workaround this?
Re: Change music when Boss is weak
#7  April 12, 2017, 05:49:45 pm
  • avatar
  • ***
  • ̢̻̮̫̬̹̞̼̲̪̜̭͇̲͒ͪ̌ͬ̒̄̔̐͘͟ͅ ̢̋ͬ̓͗̏̇̌̑͐ͤ͗̔̊̕͏̴̣͎̟͈̬͚
    • Monaco
put nomusic at statedef -2?
http://signavatar.com/32255_s.gif

please visit my request thread. here
bad grammar is art
Re: Change music when Boss is weak
#8  April 12, 2017, 05:51:24 pm
  • **
  • Ret-2-Go
    • USA
Let me try that...
Re: Change music when Boss is weak
#9  April 12, 2017, 05:58:25 pm
  • **
  • Ret-2-Go
    • USA
Didn't work, is there a specific code I need to insert on it for statedef -2?
Re: Change music when Boss is weak
#10  April 13, 2017, 12:15:38 am
  • *****
  • Shame on you!
    • USA

  • Online
My No music code works perfect in Statedef -2. What ever triggers you added are probably messing it up.
vVv Ryuko718 Updated 10/31/22 vVv
Re: Change music when Boss is weak
#11  April 13, 2017, 12:18:24 am
  • **
  • Ret-2-Go
    • USA
Actually I figured it out, I looked at some older forums that talked about something similar to this, after testing it out it worked! Now I have this code with me that I can implement on the other bosses on my MUGEN project!