I tried to describe everything that can be hard to understand even tho most of things have self explanatory names. On top of that there are some comments in various parts of code, mainly initialization if you would like to customize how it builds the dialogs.
Btw. don't bother with English typos ;)
parameter name | type | description |
tree index | integer | tree index. is used everywhere for identification |
tree rows | integer | amount of rows in tree |
tree columns | integer | amount of columns in tree |
tree name | string | name/title of tree. displayed in middle top |
tree subnames | string | sub names/titles. displayed below tree name. use | to separate names |
tree available talent points share group | integer | this is index of group with which this tree will share available talent points. Any modification to one's points will reflect in all other trees with same share group |
dialog width | integer | width of tree dialog |
dialog height | integer | height of tree dialog |
dialog buttons width | integer | width of talent buttons |
dialog buttons height | integer | height of talent buttons |
dialog buttons autosize | Boolean | true will attempt to size buttons for entire available buttons space |
dialog buttons autosize scale | real | scale of autosized buttons. 1 will fill 100% area where 0.5 will fill 50% area leaving spaces between buttons |
dialog buttons autosize to rectangle | Boolean | true will autosize buttons to rectangle using whichever is smaller height or width. |
dialog image | file - image | image used for dialog itself so it should be some border type image |
content offset vertically | integer | left and right offsets for tree content |
content offset horizontally | integer | top and bottom offsets for tree content |
tree background image | file - image | background image for tree. Not dialog's image |
tree background image tint | color | tint of background image |
tree background image transparency | real | transparency of background image |
tree background image offsets vertical | integer | left and right offsets of background. Not affected by content offsets |
tree background image offsets horizontal | integer | top and bottom offsets of background. Not affected by content offsets |
tree background image tiled | Boolean | tiled option for background image |
tree name style | string | name of style used in tree name |
tree name color | color | color used in tree name |
tree name label height | integer | height of label for tree name. Used in correct positioning so make it appropriate to used style size |
tree subnames style | string | name of style used in tree sub names |
tree subnames color | color | color used in tree sub names. If you want separate color you can use color tags in sub names |
tree subnames labels height | integer | height of label for tree sub names. Used in correct positioning so make it appropriate to used style size |
available points label enabled | Boolean | true will show available points text in tree |
available points label text | string | text of label. #POINTS tag will be replaced with available points amount |
available points label style | string | name of style used in label |
available points label color over 0 | color | color of text when amount of points is more than 0 |
available points label color 0 | color | color of text when amount of points is 0 |
available points label anchor | preset - anchor | anchor used for label |
available points label offset X | integer | X offset of label |
available points label offset Y | integer | Y offset of label |
talents level label style | string | name of style used in label which is on talent button showing current/max level |
talents level label text color over 0 | color | color of text when current level is more than 0 |
talents level label text color 0 | color | color of text when current level is 0 |
talents level label back color 1 | color | color of image1 which is combined with image2 to create label background |
talents level label back color 2 | color | color of image2 which is combined with image1 to create label background |
talents tooltip style | string | name of style used in talent tooltips description |
talents tooltip values color | color | color of parsed values in tooltip |
talents name style | string | name of style used in tooltip for talent name |
talents name learnable color | color | color for talent name when talent is learn able |
talents name not learnable color | color | color for talent name when talent is not learn able |
talent back image | file - image | image which is behind talent button. for decoration |
talent back image can learn tint | color | tint of image when talent is learn able |
talent back image can't learn tint | color | tint of image when talent is not learn able |
talent back image transparency | real | transparency if image |
talent back image scale to button horizontally | real | scale to button of image horizontally |
talent back image scale to button vertically | real | scale to button of image vertically |
new learnable talent back image | file - image | this image will be shown when talent is learn able for the first time or in other word: is just unlocked. |
new learnable talent back image tint | color | tint of image |
new learnable talent back image transparency | real | transparency of image |
new learnable talent back image scale to button horizontally | real | scale to button of image horizontally |
new learnable talent back image scale to button vertically | real | scale to button of image vertically |
requirement arrow image | file - image | image of arrow tho can be anything. This is used to visualize requirement |
requirement arrow thickness | integer | technically height of image |
requirement arrow offset | integer | offset from start of arrow drawing. This may require some trial & error (see picture on main page) |
requirement arrow tiled | Boolean | tiled option for image |
requirement arrow blend mode | preset - dialog blend mode | blend mode for image |
requirement arrow color enabled | color | tint of image when active, meaning talent can be learn or is learned. |
requirement arrow color disabled | color | tint of image when not active |
parameter name | type | description |
linked upgrade | game link - upgrade | upgrade to which this talent is linked. upgrade level = talent level Note: You don't need to assign upgrade, so you can make dummy talent because it uses own level memory. |
parent tree index | integer | index of tree to which this talent belongs to |
talent name | string | name of talent |
talent row | integer | row position within the tree |
talent column | integer | column position within the tree |
talent max level | integer | max level of talent |
talent cost | integer | talent points cost of talent |
talent image | file - image | talent image :) |
talent image learnable tint | color | tint of image when talent is learn able |
talent image not learnable tint | color | tint of image when talent is not learn able |
talent lore description | string | description visible in talent tooltip. For example something like: "Summons powerful fireball..." |
talent stats description | string | description visible in talent tooltip. Shown after lore description. Use values between { and } . for example {5} for level 1 will result in 5 where for level 2 in 10. You can use real values. for % simply use {5.0} % . Fraction character is dot |
required talent tree index | integer | index of tree for required talent |
required talent row | integer | row of required talent. Note: you may use it before given talent is create prior to initialization |
required talent column | integer | column of required talent. Note: you may use it before given talent is create prior to initialization |
required talent level | integer | level of required talent. Note: 0 will cause this to be ignored and talent initially learnable unless 'required tree total levels' is more than 0 |
required tree total levels | integer | required amount of points in 'required talent tree index' tree. Note: 0 will cause this to be ignored and talent initially learnable unless 'required talent level' is more than 0 |
requirement arrow enabled | Boolean | true will cause arrow to be drawn. This will ignore trees with other index (obviously) and will attempt to hook to required talent in current tree so double check this |
type | name | description |
function (Boolean) | NTS Is Talent Maxed | checks is given talent at its max level |
function (Boolean) | NTS Can Player Lean talent | checks if given player can learn given talent at that time (checking everything) |
action | NTS Create Talent Tree (simple) | Creates talent tree. Wrapped version with basic settings |
action | NTS Create Talent Tree (advanced) | Creates talent tree. Advanced version with all possible settings |
action | NTS Create Talent | Creates talent |
action | NTS Create Initialize | Initializes everything |
function (integer) | NTS Get Talent Current Level | returns current level of given talent for given player |
function (integer) | NTS Get Talent Tree Total Levels | returns amount of all levels in given tree for given player |
function (dialog) | NTS Get Tree Dialog | returns given tree dialog (for access reasons) |
function (integer) | NTS Get Available Talent Points | returns available talent points in given tree for given player |
action | NTS Modify Talent Current Level | modifies current level of given talent for given player |
action | NTS Modify Available Talent Points | modifies current available points for given tree (applied for every tree in same share group) |
action | NTS Show / Hide / Toggle Tree | changes visibility of tree (dialog) |
action | NTS Reset Talent Tree | resets all levels of talents in given tree of given player to 0 and optionally sets available talent points amount to sum of those talents levels |
function (string) | NTS Save Tree To String | saves tree talents levels and available points into string format |
action | NTS Load Tree From String | Loads tree talents levels and available points from string |
type | name | description |
string | _NTS_ID | Random id used for data table |
string | _NTS_FS | Field separator string used in syntax formatting |
string | _NTS_IS | Index separator string used in syntax formatting |
string | _NTS_Chars | Characters used from random ID |
function (string) | _ImageToString | GUI wrapper for conversion |
function (file - image) | _StringToImage | GUI wrapper for conversion |
function (preset - anchor) | _IntToAnchor | GUI wrapper for conversion |
function (preset - blend mode) | _IntToBlendMode | GUI wrapper for conversion |
function (game link - upgrade) | _StringToUpgrade | GUI wrapper for conversion |
function (integer) | _MinMaxInt | wrapper for range integer |
preset | _NTSFields_Base | Contains Base syntax fields ( main tables like) |
preset | _NTSFields_Talent | Contains Talent syntax fields |
preset | _NTSFields_Tree | Contains Tree syntax fields |
preset | _NTSFields_Settings | Contains Settings syntax fields |
function (string) | _NTSBaseSyntax | returns Base syntax string |
function (string) | _NTSTalentSyntax | returns Talent syntax string |
function (string) | _NTSSettingsSyntax | returns Settings syntax string |
function (string) | _NTSTreeSyntax | returns Tree syntax string |
action | _NTSError | displays error in debug area |
action | _NTSAddButtonTC | GUI wrapper, adds button to click event |
function (integer) | _NTSGetTreeNIndex | returns true tree index; for iteration |
action | _NTSRefresh | Refresh tree dialog all buttons tooltips etc |
function | _NTSParseTooltip | returns parsed tooltip for talents |
function (string) | _NTSRequirmentMsg | returns 'Required' message. |
event | _NTSClickEvent | handle clicks in trees |
action | _NTSClearTree | clears data table from not more needed tree fields |
action | _NTSClearTalent | clears data table from not more needed talent fields |
action | _NTSClearLine | clears data table from not more needed requirement arrow fields |
Comments