YesNoOk
avatar

Sound with warning of First Attack / Counter / Danger (Read 56453 times)

Started by testament, August 14, 2023, 02:06:50 am
Share this topic:
Sound with warning of First Attack / Counter / Danger
#1  August 14, 2023, 02:06:50 am
  • **
    • sites.google.com/view/mugenmultiverse
How can I put a sound accompanying lifebar notifications, such as First Attack, Danger, Counter ....
I know it's possible to do this through the action.zss, but I'm not getting it.
I'm trying these codes:
Code:
#===============================================================================
# Global states (not halted by Pause/SuperPause, no helper limitations)
#===============================================================================
[StateDef -4]

if !const(Default.Enable.Action) || teamSide = 0 {
# Do nothing, global code disabled locally or executed by stage
} else if isHelper {
# Parry
ignoreHitPause if helperName = "Parry Detection" && moveHit = 1 {
lifebarAction{spr: const(MsgParry), 0}
}
} else if roundState = 0 {
mapSet{map: "_iksys_actionFirstAttackFlag"; value: 0}
mapSet{map: "_iksys_actionMoveCounteredFlag"; value: 0}
mapSet{map: "_iksys_actionCanRecoverFlag"; value: 0}
mapSet{map: "_iksys_actionMoveReversedFlag"; value: 0}
mapSet{map: "_iksys_actionDangerFlag"; value: 0}
mapSet{map: "_iksys_actionDizzyFlag"; value: 0}
mapSet{map: "_iksys_actionGuardBreak"; value: 0}
mapSet{map: "_iksys_actionDownFlag"; value: 0}
mapSet{map: "_iksys_actionComboCount"; value: 0}
mapSet{map: "_iksys_actionWinFlag"; value: 0}
} else if roundState >= 2 {

# First Attack
let ret = call FirstAttack();
if $ret {
lifebarAction{spr: const(MsgFirstAttack), 0; top: 1}

# First Attack
if firstAttack && map(_iksys_actionFirstAttackFlag) = 0
{lifebarAction{spr: const(MsgFirstAttack), 0}
mapSet{map: "_iksys_actionFirstAttackFlag"; value: 1}
I try this
"if $ret {
      playSnd{value: Fight22, 1; channel:-1; volumescale:200; pan:0;  abspan:0 }"


but not working
Re: Sound with warning of First Attack / Counter / Danger
#2  August 14, 2023, 02:25:18 am
  • ****
    • Peru
Hello.

Maybe you can use ADD004 made by Shiyo Kakuge, it has a lot of features, and yes, there is sound the texts that your are looking for. I hope this helps you.
Re: Sound with warning of First Attack / Counter / Danger
#3  August 14, 2023, 02:59:18 am
  • **
    • sites.google.com/view/mugenmultiverse
Thank you for your help.
I know ADD004, but I would like to do it another way. By the way I'm going to have to use the same ADD004.

There is a way to do it directly through Ikemen, in action.zss I don't know, I wanted to learn.
Re: Sound with warning of First Attack / Counter / Danger
#4  August 14, 2023, 04:54:01 am
  • ******
  • 90's Kawaii
  • :thinking:
    • Guatemala
"Fight22" is not a valid sound bank, unless you're calling it from your own common files, in which case double check if they are properly included in config.json.

You probably meant "F22, 1".
Re: Sound with warning of First Attack / Counter / Danger
#5  August 14, 2023, 01:23:45 pm
  • **
    • sites.google.com/view/mugenmultiverse
"Fight22" is not a valid sound bank, unless you're calling it from your own common files, in which case double check if they are properly included in config.json.

You probably meant "F22, 1".
Thanks
in ikemen, the F doesn't work. It is giving invalid path.
I found a screenpack that has it, but mine doesn't work. The problem with ADD004 is that I have to update the chars too