If the game has a hidden opportunity to meet with one of the avatars of the Gods, I wonder how much HP he will have if the player decides to attack
I'd ask why I player would, but figure I'd already know the answer.....
4k easy
I'm not sure, honestly. But even the 5e HP levels of gods are pretty insane.
All gods (and their avatars) possess divine ranks (DR). Quasi-deities, which includes all avatars, demigods, titans, and vestiges as well as the likes of True Dragon Ascendants, have a DR of 0. Stronger deities have higher DR, with powerfule greater deities having a DR of upto 20, and supreme deities (like Ao) going even beyond that. Letting aside all additional bonuses and spells gods get in combat, let us look at raw HP numbers.
1. All gods get max HP for all their hit dice. And gods usually have a character level in the range 30-50 split between various classes. So that's already hundreds of HP. Considering a god with only d8 classes, that's 240-400 HP.
2. HP bonus from constitution modifiers is multiplied by (DR+1).
3. All gods have a minimum of 17 and a maximum of 30 to all stats, with higher DR gods getting massive ASIs. For a powerful greater deity with DR 20, we can assume they get 30 CON, giving them an HP bonus of 210.
That means a powerful greater deity with only rogue-like classes probably ends up with around 610 HP.
Of course, gods are also immune to most non-magical damage. Gods with a DR of at least 1 are also resistant to ALL forms of damage.
TLDR: it would be a slug fest, if you could last that long despite all the other feats and advantages deities get (such as a speed bonus of 15-50 ft depending on DR).