4 ms·
Smarter NPC. Not an actual game yet, but i started out trying to create a generic AI system for NPC, because i really want to play games like that. So i decided
by xerophtye 13y ago
Smarter NPC. Not an actual game yet, but i started out trying to create a generic AI system for NPC, because i really want to play games like that. So i decided to contribute to this dream by making an open-source AI module for NPC to help game developers create amazing games.
My idea is to make a Goal-based system. Each NPC would have a set of goals, and would weigh in available actions as to how closer it would take them to their goals. I decided to start of with something simple like "maximize gold" so the NPC would take actions that resulted in most gold increase. i figured if i did it right, the NPC would themsleves figure out paths in action-trees that would let them make more gold. for example, figuring out that making wooden stuff out of logs is more profitable than selling raw wood. Or that if you can afford it, hiring people to make the wooden stuff (like a business/company) is more profitable overall than doing it yourself (cuz of multi-threading, opportunity cost, overall path weight, etc).
So it would be cool to see NPC picking out roles themselves, forming in-game societies and behavin in line with their goals. heck maybe someone can make a game that would involve using people's goals to influence them