RemoveLevels routine

TURBU

RemoveLevels routine

 

Removes levels from 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 level is less than 1, it gets set to 1.

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

 

Related Topics

addLevels routine

TRpgParty.removeLevels

 

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