A script that will give questions into the battle.

Hello!

Uh.. I've been busy making educational games lately, with such a flat and generic systems. I do have an idea, actually.
I need a script that will give such questions to the player.

For example, the Player is on a battle. To attack, one should answer a math question. If one failed, one gets attacked. Then, the question shuffled again.
Also, there is a time limit to answer the question. If the time limit is over, the one gets hit by the enemies.

Thanks!
You don't need a plugin for that.

Just program common events, operating off a conditional branch tree, defined by variables, that will be called up skill use of your enemy types.

Have the variable generate within a range, then have dialogue & choice events attached to conditional branches, defined by variable amounts. Then have a force action tied to the correct answers when chosen, which will make the player character attack; & a force action tied to the incorrect answer when chose, which will make the enemies attack.
You don't need a plugin for that.

Just program common events, operating off a conditional branch tree, defined by variables, that will be called up skill use of your enemy types.

Have the variable generate within a range, then have dialogue & choice events attached to conditional branches, defined by variable amounts. Then have a force action tied to the correct answers when chosen, which will make the player character attack; & a force action tied to the incorrect answer when chose, which will make the enemies attack.
You know what? That's a brilliant idea!
But what about random question? Did I can randomize the variables?
Yes, just have the variable generate a number within a range, & then assign a question to each number.

The variable generation will provide you with the desired RNG.

Original thread: https://forums.rpgmakerweb.com/threads/a-script-that-will-give-questions-into-the-battle.87779/