DoLevelUp

From NWN Lexicon



Contents

[edit] DoLevelUp(object, object)

Levels up an NPC to appropriate PC henchman level.

void DoLevelUp(
    object oPC,
    object oHenchman = OBJECT_SELF
);

[edit] Parameters

oPC

PC to level up in accordance with.

oHenchman

NPC to perform the leveling up of. (Default: OBJECT_SELF)


[edit] Description

Levels up oHenchman to 1 level less than oPC.



[edit] Remarks

All local variables kept on the henchman are not lost. These are copied to the PC before the henchman is destroyed and respawned as a new higher level henchman, then retrieved.

NOTE: x0_i0_henchman also contains a function with this exact same name and parameters. However, the x0_i0_henchman version should not be used as all it does is return OBJECT_INVALID.


[edit] Requirements

#include " nw_i0_henchman "

[edit] Version

1.29

[edit] See Also



 author: Charles Feduke, editor: Mistress
 

Personal tools
Categories