Skill Trees
Trees, tiers, costs, requirements and effects are data in assets/data/skills.vfa. The player spends on them on the Skills screen (K in play). Open the file in the asset manager for a form, or edit it as text; both write the same lines.
The engine ships ten trees and eighty skills in its own assets/data/skills.vfa. A project's own skills.vfa is read first; without one, the engine's is used. A new project starts with an empty one of its own, so write your own trees, or copy the engine's file into the project and delete what your game does not want.
comp tree blade -1 -
field label Blade Work
field currency points
comp skill blade_grip -1 -
field tree blade
field tier 1
field cost 1
field label Sure Grip
field effect1 dmg 2
comp skill blade_edge -1 -
field tree blade
field tier 2
field cost 3
field label Keen Edge
field requires blade_grip
field effect1 crit 4- tree <id>
- A tree: its
label, and itscurrency,points(the skill points each level grants) orfame({renown}, the renown won from famous kills and deeds). - skill <id>
- A skill: its
tree, itstieron that tree (tier 1 is nearest the trunk), itscostin the tree's currency, and itslabel.
A skill can also carry:
- requires <skill>
- Locked until that skill is learned. A skill can carry up to four
requireslines, one skill each, and stays locked until every one of them is learned. In the asset manager they are the Requires and Requires 2 to 4 rows; the tree view draws a line from each. - effect1 to effect4
- Up to four effects, each one of the three below.
- attr <key> <n>
- A permanent attribute bonus.
- bar <key> <n>
- A bonus to a bar's maximum.
- dmg <n>, armor <n>, crit <n>
- Flat damage, armour and critical chance.
Each skill can link four things, picked from lists in the asset manager:
- icon <file>
- A picture in
assets/icons/, shown beside the skill on the Skills screen. - anim <clip>
- A clip the character plays when she learns the skill.
- fx <effect>
- A particle effect played on her when she learns it.
- sound <file>
- A sound in
assets/audio/played when she learns it.
There is room for 16 trees and 160 skills.
In play
The Skills screen lists the trees down the left, each with how many of its skills are learned, and the player's points (and {renown}, when a tree spends it) under them. The picked tree is drawn on the right, tier by tier, each skill under the one it needs. Point at a skill for a card with its effects, what it needs and its cost. Click one within reach to learn it; ones out of reach are dim. Learned skills count in every fight and ride the save.
Classes can hand out skills for free at chosen levels (see Magic). From a script: Player.LearnSkill(id) or the verbs in the Rûn Verb Index.