Sub topic 3
Choosing a Skill Tree Topology
This chapter assumes you know how XP, levels, and skill points work, can read short Python, and understand a dependency graph where each node needs its parents.
Choosing a Skill Tree Topology
A skill tree's topology is its shape: how many branches exist, where they join, and how many points a player must spend before reaching the strongest skills. A linear chain gives every player the same path. Several independent branches support distinct roles. Merges, where one skill needs two parents, reward players who invest across the map, but each merge also raises the cost of reaching the payoff.
Choose the shape from the goal. Use a chain when you want a guided sense of growth. Use branches when you want roles that feel different. Keep merges few, and check that each one pays off enough to justify the detour.
Making Choices Meaningful
A choice is meaningful when two options produce different play and neither dominates. Compare each branch against the others. If one branch always wins, players will pick it, and the rest of the tree becomes decoration.
Respecs and Commitment
A respec refunds all spent points so the player can choose again. Offer respecs when experimentation matters more than commitment, such as early in a game. Limit them, or charge for them, when a build's identity is central to the design.
Implementing Progression as Data
Store the tree as data rather than as hard-coded branches. Designers can then change costs and prerequisites without touching game logic. The validator below rejects references to unknown skills and detects cycles, which would make a skill impossible to learn.
SKILLS = {
"slash": {"cost": 1, "requires": []},
"whirlwind": {"cost": 2, "requires": ["slash"]},
"berserk": {"cost": 2, "requires": ["slash"]},
"execute": {"cost": 3, "requires": ["whirlwind", "berserk"]},
}
def validate_tree(skills):
for name, node in skills.items():
for req in node["requires"]:
if req not in skills:
raise ValueError(f"{name} requires unknown skill {req}")
state = {}
def visit(name):
if state.get(name) == "done":
return
if state.get(name) == "active":
raise ValueError(f"cycle through {name}")
state[name] = "active"
for req in skills[name]["requires"]:
visit(req)
state[name] = "done"
for name in skills:
visit(name)
return True
print(validate_tree(SKILLS))Balancing with Playtests and Telemetry
Playtests show whether a build feels good. Telemetry shows what players actually do: which skills they buy, which they never buy, and where they stall. If one skill is bought in 90 percent of runs while its siblings sit near 10 percent, the costs or effects are probably unequal. Adjust the data, then measure again.
Common Pitfalls
- Dead-end branches that cost points but unlock nothing new.
- Prerequisites the player cannot see in the interface.
- Free respecs that remove any reason to plan a build.
- Merges placed too early, which force every player through the same middle skills.
Exercise
The tree above has four skills. If a player has 3 points and has learned only slash, can they learn execute right away? Explain why or why not.
Show answer
No. Execute costs 3, so the points are enough, but it requires whirlwind and berserk, and the player has learned neither. They must first buy whirlwind (2 points) and berserk (2 points), which needs 4 more points in total.