How to make a pre-magic spell conditional event?

Hi, not sure if the title accurately portrays what I'm looking to do.

I'm using RPG Maker MV to make a quiz game similar to Prodigy Math Game.

What I need to do:

Trigger: Player casts spell
Event: A multiple-choice question comes up, example:

"Which one is a fruit?"

A: Banana
B: Potato
C: Broccoli
D: Wheat

After the player answers correctly, the spell fires and attacks.
When the player answers correctly, one of several outcomes:

- Nothing happens ("You lost your concentration!")
- The player takes damage
- Some state effect (player goes to sleep, player gets confused, etc.)

Any guidance on how to do this? I've been looking for days!
My advice would be to skip the battle scene entirely and just do the whole thing on the map using show choices events and dialogue. You can look up how to make the player fire projectiles on the map. You can also transfer to player to a new map that looks like a traditional battle scene.
If you really want to do this inside battle, I'd say try Yanfly's Action Sequences. They allow you to program the skill, so you can call a common event before calculating how the damage works.

I don't know if it will work quite right (if the skill will wait for the event to finish all that, or even if the text boxes with choices will display properly in the battle scene), but you can try it.

I think the idea to skip actual battle and just event it all is probably your easiest bet.
Yea I’ve tried using a show choices event inside a battle before. I can’t remember exactly what the problem was but I know I had a lot of trouble with it. Another thing to consider, if you decide to make map battles, is SRD’s Hud Maker or Galv’s Varible Bar plugins. They allow you to display health gauges and such on the map.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-pre-magic-spell-conditional-event.139689/