How do you guys make your worlds feel alive? I'm looking for some ideas since I can't thinking of how to do some more complex ones.
Some things I use to make it feel alive are random spawn variables which changes who is in an area at the time, or I'll use it to change what a person says when you talk to them. I also change what people say after some events or if you complete a quest for them.
My project also includes an adventurers guild and after the first pseudo boss fight you get an item that the guild offers you quests when you're out in the field, and if you don't accept them someone else might do it, or something bad might happen because the situation never got taken care of. Or when you do accept a quest, they may have a time limit of 2 days or else the bandits that were threatening the town have thoroughly ransacked the town and left
One of the easiest methods is having town NPC's react to recent events. Update their dialogues anything major happens.
make the NPCs have personalities.
don't have them be quest generators... give them extra lines to say, even if they don't mean much.
create a universe.
think about a worldly fact, and take it for a spin: the sun is bright.... why is it so bright? why white and not red? why is it warm? what if it was dark and cold? bam, you have a new planet... what kind of planet? rocky? icy? prime world or colony? who colonized it? when? from which part of the universe? what are they here for? who sent them here? now there's lore.... how old is that lore? hundreds of years? thousands of years? how was the universe back then? who lived back then? do they still exist? do we have things from them? how much of it? important or trivial? relevant to the facts at hand? known to the common people? deterministic for the common people?
ask questions!
I personally like to add little animations to things to make it look less static. For example, have some grass move in the wind, have an NPC yawn from time to time, have some birds flying by, maybe a fish shadow slightly moving in the water. Of course, this is only on the graphical aspect of the game and should work hand in hand with the points stated above.
This is not asking about mechanics as such.
Moved to: General Discussion
Personal thing I try to do is ask myself about the internal landscape and motivations of each NPC. What do they want in life, why are they like this? If they're a shop keeper, do they want to be? Why or why not, etc.
Then when you write their dialogue, you can keep that in mind going forward. Writing for a blacksmith who really wants to retire to the countryside already will come to life differently than writing for a blacksmith who is in love with their craft.
In addition to the above, I've been making my NPCs also react to smaller-scale things the player does, especially looting treasure boxes in towns. One woman complains about her hoarder neighbors if you talk to her, and if you try to take a treasure box from their yard, she runs up to you, cheers you on before asking you to take it all, including the neighbors. Another lady (a shopkeeper) literally throws you over the counter if you try to sneak behind and loot her treasure box. She then asks for that money back. In another, a friendly elderly couple is talking about how they have money saved up for their anniversary--you can loot it, but also put it back. If you end up keeping it, they'll later talk about how their anniversary plans were ruined because somebody robbed them. And another guy tells you to take whatever you want because you're digging around in his garbage bin.
Just stuff like that 🙂
All good advice here. Don't really have much to add.
NPC should have different dialogue based on the choices that you made. I also suggest the NPC should be moving around and be located in different area when you come back to town. Also different event should shape the landscape or location such as town/hub, etc...
Hollow knight did a good job in capturing some of those
Remember that Nonplayer Characters are still characters. Give them two sides, the side the player sees and the side that only you see. The information that you only see will influence how the side the player sees will take form.
I use most of the suggestions so far.
I try to give NPCs lines related to relevant story/world events, or something that highlight their relationship with other towns, reference people that are not there (dead or simply absent)... I also try to make it like they're actually doing something with their lives, not just waiting for the player to talk to them. For example, a farmer may be running around taking care of his crops, a tavern owner may be going around the place serving his clients, and so on.
Pretty good ideas already presented in the posts above. If I may add my two bits:
Working Designs (the folks that brought and published many RPGs and niche games in the early 90s and early 2000s) mentioned that in standard Japanese RPGs, townsfolk are very generic, uttering lines like "There are strong monsters on the cave north of here. Be careful.", so they'd give them more life while preserving the original intent, like this: "I was ambushed by monsters at the northern cave last time I went there. I ran, but they still managed to hurt me... you see, my pride got seriously wounded because I needed to put a clean pair of pants right after getting home." This changed the NPC from a message board into a person who suffered an incident because of the actions of the monsters, with some embarrassment thrown in for comedy's sake, while hinting at the danger in their lair. Just as others have said, have the situation around the townsfolk affect them, and make them express their feelings or react so that they integrate better into the scenario.
Add movement, but make it feel sensical: Townsfolk shouldn't just keep on walking their route all the time; have them stop halfway, turn around or look at the scenery before completing their circuit. Or have them alternate between two routes that start and end at the same point. Make them march in place while talking to someone else and have them say something without turning to the player, so that it feels they're overhearing the conversation. These are people with lives, worries, needs, desires and problems; try to draw from the last time you went to a restaurant or park and gathered some info from hearing other people.
Use some animated events to have bees buzzing around a nest or birds flying among several trees, kids playing hide and seek, or a fish jumping out of the water from time to time. Take advantage of background sounds, too. The creek or river in a town should be heard in any screen it's visible; add some echo to the battle theme if you're fighting inside a cave. It's all these little details what come together to enrich the experience.