Skip to content

AkshitIreddy/AI-NPCs-that-can-Control-their-Actions-along-with-Dialogue

Repository files navigation

AI NPCs that can Control their Actions along with Dialogue

Imagine a game where AI-powered Non-Player Characters (NPCs) can not only respond to your questions but also perform actions based on your requests! 😄 Cohere's Command model generates character responses, including dialogue and actions, using templates that define their talking style, action list, and bio. 💬 Unreal Engine, even though it can't run Python directly, communicates with it through text files, enabling real-time interaction. 🎮 AssemblyAI transcribes player dialogue, while ElevenLabs generates voice dialogue, which is then imported into the game using the Runtime Audio Importer. 🗣️ The MetaHuman SDK brings these characters to life with facial animations. 😮 Actions requested by players are parsed and executed, ranging from animations to item spawns and even AI-generated music creation. 🕹️

The Repository contains the python script and the demo.umap which you can import in a level in unreal to look at the level blueprint and see the logic. 📂 There are a couple of other files as well that can help you understand better. 📚 If you find this repository helpful, consider giving it a star! ⭐

thumbnail

Video Demo ✨ ☃️

Link: https://www.linkedin.com/posts/akshit-ireddy_generativeai-ai-gaming-activity-7107049969966059520-C-WC?utm_source=share&utm_medium=member_desktop

Explanation: https://medium.com/@akshit.r.ireddy/how-i-made-ai-npcs-that-can-control-their-actions-along-with-dialogue-7f7a45adc95e

Discord Server: https://discord.gg/CfK7DCWKwy

Tools 🚀 🔧

3d Assets 🧊 🏰

❤️ Thanks

If you found this interesting check out Alystria AI for more fun projects

https://www.linkedin.com/company/alystria-ai

About

AI NPCs that can control their actions along with dialogue. For instance, if I ask an NPC to tell me its favorite magic spell, it not only tells me the spell but also performs it!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published