tiger_lib

Module script_value

Source
Expand description

Validation of script values, which are values that update dynamically based on rules given in their math blocks.

Scriptvalues can also be non-dynamic, in the sense of being just a literal or the name of another script value.

Functions§

  • Validate a script value. It can be a block or a value. As a value, it may be an integer or boolean literal, or a target scope sequence, or a named script value. As a block, it may be a { min max } range, or a calculation block which is validated with validate_inner. (Boolean script values are rare but valid. They can’t have calculation blocks.)
  • Validate else blocks that are part of a script value. Just like validate_if, but warns if it encounters a limit field.
  • Validate if or else_if blocks that are part of a script value. Checks the limit field and then relies on validate_inner for the heavy lifting.
  • Validate a block that’s part of a script value.
  • Validate a block inside an iterator that’s part of a script value. Checks some fields and then relies on validate_inner for the heavy lifting.
  • Validate one of the fixed_range or integer_range script value operators. These are rarely used.
  • Validate a script value that’s not allowed to do calculations. It must be a literal or the name of another script value that’s also not allowed to do calculations.