πAbility Tree
Each Character Sheet also exposes an Ability Tree with ability count and dynamic node/branch structure along with a leveling mechanic. Games may use a standardized Ability Tree or implement their own.
Ability Tree
Ability Tree Pseudocode
// exampleTree.json
// Character Sheet ERC721 Node/Branch Structure input JSON Object
{
_node1: {
_unlock: 1, // specified by a standard
_ability: {
// _level: 0, // Defaults to 0 at mint
...
},
_branch1_n1: {
_node1_b1_n1: {
_unlock: 6,
_ability: {
// _level: 0,
...
},
_branch1_n1_b1_n1: {...},
_branch2_n1_b1_n1: {...},
}
},
_branch2_n1: {
_node1_b2_n1: {...},
...
}
},
_node2: {...},
...,
_nodeN: {...}
}Last updated