User Tools

Site Tools


stats_editor

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
stats_editor [2022/05/17 22:26] justinstats_editor [2024/04/04 11:23] justin
Line 6: Line 6:
  
 =====Built-In Character Stats===== =====Built-In Character Stats=====
-Refer to the table below for the built-in stats that can be retrieved or modified for a [[character]]. +Refer to the table below for a list of built-in stats that can be retrieved or modified for a [[character]]. 
-^Stat Name^Description^Script ID^+^Stat Name^Description^ID^
 |HP|Health/HP of the [[character]].|"hp"| |HP|Health/HP of the [[character]].|"hp"|
 |Max HP|Maximum health/HP of the [[character]].|"max_hp"| |Max HP|Maximum health/HP of the [[character]].|"max_hp"|
Line 18: Line 18:
 |Movement Speed|Movement speed (in [[voxel|voxels]] per second) of the [[character]].|"speed"| |Movement Speed|Movement speed (in [[voxel|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.+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 "ID" column above. Refer to the code below for some usage examples.
  
 **Examples:** **Examples:**
Line 24: Line 24:
 player.stat["hp"] = player.stat["max_hp"]; player.stat["hp"] = player.stat["max_hp"];
 </code> </code>
 +Restores the player's health to the maximum value.
 +
 +<code bauxite>
 +player.stat["currency"] += 100;
 +</code>
 +Increases the player's currency by 100.
  
 =====Leveling===== =====Leveling=====
 +The **Leveling** section allows you to set up leveling information for your characters. This includes a table of levels and the experience points required for each level. You can configure specific stat increases for each level, including any custom stats you've defined in the **Character Stats** section. When a character reaches a particular level, those stat increases will be automatically applied.
 +
 +
  
 =====Equipment===== =====Equipment=====
 +Coming soon!
 +
 +=====Skills=====
 +Coming soon!
 +
 +=====Status Effects=====
 +Coming soon!
  
 +=====Currency=====
 +Coming soon!
  
 ~~NOTOC~~ ~~NOTOC~~
stats_editor.txt · Last modified: 2024/04/07 11:43 by justin