TRpgParty.addLevels

TURBU

TRpgParty.addLevels

 

Class

TRpgParty

 

Syntax

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

 

Description

The addLevels method adds levels to the party.  If id is -1, it adds number exp to every current member of the party.  Otherwise, it adds number levels to the hero occupying slot #id.  If this would raise a character's level above the maximum level, it stays at the maximum level.  The character's EXP is changed to reflect their new level, and any new skills earned that level are awarded.

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.addExp

TRpgParty.removeLevels

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