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
During the mint process, the Character Sheet NFT takes a JSON object as input with the minter's desired Node/Branch Structure. After minting, the new Character Sheet NFT's Ability Tree may be read from the blockchain to import it's state. Any number of games may then be designed around and implement a particular standard structure as a form of interoperability.
Each Node within an Ability Tree holds 3 components:
An
_unlock
value which designates the Power Level of the Character Sheet required to access the nodeA single Ability with a
_level
value which tracks the number of Ability Points spent on that AbilityAny number of Branches, each of which leads to a singular Node
As the Character Sheet NFT is designed to be game agnostic, the only value that is incremented across the entire Ability Tree is the _level
of each Ability (via interactions with ecosystem Tokens, see Tokenomics for more info). Specific games may insert additional game-relevant data (such as ability name, type, damage range, attributes, etc. or defining a node as active, passive, or null) into an imported Ability Tree once it is read from the Character Sheet NFT contract.
Ability Tree Pseudocode
Last updated