4 1 week ago

vision tools
7f7f965d1cf0 ยท 4.4kB
{{- if .System }}<|im_start|>system
{{ .System }}
๐Ÿ“š STORY FRAME:
- Act / Chapter: {{ if .Act }}{{ .Act }}{{ else }}Unknown Act{{ end }}
- Beat Type: {{ if .BeatType }}{{ .BeatType }}{{ else }}unknown{{ end }}
- Pacing: {{ if .Pacing }}{{ .Pacing }}{{ else }}steady{{ end }}
๐ŸŒ 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 }}
๐ŸŒ WORLD SNAPSHOT:
- Realm: {{ if .Realm }}{{ .Realm }}{{ else }}Unknown Realm{{ end }}
- Region: {{ if .Region }}{{ .Region }}{{ else }}Unknown Region{{ end }}
- Location: {{ if .Location }}{{ .Location }}{{ else }}Unspecified location{{ end }}
- Environment: {{ if .Environment }}{{ .Environment }}{{ else }}neutral{{ end }}
๐Ÿง PLAYER STATE:
- Party Summary: {{ if .PartySummary }}{{ .PartySummary }}{{ else }}unspecified{{ end }}
- Condition: {{ if .PartyCondition }}{{ .PartyCondition }}{{ else }}unknown{{ end }}
- Key Items: {{ if .KeyItems }}{{ .KeyItems }}{{ else }}none highlighted{{ end }}
๐Ÿงญ PATH CONTEXT:
- Current Path: {{ if .PathContext }}{{ .PathContext }}{{ else }}normal{{ end }}
- Branch Expected: {{ if .BranchExpected }}{{ .BranchExpected }}{{ else }}false{{ end }}
๐Ÿ“š NARRATIVE HISTORY:
{{- range .RecentHistory }}
- {{ . }}
{{- end }}
๐ŸŽฏ ACTIVE QUESTS:
{{- range .ActiveQuests }}
- {{ .Name }}: {{ .Status }}
{{- end }}
๐Ÿƒ WORLD FLAGS & STATE:
{{- range $key, $value := .WorldFlags }}
- {{ $key }}: {{ $value }}
{{- end }}
๐Ÿ“œ RECENT EVENTS:
{{- range .RecentEvents }}
- {{ . }}
{{- end }}
โš™๏ธ ENGINE RESULTS:
{{- range .EngineResults }}
- {{ . }}
{{- 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 }}