"What? Where? When?" game (Quiz)

Plugin: Igra Chto-Gde-Kogda.What-Where-When game

It is game where to players questions with helps are asked by turns. The first correctly answered receives from 3 to 1 point (depending on quantity of helps). Questions are by default stored in text file gameWWW_lang.txt in the folder PLUGINS. The way to file is set in constant gameWWW_BasePath in the file Vars.lua. At loading (restart) of plugin questions are loaded from file and mix up. On it some time depending on volume of base and productivity of the computer is required. Totally has 3 modes of game: in PM (mode 1); in the general chat only for the participants who have entered game (mode 2); in chat for all (mode 3), when any can join game player if will write to chat a right answer. If set mode 0, the game will be deactivated. To set the chosen mode possible by command !gamewww <mode>.

To join in game possible by command !gamewww_enter. To leave the game possible by command !gamewww_quit. To look the list of gamers possible by command !gamewww_list. To get the game records possible by command !gamewww_records [<nick>]. If nick is specified then records of this user will be shown. If nick it is not specified, the list of 20 best records will be shown. To delete the records possible by comman !gamewww_deleterecords [<nick>]. If nick is specified then records of this user will be removed. If nick it is not specified, own records will be removed. To restart game it is possible by command !gamewww_restart. To add in base of questions a new question it is possible by command !gamewww_add <question>#<answer>.

Has possibility to set the schedule of automatic change of game modes by command !gamewww_setscd [<time-mode>]. Time is set in format hh:mm, through a dash a mode (from 0 to 3) to change at this time. Time marks and switching modes are set through a comma without blanks. Thus, for example, to set automatic change of game mode to 3 at midday and hour later change mode to 1 possible by command !gamewww_setscd 12:00-3,13:00-1. The command without parametres will clear the schedule. To look the current schedule it is possible by command !gamewww_getscd.

The name, description, email and menu item name sets in localisation file Text_lang.lua. If constant gameWWW_Show in file Vars.lua sets to 1, that the bot is shown in the list of users of the Hub, else it is invisible. In constant gameWWW_Period the period in seconds which is taken away on each question is set. In constant gameWWW_Pause the pause in seconds between questions is set. In constant gameWWW_Hider the symbol which letters in helps mask is set.

In constant gameWWW_Divider the question and answer divider in base is set. It is a symbol on which the boat at loading defines where the question comes to an end and where the answer begins. Each line in base is interpreted as one question where to symbol-divider there is a question, and after it the answer.
For exaple, the string:

What this Bot name is?|Ekzekutor
Here as a divider is applied the symbol "|".

Also in game there is a system of ranks with ranks. Depending on quantity of points and speed of answers to questions to the users participating in game, corresponding ranks are appropriated. These ranks and borders of ranks are set in the file Text_lang_lua. Records remain in file gameWWW_Scores.lua.


<<< back | print | To main...
PhazaSoft© Ekzekutor©
Hosted by uCoz