AddLevels routine

TURBU

AddLevels routine

 

Adds levels to heroes.

 

Syntax

 

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

 

Description

 

The addExp routine adds levels to heroes.  If id is -1, it calls the party.addLevels routine.  Otherwise, it adds EXP to hero #id.  If id is an invalid number, it gets redirected to hero #0.  If the new total is greater than the character's maximum level, it gets set to that level.

After adding levels, if party.levelNotify is true, the routine shows a message indicating that the hero(es) gained a level.

 

Related Topics

removeLevels routine

TRpgParty.addLevels

 

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