npc-generator

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

NPC Generator - Générateur de PNJ pour BFRPG

NPC Generator - 为BFRPG打造的NPC生成器

Skill pour générer des personnages non-joueurs complets avec description physique, personnalité, motivations et secrets.
Skill用于生成包含外貌描述、性格、动机和秘密的完整NPC。

Utilisation Rapide

快速使用

bash
undefined
bash
undefined

Compiler si nécessaire

如有需要请编译

go build -o sw-npc ./cmd/npc
go build -o sw-npc ./cmd/npc

Générer un PNJ complet

生成完整NPC

./sw-npc generate
./sw-npc generate

Générer plusieurs PNJ rapidement

快速生成多个NPC

./sw-npc quick --count=5
undefined
./sw-npc quick --count=5
undefined

Commandes Disponibles

可用命令

Génération Complète

完整生成

bash
./sw-npc generate [options]
bash
./sw-npc generate [options]

Options:

选项:

--race=<race> Race (human, dwarf, elf, halfling)

--race=<race> 种族(human, dwarf, elf, halfling)

--gender=<m|f> Sexe

--gender=<m|f> 性别

--occupation=<type> Type d'occupation

--occupation=<type> 职业类型

--attitude=<type> Attitude envers les PJ

--attitude=<type> 对玩家角色(PJ)的态度

--format=<md|json|short> Format de sortie

--format=<md|json|short> 输出格式

undefined
undefined

Génération Rapide

快速生成

bash
./sw-npc quick [options]
bash
./sw-npc quick [options]

Mêmes options + --count=N pour plusieurs PNJ

相同选项 + --count=N 生成多个NPC

undefined
undefined

Types d'Occupation

职业类型

TypeDescriptionExemples
commoner
Gens du peuplefermier, boulanger, serveur, mendiant
skilled
Artisans qualifiésmarchand, apothicaire, musicien, scribe
authority
Figures d'autoritégarde, sergent, noble, magistrat
underworld
Monde criminelvoleur, espion, contrebandier, assassin
religious
Religieuxprêtre, moine, pèlerin, inquisiteur
adventurer
Aventurierschasseur de primes, explorateur, mercenaire
类型描述示例
commoner
平民农民、面包师、服务员、乞丐
skilled
熟练工匠商人、药剂师、音乐家、抄写员
authority
权威人物守卫、中士、贵族、法官
underworld
黑道人物小偷、间谍、走私者、刺客
religious
宗教人士牧师、修道士、朝圣者、检察官
adventurer
冒险者赏金猎人、探险家、雇佣兵

Attitudes

态度

AttitudeDescription
positive
Amical, serviable, accueillant
neutral
Professionnel, indifférent, prudent
negative
Méfiant, hostile, moqueur
态度描述
positive
友好、乐于助人、热情
neutral
专业、冷漠、谨慎
negative
多疑、敌对、嘲讽

Exemples

示例

PNJ Complet

完整NPC

bash
./sw-npc generate --race=dwarf --gender=m --occupation=skilled
Résultat:
markdown
undefined
bash
./sw-npc generate --race=dwarf --gender=m --occupation=skilled
结果:
markdown
undefined

Thorin Ironfoot

Thorin Ironfoot

Nain Homme - forgeron
男性矮人 - 铁匠

Apparence

外貌

Petit trapu, de stature trapu. Cheveux bruns tressés, yeux noisette...
身材矮壮。棕色编发,榛色眼眸...

Personnalité

性格

  • Trait principal : travailleur
  • Trait secondaire : traditionnel
  • Qualité : loyal envers ses amis
  • Défaut : est têtu
  • 主要特质 : 勤奋
  • 次要特质 : 传统
  • 优点 : 对朋友忠诚
  • 缺点 : 固执

Comportement

行为

  • Voix : grave et profonde, parle lentement
  • Tic : se gratte la barbe en réfléchissant
  • Attitude : professionnel et distant
  • 声音 : 低沉浑厚,语速缓慢
  • 习惯动作 : 思考时抓胡子
  • 态度 : 专业且疏离

Secrets (MJ seulement)

秘密(仅供MJ查看)

  • Objectif : amasser une fortune
  • Peur : l'échec
  • Secret : a des dettes importantes
undefined
  • 目标 : 积累财富
  • 恐惧 : 失败
  • 秘密 : 身负巨额债务
undefined

Liste Rapide de PNJ

NPC快速列表

bash
./sw-npc quick --occupation=commoner --count=5
Résultat:
Aldric Ironhand - humain homme, fermier (calme, indifférent)
Rose Greenhill - halfelin femme, serveur (jovial, curieux mais réservé)
Legolas Moonwhisper - elfe homme, berger (distant, poli mais pressé)
...
bash
./sw-npc quick --occupation=commoner --count=5
结果:
Aldric Ironhand - 男性人类,农民(冷静、冷漠)
Rose Greenhill - 女性半身人,服务员(快活、好奇但内敛)
Legolas Moonwhisper - 男性精灵,牧羊人(疏离、礼貌但匆忙)
...

Export JSON

JSON导出

bash
./sw-npc generate --format=json
bash
./sw-npc generate --format=json

Intégration avec Adventure Manager

与Adventure Manager集成

Pour logger les rencontres de PNJ :
bash
undefined
记录NPC遭遇:
bash
undefined

Générer un PNJ

生成一个NPC

./sw-npc generate --occupation=authority --attitude=positive
./sw-npc generate --occupation=authority --attitude=positive

Logger dans l'aventure

记录到冒险中

./sw-adventure log "Mon Aventure" npc "Rencontre avec le capitaine Aldric"
undefined
./sw-adventure log "Mon Aventure" npc "与Aldric队长的相遇"
undefined

Structure des Données

数据结构

Le générateur utilise deux fichiers de données :
  • data/names.json
    - Dictionnaires de noms par race
  • data/npc-traits.json
    - Traits d'apparence, personnalité, motivations
生成器使用两个数据文件:
  • data/names.json
    - 按种族分类的姓名词典
  • data/npc-traits.json
    - 外貌、性格、动机特质

Traits Générés

生成的特质

Apparence :
  • Corpulence, taille
  • Couleur et style de cheveux
  • Couleur des yeux, teint de peau
  • Trait facial distinctif
  • Signe particulier
Personnalité :
  • Trait principal (amical, distant, courageux...)
  • Trait secondaire (superstitieux, romantique...)
  • Qualité principale
  • Défaut principal
Comportement :
  • Ton de voix
  • Manière de parler
  • Tic ou habitude
Motivations (pour le MJ) :
  • Objectif de vie
  • Peur principale
  • Secret caché
外貌 :
  • 体型、身高
  • 头发颜色与样式
  • 眼睛颜色、肤色
  • 独特面部特征
  • 特殊标记
性格 :
  • 主要特质(友好、疏离、勇敢...)
  • 次要特质(迷信、浪漫...)
  • 主要优点
  • 主要缺点
行为 :
  • 语调
  • 说话方式
  • 习惯动作或癖好
动机(供MJ使用) :
  • 人生目标
  • 主要恐惧
  • 隐藏的秘密

Conseils d'Utilisation

使用建议

Pour un PNJ récurrent

用于常驻NPC

bash
./sw-npc generate --format=md
Sauvegardez la description complète pour référence future.
bash
./sw-npc generate --format=md
保存完整描述以供日后参考。

Pour une foule de figurants

用于路人NPC

bash
./sw-npc quick --count=10 --occupation=commoner
Descriptions courtes pour des PNJ de passage.
bash
./sw-npc quick --count=10 --occupation=commoner
简短描述用于一次性出现的NPC。

Pour un antagoniste

用于反派

bash
./sw-npc generate --attitude=negative --occupation=underworld
Un PNJ avec des motivations hostiles.
bash
./sw-npc generate --attitude=negative --occupation=underworld
带有敌对动机的NPC。

Pour un allié potentiel

用于潜在盟友

bash
./sw-npc generate --attitude=positive --occupation=adventurer
Un PNJ qui pourrait aider le groupe.
bash
./sw-npc generate --attitude=positive --occupation=adventurer
可能帮助玩家团队的NPC。

Races et Ajustements

种族与调整

Le générateur ajuste automatiquement l'apparence selon la race :
RaceAjustements
NainPetit, trapu/musclé/robuste
ElfeGrand, mince/svelte/élancé
HalfelinTrès petit
HumainVariable
生成器会根据种族自动调整外貌:
种族调整
矮人矮小、矮壮/强壮/结实
精灵高大、苗条/纤细/修长
半身人非常矮小
人类多变

Utilisé par

使用场景

Ce skill est utilisé par les agents suivants :
AgentUsage
dungeon-master
Création de PNJ à la volée
Type : Skill autonome, peut être invoqué directement via
/npc-generator
Dépendances : Utilise
name-generator
pour les noms des PNJ
该Skill被以下Agent使用:
Agent用途
dungeon-master
即时创建NPC
类型 : 独立Skill,可通过
/npc-generator
直接调用 依赖 : 使用
name-generator
生成NPC姓名