Documentation
LoreHub Dialogue System

Variable version 1

Schema

{
  "type": "@lorehub/variable",
  "apiVersion": "1.0.0",
  "id": "f2048620-deeb-4de8-b79d-b027db64c823",
  "name": "is_player_alive",
  "variableType:": "boolean",
  "defaultValue": "false"
}

VariableType

Type of the variable:

  • boolean - "true" or "false". Starts as "false" unless the author picks "true".
  • number - a whole number, can be negative, such as "12" or "-3". Starts as "0" unless the author picks another number.
  • unsignedNumber - a whole number of 0 or more. It never goes below 0: subtracting more than it holds leaves it at 0.

Values are always strings. Numbers fit in a 32-bit signed integer (-2147483648 to 2147483647), without a plus sign, spaces or leading zeros.

{
  "type": "@lorehub/variable",
  "apiVersion": "1.0.0",
  "id": "3b0c3e4e-5b1c-4a55-8f0a-5f7d1d2a9b11",
  "name": "gold",
  "variableType": "unsignedNumber",
  "defaultValue": "0"
}
On this page