TRpgParty.removeLevels

TURBU

TRpgParty.removeLevels

 

Class

TRpgParty

 

Syntax

procedure removeLevels(const id: smallint; number: byte);

 

Description

The removeLevels method removes levels from the party.  If id is -1, it takes number levels from every current member of the party.  Otherwise, it adds number levels to the hero occupying slot #id.  If this would reduce a character's level below 1, it stays at 1.  The character's EXP is changed to reflect their new level, and any skills earned at the level(s) lost are removed.

If the specified slot is invalid or empty, it gets redirected to hero #0.

This method is not yet fully implemented.  Changing levels does not yet adjust a hero's statistics.

 

Related topics

TRpgParty.removeExp

TRpgParty.addLevels

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