Calculate TDPs gained (script)

From Elanthipedia
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 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