{# NPC Dialogue partial - displays conversation history with current exchange. Expected context: - npc_name: Name of the NPC - character_name: Name of the player character - conversation_history: List of previous exchanges [{player_line, npc_response}, ...] - player_line: What the player just said - dialogue: NPC's current response - session_id: For any follow-up actions #}
Conversation with {{ npc_name }}
{# Show previous exchanges #} {% if conversation_history %} {% for exchange in conversation_history %}
{{ character_name }}: {{ exchange.player_line }}
{{ npc_name }}: {{ exchange.npc_response }}
{% endfor %} {% endif %} {# Show current exchange (highlighted) #}
{{ character_name }}: {{ player_line }}
{{ npc_name }}: {{ dialogue }}