klembot / twinejs

Twine, a tool for telling interactive, nonlinear stories
https://twinery.org
GNU General Public License v3.0
2k stars 295 forks source link

Code no longer working #1006

Closed ghost closed 2 years ago

ghost commented 2 years ago

Describe the bug.

Have tried this code in both Harlowe and Sugarcube and online too, but it doesn't seem to be working anymore.

Here is the code for Harlowe: (set: $hoursAsleep to it +1) You have slept $hoursAsleep hours. (if: $hourAsleep < 12)[[[Sleep more->SLEEPy]]] [[Open your eyes->OPEN EYESy]]

Here is the code for Sugarcube: <<set $hoursAsleep ++>> You have slept $hoursAsleep hours. [[Open your eyes->OPEN EYES]] <<if $hourAsleep lte 12>>[[SLEEP]] <>

It just continues forever, as whereas before it would stop once reaching 12 and the LINK would remove itself.

Is this a bug? If I have missed something, please explain - I am completely new to this! Thanks for any help, Kind regards. neonnev

Steps to reproduce:

I am sending the player back to the screen they are already in. It worked before but now it doesn't. Sugarcube: <<set $hoursAsleep ++>> You have slept $hoursAsleep hours. [[Open your eyes->OPEN EYES]] <<if $hourAsleep lte 12>>[[SLEEP]] <> Harlowe: (set: $hoursAsleep to it +1) You have slept $hoursAsleep hours. (if: $hourAsleep < 12)[[[Sleep more->SLEEPy]]] [[Open your eyes->OPEN EYESy]]

Expected behavior:

To stop at the given number and remove the link - instead it continues forever

Additional context on this problem.

Is there a patch I can update with if that's the problem? I have never coded before and I'm approaching OAP in age. If I missed that this was already mentioned, please accept my humble apologies.

Thanks, neonnev

Twine version number

2.3.15

Does this problem occur with the web version of Twine or the desktop app?

Desktop app

What operating system does this problem occur on?

Windows

If this problem is occurring with the web version of Twine, what browser does it occur on?

Edge

Presubmission checklist

klembot commented 2 years ago

Sorry, this repo is not for support of either story format. I would recommend asking elsewhere in the community for help (Discord, subreddit, etc.)