MV Some help in creating a Quiz Battle System (again)

so far I see it, it cannot be used though, as you get alot of crap asking
the question as they arený equal to what the link I posted.

xml to json is differently, and might work, but can be incorrect how
rpg maker is reading them.

rpg maker and other software can read them slightly different, depending
on the setup, and the amount of information is given.

as some parts has also different part like "deedback", "external link" etc
inside of it, if you want a quiz base, those shouldn't be there.
I think I give up the plugin way and just add qustions by hand and randomize their aparaition
But if someone may have such plugin I gladly accept it
even in JS way, it has alot of errors when opening the file.
but most question inside JS or struct to be readed from there,
the concept stays the same.

creating a question and show inside a window during battle, is
around the way it is done like the quiz battle (evented) or by calling
the json file by the link as easiest.

MVQuizer plugin might not work in battle, but the questions is harder
to setup, it depends on the way the battle works exactly by than by
the questions.

if the demo made by Caetryril does not work for your needs, a plugin
base for that would be almost equal, questions need to be made, probably
through a json file as well to be called.
This is what I made with the events :

◆Loop
◆Control Variables:#0001 = Random 1..12
◆If:#0001 = 1
◆Common Event:Question 1
◆
:End
◆If:#0001 = 2
◆Common Event:Question 2
◆
:End
◆If:#0001 = 3
◆Common Event:Question 3
◆
:End
◆If:#0001 = 4
◆Common Event:Question 4
◆
:End
◆If:#0001 = 5
◆Common Event:Question 5
◆
:End
◆If:#0001 = 6
◆Common Event:Question 6
◆
:End
◆If:#0001 = 7
◆Common Event:Question 7
◆
:End
◆If:#0001 = 8
◆Common Event:Question 8
◆
:End
◆If:#0001 = 9
◆Common Event:Question 9
◆
:End
◆If:#0001 = 10
◆Common Event:Question 10
◆
:End
◆If:#0001 = 11
◆Common Event:Question 11
◆
:End
◆If:#0001 = 12
◆Common Event:Question 12
◆
:End
◆If:#1 Slime is affected by Knockout
◆Break Loop
◆
:End
◆
:Repeat Above

But it's pretty long to do. Is there most efficient way to call the question (which are in comment event) ?
In the end I would like add a lot more of quetions
After seing your answer.. I got this idea. Are this step near what you wanted?
Spoiler: a lot word
Spoiler: images
sfaae.jpg
  1. You meet slime (group)
  2. pick random order for question. You only choose 1 random number. The number will taken which order you want to use. example: you have number 2.. and the order you will have is 23154
  3. call event that read the order you use. Since this is the first loop, you will take order number 1 which is number 2. And put on variable for condition on next step
  4. showing the question based on number you want to show (condition)
  5. if question are correct, give result =1 if not result=0
  6. on this will split. the detail is if success( result =1 ) you will damage the slime or you got damage. Then check your status or your target status.
  7. if you target is 0 or less.. you win
  8. if you are 0 or less.. you lose.
  9. if the target still alive.. return to number 3.. and the next number will be 3.. and Soon until one of you is not move/hp=0
for this step.. I prefer using JS for the code. but I'm not gonna lie, If I have this problem.. I will use command script to do it like your code.
or I'm not gonna use all code on js.. some on command script (for damage, show option etc).
Spoiler: drawback of this method
You will have lot to add on 1 common event. With those condition, if you have 100 question.. you will type
Code:
◆If:#0001 = 11
   ◆Common Event:Question 11
   ◆
 :End
I prefer type the question inside the condition.


the common event will be a lot of, because it related to how many enemy (group) you will make.


debuging if you don't defeat the enemy can be hard. If you have 20 enemy group. It mean, you need to test 20x3 times to check if the code correct or need repair




Spoiler: the advantages of this method
you can controlled easly. if you have condition, if the question asked 4 times and not got the final.. Slime run away

you can manage what common event you use. But still.. 1 enemy group = 1 common event is not good method. This related to common word DRY = Don't Repeat Yourself

simple and you can copy paste on other common event.



Hope this help you for the game development
the way you did is also something you can do shorter.

control variable x = 1....12

common event area 1

from the common event, you can check the value with your questions
(all 12 for that area)!

common event 2 for area 2, and the rest there.
you can even roll a random variable from it. or from a parallel process
and erase event on the map itself (depending how you start it).

it depends how you feel most comfortable with on how to start it,
and how long the questions are.

Original thread: https://forums.rpgmakerweb.com/threads/some-help-in-creating-a-quiz-battle-system-again.154779/