Added stats to readme
This commit is contained in:
parent
4e35aa46a4
commit
8186df2d2c
1 changed files with 2 additions and 1 deletions
|
@ -61,7 +61,8 @@ See https://github.com/latitudegames/Scripting/blob/master/examples/addSimpleInv
|
||||||
* `state.disableRandomSkill` disables the user from learning random skills in the screen
|
* `state.disableRandomSkill` disables the user from learning random skills in the screen
|
||||||
* `state.skillPoints` sets the number of skill points a player has available.
|
* `state.skillPoints` sets the number of skill points a player has available.
|
||||||
See https://github.com/latitudegames/Scripting/blob/master/examples/skills.js for examples.
|
See https://github.com/latitudegames/Scripting/blob/master/examples/skills.js for examples.
|
||||||
|
* `state.stats` is a dictionary stats: {stats:{..., statName:{level, cost}}, statPoints}. This opens the stats overlay in adventure menu allowing players to allocate `statPoints` at `cost`.
|
||||||
|
See https://github.com/latitudegames/Scripting/blob/master/examples/stats.js for examples.
|
||||||
|
|
||||||
* You can set any variable on state to store and modify adventures throughout an adventure.
|
* You can set any variable on state to store and modify adventures throughout an adventure.
|
||||||
|
|
||||||
|
|
Reference in a new issue