en:rpd:dialogue
Table of Contents
Dialogue
Dialogue in Remixed Dungeon is the primary system for interacting with NPCs (Non-Player Characters). Through dialogue, players can receive quests, purchase items, obtain services, and gather information about the dungeon.
How Dialogue Works
When the player approaches an NPC and uses the interaction action (typically by tapping/clicking on the NPC), a dialogue window opens presenting options based on the NPC's role and the player's current state.
Dialogue Types
Shop Dialogue
- Shopkeeper - Buy and sell items
- Wandmaker - Specialized wand vendor
- Imp - Quest-related shop after completing tasks
Quest Dialogue
Service Dialogue
- Healer NPC - Free healing and hunger restoration
- Shopkeeper - Item identification services (in some versions)
Dialogue Options
Typical dialogue options include:
- Trade/Shop - Open buying/selling interface
- Talk/Listen - Receive hints, lore, or quest information
- Quest - Accept, progress, or turn in quests
- Service - Use NPC's special service (healing, identification, etc.)
- Leave - Close dialogue
Quest-Specific Dialogue
NPCs with quests have dynamic dialogue that changes based on quest state:
- Initial - Quest offer with description and reward
- In Progress - Encouragement or status check
- Complete - Reward delivery and closure
- Post-Quest - May offer additional services or lore
Technical Implementation
Dialogue is implemented through:
- Java Classes: NPC behavior in `com/nyrds/pixeldungeon/actors/mobs/npc/`
- Lua Scripts: Custom dialogue logic in `scripts/npc/`
- String Resources: All dialogue text in `values/strings_all.xml`
See Also
en/rpd/dialogue.txt · Last modified: by 127.0.0.1
