Skip to content

Value

Power Types

Defines a value for the player. Essentially identical to a Resource Bar but displays as number in a string.

Type ID: ra_additions:value

Fields

Field Type Default Description
min Int optional The minimum value of the power.
max Int optional The maximum value of the power.
anchor null optional The part of the screen that can be used as the center point
x Int optional The X co-ordinate that the string will appear at.
y Int optional The Y co-ordinate that the string will appear at.
value_key String optional The string that will contain the value
start_value Int optional The value of the power when the entity first receives it. If not set, this will be set to the value of the min integer field.

Example

{
  "type": "ra_additions:value",
  "x": 70,
  "y": 70,
  "min": 5,
  "max": 10,
  "value_key": "You have %s value"
}

This example is a value, which creates a string of text that says you have %s value where %s is the internal value of the power.