Talk:Level up script

This isn't working for me, and I have exploited every possible way this code can be used, created and modified.

If you are curious: void main {    object oCreature = GetLastPCRest; int nCurrentL = GetHitDice(oCreature); int nLevelMax = 20; ForceRest(oCreature); while(nCurrentL < nLevelMax) {        int nXP = ((nLevelMax*(nLevelMax - 1))/2)*1000; SetXP(oCreature,nXP); } } That was my concluded code, but it's like it wasn't even acknowledging my script.Is there a start code, like a main to say "start up?"

ZenWarko (talk) 18:26, July 3, 2016 (UTC) Sincerely Zen