Data Team Tips and Tricks

From PCGen Wiki
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

How to get New Lines in DESC tags

If you want to have a New Line break you may use '&nl;' in the code.

  DESC:Expansive breadth of text. &nl; New Paragraph of text. &nl; Another new paragraph.