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.
Making random quiz
RPG Maker VXAce SupportSet 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.
But it is basically the same thing.
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.
$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.
This is really nice
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.
Original thread: https://forums.rpgmakerweb.com/threads/making-random-quiz.53072/



