
   $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
 $$$                                                                          $$$
                                   / x /                    	 		
  	__|_ _		           / x /  		.			
  	  |		          / x /   		 o     			
  	  	                 / x /    		   O  			
     +++>++++++++#@#@#@#@|++>++/ x /++>        \\\|///			-+-	
    +++++++++++++++\ x \++>+++/ x /++>         -(o o)-       			
                    \ x \    / x /_______  oOOOo (_)_ oOOOo__  _____		
   _ ____   	      \ x \  / x /\   ____)/    \ /   \ /  ___)/  ___)     	
     /  /\            \ x \/ x / /  /_   /  /  // /) //  /   /  /_        	
    _\__\/	        \      / /  __ ) /  /  //    //  /   /   __)         	
   	          -+-   /      \/  /    /  /  //  /\  \\  \__\  /__    ____	
    +++>+++++++++ ++++/ x /\ x \_/+++++\____//__/++\__\\____)\____)   /  /\	
                     / x /  \ x \			              _\__\/	
      +++++>>>++++++/ x /+>++\ x \+++++++++++++++++++++++++++++>       	
 	++>+++++++++/ x /+++>++\ x \+++++[XoR]+++++++++++++++++++++++>     	
   		 |#@#@#@#@#|  __\ x \+++++++[2009]+++++++++++++++++++++++++>	
 	                     |#@#@#@#@#|  		   			
 $$$                                                                          $$$
  $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  



		Trivia Plugin 0.92a for Trackmania
	
	topics :

	0.0 about the plugin
	1.0 installation     
	2.0 usage


	0.0)--<about the plugin>------------------------------------------------

	This is a simple plugin for running a trivia game inside 
	trackmania nations forever using xAseco. 
	
	You are free to change/add anything you like.
	
	1.0)--<installation>----------------------------------------------------

	#. ---

	This plugin should work with xAseco version 1.05B and up.
	
	Because it uses the Aseco player database to keep the player scores 
	an additional column has to be added to the Aseco player database. Use 
	the following commands to add the column:

	open up your sql console and type:

	 USE yourdatabasename;
	 ALTER TABLE players ADD TriviaScore int;

	Replace the the yourdatabasename with the name of the MySQL database.

	#. ---

	Put the trivia.txt and chat.trivia.php in the xAseco/plugins/ directory.
	Now edit the plugins.xml and add the chat.trivia.php to the list.

	#. --- 
	
	Copy the trivia.config.php to xAseco/includes. You can edit this file
	to configure the trivia plugin.
	
	#. ---
	Restart xAseco, the plugin should load OK. 

	2.0)--<usage>-----------------------------------------------------------


	#. --- normal commands --
	
		/tv help : ingame help

	#. --- admin commands --

	to be able to use the commands listed below the user has to be in the admin list!

		/tv enable 		 : enable Trivia (default is random mode)
	
		modes:	
		/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 disable 		 : disable Trivia
		/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


	#. -- trivia.txt format --	
	
	if your look in the trivia.txt you will see some example questions.
	i'll take the first question as an example :

	1
	Whats the biggest island ?
	Galapagos
	Greenland 
	Iceland
	b

	as you can see the first number indicates the number of the question
	the second line is the question
	the third, fourth and fifth line are the 3 choices and the last line is 
	the correct answer. 

	You can add as many questions as you want. Don't forget to keep the 
	numbering correct.
	

	
	

	




	

	
	

	









								