Calculate TDPs gained (script): Difference between revisions
Jump to navigation
Jump to search
(moved Genie script from Time Development Points.) |
(→Script) |
||
Line 13: | Line 13: | ||
==Script== |
==Script== |
||
#--Written by Ozban, March |
#--Written by Ozban, March 21, 2016.-- |
||
#--Formula taken from user Dandin. (ranks(ranks+1)/400) |
#--Formula taken from wiki-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. |
#-This is a command line script, just put: .tdp XXX to see how many total tdp's you'd get from ranking one skill from zero to XXX. |
||
# |
# -XXX is the numerical value of however many ranks you want to convert to TDPs. |
||
# |
# |
||
tdp_start: |
|||
var ranks1 %1 |
|||
if_1 then var ranks1 %1 |
|||
else goto no_number |
|||
evalmath ranks3 (%ranks1*%ranks2) |
|||
evalmath ranks2 (%ranks1+1) |
|||
evalmath ranks3 (%ranks1*%ranks2) |
|||
evalmath tdps (%ranks3/400) |
|||
⚫ | |||
evalmath tdps floor(%tdps) |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
echo (rounded down) |
|||
⚫ | |||
echo |
|||
⚫ | |||
echo |
|||
⚫ | |||
no_number: |
|||
echo |
|||
echo YOU DIDN'T SPECIFY ANY RANKS! |
|||
echo |
|||
exit |
Latest revision as of 12:37, 21 March 2016
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 21, 2016.-- #--Formula taken from wiki-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 from zero to XXX. # -XXX is the numerical value of however many ranks you want to convert to TDPs. # tdp_start: if_1 then var ranks1 %1 else goto no_number 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 RANKS *** echo echo exit no_number: echo echo YOU DIDN'T SPECIFY ANY RANKS! echo exit