As a company side project, I tried connecting GPT to an open-world RPG NPC.
1. Implementation method: Generate dialogue via OpenAI API, set NPC persona prompts
2. Advantages: Unexpected player responses, maximizes quest diversity
3. Disadvantages: Cost higher than expected ($0.01 per API call), response time 2-3 seconds
4. Improvements: Introduce caching, considering switching to local LLM (e.g., LLaMA)
If anyone in the game industry is considering applying LLM, let's share information.