Damage numbers always display 0 / editing damage numbers? *SOLVED*

Hola.

I'm having a problem where no matter how much damage an actor does, the damage number will always display zero. Does anyone know why this is happening?

1748289820912.png


Also, I would like to know where the game generates the 'bouncing' animations for these numbers. I don't like it and would like to disable it.

Any help would be appreciated!
What battle plugins are you using?
What battle plugins are you using?

I'm currently not using any plugins that modify battle statistics. I only have plugins that change the way the game looks.

1748290493717.png

1748290515986.png
If you're not using any plugins that affect battle mechanics, it's an issue with your formula. What are you using for that?
If you're not using any plugins that affect battle mechanics, it's an issue with your formula. What are you using for that?

$gameVariables.setValue(13, 1); a.atk * 4 - b.def * 2

The game variable that's being set is used to identify the skill for a common event unrelated to this issue. I thought I may have been using improper syntax for the actual formula, but I edited it and it worked so idk.
I know you've said you only have display-related plugins, but just humour me here: if you disable all plugins, do you still have the issue?
I know you've said you only have display-related plugins, but just humour me here: if you disable all plugins, do you still have the issue?

Just tried it and it seems to be a plugin. Fun.

Gonna go through each one and see which is causing it. Do you know where the game happens to render the attack numbers? im trying to disable the bouncing animation once I get this fixed.

Just tried it and it seems to be a plugin. Fun.

Gonna go through each one and see which is causing it. Do you know where the game happens to render the attack numbers? im trying to disable the bouncing animation once I get this fixed.

Found it, its this one, which makes sense bc it was made for MV I believe.
1748291896692.png


In the meat of the plugin there's this:
1748292111174.png


For future reference, just delete this section and it'll fix this issue.
Just tried it and it seems to be a plugin. Fun.

Gonna go through each one and see which is causing it. Do you know where the game happens to render the attack numbers? im trying to disable the bouncing animation once I get this fixed.
Look up Sprite_Damage in rmmz_sprites.js
Look up Sprite_Damage in rmmz_sprites.js

Gotcha.

General question: when editing rpgmaker's core js files, It would be wize to save the changes as a plugin so it doesn't reset upon updates to rpgmaker correct? That wouldnt be good if that were the case.

Would saving them as plugins be as simple as copying the code into a blank js file and it overriding the base code?

Totally unrelated, but Im going to need to know this for editing the damage numbers.

Thank you!
For future reference, just delete this section and it'll fix this issue.
I would never delete it but rather rule out in case you need it later,
or modify the section.

ruling out a block is with /* and end with */

this way, its a comment and safer.
I would never delete it but rather rule out in case you need it later,
or modify the section.

ruling out a block is with /* and end with */

this way, its a comment and safer.
So true.

1748292858142.png


Good catch
Gotcha.

General question: when editing rpgmaker's core js files, It would be wize to save the changes as a plugin so it doesn't reset upon updates to rpgmaker correct? That wouldnt be good if that were the case.

Would saving them as plugins be as simple as copying the code into a blank js file and it overriding the base code?

Totally unrelated, but Im going to need to know this for editing the damage numbers.

Thank you!
Correct. Editing the base files is ill-advised because they get reverted by updates to the engine, and since MZ is still actively being updated the chances of that eventually happening are high.

Also correct: putting your override functions into a blank js file, saving it, and installing it in your plugin manager is all you really need to do.
Correct. Editing the base files is ill-advised because they get reverted by updates to the engine, and since MZ is still actively being updated the chances of that eventually happening are high.

Also correct: putting your override functions into a blank js file, saving it, and installing it in your plugin manager is all you really need to do.

Could I theoretically just copy all the games base js files, rename them, then add them to js folder? That way I could just edit the copies instead of the base files. Would that cause trouble or would it just override the information.
Could I theoretically just copy all the games base js files, rename them, then add them to js folder? That way I could just edit the copies instead of the base files. Would that cause trouble or would it just override the information.
I mean...theoretically you could, but then you'd just redundantly be redefining a bunch of functions with their exact current code. I would much rather just make a plugin with only the things you want to change.
I mean...theoretically you could, but then you'd just redundantly be redefining a bunch of functions with their exact current code. I would much rather just make a plugin with only the things you want to change.

Ahh, gotcha.

Im just really lazy and dont want to go back and find all the changes ive made to the base code and put them into plugins lol. I just changed the window sizes of most menu's.

Could I just save a copy of my edited core files and if they were to be reset, just use the saved versions?
Ahh, gotcha.

Im just really lazy and dont want to go back and find all the changes ive made to the base code and put them into plugins lol. I just changed the window sizes of most menu's.

Could I just save a copy of my edited core files and if they were to be reset, just use the saved versions?
Yeah, you totally could.
Yeah, you totally could.

Cool, thank you!

Original thread: https://forums.rpgmakerweb.com/threads/damage-numbers-always-display-0-editing-damage-numbers-solved.177940/