Description
Each character (NPCs&Player) need a counter that sums the potential damage. Meaning every time a character starts an action that can inflect damage it should add it's potential to that counter. The counter will be reset every n frames.
Why
This way AIs can learn why damage is dealt to them. Otherwise they will receive damage but can not learn why this is happening.
Healing
When causing potential damage increase the counter healing should decrease it.
Description
Each character (NPCs&Player) need a counter that sums the potential damage. Meaning every time a character starts an action that can inflect damage it should add it's potential to that counter. The counter will be reset every
nframes.Why
This way AIs can learn why damage is dealt to them. Otherwise they will receive damage but can not learn why this is happening.
Healing
When causing potential damage increase the counter healing should decrease it.