LevelUpHenchman

The   NWScript command causes the specified object (which must be a creature) to perform an automatic level-up process. The command is named for its initial purpose, leveling the player's henchman in the Shadows of Undrentide campaign. However, it can be used for any creature &mdash; including player characters, as is done in one case at the start of the Hordes of the Underdark campaign. (Player characters probably need to be given the experience points for the level first; non-player characters would have no need as they do not track experience points.)

This command allows specifying the class to be gained, as well as the package to be used for choosing skills, feats, etc. This allows variability in how creatures level, as a different class or package could be specified for each level (still within the limit of three classes per creature). However, when dealing with creatures created in the Toolset,  tends to only work if the creature was created with a single hit die. There may be a way to create a higher-level creature that will work with this command, but it is generally not worth the trouble as the same result could be achieved by calling  when the creature spawns.

Definition
This command will return the level the creature now is, unless the level-up failed for some reason. In the latter case, 0 is returned.