It looks like you're new here. If you want to get involved, click one of these buttons!
(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.
Comments
Remove the quotes around your assignment: You can use the combination of a named hook and a (replace:) macro to update the value displayed on the page: