MILESTONE UPDATE

Milestone 19: Ability Framework

Milestone 19 gives Project Nightfall its first real ability system — a shared framework that lets heroes and units cast active abilities and unlock passive ones, instead of every special power being written as its own one-off piece of code.

No hardcoded Mana

A lot of strategy games bolt a single universal “Mana” resource onto every caster. Project Nightfall avoids that trap: ability costs are paid out of the same generic resource-pool system already used elsewhere in the game, so a unit type can reference whichever pool fits its design rather than being forced into one global currency. In this milestone’s test content, that pool is a placeholder called “Focus” — a stand-in for whatever the real design ends up calling it, not a permanent name.

Abilities themselves are built from small, reusable pieces: a targeting mode (cast on yourself, or on a target unit), a cooldown, a cast time, a resource cost, and an ordered list of effects. Rather than inventing a new effect engine from scratch, those effects plug into systems the game already has — dealing damage through the existing combat-damage pipeline, or adjusting armor through the existing stat-modifier system. Two abilities ship with this milestone as a working demonstration: Howl, an instant self-cast that grants an armor buff, and Strike, a unit-targeted ability that requires closing distance and a short cast time before it deals damage. Howl’s buff has no expiration timer yet — recasting it refreshes the bonus instead of stacking it endlessly, a placeholder rule that holds until a future milestone adds a proper timed-buff system.

Validated twice, not once

Casting an ability isn’t instantaneous in every case — a unit may need to move into range and channel a cast first, and the world can change in the meantime. To keep that safe, an attempted cast is checked once when the player issues the order, and checked again independently right before the effect actually happens. That way a cooldown that finishes, a resource pool that runs dry, or a target that dies mid-approach can’t be exploited by ordering a cast early and hoping the check never runs again.

Connecting to talents

Milestone 18 introduced the talent tree but deliberately left a placeholder for granting an ability from a purchased talent node rather than building that connection prematurely. This milestone closes that loop: a talent node can now unlock an ability directly, so spending a talent point can open up new active options in combat, not just passive stat bonuses.

A new ability panel appears for a selected unit, showing its available abilities, cooldowns, and resource pool, and clicking a targeted ability lets the player aim and confirm the cast the same way other targeted commands already work. With this framework in place, the systems needed for real hero and unit powers now exist independently of any single ability’s specific design — the next work on abilities is about adding more of them, not rebuilding how casting works.

Discover more from Project Nightfall

Subscribe now to keep reading and get access to the full archive.

Continue reading