Data Team Tips and Tricks

From PCGen Wiki
Revision as of 03:08, 25 January 2012 by LegacyKing (talk | contribs) (Created page with "==Tips and Tricks== ===How to Round up in PCGen=== PCGen doesn't round up easily, but this can be worked around using this simple solution: floor(JepVarName/2)+(0.50001)) ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Tips and Tricks

How to Round up in PCGen

PCGen doesn't round up easily, but this can be worked around using this simple solution:

  floor(JepVarName/2)+(0.50001))
  or
  floor(skillinfo("TOTALRANK","NameOfSkill")/2+(0.50001))

Toggle Display

PCGen has the nice ability to selectively display certain object with the use of PRExxx tags. Say you want to display a certain text, but a little more if the Race is 'Foo'

  DESC:The standard Text. <tab> DESC:Additional Text Here|PRERACE:1,Foo