For now, the data standard is to avoid using this shortcut (as far as I know) If you see an item without a leading format ("X" in both GLOBAL and LOCAL above), e.g.: then the system is using the default (GLOBAL).
If you see an item without a leading token, e.g.:
There are 2 basic tokens for the VARIABLE file: GLOBAL and LOCAL.
PCGEN ADD CUSTOM FEAT HOW TO
How to define a variable VARIABLE (PCC File) So if multiple datasets are loaded and they all had DATACONTROL: and all defined the default value for NUMBER to be 0, they will all happily load as the system is capable of recognizing the defaults are the same Note: it IS safe to "redefine" a DEFAULTVARIABLEVALUE to the same value. The internal parts of PCGen may use it, so a default value may be required. It is a best practice to always define a DEFAULTVARIABLEVALUE for every FORMAT regardless of whether the data uses that FORMAT.
This is placed into a file referred to in a PCC file from the DATACONTROL: token.ĭATACONTROL: is a new Campaign file token (for PCC files). This value is shared throughout an entire system (it CANNOT be redefined to a different value). PRIORITY=100Ĭreating and Using Variables Required SetupĮvery format that needs to be used requires a default value. This is a key-value pair of information, e.g. ASSOCIATION: An additional set of information attached to a MODIFY* token.GROUPING: A name for a set of objects in PCGen.OPERATOR: A mathematical operator as you would see in a formula ("+", "-", etc.).MODIFIER: An argument to MODIFY* tokens, specifically the "command" of what the modification represents.SCOPE: The part of the data in which a (local) variable is available.You will want to keep track of what these key terms mean as you learn the new formula system: Variables are not only numbers, but can be Strings, Dice, etc.All variables must be defined prior to use.To use the new system a few key things need to be remembered: It allows a sensible location for global modifications (things generally related to rule book type modifications that impact all objects of a given type).It will replace many tokens, including all the BONUS tokens.
Validate formulas at LST load instead of runtime.The new formula system is designed to do a few things relative to data: 4.5 Using the previous value in a more complex calculation.4.4 Understanding PRIORITY and processing of MODIFY and MODIFYOTHER.4.3 Understanding SubScopes in relation to MODIFYOTHER.4.2 Understanding SubScope on Equipment.2.1.2 DEFAULTVARIABLEVALUE (DATACONTROL LST).