MV How To Make Damage Numbers Appear Over The HUD?

Hello! In my game I am using the front view option for battles and I am also using the SRD HUD Maker plugin to create the HUD. Here is what it currently looks like:
Spoiler: Battle Screen
1683310283788.png
So far everything is working how I would like except for how party member damage is displayed. The front view setting only causes the screen to shake and only indicate the damage in the battle log like in the image above, this makes it hard to notice who took damage during battle. What I would like to happen is for damage numbers to appear in the center of the character portraits when they take damage to better show who is being attacked. My HUD looks similar to the game OMORI by using portraits to show your party I would like it to act the same in regards to displaying damage to your party members.

I have tried looking for a solution to this before and the closest I have found is to use the side view battle system and place the battler sprites behind the portraits to allow for animations and the numbers to appear. There is a problem with this method because both animations and the number pop ups are placed behind the HUD so they can't be seen.

What I want to know is if there are any ways to change the damage numbers to be displayed over top of the HUD, and if there is a layer system for these UI elements that I can alter. Maybe the HUD Maker plugin can do something like this? Any advice would be appreciated!
Have you tried changing the value of the layer field?
Have you tried changing the value of the layer field?
I have tried that by lowering the layers of the HUD elements but no matter how low I make them the numbers will always appear below the portraits unfortunately.
I have tried that by lowering the layers of the HUD elements but no matter how low I make them the numbers will always appear below the portraits unfortunately.
I just tried it and if the number layer is a higher value than the image layer it will be on top.
I just tried it and if the number layer is a higher value than the image layer it will be on top.
Oh I think your talking about a number made in the HUD Maker, like the HP in the example image you posted. What I'm trying to change is the damage numbers that appear when you attack an enemy and when an enemy attacks the party in side view. These seem to be separate in the system and will always appear below UI stuff.
These seem to be separate in the system and will always appear below UI stuff.
Yes, the HUD is designed to be on a layer above everything on the game screen, and this is the case with other HUD plugins. What you could do is make make HUD text elements variables that reference the damage numbers.
Yes, the HUD is designed to be on a layer above everything on the game screen, and this is the case with other HUD plugins. What you could do is make make HUD text elements variables that reference the damage numbers.
Ah I see, is there any way to change those layers so the numbers are above? If that's not possible I would probably add an element to indicate an attack instead.

If I were to add a text element that uses damage numbers do you know what script call I would use to get that information and what condition I could use so it only appears when a party member is being attacked?
Ah I see, is there any way to change those layers so the numbers are above? If that's not possible I would probably add an element to indicate an attack instead.
Either the numbers need to be a HUD element or you take the pictures out of the HUD and use the show picture command/use a picture plugin
If I were to add a text element that uses damage numbers do you know what script call I would use to get that information and what condition I could use so it only appears when a party member is being attacked?
I don't know the script call to get damage numbers so you'll have to look that up yourself, but there is a Condition field in SRD HUD Maker that lets you put variable display conditions so the HUD element only displays if a condition is true (i.e. partyMemberDamaged == true).
I think I'll have to use a UI element solution for taking damage because of the way I'm using the HUD maker but thanks for the advice!

My plan right now will be to either find out how to get the damage numbers and put it into a text box or flash an image over the portraits to indicate an attack. I'm not too sure how to write in more advanced conditions though so I'd like to ask if you know of a condition that would make it so these elements only appear if the party member is being damaged. I feel like that's really specific though so if not I can keep researching for it. Thanks for the help on this problem!
I'd like to ask if you know of a condition that would make it so these elements only appear if the party member is being damaged.
You could try something like:
Code:
BattleManager._subject==your party member && BattleManager._subject.result() && BattleManager._subject.result().isHit()
where "your party member" is whatever reference you're using to that actor (from $gameActors or $gameParty or whatever).
You could try something like:
Code:
BattleManager._subject==your party member && BattleManager._subject.result() && BattleManager._subject.result().isHit()
where "your party member" is whatever reference you're using to that actor (from $gameActors or $gameParty or whatever).
I just tested it and unfortunately it doesn't work quite right. I set it to react to $gameParty.members()[0] but when the actor takes damage the test image I'm using doesn't appear. For some reason it only appears when the actor guards and gains TP from it, I tested HP and MP healing items but that doesn't make it appear. I think it's close to what I'm looking for though because it does appear for a second when using the guard command, thanks for the assistance!
Because I'm a dummy 😛 You want targets, not subject. Change the beginning to:
Code:
BattleManager._targets && BattleManager._targets.includes($gameParty.members()[0])
then the rest wit hthe result is the same.
Because I'm a dummy 😛 You want targets, not subject. Change the beginning to:
Code:
BattleManager._targets && BattleManager._targets.includes($gameParty.members()[0])
then the rest wit hthe result is the same.
No worries, I'm glad for the code help!
Sorry I'm a little confused. I put in the new code a few different ways but they don't seem to be working, I think its because I inserted the new code wrong. Could you send the full line please to make sure I'm doing it right?
Code:
BattleManager._targets && BattleManager._targets[0]==$gameParty.members()[0] && BattleManager._targets[0].result() && BattleManager._targets[0].result().isHit()

If that doesn't work, I give up...the battle manager gets too screwy for my feeble mind 😛

It's also worth hitting F12 and looking at the Console tab to see if there are any errors.
No problem! I appreciate this effort!
It looks like you posted while I was editing - check out the code above.
Code:
BattleManager._targets && BattleManager._targets[0]==$gameParty.members()[0] && BattleManager._targets[0].result() && BattleManager._targets[0].result().isHit()

If that doesn't work, I give up...the battle manager gets too screwy for my feeble mind 😛

It's also worth hitting F12 and looking at the Console tab to see if there are any errors.
I tested this one out and it works better but still has a few issues. The test image seems to appear whenever something happens to the actor like healing HP and guarding but does also appear when they take damage, another problem is when they take damage the image stays on screen until the next actor takes their turn. I checked the console and there don't seem to be any errors at least!

Thanks a lot for the help though! This is a pretty specific condition to make and I'm sure it's not easy. I'll try fiddling with it some more and see if I can research some ways to find a solution.
Okay, let's try this.
Code:
BattleManager._phase=="action" && BattleManager._targets[0]!=BattleManager._subject && BattleManager._targets[0]==$gameParty.members()[0] && BattleManager._targets[0].result() && BattleManager._targets[0].result().isHit() && BattleManager._targets[0].result().hpDamage>0

At this point, some of those conditions might be unnecessary, but...I'll just be happy if it works 🤣
Your determination is admirable!
I'm very sorry but there seems to be an issue with HUD maker.
When I enter the code the condition bar turns into this:
1683330029609.png

It cuts off after the == in the code. The property menu normally looks like this:
1683330084162.png


I'm not sure what happened with it?? This kind of command may not be possible with this plugin ;_;
Your determination is admirable!
I'm very sorry but there seems to be an issue with HUD maker.
When I enter the code the condition bar turns into this:
View attachment 261066
It cuts off after the == in the code. The property menu normally looks like this:
View attachment 261067

I'm not sure what happened with it?? This kind of command may not be possible with this plugin ;_;
Maybe you put in so many conditions it broke the max field length

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-damage-numbers-appear-over-the-hud.157256/