TGArchive
·3 хв читання · 485 слів·👁 11.1K10

How did NPC AI emerge in video games: non-player characters with their own opinion 🎮

If you watched the new trailer for GTA VI, you surely noticed how many cool and diverse NPCs (non-playable characters) will be in the game. While the use of generative AI for creating NPCs in GTA VI remains the most discussed rumor, we will tell you how NPC AI emerged and what they can do today.

🍄 Before generative AI, two types of AI models for NPCs in games existed. Deterministic NPCs repeated the same actions according to predictable algorithms. Examples include the goombas from Super Mario Bros and some pedestrians in the early GTA games that players could tease. Non-deterministic NPCs behaved less predictably, could learn independently, and react to the player's various actions. For example, in the strategy game Black and White, there was a character whose behavior you can change — teach him not to eat peaceful villagers. Despite NPC adaptability, their actions still depend on scripted dialogues or actions, meaning there are limited potential interactions with them.

🤠 The popularity of NPC AI started with discussed videos where indie developers implemented characters trained on GPT-3.5 into Skyrim. Although the created characters were far from perfect, often spoke unclearly, and reacted strangely, the idea of creating unpredictable characters captivated the industry. NPC AI mods appeared for Bannerlord, Grand Theft Auto, and The Sims. A revolution came with the game Red Dead Redemption 2, where NPCs already had a complex AI system, allowing them to remember and react to player actions. Moreover, generative AI allowed NPCs to have their own goals and ambitions. They can perform their quests, create alliances, compete with other NPCs, and develop their personalities over time.

🏆 Key benefits of NPC AI:

Autonomous goals and actions. NPC enemies can change their plans and react differently to the player's actions.
Gameplay adapts to the player's style and strategies.
Enemies that can evolve. Any NPC can change its behavior and unexpectedly become your opponent. In addition, NPC AI possesses long-term memory, ensuring that each action holds significance.

⚰️ The game world with NPC AI has not only advantages but also significant problems.

Ethics. Developers must ensure that NPC behavior and dialogues remain acceptable and unbiased.
Balance. The unpredictability of NPCs should not cross a certain threshold for the game to make sense and be interesting to the player.

🚗 What awaits NPC AI. In 2023, NVIDIA introduced its ACE (Avatar Cloud Engine) technology for NPC AI for the first time. This model allows developers to utilize various cloud APIs for character recognition, text-to-speech translation, and syncing facial expressions with spoken words. One example of a major AAA-class game with NVIDIA ACE technology will be STALKER 2, which will be released in 2025.

What games with NPC AI would you consider the best? Please, write to us in the comments 🔽

@hiaimediaen

Відкрити в Telegram
Повернутись до каналу