Passive Skill Tree JSON: Difference between revisions
Jump to navigation
Jump to search
>OmegaK2 m (→JSON) |
>Twitticles m (Removed a erroneous "uses".) |
||
Line 1: | Line 1: | ||
{{development information}} | {{development information}} | ||
[[Passive skill tree]] [[wikipedia:JSON|JSON]] is used by the official website | [[Passive skill tree]] [[wikipedia:JSON|JSON]] is used by the official website and many other community tools to display the skill tree. | ||
==JSON== | ==JSON== |
Revision as of 00:57, 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 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