Passive Skill Tree JSON: Difference between revisions
Jump to navigation
Jump to search
>OmegaK2 (documentation for the skill tree json, just a draft) |
>OmegaK2 No edit summary |
||
Line 29: | Line 29: | ||
|} | |} | ||
Example: | Example: | ||
<syntaxhighlight>>>> json['constants']['characterAttributes']['Strength'] | <syntaxhighlight lang="python">>>> json['constants']['characterAttributes']['Strength'] | ||
0</syntaxhighlight> | 0</syntaxhighlight> | ||
Line 46: | Line 46: | ||
|} | |} | ||
Example: | Example: | ||
<syntaxhighlight>>>> json['constants']['classes']['StrDexIntClass'] | <syntaxhighlight lang="python">>>> json['constants']['classes']['StrDexIntClass'] | ||
0</syntaxhighlight> | 0</syntaxhighlight> | ||
Line 54: | Line 54: | ||
Example: | Example: | ||
<syntaxhighlight>>>> json['constants']['PSSCentreInnerRadius'] | <syntaxhighlight lang="python">>>> json['constants']['PSSCentreInnerRadius'] | ||
130</syntaxhighlight> | 130</syntaxhighlight> |
Revision as of 23:44, 28 February 2016
This page contains development information and is intended for developers and not regular end users.
Passive skill tree wikipedia: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 */}
}
characterAttributes
Associative array of character attributes and their id.
Format:
Key | Value |
---|---|
Name of the attribute | Integer id of attribute |
Example:
>>> json['constants']['characterAttributes']['Strength']
0
classes
Associative array of Character classes and their associated id
Format:
Key | Value |
---|---|
Internal name of the class based on attributes, i.e. <Attribute>Class for example:
|
Integer id of the class |
Example:
>>> json['constants']['classes']['StrDexIntClass']
0
PSSCentreInnerRadius
Contains the radius value
Example:
>>> json['constants']['PSSCentreInnerRadius']
130