Formulas

RPG Architect leverages a formula engine, allowing users to create their own formulas when leveraging Statistics in Skills and more.

  • Whenever a Success Formula is defined anywhere, it is always calculating it out of 100. Specifying a raw value of "100" will ensure that it is always successful.
  • Anytime a Success Formula is evaluated, the engine is randomly generating a whole number between 0 and 99. If it is below the value calculated for the Success Formula it will be "successful."

Constants

NameReference
ee
pipi

Functions

NameDescriptionExampleExample Result
absAbsolute valueabs(-5)5
acosArccosineacos(pi) 
acotArccotangentacot(pi) 
asinArcsineasin(pi) 
atanArctangentatan(pi) 
avgAverageavg(1,7,12,15,8)8.6
ceilingCeilingceiling(1.2)2
diceRolls x amount of dice with n sides.
dice(x,n)
dice(4,6)Rolls 4 6-sided dice (Result between 4 and 24)
floorFloorfloor(1.2)1
globalfloatGets a global variable as a floating-point.globalfloat(0)Gets the global variable at index 0, as a floating point.
globalintGets a global variable as an integer.globalint(4)Gets the global variable at index 4, as an integer.
ifProvides a value if a condition is true or false.
if(condition, true_value, false_value)
if(lvl > 10, 15, 20)Gets 15 if the 'lvl' variable is greater than 10, otherwise 20.
Note: RPG Architect utilizes Jace.NET for its calculation engine, due to its speed and flexibility. You can refer to its wiki for answers to common questions.