You need pre-trained LLM which doesn’t need to be fine-tuned for this game (e.g. GPT3.5) and you prompt it with NPC’s observations, personality traits, memories and description of possible game actions/goals.
This is the principle. Then the devil is in the details… to make it
Pre-trained LLMs for NPC Game Control via Prompting
By
–