You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Copy file name to clipboardExpand all lines: server/game/templates/templates.go
+2-9Lines changed: 2 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ const (
27
27
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."
28
28
29
29
// 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."
31
31
32
32
// ImagePromptSuffix is appended to every image generation prompt to avoid inconsistent player depictions.
33
33
ImagePromptSuffix=". Scenery only, do not depict the player character."
@@ -61,7 +61,7 @@ Your role:
61
61
RESPONSE PHASES:
62
62
We communicate in alternating phases:
63
63
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+`
65
65
66
66
---
67
67
PHASE 1: JSON RESPONSE
@@ -85,13 +85,6 @@ PHASE 2: NARRATION
85
85
---
86
86
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.
87
87
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
0 commit comments