I can’t do damage in battles

So, I’m a beginner, I have been looking for an answer for damaging in rpg maker xp, but there was no full answer. Every time I attack the enemy, it does 0 damage. Is there anyway to fix this?
this usually indicates that you made changes to the attack skill in the database.
However XP had a slightly different mathematic than all later makers, and I vaguely remember another post explaining that if a certain actor value is zero the actor cannot do damage.

or of course the enemy might have too much defense or be immune to damage.

That are the three possible points you'll have to check, and if you don't find the cause directly I suggest making a new project and comparing the default values in the new project with your project to find the differences.
No weapon, no damage.
Default attack is calculated in a way that involves a value (ATK) only to be set by the actor's equipment since they can't levelup it. Yes, it's completely crap and it also means, characters will never get much stronger without receiving way better weapons alongside their leveling.

The same goes for defense, which is split into physical and magical, and is also only set by equipment. You may guess right from this, that characters have absolutely no defending-power (0) without it and will take about the same huge amount of damage no matter their level is 1 or 99.

STR, DEX, AGI and INT are almost useless for anything at all. RPGXP's system is so weird.

Clarification on what Andar said:
There is no skill in DB for the attack-command, this feature was invented in RPGVXAce.

~炬燵あ
Well, there's a simple way to solve this weaponless actor issue.
Use this scriptlet of mine, and be sure to follow the instructions embedded in the script comments.

EDIT

I included even more comments on the script's official thread.

Original thread: https://forums.rpgmakerweb.com/threads/i-cant-do-damage-in-battles.163847/