New and improved D&D switch!


#1

Here it is, and it now includes basic 5e races. Here is the link to the original: https://discuss.codecademy.com/t/cool-d-d-switch/35990/10

var answer = prompt("Do you play D&D?");

switch(answer) {
    case 'yes':
        console.log("Good for you!");
        var answer2 =prompt("What class are you?").toLowerCase();

switch(answer2) {
    case 'paladin':
        console.log("Be the tank of the party!");
        break;
    case 'cleric':
        console.log("You heal the party!");
        break;
    case 'druid':
        console.log("Be connected to nature.");
        break;
    case 'rogue':
        console.log("Silent, but deadly.");
        break;
    case 'ranger':
        console.log("Like Aragorn!");
        break;
    case 'bard':
        console.log("You scandalous performer!");
        break;
    case 'wizard':
        console.log("Knowledgeable in the arcane arts.");
        break;
    case 'sorcerer':
        console.log("Fireball!!!");
        break;
    case 'warlock':
        console.log("Harbinger of dark secrets.");
        break;
    case 'monk':
        console.log("Fair and balanced, you are.");
        break;
    case 'barbarian':
        console.log("Big brute.");
        break;
    case 'fighter':
        console.log("Hone your skills.");
        break;
    default:
        console.log("What?");
break;
}

var answer3 =prompt("What race are you?").toLowerCase();

switch(answer3) {
    case 'human':
        console.log("Lots of versatility.");
        break;
    case 'elf':
        console.log("Tall, proud, and beautiful.");
        break;
    case 'dwarf':
        console.log("Sturdy and strong, like stone.");
        break;
    case 'dragonborn':
        console.log("Descendant of dragons.");
        break;
    case 'halfling':
        console.log("Hobbitses!");
        break;
    case 'tiefling':
        console.log("Descendant of demons.");
        break;
    case 'half elf':
        console.log("Part of two worlds.");
        break;
    case 'half orc':
        console.log("Hardy and belligerent.");
        break;
    case 'gnome':
        console.log("Happy-go-lucky folk.");
        break;
    case 'aarakocra':
        console.log("Flighty but fun!");
        break;
    case 'genasi':
        console.log("Elemental connections.");
        break;
    default:
        console.log("What?");
        break;
}
        
break;
case 'no':
    console.log("You should!");
    break;

}


Cool D&D switch