TRpgHero.takeDamage

TURBU

TRpgHero.takeDamage

 

Class

TRpgHero

 

Syntax

function takeDamage(power: word; defense, mDefense, variance: byte): word;

 

Description

The takeDamage method deals damage to a hero based on power and varianceDefense 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

TRpgHero Properties

This help file was created with the free trial version of HelpScribble.