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

Loop for a limited number of times

$
0
0
I am a complete coding beginner and have spent some time searching the archives but I can't seem to find an answer. I'm using Harlowe and trying to write a passage that loops for a fixed number of times before changing. So, 'add sugar' for up to four times and then go to the passage "sweet enough already" on the fourth click.

I've got the loop to work ok but I have no idea how to count the number of loops and change the result based on said count. I'd be grateful for any pointers, and am keen to understand how things work rather than just copying and pasting!

Many thanks

Viewing all articles
Browse latest Browse all 1844

Trending Articles