— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
This is an old revision of the document!
The Stats Editor allows you to set up the experience leveling table for your characters and view the default equipment slot configuration.
Stat Name | Description | Script ID |
---|---|---|
HP | Health/HP of the character. | “hp” |
Max HP | Maximum health/HP of the character. | “max_hp” |
XP | Total experience points earned by the character. | “xp” |
Level | Current experience level of the character. | “level” |
Currency | Amount of currency held by the character. | “currency” |
Attack | Attack value of the character. | “attack” |
Defense | Defense value of the character. | “defense” |
Movement Range | Movement range (in tiles) of the character. This stat is used in tactical turn-based combat. | “move_range” |
Movement Speed | Movement 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"];