Posted by Khaevil at 2011-08-25 13:31:29 Voted 3.50 on 08/25/11
You actually divide by 2 then multiple by 1000? Come on!
A more subtle problem is that it won't work if someone does any customization, like adds new races with ECLs, changes the ECLs, or changes the XP progression. That info is in 2DAs allowing for easy customization, so let's get it from the source instead of using local constants.
Accessing 2DA data is likely to be much slower, but, it won't cause bugs when customization occurs and this isn't a script that is going to be called often anyway.
Yeah I know that's a whopper of a line. But since nothing is ever used more than once except oPC there's not functional reason to involve additional variables.
You must be Logged In to post comments in this section.
10 - A Masterpiece, Genuinely Groundbreaking 9 - Outstanding, a Must Have 8 - Excellent, Recommended to Anyone 7 - Very Good, Deserves a Look 6 - Good, Qualified Recommendation 5 - Fair, Solid yet Unremarkable 4 - Some Merit, Requires Improvements 3 - Poor Execution, Potential Unrealized 2 - Very Little Appeal 1 - Not Recommended to Anyone