Just a general idea here, no party support yet, does it look like it can work?
int nHD = GetHitDice(object oPlayer);
int nCR = GetChallengeRating(object oCreature);
int nLowerCap = 1
int nCRadj = nHD - nCR;
if(nCRadj > 5)
{
nLowerCap = 0;
}
else if(nCRadj < -5)
{
nCRadj = -5;
nCR = nHD + 4;
}
int nCRadj = nCRadj * 5
int nBaseXP = (nCR * 1000);
int nNeededCR = (nHD*2)+45;
int nXPprize = (nBaseXP / (nNeededCR + nCRadj)) * nLowerCap;
nXPprize is the amount of xp the player would get for a kill
Would I use these to start working out party xp?
object GetFactionStrongestMember(object oFactionMember=OBJECT_SELF, int bMustBeVisible=TRUE)
object GetFactionWeakestMember(object oFactionMember=OBJECT_SELF, int bMustBeVisible=TRUE)

