Well, Tsukihime's Bit Switches script is "just" an eventing tool.
Explaining what it does exactly would be a bit long post, but in just a few words:
It uses variables in a different way, so you can make exact conditions more precisely, like if one bit is turned on and another one is off, than the first event can be activated, but the second can not, etc.
Basically, it uses variables as if they would be many switches but in a more compact way.
It sounds complicated at first, but once you get the hang of it, it can save you hell of a lot switches with just one variable used up. I suggest you too look it up at Tsuki's site, there is a great explanation there, and even a tutorial to get you started with Bit Switches.
Here is the link for it:
http://www.himeworks.com/2013/06/07/bit-switches/
Here is what I did with my question setup while eventing with using Bit Switches:
Once a question is used, it activates one bit in the bit sequence.
Before every of my questions, there is a conditional branch, which checks for that bit. If it is turned on, then it skips the question to the next valid one.
This way, I eliminated the repetitive question issue without using thousands of switches for it.
Here is the entire (very tedious, mind you!) process of how I evented it:
My quiz mini-game in my project uses category selection with simple choice branches.
When the category is selected, it jumps on the next page on the event, that is the page for the questions.
There are multiple question pages, of course, all of them uses self-switches as a condition to activate.
So, when it is on the question page, I started with a loop command. In the loop I started off with setting a variable to a random number from X to Y. This will be the question randomizer variable. Then a conditional branch. It checks if variable XY is at 10. If it is, it breaks the loop and jumps to the ending phase with a self-switch toggle, which is on another page of the event.
If it is not 10, it starts to ask questions.
Before every question, there are multiple conditional branches set up.
The first checks for a variable to decide which question will be used and is the very same variable, which I randomized at the start of the loop. If it returns true, than it asks that question. If it is not, then it moves to the next one.
Now, when it went through that check, it checks for the bit from another variable used for the bit switch setup. If it is off (aka bit XY == 0), it asks that question, if it is on (aka bit XY == 1), it skips the question.
When the question is answered, if the correct answer is given, it adds +1 to yet another variable, this will be the correct answer check variable. If not, it won't add to that variable. Regardless if the question was answered right or wrong, it turns the associated bit on in the earlier mentioned bit variable. This move eliminates it from the question pool altogether from now on. And remember our very first variable check, the one which checks for number 10? After all is said and done with the question, it adds +1 to that variable too.
Now, if everything is set up right, after the 10th question, it jumps on the ending phase, which is the "results page" for me. I actually hid the answer check from the player, so the player have no idea if he/she answered the question right or wrong. The only thing which he/she will see, and only after the 10th question, is the number of question answered correctly. Nothing more. It adds a bit of depth to it, like a real exam kind of thing. But of course, anyone can change this, the ending phase is the least of our problems when setting up a whole quiz system with eventing, right?
😛
After displaying what needed to be displayed, I made a reset on all variable used (set them on 0 value), and switched off all self-switches. Basically, I reseted the whole event.
So, what you need for this is... lemme count... 4 variables and Tsukihime's Bit Switches script (to save countless real switches).
I warn you thou, this is really tedious to set up properly. One mistake in one bit switch or just a typo on any variable check can make this system destroyed. It needs concentration (a lot!), understanding loop commands, variable actions, nested conditional branches, and the bit switch setup. If all of this returns a green lamp for you, go ahead and try it! If you manage to do it, you will feel satisfied for sure.
🙂
I even made a difficulty setting for it. Easy mode gives select-able answers (2 of them), normal gives 4 answer choices, hard will not make any choices, the player needs to manually type in the answers here. The last mode requires another script to do, it is from Tsuki too, called ... actually, I have no idea how is it called, I named it as "Text Input" because that is how the module is named in the script itself. There was no name indicated at the header of the script, so this is the best I can do to describe it.
I hope, I wrote everything in an understandable way.
I wanted to make a demo for you, but realized that I would never manage to upload it, because of the crappy connection I have.
Btw, you wrote that you use a script for randomizing the questions and asking only 10 of them in a sequence, right? If you got this setup with that script already, you just need to put in the bit switch variable check before every question and you should be ready to go, I guess.
Can I ask which script is you are using for that? It might make this whole quiz setup easier for me.
😀