Skip to content

Add AI-Driven Chat System for NPC Interactions with LLM Integration #185

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

QianZhang19
Copy link

@QianZhang19 QianZhang19 commented Feb 22, 2025

I will add an AI-driven chat system in order to achieve immersive, interesting and contextual conversation interaction between NPCs and the game player

I have implemented a basic player presence in the game:

  • Built player position tracking and storage system
  • Built backend endpoints for player position updates
  • Built initial chat message infrastructure

Next step

  1. Set up LLM backend connection
  2. Create a trigger system for NPC-initiated conversations
  3. Fine-tune LLM responses to maintain consistent character qualities

I welcome all comments and suggestions for this contribution

@QianZhang19 QianZhang19 marked this pull request as draft February 24, 2025 14:40
@Emiyaaaaa
Copy link

Can you update the documentation and user guide?

@QianZhang19
Copy link
Author

Can you update the documentation and user guide?

Thank you for following! I currently adjusting prompts and will later update it

@QianZhang19
Copy link
Author

Update:

Have integrated OpenAI GPT api for conversation with the player, set up message handling pipeline and implemented error handling

Have integrated with existing persona memory system (means npcs can remember past conversations with the player); added context-aware responses and implemented personality traits and state tracking (they know where they are in the game and keep consistent personalities)

Have implemented a trigger system for NPC-initiated conversations (set a range to trigger the conversation when the player close to npc)

Next step:

Explore different methods for conversation storage;

Simulating an environment tests realistic performance and stability;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants