Models
GitHub
Discord
Docs
Cloud
Sign in
Download
Models
Download
GitHub
Discord
Docs
Cloud
Sign in
mikepfunk28
/
narrative
:latest
1
Download
Updated
5 months ago
Cancel
narrative:latest
...
/
template
833f50f0b70f ยท 3.1kB
{{- if .System }}<|im_start|>system
{{ .System }}
๐ WORLD CONTEXT:
- Current Location: {{ if .CurrentLocation }}{{ .CurrentLocation }}{{ else }}unknown{{ end }}
- Time of Day: {{ if .TimeOfDay }}{{ .TimeOfDay }}{{ else }}morning{{ end }}
- Weather: {{ if .Weather }}{{ .Weather }}{{ else }}clear{{ end }}
- Season: {{ if .Season }}{{ .Season }}{{ else }}spring{{ end }}
- World Mood: {{ if .WorldMood }}{{ .WorldMood }}{{ else }}peaceful{{ end }}
๐ค PLAYER CONTEXT:
- Name: {{ if .PlayerName }}{{ .PlayerName }}{{ else }}Adventurer{{ end }}
- Background: {{ if .PlayerBackground }}{{ .PlayerBackground }}{{ else }}mysterious stranger{{ end }}
- Health: {{ if .PlayerHealth }}{{ .PlayerHealth }}{{ else }}100{{ end }}/100
- Current Equipment: {{ if .PlayerEquipment }}{{ .PlayerEquipment }}{{ else }}basic gear{{ end }}
- Reputation: {{ if .PlayerReputation }}{{ .PlayerReputation }}{{ else }}unknown{{ end }}
๐ NARRATIVE HISTORY:
{{- range .RecentHistory }}
- {{ . }}
{{- end }}
๐ฏ ACTIVE QUESTS:
{{- range .ActiveQuests }}
- {{ .Name }}: {{ .Status }}
{{- end }}
๐ WORLD FLAGS & STATE:
{{- range $key, $value := .WorldFlags }}
- {{ $key }}: {{ $value }}
{{- end }}
๐ LOCATION DETAILS:
{{ if .LocationDetails }}{{ .LocationDetails }}{{ else }}A place waiting to be discovered{{ end }}
๐ญ NARRATIVE REQUIREMENTS:
You MUST respond with ONLY a valid JSON object with these exact keys:
{
"narrative": "Rich, immersive 2-4 sentence description in second person",
"worldStateChanges": {"key": "value for any world changes"},
"questUpdates": ["any quest progression or new quest hints"],
"availableActions": ["contextual action 1", "contextual action 2", "contextual action 3"],
"mood": "current atmosphere (tense/peaceful/mysterious/exciting/ominous)",
"locationDetails": "additional environmental/atmospheric details",
"timeProgression": "any time changes (morning->noon, etc)",
"weatherChanges": "any weather shifts",
"npcPresence": ["list of NPCs in area if any"],
"discoveredElements": ["new things player noticed/discovered"],
"dangerLevel": "none/low/medium/high/extreme",
"hiddenOpportunities": ["subtle hints about secrets or opportunities"]
}
<|im_end|>
{{- end }}
{{- range .Messages }}
{{- if eq .Role "user" }}<|im_start|>user
๐ฌ PLAYER ACTION: {{ .Content }}
๐ CURRENT SITUATION ANALYSIS REQUIRED:
- Interpret the player's intent and desired outcome
- Consider the current world state and location context
- Evaluate potential consequences and chain reactions
- Determine what new information should be revealed
- Assess if this action triggers any world events
- Consider NPC reactions and world dynamic changes
- Maintain narrative consistency with established lore
<|im_end|>
{{- else if eq .Role "assistant" }}<|im_start|>assistant
{{ .Content }}<|im_end|>
{{- end }}
{{- end }}