Visual Cues for Damage states?

Is there a way to make it so an applied state that damages you outside of battle will give a visual cue to the player that they are taking damage, so for every instance their hp decreases, the screen will flash red or maybe a sound will play?

-Thanks
If you want to do that without using scripts you could do that in a parallel process event. In that case your state might not inflict any damage and everything would be handled in the parallel process event (animation and damage). Otherwise you need to use a script to handle that.

The obvious advantage of handling everything in the parallel process event is that you can have a single conditional branch for each state that deals damage out of combat, and use the Show Animation command together with the Change HP command in the said conditional branch.
This is what I have so far, I'm trying to make it so I'm damaged once every 5 steps. The problem right now seems to be that if I take 5 steps and don't move, the game parallel process seems to get stuck on the dmg, flash, and sound and happens a million times a minute until I die. (in the picture it's +25 but I fixed it.) I then have a command that subtracts 5 steps, setting me back to 0 steps. But that doesn't seem to work, neither does using the Set = 0 rather than subtract. If I take 5 steps and keep moving, I won't get damaged ever again, however. sdfkb.PNG
Make a test creating a contidional call script box:

To determine if the player is walking
$game_player.moving?

To determine if the player is running
$game_player.dash?

Edit: Also creates a variable without calling the step count, instead, it creates a variable that adds 1 (1 point) each step and when it reaches 5 it resets
creates a variable that adds 1 (1 point) each step
I'm sorry but I'm not sure how to do that.
I'm sorry but I'm not sure how to do that.
For example In the parallel process:
If [Actor1] is [Downing] inflited
1) if $game_player.moving?
Control Variable[your variable]+=1
else (if you like)
if $game_player.dash?
Control Variable[your variable]+=1
end
2) if [your variable] == 5
do stuff
Control Variable[Your variable] = 0 #Reset the variable
end.
Ooooooh. Thank you so much, you're a huge help. And you actually gave me an idea of how to make it do damage based on time instead of steps as well! Which would make more sense in my case. Everything works perfectly.

-Thanks
@TicklishWasabi
If your query is fully resolved, please Report your post and ask for the thread to be closed. Mods might not see a post, but they will see a Report.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/visual-cues-for-damage-states.112439/