Character Creation
Comprehensive guide to the hybrid AI + popup character creation system in D&D Adventure with DM Aiden.
Overview
The character creation system uniquely combines AI conversation with a visual interface:
- AI Trigger: DM Aiden initiates character creation through conversation
- Call Pause: SignalWire REST API pauses the voice session
- Popup Interface: Visual form appears for character selection
- Call Resume: Voice session automatically resumes with your character
Triggering Character Creation
When It Happens
Character creation occurs early in Room 1 (Prison Cell) after DM Aiden's introduction.
Voice Trigger
Say: "Yes, I'm ready" or "Yes, I'm ready to begin" when DM Aiden asks if you're ready to start your adventure.
What Happens Next
- DM Aiden acknowledges your readiness
- Voice call is paused (you'll hear silence)
- Character creation popup appears on screen
- Background shows "Character Creation in Progress"
Character Creation Interface
Popup Components
The character creation form includes:
Character Name
- Text input field
- Can be anything you like
- Examples: "Aragorn", "Elara", "Thorin"
Race Selection
- Dropdown menu with 4 options
- Each race has unique descriptions
Class Selection
- Dropdown menu with 4 options
- Each class has different weapons
Character Preview
- Real-time preview of your selections
- Shows race/class combination bonuses
- Displays starting equipment
Available Races
Human
Elf
Dwarf
Halfling
Available Classes
Fighter
Barbarian
Rogue
Ranger
Character Creation Process
Step-by-Step
-
Enter Name
- Type your character's name in the text field
- Press Tab or click to move to next field
-
Select Race
- Click the Race dropdown
- Read descriptions of each option
- Choose based on your preferred playstyle
-
Select Class
- Click the Class dropdown
- Consider race bonuses when choosing
- Select based on desired combat role
-
Review Preview
- Check the character preview panel
- Verify race/class combination bonuses
- Confirm starting equipment looks correct
-
Create Character
- Click "Create Character" button
- Wait for confirmation message
- Voice session will automatically resume
Technical Details
Call Management
The character creation system uses SignalWire REST API for sophisticated call handling:
// Call pause during character creation
await signalwireClient.ai_pauseCall(callId);
// Character creation interface shows
showCharacterCreation();
// Call resume after character creation
await signalwireClient.ai_resumeCall(callId, characterData);
Data Integration
Your character data is automatically integrated into the game:
- Character Sheet: Available throughout the adventure
- Dice Bonuses: Applied to all relevant rolls
- Roleplay: DM Aiden references your character details
Character Sheet Display
After creation, your character information appears in the sidebar:
Character Sheet
═══════════════
Name: Aragorn
Race: Human
Class: Fighter
Level: 1
Stats:
Strength: 16 (+3)
Dexterity: 14 (+2)
Constitution: 15 (+2)
Equipment:
- Sword (+2 attack)
- Shield (+1 AC)
- Leather Armor