These level up scripts are scripts that allow advancing player characters (PCs) based upon levels instead of experience points. The basis for these scripts is the formula converting a level to the number of experience points required for that level: (level * (level - 1) / 2) * 1000 For example, a PC earns level 5 upon gaining (5*4/2)*1000 = 10,000 experience points. void main() { object oPC = GetLastUsedBy(); int nCurrentLevel = GetHitDice(oPC); int nGoalXP = (nCurrentLevel + 1) * nCurrentLevel * 500; if ( GetXP(oPC) < nGoalXP ) SetXP(oPC,nGoalXP); }
| Graph IRI | Count |
|---|---|
| http://dbkwik.webdatacommons.org | 7 |