Turn null damage (0 damage) into a miss or evade with a sound effect

Hi,


This is something which has been annoying me for a while now.


My game does not use agility to determine hits and misses. Instead, the other parameters do. For example; if the attacker’s ATK is high enough, and the target’s DEF is low enough, there will be a guaranteed hit. If not, then the target takes no damage.


What has been annoying me for a while now, is that I am unable to signal targets taking 0 damage to the player. For example; a miss is signaled to the player through the sound effect section in the system tab in the editor but I have not been able to figure out a way to do the same when targets take 0 damage.


I have been unable to figure out a way to fix this. I figured I might need a script for this, but if there is some other way around this that I haven’t thought about, I would really appreciate it if someone could help me out here.


In summary, how do I turn an attack dealing null damage into a miss or evade to the player?


Thanks.
Isnt it an little confusing for the Player if they hear a miss sound but all they need is an bigger Hammer? I would rise agility get small pointy weapons and than get pretty pissed when i figured out, that I actually do hit, but only have too weak dmg. And Agility normally does not affect hit rates, but only the attack order. Hit and miss rates have there own parameters.

To you´re Problem, you´re right. Since your attack and dmg applies even before you can activate the common event, there is no elegant way to fix this without a script i guess. Only idea I have is to create an fake pre-attack skill which compares your atk with your enemies deff and if your atk is too low it gives you an 0% hitchance state this turn. If not, it uses the force player command to activate the real skill.

But its again not elegant. I dont exactly know how to target the exact target with the force player command you have choosen with the first one. And second if you use any combat interface script it might look like you´re attacking twice.
The game plays like a card game. For a regular RPG then yes, it wouldn't make sense.

Yeah, I couldn't figure out a way around with events. I also already have a lot of events running in battles that would probably slow down the game.

Thanks for your reply, I'll try the script section.
Moderator note: Closing this as a new thread has been opened
Just a heads up for the future. Please do not post a new thread. Instead, Report your post and ask for the thread to be moved.

Original thread: https://forums.rpgmakerweb.com/threads/turn-null-damage-0-damage-into-a-miss-or-evade-with-a-sound-effect.115526/