I have a variable that produces a game over when it reaches 100, but the player has (limited) healing potions that are selectable from the sidebar. This seems to be working fine, and I have noreturn tags on the potion select screen to avoid getting stuck.
However, if I have an incremental variable increase on a passage (a storyline one with no noreturn), when I return it will just add the damage back on.
The demon swings at you. You are damaged!
[[Keep running!|forest2]]
<<set $health -= 40>>
If I heal at this point, then return to this passage, it will damage me all over again. I can't push it to the next passage because you can heal at any point. Is there any way to avoid this?
Comments
One way around this might be a stop-gap solution of creating a variable that gets set when you use a health potion and gets checked upon returning to the page to prevent the health from being decremented again.
forest2][$health -= 40