User Tools

Site Tools


stats_editor

This is an old revision of the document!


Stats Editor


Overview

The Stats Editor allows you to set up …

Built-In Character Stats

Stat NameDescriptionScript ID
HPHealth/HP of the character.“hp”
Max HPMaximum health/HP of the character.“max_hp”
XPTotal experience points earned by the character.“xp”
LevelCurrent experience level of the character.“level”
CurrencyAmount of currency held by the character.“currency”
AttackAttack value of the character.“attack”
DefenseDefense value of the character.“defense”
Movement RangeMovement range (in tiles) of the character. This stat is used in tactical turn-based combat.“move_range”
Movement SpeedMovement speed (in voxels per second) of the character.“speed”

A character's stats can be accessed in a script using the built-in “.stat” syntax along with one of the IDs listed in the “Script ID” column above. Refer to the code below for some usage examples.

Examples:

player.stat["hp"] = player.stat["max_hp"];

Leveling

Equipment

stats_editor.1652660621.txt.gz · Last modified: 2022/05/15 17:23 by justin