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

(Harlowe) Performing math with random variables

$
0
0
(click: "crumbs")[''You collect some crumbs!''(set: $Cdrop to (random: 1,4))(set: $Crumbs to "$Crumbs + $Cdrop")]
As you can see, I am trying to make a random drop system that adds to the overall displayed variable. My issue is that it runs the addition function infinitely. I tried setting it to a single number instead of random, but i had the same issue. $Crumbs is set to 0, so I am not sure what I am doing wrong.

Viewing all articles
Browse latest Browse all 1844

Trending Articles