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/15 17:03] justinstats_editor [2023/12/11 21:11] justin
Line 3: Line 3:
  
 =====Overview===== =====Overview=====
-The **Stats Editor** allows you to set up ...+The **Stats Editor** allows you to set up an experience leveling table for your [[character|characters]] and view the default equipment slot configuration.
  
-=====Leveling===== +=====Built-In Character Stats===== 
-^Stat Name^Description^Script ID^ +Refer to the table below for a list of built-in stats that can be retrieved or modified for a [[character]]. 
-|HP|Health/HP of the character.|"hp"+^Stat Name^Description^ID^ 
-|Max HP|Maximum health/HP of the character.|"max_hp"+|HP|Health/HP of the [[character]].|"hp"
-|XP|Total experiences points earned by the character.|"xp"+|Max HP|Maximum health/HP of the [[character]].|"max_hp"
-|Level|Current experience level of the character.|"level"+|XP|Total experience points earned by the [[character]].|"xp"
-|Currency|Amount of currency held by the character.|"currency"+|Level|Current experience level of the [[character]].|"level"
-|Attack|Attack value of the character.|"currency"| +|Currency|Amount of currency held by the [[character]].|"currency"
-|Defense|Defense value of the character.|"currency"| +|Attack|Attack value of the [[character]].|"attack"| 
-|Movement Range|Movement range (in tiles) of the character. Used for tactical turn-based combat.|"currency"| +|Defense|Defense value of the [[character]].|"defense"| 
-|Movement Speed|Movement speed (in voxels per second) of the character.|"currency"|+|Movement Range|Movement range (in [[tile|tiles]]) of the [[character]]This stat is used in [[combat_editor|tactical turn-based combat]].|"move_range"| 
 +|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 "ID" column above. Refer to the code below for some usage examples.
 +
 +**Examples:**
 +<code bauxite>
 +player.stat["hp"] = player.stat["max_hp"];
 +</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=====
 +Coming soon!
  
 =====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