When you let players speak freely to an enemy boss during an active fight, the UI, animation state, audio playback, and combat hitboxes all collide at once.
Here is a 4m44s unscripted test run from V.E.T.O.R — A Ruptura against Voldrak the Troll, showing both the mechanical combat path and real-time negotiation:
Key Engineering Challenges in This Encounter
1. Interrupting Boss Speech With Real Damage
If Voldrak is mid-sentence when the player lands a strike, the engine cannot just cut audio abruptly or freeze frame positions:
- The active Web Audio
AudioContextsuspends and the silent talking video clip pauses while a synchronized hit-reaction clip plays. - Once damage recovery clears, both audio and talking animation resume seamlessly without regenerating the line.
- Fatal blows cleanly abort queued speech and transition into the defeat clip.
2. Dynamic Tolerance & Escalation
Voldrak tracks a live tolerance/temperament gauge alongside his 1200 HP and guard stance:
- Passing thresholds (
NERVOUS/FURY) alters his combat aggression, attack/defense modifiers, and visual status indicators. - Conversely, negotiating through the player chat or asking AI companion V.E.T.O.R. to speak opens an exchange table where confirmed item offerings change the encounter outcome peacefully.
3. Grounding LLM Responses in Real State
To prevent an AI-voiced boss from hallucinating inventory transfers or premature peace deals:
- Every dialogue request receives a structured snapshot of combat state, stamina, active guard, and real inventory counts.
- Post-generation validation strips disallowed claims (such as pretending an item was received or the path is already open before a confirmed table handoff) and falls back cleanly if a line repeats.
Status: Actively in development for PC / Windows (no public playable demo yet).
Official page & devlogs: https://vetorlogico.com/#conheca-o-jogo
Top comments (0)