I have an idea I want to implement: to make it so, in order to level up in a class, a PC needs training from a NPC of higher level in that class. By using the SCRIPTVAR requirement in the cls_pres_*.2da files, I can make the training be required. However, I'd like the PCs to only be able to train if they have an unspent level-up. How do I check for that?
NPC Training for PCs
Débuté par
Androrc
, août 18 2011 09:39
#1
Posté 18 août 2011 - 09:39
#2
Posté 18 août 2011 - 11:34
If you wanted it as a starting condition you could do it like this.
int StartingConditional()
{
object oPC =GetPCSpeaker();
int nHD= GetHitDice(oPC);
int nXP = GetXP(oPC);
int bCanLevel = ( (nHD+1)*nHD*500 < nXP );
return bCanLevel;
}
#3
Posté 18 août 2011 - 03:09
int bCanLevel = ( (nHD+1)*nHD*500 < nXP );
That's some pretty snappy code there Lightfoot8, bravo!
That's some pretty snappy code there Lightfoot8, bravo!
#4
Posté 18 août 2011 - 07:57
Excellent!





Retour en haut






