Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

[Sugarcube 2.16.0] Ignoring Variable on Return

$
0
0
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?

Viewing all articles
Browse latest Browse all 1844

Trending Articles