Passive Skill Tree JSON: Difference between revisions
Jump to navigation
Jump to search
>OmegaK2 mNo edit summary |
>OmegaK2 m (→JSON) |
||
Line 6: | Line 6: | ||
The subsections follow the format of the json. | The subsections follow the format of the json. | ||
{| class="wikitable" | |||
! Key | |||
! Value description | |||
! Type | |||
|- | |||
| imageRoot | |||
| | |||
| string | |||
|- | |||
| imageZoomLevels | |||
| | |||
| array[float] | |||
|- | |||
| min_x | |||
| | |||
| integer | |||
|- | |||
| max_x | |||
| | |||
| integer | |||
|- | |||
| min_y | |||
| | |||
| integer | |||
|- | |||
| max_y | |||
| | |||
| integer | |||
|- | |||
| assets | |||
| See below | |||
| assoc array | |||
|- | |||
| characterData | |||
| See below | |||
| assoc array | |||
|- | |||
| constants | |||
| See below | |||
| assoc array | |||
|- | |||
| groups | |||
| See below | |||
| assoc array | |||
|- | |||
| nodes | |||
| See below | |||
| array | |||
|- | |||
| root | |||
| See below | |||
| assoc array | |||
|- | |||
| skillSprites | |||
| See below | |||
| assoc array | |||
|} | |||
===assets=== | |||
===characterData=== | |||
===constants=== | ===constants=== | ||
Line 18: | Line 80: | ||
{| class="wikitable" | {| class="wikitable" | ||
! Key | ! Key | ||
! Value | ! Value description | ||
! Type | ! Type | ||
|- | |- | ||
Line 41: | Line 103: | ||
{| class="wikitable" | {| class="wikitable" | ||
! Key | ! Key | ||
! Value | ! Value description | ||
! Type | ! Type | ||
|- | |- | ||
Line 59: | Line 121: | ||
{| class="wikitable" | {| class="wikitable" | ||
! Key | ! Key | ||
! Value | ! Value description | ||
! Type | ! Type | ||
|- | |- | ||
Line 70: | Line 132: | ||
<syntaxhighlight lang="python">>>> json['constants']['classes']['StrDexIntClass'] | <syntaxhighlight lang="python">>>> json['constants']['classes']['StrDexIntClass'] | ||
0</syntaxhighlight> | 0</syntaxhighlight> | ||
===groups=== | |||
===nodes=== | |||
===root=== | |||
===skillSprites=== |
Revision as of 00:30, 29 February 2016
This page contains development information and is intended for developers and not regular end users.
Passive skill tree JSON is used by the official website uses and many other community tools to display the skill tree.
JSON
The subsections follow the format of the json.
Key | Value description | Type |
---|---|---|
imageRoot | string | |
imageZoomLevels | array[float] | |
min_x | integer | |
max_x | integer | |
min_y | integer | |
max_y | integer | |
assets | See below | assoc array |
characterData | See below | assoc array |
constants | See below | assoc array |
groups | See below | assoc array |
nodes | See below | array |
root | See below | assoc array |
skillSprites | See below | assoc array |
assets
characterData
constants
Constants contain various game constants.
Located under the top level:
{
constants: { /* constants */}
}
Key | Value description | Type |
---|---|---|
PSSCentreInnerRadius | Radius | integer |
chracterAttributes | see below | assoc array |
classes | see below | assoc array |
characterAttributes
Associative array of character attributes and their id.
Format:
Key | Value description | Type |
---|---|---|
<Name of the attribute> | Id of attribute | integer |
Example:
>>> json['constants']['characterAttributes']['Strength']
0
classes
Associative array of Character classes and their associated id
Format:
Key | Value description | Type |
---|---|---|
Internal name of the class based on attributes, i.e. <Attribute>Class for example:
|
Id of the class | integer |
Example:
>>> json['constants']['classes']['StrDexIntClass']
0