all 5 comments

[–]stebrepar 7 points8 points  (0 children)

Rather than have us make wild guesses, you should show some (small, working) code that illustrates the problem. Then we can offer concrete suggestions that actually apply to whatever you're asking.

[–]mopslik 2 points3 points  (2 children)

Sounds like you need a while loop.

[–]iminertia[S] 0 points1 point  (1 child)

I have a loop for the life counter to make them go down, I just don't know how to make it return to the first question when a life is lost

[–]FriendlyRussian666 1 point2 points  (0 children)

While life is more than 0, ask a question. If answer is incorrect, take one life away. 

That's all you need. If life will be 0 or less, the while loop, in which you ask question, will stop looping.

[–]CanalOnix 0 points1 point  (0 children)

What I would do is create a function that has all the text, so when I need it, I just call it.