Print result from the last routine on the first with a loop

I’ve been working with some type of game. I have 3 routines on a loop: the first routine has the start points (20), the second has a textbox where the participant enters a number answer (b) that is added to the start points and then it it’s printed on the third routine. The thing is I need to change constantly the start points on the first routine as they are added on the second routine and i need to repeat this 5 times but I do not know how to print it on the first routine.
Any idea?

Hi @vzampa, if you store the points in a variable (e.g., score) that gets changed across the routines you can simply display its current value in a text component in the first routine. For example, by having a text component with the value $score set to “set every repeat”.