Dev Blog #5: Ecosystem Engineers

Ecosystem Engineers:

Today, we'll be discussing the way we go about designing and implementing the flora and fauna of Rhizome in order to make engaging content that seems believable rather than purely game-ified.

In many MMOs, overland NPCs are just bucket of experience points waiting for player interaction. They stand around, or wander aimlessly, waiting for a player to approach, at which point an aggressive NPC engages or a passive one waits to be attacked. In the interim, they're not doing anything at all, their behavior is basically static, and they seem only to exist for fleeting player interactions. Rhizome is meant to be an immersive simulation, so we've taken a different approach to the wildlife and plantlife on Hyphae. Our principle goal is to make it seem like these plants and animals exist in sensible patterns, have their own objectives and needs, and have observable tendencies and schedules.

To accomplish that, we layer a number of different AI systems, each one of which might be quite simple, but when stacked produce complex and interesting species.

Wildlife Archetypes:

Warning: There are going to be spoilers in this dev-blog. I will be discussing specific behaviors of subset of actual animals in this game. If you wish to find this out IC, you may wish to stop reading now

The first thing we do when designing a animal is to consider it's environmental niche -- what is the terrain like where it lives, what other animals live in that area, what is it likely to eat and how is it likely to have evolved in this context. Once we have those details figured out, we assign the new NPC to a ecological niche, or archetype, of which there are four major base classes:

Grazer:

Your grazers are your most placid and docile class of wildlife -- think small ungulates like antelope or granivorous bird species. These animals are flighty and nervous, choosing to flee at the first sign of danger -- likely before they're even engaged directly at all. Most grazers at best will only sit in place until they are disturbed, at which point they will attempt to run away at maximum speed. What they lack in offensive and defensive abilities, they make up with in being slippery and fast, and require chasing after. They make up the base prey of most predators on Hyphae.

Defender:

Typically herbivorous, Defenders differ from Grazers in the sense that while they do not actively hunt or seek out prey, they stand their ground when attacked and attempt to solve their problems with violence. They are typically quite large and therefore capable of defending themselves. In our world, your rhinoceros, lowland gorilla, and hippopotamus would fall into this category -- animals that while not directly seeking out trouble, will respond with aggression when confronted, or if they even think they're being confronted. The triggers for a defender can range from protecting its own life, to other environmental triggers including loud sounds or simply proximity.

Active Predator:

Active predators are animals that approach, attack, and chase down fleeing prey. In our world, this would be your mako shark, your lion, or your wolf. They are fast and powerful but not very subtle in their behavior. One difference is that aggressive fauna in Rhizome is not always aggressive -- if they have eaten recently then they are not likely to hunt additional prey. They also have preferences, choosing prey of an appropriate size to meet their dietary needs while avoiding prey too small or too dangerous for them to handle.

Ambushers:

Ambushers are additional predators, and those that choose to lie in wait for their meals instead of actively seeking them out. Typically highly stealthy, this class of animals are less apt to quickly chase down any prey, but choose to try to debilitate them with an enhanced alpha strike from stealth. They typically have strong initial moves, powered by their natural abilities or inherent envenomation, that swing tides in their favor. They behave differently depending on how successful their ambushes are -- many will abandon the attempt and slink off into hiding if their attempt is unsuccessful. On our planet, these would be your crocodilians, many snakes, trapdoor spiders, or angler fishes.

Traits:

In addition to archetypes, traits can be layered on top of wildlife to increase their depth of interest. Defenders can be cued to protect other members of their herd. Active predators can work in groups to flank and flush prey. Ambushers can stalk their victims and only pounce when they're already injured or under attack. These additional layers allow for each individual animal to feel different from others in their archetype, rather than just boiling it down to increasing or decreasing their stats. With sufficient observation, players can determine how these traits operate and use them to properly counter or otherwise mitigate the danger of wildlife, or increase their odds in a hunt.

When you encounter one of these animals, their behaviors will be radically different depending on how you approach, their own disposition, their traits, and their archetypes:

As you can see, depending on the specific creature's archetype, they'll behave significantly differently when you encounter them. Additionally, there are traits at play here as well, such as the ambusher grappling the player, or the predator releasing a warning call as it comes in. These are some of the more simple examples of how these animals behave -- there are far more complex examples out there.

Dynamic Wildlife Needs:

Wildlife aren't always hungry, always aggressive, nor do they attack just absolutely everything. Predators that successfully consume a corpse either scavenged or killed themselves satiate their hunger, and then have a randomly distributed chance of becoming hungry again after this, meaning the same animal that attacks you one day, might let you go the next.

Different animals get hungry at different rates, so it pays to pay attention to animal behavior during your exploration to figure out what is most likely to be aggressive at any given time.

You can also, with careful observation, get a sense of what prey a specific predator might selectively target based on specific characteristics, like weight:

Wearing a big backpack can raise your apparent size to a predator that doesn't know better, potentially pushing you in or out of its targeted prey zone. And there are some megafauna predators so massive that you're never worth their time as a meal -- nothing to say that you can't find some other way to piss them off and get yourself killed, though.

Ultimately, each creature in Rhizome is a piled up combination of all of its archetypes and traits that cause it to play out its little niche in the ecosystem in various different ways. Here's four real examples:

All of our wildlife follows this sort of modality -- a base template that sets the baseline expectation of its ecological niche, and then little specific quirks that provide increased depth.

A Web of Interactivity:

As we built up and continue to build up the population of wildlife on Hyphae, we were pleased to see emergent interactions between different wildlife classes that made the world feel like a living, breathing ecosystem that proceeded without players necessarily attacking or being attacked by anything. Natural food webs began to emerge:

In this way, a player can simply sit in stealth and watch as animals move around, hunt each other, die, interact, and satisfy their own needs without player input at all, which we felt was great for immersion. We also found that we can use the ecological niche of the animals we made to tune the 'danger' levels of zones -- higher danger zones are populated with more and more dangerous predators and stronger defenders who will more aggressively defend themselves and not wait for players to make the first move:

(Zone 4 is an outlier right now, you can tell by the number of wildlife in it that it is still under active development).

This is the interaction between game and simulation that we were aiming for. We can make regions of the map more dangerous, settling the 'easy, medium, hard' zones that most people are familiar with in MMOs, but simultaneously do so in a way that makes sense ecologically and feel like you've entered a dangerous region of the world (e.g., Australia) rather than 'entering a level 60 zone'.

Thanks for reading!

Discuss on Discord