Sub topic 10
Choosing a Skill Tree Topology
This chapter assumes you understand basic game progression, can read short Python examples, and can reason about simple prerequisites. A skill tree is a map of abilities that players unlock by spending points. Its topology is the shape of that map: how many paths exist, where paths join, and how much freedom players have.
The main topologies
Linear trees
A linear tree offers one required path:
Basic attack → Strong attack → Final attackThis structure is easy to teach and balance. It works when every player should learn the same techniques in the same order. Its weakness is limited choice. Players may feel that points are merely payments for predetermined upgrades.
Branching trees
A branching tree divides into distinct paths:
Basic attack
/ \
Fast path Heavy path
| |
Dual wield Great weaponsEach branch supports a play style. A player who chooses the fast path gives up access to some heavy-path abilities, at least temporarily. Branches create identity and replay value, but they also create balance risks. One branch may become the obvious best choice, while another may look attractive but perform poorly.
Webs and hybrid trees
A web connects many nodes with several possible routes. Players can combine abilities from different themes. A hybrid tree uses a clear spine with optional branches or cross-links.
Webs provide flexibility, but they are harder to explain and test. Players may not know which abilities matter, and designers must check many more combinations. A hybrid is often a useful compromise for role-playing, strategy, and action games.
| Topology | Best use | Main strength | Main risk |
|---|---|---|---|
| Linear | Guided progression | Clear pacing | Few meaningful decisions |
| Branching | Distinct builds | Strong player identity | Dominant or weak branches |
| Web | Experimentation | Many combinations | Confusing and difficult to balance |
| Hybrid | Flexible guided builds | Control plus choice | More design and testing effort |
Choosing by design goal
Start with the player experience, not the visual shape.
- Use a linear structure when the game has a fixed learning sequence.
- Use branches when different roles or play styles should feel distinct.
- Use a web when discovery and experimentation are central.
- Use a hybrid when players need a reliable core but should customize their specialization.
Consider how many choices players make at each stage. A small number of meaningful options is usually better than dozens of nearly identical nodes. Also consider whether choices are permanent. A branch with permanent commitment feels more important than a branch players can change after every encounter.
Representing a topology as data
Store connections as prerequisites rather than encoding them in user-interface positions. The same rules can then drive unlocking, saving, testing, and display.
SKILLS = {
"slash": {"cost": 1, "requires": []},
"whirlwind": {"cost": 2, "requires": ["slash"]},
"fireball": {"cost": 2, "requires": ["slash"]},
"meteor": {"cost": 3, "requires": ["fireball"]},
}
def available_skills(learned, points):
return [
name for name, skill in SKILLS.items()
if name not in learned
and points >= skill["cost"]
and all(req in learned for req in skill["requires"])
]
print(available_skills({"slash"}, 2))The output is ['whirlwind', 'fireball'], so the player can choose between two branches.
Common errors
Avoid branches that differ only in damage, range, or cooldown. Those choices may be mathematically different but feel interchangeable. Avoid deep trees that hide essential abilities behind many weak nodes. Test the first few choices with new players: if they cannot predict what a node will enable, improve its labels, layout, or description.
Exercise
A game teaches the same core controls to everyone but supports three distinct combat roles. Which topology is a strong starting point, and why?
Show answer
Use a hybrid tree: a short linear core can teach shared fundamentals, then branches can support the three combat roles.