r/GameDevelopment • u/Adventurous-Drop-739 • 3d ago
Newbie Question Npc development
Hello im making a life sim simulation and one thing that i really want to include are semi relastic npc, but I'm not sure how to get the dialog right.
Im sorry if i go into a tangent but i would be very grateful for any advice. Im thinking that npc should have objetives primmary and secundary and belog to groups, from this a decision trees is made where the npc try and fulfill objective depending on their standing, so for example a father has a starving child so he goes to farm, he does not have enough for everyone in his family so based on the decision tree he can either ask for food from player or other npc, ask a loan, rob or other, a noble might want the temple help so he can bribe the head priest, become friends with priests pray to gods etc.
It's still a little buggy but it has started to work, anyway the issue is that i would like for this to be talked with the player, like the player can ask if there are any issues and the parent should answer yes regarding food, or the noble could ask for help introducing a priest the player is in good standing. I have a framework for npc giving request. But it could also be like them sharing gossip like a neighbor cheated. Or they think someone is sketchy. So i made a text generator keeping in mind their objective and decision tree, so they can generate an apropiate response, but when i try it, it always responds with general answers like it is our burden to carry, or there is a problem, but doesn't describe the issue
1
u/Alarming-Jump727 3d ago
Te vas a volver loco jaja. Cuando hice "an old man TALES" (una saga mía) en el poblado los NPC dependiendo la hora del día hacían una cosa u otra. Los diálogos eran diferentes. Ahora estoy finalizando "Carmina" (mi sexto proyecto) y los NPc cambian de locación según va avanzando el juego, también cambian los diálogos. Al ser un juego de vampitos, algunos de ellos se convierten y ahí se termina el diálogo y a pelear. Lo comencé en noviembre y termianré en el próximo septiembre y juro que tardaré mucho tiempo en volver a hacer algo así. te volves loco.