Trivia

by _xOr_

System

XASECO

Description

Run a trivia game
A simple plugin for running a trivia game inside TrackMania Forever using XAseco.

Features

- add your own questions
- keeps track of the users score
- displays top3 at start of the race
- configurable
- and more...

Chat commands

For normal users:
/tv help - ingame help

For admins:
/tv enable - enable Trivia (default is random mode)
/tv disable - disable Trivia

/tv enable random - random choose a question
/tv enable randomloop - multiple questions/race
/tv enable normal - sequential read the trivia.txt questions
/tv enable normalloop - multiple questions/race
/tv enable randomloop 60 - set random loop mode with 60s between questions. Works with all modes.

/tv fs or /tv forcestart - manually start a round
/tv stop - stop the round
/tv reset - reset current trivia setting to default mode and timeout

Installation

Installing this plugin requires some skills administrating MySQL databases.
1. unzip plugin to xaseco base directory
2. if your xaseco database in mysql is named different than 'aseco', edit the first line in trivia.sql
3. import trivia.sql to your xaseco database, you can use some frontend program, or type in the shell in the xaseco base directory:
Code:
mysql -u root -p < trivia.sql
note that it will ask you for mysql root password. if you prefer using different user, replace root with your username.
4. edit xaseco's plugins.xml and include the following line:
Code:
<plugin>plugin.trivia.php</plugin>
5. restart xaseco

Settings

/includes/trivia.config.php : Plugin specific settings
/plugins/trivia.txt : Trivia questions, see included readme.txt for format

Link(s)

Forum: http://www.tm-forum.com/viewtopic.php?t=22887

Download(s)

File Version Date Size Downloads
trivia(0.92a).zip 0.92a 2009-09-07 6.64 KB 627