I'm looking for a script for XP that will add a level of variation to that stat increases a character gets at level up. The variance should either be defined as a percentage of what the character would normally receive (e.g. +/- 50% of normal) or a specific range could be added/subtracted (e.g. +/- 10 STR). This should be fairly easy to insert into the existing code, maybe even only a few lines, but I still want the program to follow the defined stat curves for the class. For example, let's say you define the variance to be up to +/-100% and going from level 1 to level 2 the program has it set that your STR would go from 10 to 15. Instead of +5 STR, you could get anywhere from +0 to +10 STR. Now, going from level 2 to level 3 lets say the program says you go from 15 to 25 STR. But also assume that you only got +2 STR at second level, so your STR is at 12 instead of the "normal" value of 15.
I DO NOT want the script to take the difference from 12 to 25 STR and calculate that you should get +13 STR (+/-100%). I want the program to think that you "should" be at 15 and you "should" be going to 25, so regardless of what STR increases you got from previous levels, your STR bonus at level up will only be +10 STR (+/-100%). If the script doesn't do this, then it will effectively keep auto-leveling itself (if you got less STR than usual at the level before, you're likely to get more STR than usual at the next level, and vice versa). Over time, this "corrective leveling" will keep your stat growth very close to the expected value. I want the chance that your stats to significantly deviate over time, if you happen to get couple really high or really low bonuses in a row.
I would think someone has done something like this already, since it seems rather boring to always get the exact same stat increases every playthrough. I have seen scripts for assigning points at level up (Diablo-style) but I can't find any scripts that deal with introducing randomness into the increases.