Hackster is hosting Hackster Holidays, Ep. 6: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Monday!Stream Hackster Holidays, Ep. 6 on Monday!
Steven Li
Created April 21, 2016

Ability Trivia for League of Legends

Do you know League of Legend abilities as well as the pros do? Perfect for shoutcaster training!

Beginner1 hour186

Things used in this project

Hardware components

Amazon Echo
Amazon Alexa Amazon Echo
×1

Software apps and online services

Alexa Skills Kit
Amazon Alexa Alexa Skills Kit

Story

Read more

Code

index.js

JavaScript
Custom language tweaks from the trivia template, including individual result messages based on your success.
/**
 Copyright 2014-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.

 Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at

 http://aws.amazon.com/apache2.0/

 or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 */

/**
 * This sample shows how to create a simple Trivia skill with a multiple choice format. The skill
 * supports 1 player at a time, and does not support games across sessions.
 */

'use strict';

/**
 * When editing your questions pay attention to your punctuation. Make sure you use question marks or periods.
 * Make sure the first answer is the correct one. Set at least 4 answers, any extras will be shuffled in.
 */
var questions = [
    {
        "Ragnarok": [
            "Olaf",
            "LeBlanc",
            "Caitlyn",
            "Lee Sin"
        ]
    },
    {
        "Chum the Waters": [
            "Fizz",
            "Leona",
            "Akali",
            "Hecarim"
        ]
    },
    {
        "Infinite Duress": [
            "Warwick",
            "siever",
            "Graves",
            "Gangplank"
        ]
    },
    {
        "Unstoppable Onslaught": [
            "Sion",
            "Orianna",
            "Vladimir",
            "Garen"
        ]
    },
    {
        "Depth Charge": [
            "Nautilus",
            "Fiora",
            "reneckton",
            "noonoo"
        ]
    },
    {
        "Glacial Storm": [
            
            "Anivia"
        ]
    },
    {
        "Upgrade": [
            "Heimerdinger",
            "seh jew awni",
            "Kassadin",
            "Viktor"
        ]
    },
    {
        "Diplomatic Immunity": [
            
            "Poppy"
        ]
    },
    {
        "On the Hunt": [
            "siever",
            "Ezreal",
            "Ziggs",
            "Skarner"
        ]
    },
    {
        "Spider Form": [
            "Elise",
            "Zac",
            "Amumu",
            "Wukong"
        ]
    },
    {
        "Death Mark": [
            "Zed",
            "Ahri",
            "Aurelion Sol",
            "Kog'Maw"
        ]
    },
    {
        "Hallucinate": [
            "Shaco",
            "Bard",
            "cuhlista",
            "Lissandra"
        ]
    },
    {
        "Cataclysm": [
            "Jarvan the Fourth",
            "ren gahr",
            "jahnna",
            "Karthus"
        ]
    },
    {
        "Super Mega Death Rocket!": [
            "Jinx",
            "gahlio",
            "Talon",
            "Warwick"
        ]
    },
    {
        "Agony's Embrace": [
            "ehvelynn",
            "Fizz",
            "Karma",
            "Blitzcrank"
        ]
    },
    {
        "Summon: Tibbers": [
            "Annie",
            "Teemo",
            "Singed",
            "Jarvan the Fourth"
        ]
    },
    {
        "Massacre": [
            "a a trox",
            "Annie",
            "Heimerdinger",
            "Maokai"
        ]
    },
    {
        "Transcendant Blades": [
            "Irelia",
            "Jhin",
            "Taric",
            "Tahm Kench"
        ]
    },
    {
        "Stand United": [
            "Shen",
            "Jax",
            "Dr. Mundo",
            "Twisted Fate"
        ]
    },
    {
        "Curse of the Sad Mummy": [
            "Amumu",
            "Shaco",
            "Veigar",
            "Shen"
        ]
    },
    {
        "Thrill of the Hunt": [
            "ren gahr",
            "Braum",
            "tryndumere",
            "Xerath"
        ]
    },
    {
        "Fate's Call": [
            "cuhlista",
            "Master Yi",
            "oohdeer",
            "a a trox"
        ]
    },
    {
        "Hemoplague": [
            "Vladimir",
            "Brand",
            "Zilean",
            "Cassiopeia"
        ]
    },
    {
        "Chaos Storm": [
            "Viktor",
            "Swain",
            "Yorick",
            "Vayne"
        ]
    },
    {
        "Tempered Fate": [
            "Bard",
            "kha zix",
            "Rammus",
            "Thresh"
        ]
    },
    {
        "Hyper-Kinetic Position Reverser": [
            "ur got",
            "Sona",
            "Kindred",
            "Fiddlesticks"
        ]
    },
    {
        "Sadism": [
            "Dr. Mundo",
            "Ryze",
            "Kayle",
            "Zed"
        ]
    },
    {
        "Children of the Grave": [
            "Mordekaiser",
            "Varus",
            "Pantheon",
            "Morgana"
        ]
    },
    {
        "Mimic": [
            "LeBlanc",
            "cho gath",
            "Diana",
            "Nami"
        ]
    },
    {
        "Glacial Fissue": [
            "Braum",
            "Jayce",
            "Draven",
            "Gnar"
        ]
    },
    {
        "Undying Rage": [
            "tryndumere",
            "Malzahar",
            "Trundle",
            "Vi"
        ]
    },
    {
        "Bullet Time": [
            "Miss Fortune",
            "Soraka",
            "Yasuo",
            "Quinn"
        ]
    },
    {
        "Vengeful Maelstrom": [
            "Maokai",
            "Jinx",
            "Malphite",
            "Sion"
        ]
    },
    {
        "Cyclone": [
            "Wukong",
            "wrecksai",
            "Katarina",
            "Nocturne"
        ]
    },
    {
        "Aspect of the Cougar": [
            "nid alee",
            "Zyra",
            "Poppy",
            "Shyvana"
        ]
    },
    {
        "Shadow Assault": [
            "Talon",
            "Lux",
            "ur got",
            "Xin Zhao"
        ]
    },
    {
        "Static Field": [
            "Blitzcrank",
            "Corki",
            "nid alee",
            "Mordekaiser"
        ]
    },
    {
        "Unbreakable Will": [
            "Alistar",
            "Lulu",
            "Irelia",
            "Ashe"
        ]
    },
    {
        "Soul Shackles": [
            "Morgana",
            "Kennen",
            "Tristana",
            "Lucian"
        ]
    },
    {
        "Ravenous Flock": [
            "Swain",
            "nah suss",
            "Ekko",
            "Nautilus"
        ]
    },
    {
        "Idol of Durand": [
            "gahlio",
            "Anivia",
            "Gragas",
            "ehvelynn"
        ]
    },
    {
        "Wish": [
            "Soraka",
            "Miss Fortune",
            "Olaf",
            "Riven"
        ]
    },
    {
        "Desperate Power": [
            "Ryze",
            "Elise",
            "Alistar",
            "Syndra"
        ]
    },
    {
        "Dragon's Rage": [
            "Lee Sin",
            "Rumble",
            "Azir",
            "vel cause"
        ]
    },
    {
        "Ace in the Hole": [
            "Caitlyn",
            "Swain",
            "Master Yi",
            "Kog'Maw"
        ]
    },
    {
        "Tremors": [
            "Rammus",
            "Heimerdinger",
            "Soraka",
            "Cassiopeia"
        ]
    },
    {
        "Omen of Death": [
            "Yorick",
            "Xerath",
            "Syndra",
            "vel cause"
        ]
    },
    {
        "Collateral Damage": [
            "Graves",
            "Fizz",
            "Shyvana",
            "Thresh"
        ]
    },
    {
        "Transform: Mercury Cannon": [
            "Jayce",
            "Gnar",
            "Sion",
            "Yasuo"
        ]
    },
    {
        "The Culling": [
            "Lucian",
            "Kindred",
            "Nautilus",
            "Jayce"
        ]
    },
    {
        "Lifeform Disintegration Ray": [
            "vel cause",
            "cho gath",
            "Nocturne",
            "Bard"
        ]
    },
    {
        "Grand Skyfall": [
            "Pantheon",
            "nah suss",
            "Irelia",
            "cuhlista"
        ]
    },
    {
        "Thunder Claws": [
            "Volibear",
            "Orianna",
            "ur got",
            "Varus"
        ]
    },
    {
        "Missile Barrage": [
            "Corki",
            "Zyra",
            "Gragas",
            "LeBlanc"
        ]
    },
    {
        "Final Spark": [
            "Lux",
            "Garen",
            "Olaf",
            "Kennen"
        ]
    },
    {
        "Primordial Burst": [
            "Veigar",
            "Talon",
            "Karthus",
            "kha zix"
        ]
    },
    {
        "Subjugate": [
            "Trundle",
            "Elise",
            "oohdeer",
            "Lucian"
        ]
    },
    {
        "Riftwalk": [
            "Kassadin",
            "Caitlyn",
            "ren gahr",
            "Aurelion Sol"
        ]
    },
    {
        "Highlander": [
            "Master Yi",
            "tryndumere",
            "Miss Fortune",
            "Vayne"
        ]
    },
    {
        "Impale": [
            "Skarner",
            "Zac",
            "siever",
            "Jhin"
        ]
    },
    {
        "Chronoshift": [
            "Zilean",
            "Nami",
            "Shen",
            "nid alee"
        ]
    },
    {
        "Curtain Call": [
            "Jhin",
            "Brand",
            "Jinx",
            "noonoo"
        ]
    },
    {
        "Slicing Maelstrom": [
            "Kennen",
            "Malzahar",
            "Malphite",
            "Ezreal"
        ]
    },
    {
        "Lamb's Respite": [
            "Kindred",
            "gahlio",
            "Teemo",
            "Trundle"
        ]
    },
    {
        "Dragon's Descent": [
            "Shyvana",
            "Twisted Fate",
            "Kassadin",
            "Twitch"
        ]
    },
    {
        "Solar Flare": [
            "Leona",
            "Karma",
            "Skarner",
            "Mordekaiser"
        ]
    },
    {
        "Requiem": [
            "Karthus",
            "Veigar",
            "Katarina",
            "seh jew awni"
        ]
    },
    {
        "Assault and Battery": [
            "Vi",
            "Lulu",
            "Annie",
            "Ahri"
        ]
    },
    {
        "Grandmaster's Might": [
            "Jax",
            "Morgana",
            "Corki",
            "Lee Sin"
        ]
    },
    {
        "Crescendo": [
            "Sona",
            "Gangplank",
            "Jax",
            "Taric"
        ]
    },
    {
        "Final Hour": [
            "Vayne",
            "Braum",
            "Jarvan the Fourth",
            "Vi"
        ]
    },
    {
        "Demacian Justice": [
            "Garen",
            "Kayle",
            "Rumble",
            "Rammus"
        ]
    },
    {
        "Gnar!": [
            "Gnar",
            "Amumu",
            "ehvelynn",
            "Darius"
        ]
    },
    {
        "Tag Team": [
            "Quinn",
            "Tahm Kench",
            "Akali",
            "Shaco"
        ]
    },
    {
        "Nether Grasp": [
            "Malzahar",
            "Azir",
            "Xin Zhao",
            "jahnna"
        ]
    },
    {
        "Noxious Trap": [
            "Teemo",
            "Wukong",
            "Draven",
            "Yorick"
        ]
    },
    {
        "Frozen Tomb": [
            "Lissandra",
            "wrecksai",
            "Graves",
            "Fiddlesticks"
        ]
    },
    {
        "Abyssal Voyage": [
            "Tahm Kench",
            "Tristana",
            "reneckton",
            "Blitzcrank"
        ]
    },
    {
        "Void Rush": [
            "wrecksai",
            "Pantheon",
            "Vladimir",
            "Riven"
        ]
    },
    {
        "Unleashed Power": [
            "Syndra",
            "Lissandra",
            "a a trox",
            "Zilean"
        ]
    },
    {
        "Arcane Barrage": [
            "Xerath",
            "Ryze",
            "Dr. Mundo",
            "Maokai"
        ]
    },
    {
        "Glacial Prison": [
            "seh jew awni",
            "Singed",
            "Leona",
            "Volibear"
        ]
    },
    {
        "Shadow Dance": [
            "Akali",
            "Fiora",
            "Alistar",
            "Hecarim"
        ]
    },
    {
        "Spirit Rush": [
            "Ahri",
            "Zed",
            "Ashe",
            "Anivia"
        ]
    },
    {
        "Phoenix Stance": [
            "oohdeer",
            "Diana",
            "Sona",
            "Ziggs"
        ]
    },
    {
        "Chain of Corruption": [
            "Varus",
            "Ekko",
            "Viktor",
            "Poppy"
        ]
    },
    {
        "The Equalizer": [
            "Rumble",
            "Lux",
            "Quinn",
            "Warwick"
        ]
    },
    {
        "Let's Bounce!": [
            "Zac",
            "Fizz",
            "Olaf",
            "Pantheon"
        ]
    },
    {
        "Emperor's Divide": [
            "Azir",
            "Cassiopeia",
            "Thresh",
            "Caitlyn"
        ]
    },
    {
        "Dominus": [
            "reneckton",
            "Syndra",
            "Karthus",
            "Wukong"
        ]
    },
    {
        "Explosive Cask": [
            "Gragas",
            "Nautilus",
            "Quinn",
            "nid alee"
        ]
    },
    {
        "Rat-Ta-Tat-Tat": [
            "Twitch",
            "Ahri",
            "Jinx",
            "Yasuo"
        ]
    },
    {
        "Death Lotus": [
            "Katarina",
            "Jarvan the Fourth",
            "Akali",
            "Yorick"
        ]
    },
    {
        "The Box": [
            "Thresh",
            "Gangplank",
            "kha zix",
            "siever"
        ]
    },
    {
        "Command: Shockwave": [
            "Orianna",
            "LeBlanc",
            "Amumu",
            "Trundle"
        ]
    },
    {
        "Unstoppable Force": [
            "Malphite",
            "Draven",
            "ehvelynn",
            "Warwick"
        ]
    },
    {
        "Crescent Sweep": [
            "Xin Zhao",
            "vel cause",
            "Sion",
            "Taric"
        ]
    },
    {
        "Fury of the Sands": [
            "nah suss",
            "Kennen",
            "Teemo",
            "Kassadin"
        ]
    },
    {
        "Intervention": [
            "Kayle",
            "Gnar",
            "Irelia",
            "Xin Zhao"
        ]
    },
    {
        "Noxian Guillotine": [
            "Darius",
            "Tahm Kench",
            "Shaco",
            "Soraka"
        ]
    },
    {
        "Feast": [
            "cho gath",
            "Katarina",
            "Viktor",
            "Leona"
        ]
    },
    {
        "Chronobreak": [
            "Ekko",
            "Lulu",
            "Lee Sin",
            "Kog'Maw"
        ]
    },
    {
        "Blade of the Exile": [
            "Riven",
            "Corki",
            "Poppy",
            "Garen"
        ]
    },
    {
        "Grand Challenge": [
            "Fiora",
            "Miss Fortune",
            "Sona",
            "Orianna"
        ]
    },
    {
        "Monsoon": [
            "jahnna",
            "Graves",
            "Talon",
            "Rumble"
        ]
    },
    {
        "Tidal Wave": [
            "Nami",
            "reneckton",
            "Twitch",
            "Vladimir"
        ]
    },
    {
        "Trueshot Barrage": [
            "Ezreal",
            "Elise",
            "Riven",
            "nah suss"
        ]
    },
    {
        "Mega Inferno Bomb": [
            "Ziggs",
            "Diana",
            "wrecksai",
            "Zed"
        ]
    },
    {
        "Wild Growth": [
            "Lulu",
            "Jhin",
            "Kayle",
            "Dr. Mundo"
        ]
    },
    {
        "Paranoia": [
            "Nocturne",
            "Bard",
            "Ryze",
            "Fiddlesticks"
        ]
    },
    {
        "Radiance": [
            "Taric",
            "Ezreal",
            "Darius",
            "seh jew awni"
        ]
    },
    {
        "Insanity Potion": [
            "Singed",
            "cuhlista",
            "Shyvana",
            "Twisted Fate"
        ]
    },
    {
        "Whirling Death": [
            "Draven",
            "Jayce",
            "oohdeer",
            "Maokai"
        ]
    },
    {
        "Last Breath": [
            "Yasuo",
            "tryndumere",
            "Annie",
            "Shen"
        ]
    },
    {
        "Crowstorm": [
            "Fiddlesticks",
            "Ziggs",
            "Azir",
            "Brand"
        ]
    },
    {
        "Cannon Barrage": [
            "Gangplank",
            "Zac",
            "noonoo",
            "Swain"
        ]
    },
    {
        "Buster Shot": [
            "Tristana",
            "Nocturne",
            "Heimerdinger",
            "Mordekaiser"
        ]
    },
    {
        "Enchanted Crystal Arrow": [
            "Ashe",
            "Skarner",
            "Master Yi",
            "Aurelion Sol"
        ]
    },
    {
        "Onslaught of Shadows": [
            "Hecarim",
            "Karma",
            "Rammus",
            "Tristana"
        ]
    },
    {
        "Voice of Light": [
            "Aurelion Sol",
            "Fiora",
            "Kindred",
            "Lissandra"
        ]
    },
    {
        "Void Assault": [
            "kha zix",
            "Malzahar",
            "Lux",
            "Vi"
        ]
    },
    {
        "Living Artillery": [
            "Kog'Maw",
            "Malphite",
            "Singed",
            "jahnna"
        ]
    },
    {
        "Mantra": [
            "Karma",
            "gahlio",
            "Anivia",
            "Veigar"
...

This file has been truncated, please download it to see its full contents.

Credits

Steven Li

Steven Li

1 project • 0 followers

Comments