How to Make a Variable Delete a Portion of Text Once the Variable Reaches a Certain Value?

Twine Version: 2.3.15
Story Format: Harlowe 3.2.3

In my game, I have a variable ($Stage1_Levels) to determine when a player can move on to the next stage. Once the variable reaches 3, I want to make it so the only option a player can click is to move on to the next stage. This would mean deleting or hiding all the other content in that passage. How would I do this?

I don’t know what’s your current code, so it’s a little hard to say with precision what to do. However the easiest way sounds like to use the (if:) macro and put whatever text or links you do not want to appear inside the resulting [hook].

(if: $Stage1_Levels < 3)[[[Conditional action->Passage to go]]]
[[Always possible action->Next]]

Thanks!

1 Like