RemoveExp routine
Removes experience from heroes.
Syntax
procedure removeExp(const id: smallint; number: integer);
Description
The removeExp routine removes EXP from heroes. If id is -1, it calls the party.removeExp routine. Otherwise, it removes EXP from hero #id. If id is an invalid number, it gets redirected to hero #0. If a character's new EXP value drops below 0, it gets set to 0.
After subtracting EXP, if party.levelNotify is true, the routine shows a message if any heroes lost a level.
Related Topics
This help file was created with the free trial version of HelpScribble.