DUXPLIMA Documentation

Chat games

Seven kinds of round, timing, rewards, the winners' table, word and trivia files per language, and networks.

Module: games. Now and then a round opens in chat, and the first right answer wins.

KindThe round
unscrambleUnscramble a word
mathSolve a sum
triviaAnswer a question
first-to-typeType a word first
reactionClick [CLICK] first
fill-blankFill in the missing letters
reversedWrite a word the right way round
KeyDefaultMeaning
kindsall sevenThe kinds played; an empty list plays every kind
every-seconds300How often a round starts
answer-seconds30How long it stays open
min-online2No round starts with fewer players online
rewards[give-money] 100 and a messageAction lines for the winner, on their own server; {player} and {answer}

The winner's time and streak are said in chat. /chatgame top is the winners' table with each player's best streak; /chatgame start <kind> (staff) starts a round now.

Words and trivia

The words of unscramble, first-to-type, fill-blank and reversed are in modules/games/words/<language>.txt, one word per line; lines starting with # are skipped. The trivia bank is modules/games/trivia/<language>.conf:

creeper {
  question = "Which mob explodes when it gets close?"
  answers = [ "creeper" ]
}

A reader gets the list of their language, or English. A question keeps its id in every language's file, and a right answer in any language wins. A new language is one new file in each folder.

A network

One server starts and decides the rounds. Set host = true on that one and false on the rest, and host-server to its server-name everywhere. network = true opens each round on every server; false keeps rounds on the server that started them.

Related: games.conf