User:Basilisk/Template/kpts

=Usage=

This is a fun little thing I made mostly to learn some beginner's variables and math functions. It should be pretty accurate for all levels, provided the values put in are accurate.

Returns a plain decimal number
 * Example: 123.4

=Parameters=

storykp

 * This is the skill points you have earned from moving through the story. It won't be more than about 158.
 * To determine yours, use these relatively simple formulas:


 * TOTAL XP / 15000 = x


 * then:


 * TOTAL SKILL POINTS - x = STORY SKILL POINTS


 * You can get your total skill points from the H menu.


 * Example:
 * [[Image:User_Basilisk_h_menu_kpts.jpg|600px]]


 * 2,709,580 (is total xp) / 15000 =  (is x)
 * 289 (is total skill points) - 181 =  (is story skill points)


 * So, set storykp equal to story skill points.
 * ...and there we go. Some mild algebra didn't hurt too bad, did it?

allxp

 * This is just your total xp, and wow! we already know it!
 * (but it can't have commas or anything. 2,709,580 would be 2709580

=Maintenance=
 * Once you have it put in like that, all you have to do is update the values whenever you want them to be accurate. Advanced level 20 ::characters probably won't ever have to worry about storykp. Just allxp.