Calculate TDPs gained (script)

From Elanthipedia
Revision as of 09:37, 21 March 2016 by RY4NPW (talk | contribs) (moved Genie script from Time Development Points.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Calculate TDPs gained (script)
Category information
Front-end Genie
Author Ozban


Description

A simple genie script to figure out how many TDPs I'd get from ranking one skill to X. It will echo to the game window however many TDPs you'd gain, rounded down (not sure how the game actually does the rounding so assuming down).

If you don't want it to round down, delete/comment the line: evalmath tdps floor(%tdps).

Script

#--Written by Ozban, March 3, 2016.--
#--Formula taken from user Dandin. (ranks(ranks+1)/400)
#-This is a command line script, just put: .tdp XXX to see how many total tdp's you'd get from ranking one skill to XXX.
#  -XXX is the numerical value of however many ranks you want to convert to TDPs.
#
var ranks1 %1
evalmath ranks2 (%ranks1+1)
evalmath ranks3 (%ranks1*%ranks2)
evalmath tdps (%ranks3/400)
evalmath tdps floor(%tdps)
echo
echo
echo *** %tdps TDPS GAINED FROM GAINING %ranks1 ***
echo                         (rounded down)
echo
exit