MZQuizzer - Quiz Engine Plugin

MZQuizzer v0.5
by Starbird

Basic Quiz Engine for RPG Maker MZ. This is a replacement for the MVQuizzer plugin, which is no longer supported.

Note: This plugin is NOT plug-and-play, but it is fairly simple. Detailed instructions are included and no technical knowledge is necessary beyond what you need to use RMMZ.

FREE FOR NON-COMMERCIAL USE. FOR COMMERCIAL USE, PLEASE DM FIRST.

Introduction:

MZQuizzer displays and evaluates multiple choice, true/false, and short answer questions. The system allows you to create and manage a large database of questions with ease. Quickly add or change questions without having to step through maps and events. Include images and audio with questions. Supports timed questions and keyboard input for short answer questions.

My hope is that teachers and home school parents can use this to more easily develop educational games. Another goal is the release of better tools for question database creation.


SHORT DEMO

Online Demo
https://starbirdresources.itch.io/mzquizzer-plugin-demo

Game Files and Tools Zip (DL this to get the plugin and database js files)
https://starbirdresources.itch.io/mzquizzer-plugin-demo-dl

password for both: tester

Please report bugs but do not ask for additional features. I have a feature list that I'm working through.

Known issues:
-Scene pop problem after defeating enemy on wrong answer
-Scene problems with Short Answer in battle (may be beyond my ability to fix)


FEATURES:

MZQuizzer.js

Plugin reads questions from a questionDatabase.js file in the plugins folder.

questionDatabase.js
JSON-based question database. Questions can either be left human-readable or encoded to hinder cheating. Easily balance rewards/penalties in a simple text editor.

Create questions using included html forms. Just copy and paste the resulting text string into questionDatabase.js

Multiple Choice Questions
* Ask and evaluate multiple choice questions with two to five response choices displayed in randomized order
* Include image and sound files with questions
* Optional question timer

True / False Questions
* Ask and evaluate true/false questions
* Include image and sound files with questions
* Optional question timer

Short Answer Questions
* Ask and evaluate short answer questions
* Include image files with questions
* Option to check for proper capitalization
* Optional question timer
* Keyboard and mouse input

Reward / Penalty System
* Assign rewards and penalties for right and wrong answers.

Streaks/Slumps
Easily track streaks and slumps using included switches and counters to trigger event listeners.

DOCUMENTATION:
COMING SOON - for now the MV documentation is included, which is very similar and will allow you to get started.

CREDITS:
See credits in plugin header.
I did the Demo although I have no MZ, but I did on purpose wrong answer
as I got them all right =)

the blue crystal on the otherhand is nice touch, but only the music choice
gave the answer and or time limit.

other than that, its nicely done 🙂

as for the download links and tools, that link gave an http error access,
most likely, wrong sitename or taken down.
You can choose whether you want time limits or not on any question. Just did a demo of that on the last true or false question.

the blue crystal only gives a response if you get an answer wrong. Just went through it and it works properly. Will look into the demo dL link. Thanks!

EDIT: link to demo files/tools has been fixed
Wow, very cool stuff.
It is a pity you break the MVquizzer download links.
Let's see if i can modify this in order to make it for MV. I learn about this vital (for me) plugin too late.
Wow, very cool stuff.
It is a pity you break the MVquizzer download links.
Let's see if i can modify this in order to make it for MV. I learn about this vital (for me) plugin too late.
Dm me. I can give you the mv files but I no longer support them and there were several bugs
Nice seems like the best app I've ever tried. It just needs some improvement.
Nice seems like the best app I've ever tried. It just needs some improvement.
In terms of the plugin's main features, it's pretty much complete and will not be developed much further. The only thing I plan to add to the plugin is some error handling.

Any future development will be in the Question Builder. I'd like to be able to build/pull questions from a Google Docs spreadsheet, but I haven't had time to work on that and my request for help on that aspect of the plugin did not result in any offers (no surprise -- people usually expect to be paid for that level of work).

A lot of features that have been requested in the past are easily implemented with events in the RMMZ editor. I want to keep this as simple and flexible as possible so that it can be adapted by different users for their specific needs.

----
WHICH REMINDS ME: IF ANYONE WANTS TO HELP ME CONNECT THIS PLUGIN TO A GOOGLE DOCS SPREADSHEET, PLEASE DM ME!!
wouldn't be simply easier to make an app, where you set your
questions, possible answers and throw out the json file or any
other file required ready to use?

While I dont have use for it, I kinda event the questions =)
but I have no idea about how to go with google docs spreadsheet though.
as I dont use it 🙂
wouldn't be simply easier to make an app, where you set your
questions, possible answers and throw out the json file or any
other file required ready to use?

While I dont have use for it, I kinda event the questions =)
but I have no idea about how to go with google docs spreadsheet though.
as I dont use it 🙂
I have considered making an app like you've suggested and would be happy with that as a first step. But the app would essentially be the exact same as the tools already available, just spitting out a single large (maybe huge) file to copy/paste into the question database. I would LOVE to have an app that actually read out the database into a readable/editable form, but I just don't have time to build something like that at the moment.


The advantage of using a Google Docs spreadsheet is that it would allow teachers/parents to update the questions even after the game has been published / downloaded. It would also allow teams of people to all work off the same document, which might be helpful.


For most people's games, just eventing little quizzes probably makes the most sense. This is specifically for larger educational games (or it would work well for a trivia game) where you have a big bank of questions. It does things that you cannot possibly do with eventing, like making short answer questions with a time limit, among others.
I make a timer with shoert answer input 😛
it's doable though, but alternate it probably not.

if spreadsheet can edit that way nicely, you can constantly change it,
which is more compitable as well.

I dont know how to build the app, so I cannot help you.
otherwise, I might give it a try, but I hope you or someone that is able
to make it work, can make it 🙂

good luck anyways 🙂
In terms of the plugin's main features, it's pretty much complete and will not be developed much further. The only thing I plan to add to the plugin is some error handling.

Any future development will be in the Question Builder. I'd like to be able to build/pull questions from a Google Docs spreadsheet, but I haven't had time to work on that and my request for help on that aspect of the plugin did not result in any offers (no surprise -- people usually expect to be paid for that level of work).

A lot of features that have been requested in the past are easily implemented with events in the RMMZ editor. I want to keep this as simple and flexible as possible so that it can be adapted by different users for their specific needs.

----
WHICH REMINDS ME: IF ANYONE WANTS TO HELP ME CONNECT THIS PLUGIN TO A GOOGLE DOCS SPREADSHEET, PLEASE DM ME!!
Sorry, maybe my question is stupid, but where is Question Builder?
When you download the demo package you'll see three HTML files. One builds True/False, one builds Short Answer, and one builds Multiple Choice. You can open those HTML files via Chrome or any other browser. If you double click the file it should open on whatever browser you have set as your default. There's also a help document PDF file.
Suddenly I'm getting this problem where if I use a Show Choices command and Press ESC the game crashes and I get this in the Console:

error-escape-key.png

Could you help me work out how to stop this from happening? I'm not even calling the MZQuizzer plugin when this happens.
MZQuizzer v0.5
by Starbird

Basic Quiz Engine for RPG Maker MZ. This is a replacement for the MVQuizzer plugin, which is no longer supported.

Note: This plugin is NOT plug-and-play, but it is fairly simple. Detailed instructions are included and no technical knowledge is necessary beyond what you need to use RMMZ.

FREE FOR NON-COMMERCIAL USE. FOR COMMERCIAL USE, PLEASE DM FIRST.

Introduction:

MZQuizzer displays and evaluates multiple choice, true/false, and short answer questions. The system allows you to create and manage a large database of questions with ease. Quickly add or change questions without having to step through maps and events. Include images and audio with questions. Supports timed questions and keyboard input for short answer questions.

My hope is that teachers and home school parents can use this to more easily develop educational games. Another goal is the release of better tools for question database creation.


SHORT DEMO

Online Demo
https://starbirdresources.itch.io/mzquizzer-plugin-demo

Game Files and Tools Zip (DL this to get the plugin and database js files)
https://starbirdresources.itch.io/mzquizzer-plugin-demo-dl

password for both: tester

Please report bugs but do not ask for additional features. I have a feature list that I'm working through.

Known issues:
-Scene pop problem after defeating enemy on wrong answer
-Scene problems with Short Answer in battle (may be beyond my ability to fix)


FEATURES:

MZQuizzer.js

Plugin reads questions from a questionDatabase.js file in the plugins folder.

questionDatabase.js
JSON-based question database. Questions can either be left human-readable or encoded to hinder cheating. Easily balance rewards/penalties in a simple text editor.

Create questions using included html forms. Just copy and paste the resulting text string into questionDatabase.js

Multiple Choice Questions
* Ask and evaluate multiple choice questions with two to five response choices displayed in randomized order
* Include image and sound files with questions
* Optional question timer

True / False Questions
* Ask and evaluate true/false questions
* Include image and sound files with questions
* Optional question timer

Short Answer Questions
* Ask and evaluate short answer questions
* Include image files with questions
* Option to check for proper capitalization
* Optional question timer
* Keyboard and mouse input

Reward / Penalty System
* Assign rewards and penalties for right and wrong answers.

Streaks/Slumps
Easily track streaks and slumps using included switches and counters to trigger event listeners.

DOCUMENTATION:
COMING SOON - for now the MV documentation is included, which is very similar and will allow you to get started.

CREDITS:
See credits in plugin header.
Hi Starbid! I can't figure out how the game detects a correct answer in the plugin, so I can use it as a trigger to start a common event.

I didn't want to bug you so I put a few hours into trying to figure it out before writing! Maybe you can help point me in the right direction 🙂

My wish is to ask one question during battle each character turn. If answered correctly, the character's normal attack is triggered against the monster.

During the monster turn everything happens normally (the monster attacks).

Thanks!
Hi Dantor,

There should be a Quickstart Guide (pdf) in the zip file you downloaded.

Correct Answers turn Switch 991 ON

Wrong Answers turn Switch 992 ON

All switches are reset by the plugin, so you don't need to worry about turning them back off.

This allows a Common Event to act as a "listener" and perform whatever action you want. You can also use the switches to determine battle actions.

One thing to note, it is not possible to use Short Answer questions in battle (as far as I know) because of the way Scenes work in the engine. Other question types work fine though, including with a timer.
Thanks! That's great. Do you know how to make a "991 trigger" let the battle continue (the player may select to use attack, special, item, etc and do the selected action) and make a "992 trigger" skip the character turn (so he loses his action and it becomes the monster turn, to attack or whatever)?

Thanks!!!
Yes, that can be done. I'm not an expert in Battle Processing (it's not very intuitive, imo) so you might want to play around with it to get the exact result you want. I have tested this and it works.


1. Create a new STATE called SKIP TURN.
a. Set RESTRICTION to CANNOT MOVE
b. Set PRIORITY to 100 or higher
c. Set REMOVAL CONDITIONS to REMOVE AT BATTLE END, AUTO-REMOVAL TIMING: ACTION END
DURATION 0 ~ 0
1721920837202.png


2. Go to the TROOPS tab and add this Battle Processing for each enemy that uses the questions.
a. You will need TWO Event Pages
b. On the first Event Page, run the Plugin Command to pull questions from the database
c. Add a short WAIT command (I usually use 3, but here it's 10)
d. Add a CONDITIONAL BRANCH, use commands found below in image.
e. Make sure Event Page 1 is set to CONDITIONS: Turn 0, SPAN: Battle
f. Create a second event page and copy ALL of page 1 to page 2.
g. Set CONDITIONS to Turn End and SPAN to Turn (see below)

** IMPORTANT NOTE: You'll see the command If: WRONG ANSWER is ON -- this refers to Switch 992 (plugin switch for wrong answer response), which I have named WRONG ANSWER for readability/clarity.

1721921046824.png

1721921360949.png


You'll notice that most of the difficulty here comes from figuring out the Battle Processing rather than interfacing with the plugin (at least I hope it seems that way to you too 🙂
Thank you tremendously. It has taken a while to wrap my head around it all but I have got things working and I'm delighted. I really appreciate your help.
Very glad to hear that, Dantor! Please let me know if you have any other questions!
I would love to make an NPC ask 10 questions in a row to test your knowledge before letting you battle a "quizz monster". Is there a way to do this? I prefer if it can be done from a local event, rather than edit the code.

Original thread: https://forums.rpgmakerweb.com/threads/mzquizzer-quiz-engine-plugin.143808/