TRIVIA_BROADCAST: type: world events: on system time minutely: - if == 1 { - define question - announce "<&7>[<&3>BA<&b>ChatGames<&7>]<&b> " - define answer ]> - narrate "<&7>Answer: " - flag server active_question: - flag server active_answer: } on player chats: - if != TRIVIA_COMMAND: type: command name: trivia script: - choose : - case "setup": - if ! { - yaml create id:Trivia - yaml "savefile:dChatGames/Trivia.yml" id:Trivia - narrate "<&a>Trivia has been set up!" } - case "add": - yaml load:dChatGames/Trivia.yml id:Trivia - yaml id:Trivia set questions.: - narrate "<&a>Added question: with answer: " - yaml "savefile:dChatGames/Trivia.yml" id:Trivia