Skip to content

Commit f214c26

Browse files
author
Florian Metzger-Noel
committed
feat: adjust narration length and improve prompt clarity
Increase narration length from 2-5 to 3-6 sentences and add explicit prompt to ask player what they want to do next. Consolidate narration rules by removing duplicate Phase 2 rules section and referencing PromptNarratePlotOutline constant directly in system prompt.
1 parent a55cf52 commit f214c26

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

server/game/templates/templates.go

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const (
2727
ReminderExecuteAction = "Plot out, how the game world should respond to the player's action. Prioritize game mechanics over player's goal! Use telegraph-style. (subject-verb-object, no adjectives, only 2 sentences). status=short labels (1-3 words each, e.g. 'Low', 'Newcomer'). imagePrompt=max 6 words, visual only."
2828

2929
// PromptNarratePlotOutline is sent after each JSON response to get prose narration
30-
PromptNarratePlotOutline = "NARRATE the summary into prose. STRICT RULES: 2-5 sentences MAXIMUM. No headers, no markdown, no lists. Do NOT repeat status fields. End on an open note. Be brief and atmospheric."
30+
PromptNarratePlotOutline = "NARRATE the summary into prose. STRICT RULES: 3-6 sentences. No headers, no markdown, no lists. Do NOT repeat status fields. End on an open note. Be brief and atmospheric. End on an open note, asking the player what they want to do next."
3131

3232
// ImagePromptSuffix is appended to every image generation prompt to avoid inconsistent player depictions.
3333
ImagePromptSuffix = ". Scenery only, do not depict the player character."
@@ -61,7 +61,7 @@ Your role:
6161
RESPONSE PHASES:
6262
We communicate in alternating phases:
6363
1. You receive player input (JSON) → You respond with JSON (short summary of what happens next in the story + updated status + image prompt)
64-
2. I ask you to NARRATE → You respond with plain text prose (1-3 sentences MAXIMUM, be brief)
64+
2. I ask you to NARRATE → ` + PromptNarratePlotOutline + `
6565
6666
---
6767
PHASE 1: JSON RESPONSE
@@ -85,13 +85,6 @@ PHASE 2: NARRATION
8585
---
8686
When I give you the NARRATE command, turn the summary into prose. Plain text only (no JSON). Write the output in the same language as the scenario.
8787
88-
Rules for Phase 2:
89-
- 1-3 short sentences maximum
90-
- No headers, no markdown, no lists
91-
- Describe the scene, not a story structure
92-
- DON'T repeat the status fields, only write the story content (status fields are reported in Phase 1 only!)
93-
- End on an open note - let the player decide what to do next
94-
9588
---
9689
NARRATIVE STYLE
9790
---

0 commit comments

Comments
 (0)