GetCanLevelUp(object, action)

Determines if an NPC henchman should level up.

int GetCanLevelUp(
    object oPC,
    object oHenchman = OBJECT_SELF
);

Parameters

oPC

Character to check against.

oHenchman

NPC to level. (Default: OBJECT_SELF)


Description

Returns TRUE if an NPC should level up according to the level of oPC. If oPC's level is greater than or equal to oHenchman's level plus 2, then returns TRUE, otherwise returns FALSE. Note that oPC does not have to be associated as the henchman's master.

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 FALSE.



Requirements

#include "nw_i0_henchman"

Version

1.29

See Also

categories: Henchmen/Familiars/Summoned Functions


 author: Charles Feduke, editor: Mistress