YesNoOk
avatar

Any way to have Varset hitsound be consistent when using simul mode? (Read 6739 times)

Started by jweezy34, May 13, 2025, 09:57:44 pm
Share this topic:
Any way to have Varset hitsound be consistent when using simul mode?
#1  May 13, 2025, 09:57:44 pm
  • avatar
  • ***
  • "I'm not going to Hell alone"
Basically I'm helping on a game and there are metal characters right, when they get hit I want that metal hitsound to play. I got it working with Varset but the issue is when its more than one enemy on screen thats not a robot, varset triggers for everyone when its supposed to just do it for that one character. Is there a way to have varset work properly for such things or do you suggest I put the hitsounds in the character getting hit???

The code I'm using and put in statedef -2
[state -2, metal]
type = varset
trigger1 = enemynear, name = "whatever"
trigger2 = enemynear, name = "whatever"
trigger3 = enemynear, name = "whatever"
var(49) =  10


EDIT: Can mods move this I THINK i put this in the wrong section???
I was the Perfect warrior! Cold and Ruthless! I lived by my strength alone! Uninhibited by foolish emotion!
Last Edit: May 13, 2025, 10:02:07 pm by jweezy34
Re: Any way to have Varset hitsound be consistent when using simul mode?
#2  May 20, 2025, 12:10:59 pm
  • avatar
  • ***
    • https://sites.google.com/site/mgmurrow/
If this is the only varset code you are using then once the enemy with that specific name is near the varset activates. But from that code it never turns off so every character now has the metal blocking sound. You have to put a trigger that turns the varset off if the characters with that specific name isn’t the one blocking.

Hope this helps

MGMURROW
Re: Any way to have Varset hitsound be consistent when using simul mode?
#3  May 21, 2025, 05:16:02 pm
  • avatar
  • ***
  • "I'm not going to Hell alone"
If this is the only varset code you are using then once the enemy with that specific name is near the varset activates. But from that code it never turns off so every character now has the metal blocking sound. You have to put a trigger that turns the varset off if the characters with that specific name isn’t the one blocking.

Hope this helps

MGMURROW
Thanks for the response. Hmmm ok ok so a trigger that acts like a stopsnd essentially? I read somewhere but can't remember where, that a code with type = varadd and like time > 0 as a trigger or something would disables it somewhat. Apologies if its all jumbled getting my bearing back with  mugen lol

I was the Perfect warrior! Cold and Ruthless! I lived by my strength alone! Uninhibited by foolish emotion!