Play a sound when "Action failed" in battle?

ScorchedGround

Blizzards most disappointed fan
Veteran
Joined
Apr 12, 2020
Messages
204
Reaction score
317
First Language
German
Primarily Uses
RMMV
Is it possible to play a sound when an action fails in battle?
There are a few ways that in battle an action can fail and not be executed at all.
You know, when a skill has a success rate of <100% and it fails for example.

However, no sound is played and only a message appears in the battle log.

I'd like to play a sound whenever an action fails, just like when you miss or the enemy evades.
 

Moon_Haven

Veteran
Veteran
Joined
May 5, 2020
Messages
78
Reaction score
32
First Language
English
Primarily Uses
RMMV
Are you, by any chance, using Yanfly plugins? If so, that would be quite easy to do with action sequence:

Code:
<target action>
    action effect
    if target.result().missed || target.result().evaded
        play soundMissed
    else
        play animation
    end
</target action>
 

ScorchedGround

Blizzards most disappointed fan
Veteran
Joined
Apr 12, 2020
Messages
204
Reaction score
317
First Language
German
Primarily Uses
RMMV
I guess I should also explain a little more;
All of my skills actually have a success rate of 100%.

However, some time ago, I made a thread asking if I could make magical attack be affected by the user's hitrate. Here's the thread

This worked nicely. But as a result of changing the code like that, missing with a magical attack due to your hitrate caused the attack not to miss, but rather "fail".

And to get to the point, I basically want to make the "action failed" a substitute for missing with a magical attack, hence why I need the sound. So if possible I would like to make that a global change so that I don't have to change each and every skill and/or battler.

I am using some Yanfly plugins, but not all of them (most importantly, I don't use BattleEngineCore)
 
Last edited:

ScorchedGround

Blizzards most disappointed fan
Veteran
Joined
Apr 12, 2020
Messages
204
Reaction score
317
First Language
German
Primarily Uses
RMMV

ScorchedGround

Blizzards most disappointed fan
Veteran
Joined
Apr 12, 2020
Messages
204
Reaction score
317
First Language
German
Primarily Uses
RMMV

Finnuval

World (his)story builder and barrel of ideas
Veteran
Joined
Aug 1, 2018
Messages
1,868
Reaction score
6,165
First Language
Dutch
Primarily Uses
RMMV
Would that one plugin of yours help here @MushroomCake28? Im not sure so...
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,430
Reaction score
4,486
First Language
English
Primarily Uses
RMMV
@Finnuval Nope. My only audio plugin currently is to change the recurring sound effects mid game (like cursor, buzzer, etc.). It doesn't add system sound effects unfortunately.
 

Finnuval

World (his)story builder and barrel of ideas
Veteran
Joined
Aug 1, 2018
Messages
1,868
Reaction score
6,165
First Language
Dutch
Primarily Uses
RMMV
@Finnuval Nope. My only audio plugin currently is to change the recurring sound effects mid game (like cursor, buzzer, etc.). It doesn't add system sound effects unfortunately.
Okay, wasn't sure so tagging you was easiest xD
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

I'm sure this question's been asked before, but I can't find an answer: is there any way to run the Steam version of RPGMaker *without* being logged into Steam? It's a frustrating extra step sometimes.
Been seeing bright flashes in the sky for a while, and thought it was my eyes playing tricks on me. Nope! Lightning. Now it's raining heavily. Seeing lightning, but not hearing thunder, is weird.
Small Update for myself:
>Two Dungeon maps are done, Dungeon 3 is in progress. Dungeon 4 needs work.
>4 characters set up out of a possible 6 but those come later.
>Hub area needs work.
>Game completion..., 20-25% maybe?
Does anyone else find writing dialogue hard?
You guys want more tutorials? Well not only are we doing new video tutorials with Driftwood, we've also brought in two contributing authors for the blog to get a new tutorial every week! First one here from @Avery
https://blog.rpgmakerweb.com/tutorials/tutorial-mapping-interior/

Next week we'll get something from @hiddenone

Forum statistics

Threads
100,712
Messages
978,633
Members
132,325
Latest member
ighjku
Top