How to i make an rpg battle system based off true or false questions?

The idea is that instead of an attack or run button you instead have to answer random true or false questions
If you answer correctly you do damage to your opponent but if you get it wrong your opponent attacks you
Something like this: gd.games game build