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
[ ] I am interested in working on code that would fix this bug. (This is not required to submit a bug report.)
[X] I have done a search and believe that an issue does not already exist for this bug in the GitHub repository.
[X] I have read and agree to abide by this project's Code of Conduct.
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