MVQuizzer - Multiple Choice, Short Answer, True/False Engine

*NOT FOR RELEASE IN ANY GAME OR PROJECT UNLESS EXPLICIT PERMISSION IS GRANTED*

I've wrapped up an alpha for my MVQuizzer system. Essentially it's an engine that makes it easy to create Multiple Choice, Short Answer, and True/False questions. Questions (which can have audio and image components in addition to text) are pulled from a database js file (also in the plugin folder) and answers are evaluated by the engine. Answer rewards and penalties are also pulled from the database. There are question builders for each question type (MC, SA, TF) and these allow you to quickly and easily create questions to populate the database. Questions are pulled one after another and then cycle back to the first question. This was done for simplicity's sake, but with some basic eventing you can control the actual number of the question that gets called, thereby creating database "sections" (10 questions on subject x, 20 questions on subject y, for instance). With 9 game variables and 2 switches, your game can interact a lot with the plugin, for example by creating a Retry Question token that allows you to retry the last question but only if you got the answer wrong.

The plugin does not have any parameters at this point, but it did in the past and it probably will again in the future.

Now on to what it does have...

FEATURES:
Encoding:
Simple encoding system to discourage cheating. It's not uncrackable but it looks like this: ䷃䷯䷼䷩䷪䷪䷙䷈䷁䷝䷤䷩䷀䷯䷖䷟䷱䷒䷙䷶䷇䷒䷙䷶䷴䷮䷙䷫䷄䷅䷊䷩䷱䷅䷎䷫䷁䷝䷺䷟䷀䷾䷊ so good luck reading that out of your console. Encoding is optional in the Question Builder, so if you want human readable questions you can simply leave it unencoded. You can also use the note field in the Question to provide plaintext questions and answers that can later be deleted prior to game release. The encoding function is obfuscated to add another slight layer of protection against cheating, but just PM me if you want the unobfuscated version of the function.

Question Types:
Short Answer Questions with keyboard input
Multiple Choice Questions with two to five answer choices. Answers are randomly shuffled.
True / False Questions

Include images with any question and audio with Multiple Choice or True / False questions

Question Rewards / Penalties:
Give or take away Gold, Items, Weapons, Armors, HP, MP, TP, XP, Skills, MaxHP, MaxMP, DEF, ATK, and States.
Start battles on wrong answer (no escape) or right answer (can escape) with enemy troop of your choice.

Streaks and Slumps:
Plugin records current correct answer streak or wrong answer slump. Streaks and slumps automatically reset when wrong answer or right answer is given, respectively.

Question Timer:
Response time recorded to game variable for easy interaction via common event listener or other eventing method.

Auto Save:
Game saves itself in the last used save slot automatically after a question is answered. If you don't want it to do this, just comment out the save function. I want it in there so that answers have consequences in the game, but I understand if it's not what everyone wants. Might make this a parameter in future versions.

COMPATIBILITY:
I have not looked into compatibility with other plugins. I suspect there might be some issues with plugins that handle keyboard inputs. Fixing compatibility issues is low priority for me right now.

PLUGIN SETUP:

1. Add getQuestion.js and questionDatabase.js to plugin folder and turn them ON in the game editor.
2. Change your max Game Variables to 1000 or more. Change your max Switches to 1000 or more.
3. Add questions to questionDatabase.js in a text editor. Save the file.
4. Put MVQ_correctAnswer.png and MVQ_wrongAnswer.png in your img/pictures folder.
5. Put MVQ_correctAnswer.ogg and MVQ_wrongAnswer.ogg in your audio/se folder.

Here is what a blank questionDatabase.js file looks like:

var questionDatabase = {"Questions" : [

// YOUR QUESTIONS GO HERE

]}

The Question Builders for each type of question are found in the demo. They are ShortAnswer.html, MultipleChoice.html, and TrueFalse.html. They can be opened in a browser even if you are not online. Simply fill out the forms and click the "CREATE" button. You will then see a bunch of text between braces with a comma at the end like this: { text in here },

Just select all (ctrl+A) and copy the string. Paste that directly into your questionDatabase.js file and hit enter to give yourself some space to paste the next question. That's it! Instead of 15 minutes eventing each question, you can make a question in about 15 seconds. You can also rearrange the questions by simply changing their order. And once you get a feel for how the information is stored, it's very easy to tweak rewards and penalties when you're trying to balance your game.

CREDITS:
Enormous thanks to @darkkitten whose CmdInp.js was vital to this project.
Vlue - Popop Window Plugin
Chaucer - Stop Sound Effect Plugin
Frank A. Grenzel - CloudManager.js - functionality not currently used (commented out)

Known Issues:
*Popup Window Boxes do not always size correctly. I think I know why this is happening but have not settled on the solution I want to use to fix it.

*Repeated code. I will be trying to clean that up as I move forward.

*There's no control over window popup duration. I want to have that adjustable in the same way volume is adjustable but have yet to implement it.

*No audio support for Short Answer questions. Coming soon, hopefully.

*Font limited to default font or font with exact same dimensions. This may not get changed.

*very limited error handling. more will be added.

*There's an online saving system commented out! I KNOW! Online games and answer recording will be future features.

Long term goals include progressive difficulty feature, time limits on questions, and an MV Tool for creating questions in the editor itself, among others.

Original thread: https://forums.rpgmakerweb.com/threads/mvquizzer-multiple-choice-short-answer-true-false-engine.114088/