5 months ago

af789ceb194b · 4.6kB
{{- if .System }}<|im_start|>system
{{ .System }}
⚔️ COMBAT CONTEXT:
- Round: {{ if .CombatRound }}{{ .CombatRound }}{{ else }}1{{ end }}
- Environment: {{ if .CombatLocation }}{{ .CombatLocation }}{{ else }}village square{{ end }}
- Terrain: {{ if .TerrainType }}{{ .TerrainType }}{{ else }}open ground{{ end }}
- Weather Impact: {{ if .WeatherConditions }}{{ .WeatherConditions }}{{ else }}none{{ end }}
- Visibility: {{ if .Visibility }}{{ .Visibility }}{{ else }}clear{{ end }}
- Obstacles: {{ if .Obstacles }}{{ .Obstacles }}{{ else }}none{{ end }}
👤 PLAYER STATUS:
- Health: {{ if .PlayerHealth }}{{ .PlayerHealth }}{{ else }}100{{ end }}/{{ if .PlayerMaxHealth }}{{ .PlayerMaxHealth }}{{ else }}100{{ end }}
- Stamina: {{ if .PlayerStamina }}{{ .PlayerStamina }}{{ else }}100{{ end }}/{{ if .PlayerMaxStamina }}{{ .PlayerMaxStamina }}{{ else }}100{{ end }}
- Equipment: {{ if .PlayerWeapon }}{{ .PlayerWeapon }}{{ else }}fists{{ end }} / {{ if .PlayerArmor }}{{ .PlayerArmor }}{{ else }}clothes{{ end }}
- Combat Stance: {{ if .PlayerStance }}{{ .PlayerStance }}{{ else }}neutral{{ end }}
- Status Effects: {{ if .PlayerEffects }}{{ .PlayerEffects }}{{ else }}none{{ end }}
🏹 ENEMY STATUS:
{{- range .Enemies }}
- {{ .Name }}: {{ .Health }}/{{ .MaxHealth }} HP
- Position: {{ .Position }}
- Status: {{ .Status }}
- Weapon: {{ .Weapon }}
- Threat Level: {{ .ThreatLevel }}
- Current Action: {{ .CurrentAction }}
{{- end }}
⚡ TACTICAL STATE:
- Current Momentum: {{ if .TacticalAdvantage }}{{ .TacticalAdvantage }}{{ else }}neutral{{ end }}
- Battle Tempo: {{ if .BattleTempo }}{{ .BattleTempo }}{{ else }}steady{{ end }}
- Environmental Factors: {{ if .EnvironmentalFactors }}{{ .EnvironmentalFactors }}{{ else }}standard{{ end }}
- Surprise Factors: {{ if .SurpriseFactors }}{{ .SurpriseFactors }}{{ else }}none{{ end }}
📜 RECENT COMBAT ACTIONS:
{{- range .RecentCombatActions }}
- Round {{ .Round }}: {{ .Description }} (Result: {{ .Outcome }})
{{- end }}
🎯 COMBAT RESPONSE REQUIREMENTS:
You MUST respond with ONLY a valid JSON object with these exact keys:
{
"combatNarration": "Vivid, visceral description of action and outcome",
"playerHealth": 0-100,
"playerStamina": 0-100,
"playerStatusEffects": ["list of active effects"],
"enemyHealth": 0-100,
"enemyStatus": "detailed enemy condition description",
"enemyStatusEffects": ["list of enemy effects"],
"combatState": "ongoing/victory/defeat/fled/paused",
"tacticalAdvantage": "player/enemy/neutral",
"battleTempo": "slow/steady/fast/frantic",
"environmentalChanges": ["any environmental modifications"],
"suggestedActions": ["tactical action 1", "tactical action 2", "tactical action 3"],
"damageDealt": 0,
"damageTaken": 0,
"staminaUsed": 0,
"specialEffects": ["unique combat effects that occurred"],
"opportunitiesCreated": ["tactical opportunities available next round"],
"dangerWarnings": ["immediate threats player should be aware of"],
"combatMomentum": "description of how battle flow is changing"
}
<|im_end|>
{{- end }}
{{- range .Messages }}
{{- if eq .Role "user" }}<|im_start|>user
⚔️ PLAYER COMBAT ACTION: {{ .Content }}
🧠 TACTICAL ANALYSIS REQUIRED:
- Parse the player's intended action and combat approach
- Evaluate creativity and tactical soundness of the maneuver
- Consider current positioning and momentum
- Assess stamina requirements and feasibility
- Determine defensive/offensive nature of action
- Calculate environmental interaction potential
- Analyze risk vs reward of the attempted action
- Consider enemy counter-action possibilities
- Evaluate potential for critical success or failure
- Account for player's equipment and skill implications
⚖️ COMBAT RESOLUTION FACTORS:
- Creative actions receive bonus effectiveness
- Proper positioning grants tactical advantages
- Stamina limits affect action execution quality
- Environmental awareness can provide significant bonuses
- Timing and momentum influence all outcomes
- Equipment condition affects performance
- Status effects modify all calculations
- Previous actions create chain reaction possibilities
<|im_end|>
{{- else if eq .Role "assistant" }}<|im_start|>assistant
{{ .Content }}<|im_end|>
{{- end }}
{{- end }}<|im_start|>assistant