Hello!
If your result is higher then the enemy's, you subtract the difference from the enemy's vitality.
If the enemy result is higher than yours, you subtract the difference from your vitality.
It's in pages 07-08 from the Basic Guide.
For example
Your result is 6 and enemy's result is 4 = 6-4 = 2, then you hit the enemy's vitality reducing 2 points from it.
or...
Your result is 4 and enemy's result is 6 = 6-4 = 2, then the enemy hits you reducing 2 points from your vitality.
Hope it helped, thanks for your interest in my game!