More on Leveling
I implemented the following:
- System users (the player and faction NPCs) can now start with custom path levels, and NPCs can now level themselves with mana at the System pylon.
- Abilities can now level as described last week: via stacking from paths.
- Monsters now level by landing hits and participating in kills.
- Spawners now level by spawning monsters.
I can see expanding some of that, but for the demo, the above might be enough.
NPC Pathing
NPCs can now follow static routes, based on conditions and priorities. For instance, in my current test case, an Engineer will level up at the System pylon, travel to the Fabrication room if there’s an active task to work on, and if the work runs out, the Engineer will head back to the pylon.
I believe this will be most of the functionality I need to have a base alive with NPCs doing useful things. Outside the base, I intend faction NPC combat units to work like monsters, in which they make movement decisions based on their immediate circumstances. I’m also thinking that faction NPCs (and the player) will be able to teleport back to the base Pylon from anywhere.
That should prevent me from having to scale complex pathing algorithms to potentially thousands of units.
I also think the option to teleport home will make expeditions into the wild more like a dungeon run, where once you complete it, you just exit the dungeon. You'll need to decide for yourself when continuing is too risky, and whether you gained enough mana and killed enough monsters to justify jumping home for a resupply. :)
Faction Rooms and Tasks
I’ve decided that for faction task functions like the Research Lab, the room will be the thing (as opposed to a station in the room).
From the player’s perspective, this means that task actions like researching or crafting will be found under the zone area entry. It also means I won’t be adding scenic clutter to the target list (like research stations, tables, storage, and devices, that either don’t do anything, or only do one thing).
That will make it easier to level up rooms, without triggering the need to level up objects in it. While more textual scenery might be nice (and might be an interesting future expansion), it would also cost me more time to implement it, and I like the more efficient approach anyhow. :)
I also did the following:
- Task actions now display the task itself (instead of a fabrication task action label saying “work”, it might say “Rifle 1”).
- Rooms can now have multiple faction tasks running in parallel. I’d like to expand this to allow rooms to get more task slots as they level up.
Traits
To allow faction NPCs to choose which parallel task to work on, I implemented a prototype trait system. So, an Engineer with the “Flighty” trait will work on the newest task, while an Engineer with the “Steady” trait will work on the oldest. :)
Here's a screenshot of both Engineer types working:

I should be able to expand this system to allow for more interesting results from combat or pathing, and it would, of course, be nice to give the player a useful trait. :)
