I am working on a game with a math combat system and I want it to be if you get the question right you can attack the enemy and it skips the enemy's turn but if you get it wrong it skips your turn ant the enemy will attack. this is what I have so far in my battle event.
Loop
If: # Bat is affected by Knockout
Break loop
End
Contorl Variables : #0001 Counter = Random 0..3 (This is used to choose different questions)
If : Counter = 0
Text :
Solve for x
2+x=10
Input Number: #0002, 2 digits
If: #0002 = 8
Text :
correct
Force Action: Player, attack, Random
End
If #0002 (not equal) 8
Text:
Incorrect
Force action: #1 Bat, Attack, Random
End
End
This is so close to what I want but the players cannot choose the move that they use. Please let me know if you can think of any solutions. Also, I am very sorry if this is not in the correct section of the forums. It's my first time posting.
Loop
If: # Bat is affected by Knockout
Break loop
End
Contorl Variables : #0001 Counter = Random 0..3 (This is used to choose different questions)
If : Counter = 0
Text :
Solve for x
2+x=10
Input Number: #0002, 2 digits
If: #0002 = 8
Text :
correct
Force Action: Player, attack, Random
End
If #0002 (not equal) 8
Text:
Incorrect
Force action: #1 Bat, Attack, Random
End
End
This is so close to what I want but the players cannot choose the move that they use. Please let me know if you can think of any solutions. Also, I am very sorry if this is not in the correct section of the forums. It's my first time posting.