Passive Skill Tree JSON: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
>OmegaK2
No edit summary
>OmegaK2
mNo edit summary
Line 1: Line 1:
{{development information}}
{{development information}}


[[Passive skill tree]] [[wikipedia:JSON]] is used by the official website uses and many other community tools to display the skill tree.
[[Passive skill tree]] [[wikipedia:JSON|JSON]] is used by the official website uses and many other community tools to display the skill tree.


==JSON==
==JSON==
Line 15: Line 15:
   constants: { /* constants */}
   constants: { /* constants */}
}</syntaxhighlight>
}</syntaxhighlight>
{| class="wikitable"
! Key
! Value
! Type
|-
| PSSCentreInnerRadius
| Radius
| integer
|-
| chracterAttributes
| see below
| assoc array
|-
| classes
| see below
| assoc array
|}


====characterAttributes====
====characterAttributes====
Line 24: Line 42:
! Key
! Key
! Value
! Value
! Type
|-
|-
| Name of the attribute
| <Name of the attribute>
| Integer id of attribute
| Id of attribute
| integer
|}
|}
Example:
Example:
Line 40: Line 60:
! Key
! Key
! Value
! Value
! Type
|-
|-
| Internal name of the class based on attributes, i.e. <code><Attribute>Class</code> for example:
| Internal name of the class based on attributes, i.e. <code><Attribute>Class</code> for example:
<code>StrDexIntClass</code> (refers to [[Scion]])
<code>StrDexIntClass</code> (refers to [[Scion]])
| Integer id of the class
| Id of the class
| integer
|}
|}
Example:
Example:
<syntaxhighlight lang="python">>>> json['constants']['classes']['StrDexIntClass']
<syntaxhighlight lang="python">>>> json['constants']['classes']['StrDexIntClass']
0</syntaxhighlight>
0</syntaxhighlight>
====PSSCentreInnerRadius====
Contains the radius value
Example:
<syntaxhighlight lang="python">>>> json['constants']['PSSCentreInnerRadius']
130</syntaxhighlight>

Revision as of 00:18, 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.

constants

Constants contain various game constants.

Located under the top level:

{
  constants: { /* constants */}
}
Key Value 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 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 Type
Internal name of the class based on attributes, i.e. <Attribute>Class for example:

StrDexIntClass (refers to Scion)

Id of the class integer

Example:

>>> json['constants']['classes']['StrDexIntClass']
0