Implementing math into my battle systems

1577573065897.png

so this is is like my idea kind of,
im making a math based rpg game and the played has to answer a math question every turn which will decrease hp if they get it wrong,
what I demonstrated here is a box that pops up with a question and has an input box at the bottom (in this case 4 input boxes because theres 4 solutions)
is there any way to implement this? plugins are fine
You could Event this, your Enemy Troop needs 2 Eventpages.
Page1 - Condition: Turn 0 + 0 * x and Span: Battle
This happens before the Fight start, so insert your first Math Question.
Use Textbox in Combination with Show Choices
-Control Variable1 set to 0 (in case it has another amount, because of previous battles)

Page2 - Condition: TurnEnd ; Turn 0 + 1 * x and Span: Turn
After a Turn is before a Turn =). This Page is now executed everytime before Player Input, which is the same as after Player input.
Possible Eventcode for Page 2:
Control Variable1 add 1
conditional branch variable 1 = 1
question2
end
conditional branch variable 1 = 2
question3
end
conditional branch variable 1 = 3
question4
end
conditional branch variable 1 equal or above 4
nothing, no questions left....
end
ah, thank you!
will definitely try
You could Event this, your Enemy Troop needs 2 Eventpages.
Page1 - Condition: Turn 0 + 0 * x and Span: Battle
This happens before the Fight start, so insert your first Math Question.
Use Textbox in Combination with Show Choices
-Control Variable1 set to 0 (in case it has another amount, because of previous battles)

Page2 - Condition: TurnEnd ; Turn 0 + 1 * x and Span: Turn
After a Turn is before a Turn =). This Page is now executed everytime before Player Input, which is the same as after Player input.
Possible Eventcode for Page 2:
Control Variable1 add 1
conditional branch variable 1 = 1
question2
end
conditional branch variable 1 = 2
question3
end
conditional branch variable 1 = 3
question4
end
conditional branch variable 1 equal or above 4
nothing, no questions left....
end
I cant find the turn condition, could you please guide me towards where it may be?
edit:
nevermind im dumb! sorry for bother

Original thread: https://forums.rpgmakerweb.com/threads/implementing-math-into-my-battle-systems.116696/