15 lines
545 B
Plaintext
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;
|
|
}
|