Hey, basicly, I have some events in my game that are supposed to deal damage based on a variable. That works fine using the change HP events for both allies and enemies, but that way you dont get the damage number. I can get the animation, sound, but I cant get the damage number pupup, not in the script list i found either.
Use script to show damage numbers.
RPG Maker MV Supportnever tried it, but you should be able to run the call to force a popup and catch the current result before it gets cleared if you run it immediately after the change hp command.
try this and it should run a popup on all enemies and actors whose hp changed. youre going to have to check to see if it causes any visual issues though, such as repeating a popup for the last hit taken. Im not sure of all the places the result gets cleared offhand
try this and it should run a popup on all enemies and actors whose hp changed. youre going to have to check to see if it causes any visual issues though, such as repeating a popup for the last hit taken. Im not sure of all the places the result gets cleared offhand
Code:
$gameTroop.members().concat($gameParty.members()).forEach(m => {if (m.result().hpAffected) m.startDamagePopup()});
Yes it works! Thank you so, so much. I was so afraid i would have to make a plugin. It works perfectly, it even shows the proper text for healing! I did not notice any visual glitches so far too. Many thanks.
Original thread: https://forums.rpgmakerweb.com/threads/use-script-to-show-damage-numbers.183713/