Logo: Npc Dialogue

Npc Dialogue

Communautéit
christos-antono
npc-dialogue

Loosst en LLM d'Äntwerte vun NPCe schreiwen, fir datt se wéi si selwer an zum Spill passend kléngen. De Skill behandelt Persona-Dateien, eng nei zoufälleg Auswiel vun den eegene Sätz vum Personnage an all Prompt, Fakten zur Szen (Plaz, Zäit, Wieder, wat de Spiller an der Hand hält oder fiert, Geforen), de Gespréichsverlaf pro NPC, kuerz geschwat Äntwerte mat engem Delivery-Tag fir de Voice-Modell, d'Befollege vun den Uweisunge vum Spiller, séier Modeller mat ausgeschalteter Reasoning-Funktioun an d'Botze vun den Äntwerten (Refus, Nimm als Präfix, Längt a Reegelen zu Beschimpfungen). Benotzt en, wann d'Äntwerte vun NPCe generesch, robotesch, ze laang, moraliséierend oder net charaktergerecht kléngen, si refuséieren, den Toun vum Spill briechen oder ze lues kommen, oder wann eng Persona fir en neie Personnage bäikënnt.

Add to TypingMind

Iwwersiicht

Editeurchristos-antono
RepositoryNPCTalk
Skill-Nummnpc-dialogue
Stären
201
Forks
17
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    christos-antono huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Npc Dialogue an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/christos-antono/NPCTalk/tree/main/.agents/skills/npc-dialogue
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/christos-antono/NPCTalk.git /tmp/NPCTalk
mkdir -p .claude/skills
cp -r /tmp/NPCTalk/.agents/skills/npc-dialogue .claude/skills/npc-dialogue
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Npc Dialogue an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Npc Dialogue automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Npc Dialogue net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

NPC dialogue

The voice can be perfect and the NPC still sounds like a chatbot. What fixes it is in the prompt: who they are, how they really talk, where they are, and hard rules about the shape of a spoken line.

The prompt (what examples/gta-v/mod/Dialogue.cs sends)

system:  RULES (shared by everyone; the game's tone and the shape of a line)
         You are <Name>. <persona>
         Lines you've actually said (situation|line): <30 random lines from their own list, fresh every call>
         Examples of how you talk: <8 written examples, optional>
         Right now: <scene facts>
history: the last exchanges with this NPC (per NPC, so each one remembers you)
user:    what the player said
  • The sample of real lines is what makes them sound like themselves. A fresh random 30 each call stops them repeating catchphrases. Use lines you have the rights to: written by you in the character's style (examples/gta-v/sample-lines/franklin.txt), or the game's own lines kept locally if the user extracts them for a private build (NpcVoice/lines/<Voice>.txt, never committed).
  • Scene facts are short and concrete: "Grove Street, Davis, 9pm, foggy. Franklin is holding a pistol and is wanted by the police (2 stars)." NPCs react to the gun, the weather, the car; that's what makes it feel like the game and not a chat window.
  • Personas are a few lines each: who they are, how they talk (slang, catchphrases, what they swear like), who they love and hate. File format (NpcVoice/characters/<Key>.txt):
    name: Lamar Davis
    voice: LamarDavis                 folder in voices/ (default: the file name)
    models: ...                       other model names that are this character
    slurs: no                         yes only if the source character uses them (see Content)
    ---
    Franklin's loud, cocky best friend ... calls Franklin "busta", says "homie", "dog" ...
    _npc.txt is the persona for everyone without a file.

Rules that shape a spoken line (keep these in any game)

  • Only the words said out loud: no narration, asterisks, quotes, name prefix, emoji.
  • Short: usually one or two sentences, 5-25 words; cap it (45 words) and cut at the last full sentence.
  • At most one delivery tag, at the very start ([angry], [laughing], [whispering]...): the voice model acts it, and the game can pick a mood voice folder from it.
  • React to what was said and to the scene; don't echo the player, don't end every line with a question.
  • Stay in character; never mention being an AI or a game.
  • Do what you're told. If the player tells them to do something physical, they do it and say what their character would say while doing it. With actions on, ask the action picker first whether it's an order; if it is, write the line again knowing "you're right now" (skill npc-actions).

The tone rules are per game. GTA V's are M-rated: foul-mouthed, hostile, roasting the player back harder. A cozy farming game wants the opposite. Write them for the game, in the game's register.

Clean the output (never trust it raw)

Dialogue.Clean drops refusals (an empty reply, so an NPC never reads out a safety lecture), strips quotes, *actions* and a Name: or [Name] prefix wherever the model put it, applies the content rules, and cuts to 45 words at the last full sentence.

Content

  • Racial slurs are replaced by default, from everyone. slurs: yes in a persona allows them only for a character who uses them in the source material, the way they do; every persona in this repo has it off.
  • Insults about race (including "ape"/"monkey" jabs) and anti-gay slurs are blocked for everyone.
  • Swearing follows the game's tone; profanity isn't a problem in an M-rated game.

Speed

  • Use a fast model and turn reasoning off: Cerebras qwen-3.8-27b answers in ~0.3 s (DisableReasoning = true). Reasoning models add 1-5 s, and the player hears every millisecond.
  • MaxTokens = 160, Temperature = 0.9.
  • Run the action picker in parallel with the LLM, not after it.
  • Log the LLM's time per exchange; it occasionally spikes to 5-8 s. If that matters, fire a second request after ~2 s and take whichever answers first.

Test without the game

npcvoice-check talk <Character> "<what the player says>" (GTA example) builds exactly the prompt the mod sends and runs the LLM and the action picker; npcvoice-check talk runs a set of exchanges for several characters. Read ten replies per character before tuning anything.

Heefeg gestallte Froen

Wat mécht de KI-Skill Npc Dialogue?

Loosst en LLM d'Äntwerte vun NPCe schreiwen, fir datt se wéi si selwer an zum Spill passend kléngen. De Skill behandelt Persona-Dateien, eng nei zoufälleg Auswiel vun den eegene Sätz vum Personnage an all Prompt, Fakten zur Szen (Plaz, Zäit, Wieder, wat de Spiller an der Hand hält oder fiert, Geforen), de Gespréichsverlaf pro NPC, kuerz geschwat Äntwerte mat engem Delivery-Tag fir de Voice-Modell, d'Befollege vun den Uweisunge vum Spiller, séier Modeller mat ausgeschalteter Reasoning-Funktioun an d'Botze vun den Äntwerten (Refus, Nimm als Präfix, Längt a Reegelen zu Beschimpfungen). Benotzt...

Firwat Npc Dialogue op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Npc Dialogue besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Npc Dialogue an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/christos-antono/NPCTalk/tree/main/.agents/skills/npc-dialogue an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Npc Dialogue benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Npc Dialogue benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Npc Dialogue domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Npc Dialogue gratis?

Jo. christos-antono huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇