Lankhmar_PRC8/_module/nss/hench_checklevel.nss
Jaysyn904 ebc0c6a9b2 Initial commit
Initial commit [v9.7]
2025-04-03 12:54:47 -04:00

15 lines
545 B
Plaintext

// Will check to see if henchperson needs to level up.
// Copied from Valine's ADWR.
int StartingConditional()
{
object oPC = GetMaster();
int master_level, hench_level;
//Check if henchperson gains the ability to level up
master_level = GetLevelByPosition (1, oPC) + GetLevelByPosition (2, oPC) + GetLevelByPosition (3, oPC);
hench_level = GetLevelByPosition (1, OBJECT_SELF) + GetLevelByPosition (2, OBJECT_SELF) + GetLevelByPosition (3, OBJECT_SELF);
if (master_level > hench_level) return TRUE;
return FALSE;
}