Help with repeatedly updating a text with blocks

Hello, im new to thunkable. Im trying to make myself a helper app for a board game “Frosthaven”.
Characters in this game have hand sizes, and each round they play 2 cards. Once the characters hands are empty, they must rest and “lose” 1 card and pick the rest back up. You can also play cards that lose immediately. Doing so means you wont pick them back up when you rest again, thus having a big impact on how many rounds you can last.

This helper will calculate how many rounds you can last based on inputs for losses each round (9 total).

I currently have a working setup that calculates the baseline, trouble is i cant seem to get inputs to update the results. I put the calculations into a function which runs on page open. But will not adjust with inputs.

I made a list that records each input successfully, that also updates successfully (tested by putting it on text on screen). The last thing in each “When inputx changes” is to calculate again i also included the losses into the calculations successfully. I can test this by not calculating on page open and only calculating upon input change. The correct value displays but again wont change with other inputs.

Hopefully this makes sense. Hmu on discord for easier communication/pictures/vids.

Hopefully tagging my discord is allowed
havok3009

Hey there, Josh!

When you lose all your cards, you would want your code to look something like this:

if Player1Cards = 0:
    set Label1's Text to "your text here"

Depending on how your project is built, if the card changes are in a variable, then this is probably the code you need. Otherwise, try putting this in a forever block (maybe)