It's too difficult.
Who calculate the damage of the RPG?
Character? enemy?
Should I create a function?