Prompt file imported from byron123t/cobblemon (
.codex/prompts/generate-location-npcs.md). Copyright stays with the author.
Generate Location NPCs
Use for a location file such as locations/vaniville-town.md.
Required Reads
AGENTS.mddocs/npc-generation-playbook.mddocs/command-reference.mdtemplate.npc.snbt- the requested
locations/<slug>.md
Steps
- Parse each NPC: name, UUID, location note, personality, battle id, trade/reward/quest intent.
- Create
generated/<location-slug>/. - Clone
template.npc.snbtfor each NPC and write a legibly named.npc.snbt. - Apply the playbook hard checks exactly: UUID/name fields, static skin UUID, static
ON_INTERACTION, template formatting, command placeholder rules. - Build natural dialog branches with personality, opinions, and actual player choices. Remember
Textsis random selection, not sequential narration. For IMPORTANT CHARACTER NPCs, use multiple independent randomTextson major stage/greeting dialogs. - Add trades, battles, rewards, and scoreboard hooks only where they fit the NPC brief.
- Put limited rewards behind named reward branches. Use scoreboard flags for 1/lifetime rewards like TMs, key items, EXP Share, and quest milestones. Use
EXECUTION_LIMITwithText:"PER_DAY",Type:"EXECUTION_LIMIT",Value:1for 1/day events like check-ins, berries, contests, movies, and lotteries. Keep claim button actions simple: give, Easy NPCSCOREBOARDset/increase only when needed for lifetime/progress state, open result dialog. Do not use/scoreboardcommands inside Easy NPC action lists. - Write
generated/<location-slug>/notes.mdwith uncertain item ids, reward reset behavior, scoreboard objectives, and commands to test. - Run
powershell -ExecutionPolicy Bypass -File .\scripts\Test-ProjectText.ps1.
Output Contract
Final response should list generated files, validation result, item ids needing in-game verification, and any commands worth testing first.