TRpgHero.takeDamage
Class
Syntax
function takeDamage(power: word; defense, mDefense, variance: byte): word;
Description
The takeDamage method deals damage to a hero based on power and variance. Defense and mDefense signify how much the hero is capable of using his defense and mind statistics to defend against this attack. The return value is how much damage the hero actually took.
This method is not yet fully implemented. It currently simply subtracts a number of hitpoints equal to power from the hero's hp property.
Related topics
This help file was created with the free trial version of HelpScribble.