Twine Version:
[harowe 3.2.3]
When I used an event macro for the checkbox, it only worked until I clicked once to get a true state and clicked again to get a false state.
I guess it’s because the event macro only works once.
A macro that works multiple times instead of just once is live, and if you use this, the number increases almost infinitely depending on the time condition.
What if I want to make it work in the future? Isn’t there a macro that works once for every state change?
I’ve already tried the method of attaching a link so that it clicks once and then doesn’t cancel again, and it worked well. But I want to make this work with a checkbox on Harlowe.
Here is the code I’ve been trying to get to work.
Total number of packages: (live: 0.01)[|packageStat>[$package]]/2
(checkbox: 2bind $D,"d")
(event: when $D is true)[(set: $package to it+1)
(if: $package>= 2)[(link:"next")[(goto: "next")]]]
(event: when $D is false)[(set: $package to it-1)]
(checkbox: 2bind $E,"e")
(event: when $E is true)[(set: $package to it+1)
(if: $package>= 2)[(link:"next")[(goto: "next")]]]
(event: when $E is false)[(set: $package to it-1)]
(checkbox: 2bind $F,"f")
(event: when $F is true)[(set: $package to it+1)
(if: $package>= 2)[(link:"next")[(goto: "next")]]]
(event: when $F is false)[(set: $package to it-1)]