I'll try to keep this one as brief as possible. My story has some RPG elements in it including two stats that are the subject of my problem. First is Stamina, second is Vitality (HP, basically). The idea is that they are two separate stats that have their own pools, however, if your stamina is reduced below 0 it will reduce your vitality by 1 instead and keep the stamina at 0.
I know the basic code I can use to make this work, and it's not really the subject of my question. The problem is I am using a PassageHeader passage in my story to constantly display these stats, and the passage header evaluates all of its stuff before the main passage. This means that if I include the code to reduce stamina inside the passage, the header at the top won't update to reflect this change until the player changes the passage, meaning the stats displayed will always be 1 step behind.
A possible solution to this is to include the code inside the link to the next passage, which would be fine except I'm not sure how to use an if statement inside the link. Any advice would be greatly appreciated.