PtokaX forum

Lua 5.3/5.2/5.1 Scripts (for PtokaX 0.4.0.0 and newer) => Finished Scripts => Topic started by: Schumbot on 30 June, 2026, 23:20:04

Title: TriviaMod v2.3.0
Post by: Schumbot on 30 June, 2026, 23:20:04
[size=18]TriviaMod v2.3.0 — Advanced Trivia Script for PtokaX[/size]

Hi everyone,

I am releasing TriviaMod v2.3.0, a heavily improved version of the classic Trivia script originally written by chill, then extended by NRJ (Quiz 1.6). This release is the result of a long rework session covering bugs, encoding, translation, and a set of new features.

[size=14]Compatibility[/size]

[size=14]What is new compared to the original v1.02d[/size]

Core fixes
Question file flexibility
Visual improvements

New commands
Rank system
Team mode (optional)
Team multiplier — System C
[size=14]Installation[/size]
[list=1]
scripts/
  Trivia_Mod.lua
  TriviaMod/
    settings.lu
    questions.txt
    Data/
    Functions/
[size=14]Question file format[/size]

The script accepts three equivalent formats:
{Category} Question text *Answer
{Category}*Question text *Answer
{Category} *Question text *Answer

Multiple valid answers are separated by additional * characters:
{Category} *Question *Answer1 *Answer2
The {...} category tag is optional. Lines without it are read as plain Question *Answer entries.

[size=14]Commands summary[/size]

Players
!trivhelp         — help
!trivmytop        — your personal stats and rank
!trivscore        — top scorers
!trivstats        — top N player stats
!trivtoptime      — top by average response time
!trivtopanswers   — top by correct answer count
!trivtopstreak    — top by streak
!trivskip         — skip current question
!trivhint         — request a hint
!trivreport       — report an error in a question
!trivgrades       — show rank table
!trivteamscore    — show team ranking (if team mode active)
!login / !logout  — join / leave the game (PM mode)

Admin
!trivstart        — start the quiz
!trivstop         — stop the quiz
!trivpause        — announce a break
!trivcontinue     — resume after break
!trivbreakskip    — skip current break
!trivquestion N   — jump to question number N
!trivconfskip     — toggle question skip on/off
!trivhint         — toggle hints on/off
!trivchangemode   — toggle sequential/random mode
!trivmain / !trivpm — switch main chat / PM mode
!trivaddquestion  — add a question live
!trivshowreport   — show error reports
!resetscores      — reset all scores

[size=14]Credits[/size]
Based on the original thread: http://mydc.ru/topic1377.html

[size=14]Feedback[/size]

Please report any bugs, suggestions or question file issues in this thread.
Tested on PtokaX 0.5.x with Lua 5.4 on Windows.

Enjoy the quiz! :)
Title: Re: TriviaMod v2.3.0
Post by: jim124 on 05 July, 2026, 07:46:16
nice work