Making random quiz

Status
Not open for further replies.

kazukazu

Villager
Member
Joined
Jun 3, 2015
Messages
18
Reaction score
0
First Language
Indonesian
Primarily Uses
Hi, I want to make a quiz section in my game. In that section there will be 5-10 questions. I want to make all the questions show randomly (by using random variables), but also I want to make it not repeatable. Because using only random variables, the question can be repeated. So, I need a solution for the repeated questions' problem. Thanks before.
 

Azaarious

Veteran
Veteran
Joined
Oct 18, 2012
Messages
44
Reaction score
18
First Language
English
Set a random number to select then set conditions for it with switches for each question. So if a question is answered to try again. Then set the last one so that when all switches are on to end. They had a similar question like this with random maps in MV if you want to check it out here: http://forums.rpgmakerweb.com/index.php?/topic/52216-help-with-roguelike-game/

But it is basically the same thing.
 

Rinobi

Veteran
Veteran
Joined
Mar 24, 2014
Messages
579
Reaction score
219
First Language
English
Primarily Uses
RMVXA
A few script calls simplifies the process.

$game_variables[id] = ["Who?", "What?", "When?", "Where?", "Why?", "How?"] # array of questionsquestion = $game_variables[id].sample # select random question to be stored$game_variables[id].delete(question) # delete selected question from array# id = variable ID used to store questions.Have you attempted to setup a random question event already? If so, it could be beneficial to show us.
 

Azaarious

Veteran
Veteran
Joined
Oct 18, 2012
Messages
44
Reaction score
18
First Language
English
I programmed an example, obviously you will want to make it longer for a longer quiz, but this was done with 3 questions and a randomizer at 1-3. Sorry, I have no idea how to make the images larger.

Quiz Part 1.png

Quiz Part 2.png

Quiz Part 3.png

Quiz Part 4.png
 
Last edited by a moderator:

LyonBuster

GAN's Professor
Veteran
Joined
Apr 8, 2018
Messages
69
Reaction score
22
First Language
Spanish
Primarily Uses
RMMV
This is really nice
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,842
Reaction score
5,225
First Language
Dutch
Primarily Uses
RMXP

LyonBuster, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.


This topic is nearly 4 years old.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,049
Members
137,570
Latest member
fgfhdfg
Top