Twine Version: 2.5.1
Story Format: Harlowe 3.3.3
Hey everyone. Just started using Twine this week and thought I’d try a silly little story to test what I’ve been learning. But I’ve come across a weird issue when trying to create a Live number inside of a Click-Append.
Issue:
I left the code in the passage as is, but the part I’m struggling with is the Click-Append “watch”. The number currently updates live as intended, but if the reader clicks on the “watch” first, all other Clicks break. (Note: the “Nah, I’m Good” works fine.) The image below is a screenshot of what happens. All circled links are suddenly white and do not work.
Testing:
The best solution I’ve found so far is to assign a second or millisecond value to the Live macro immediately before my $time variable. The problem there is, it causes the other Clicks to flash every time the Live macro triggers, or if I assign it the same second value as the Set macro that increases my $time variable, it might not be there when the reader first clicks on it. (It also still flashes all Clicks, which I’m guessing just isn’t avoidable.)
Any ideas? I’ll take any help I can get, though I would prefer to avoid JavaScript for now. Thanks in advance for your time and efforts.
Code:
It's a warm starry night as you walk up the steps to the restaraunt.
While it *is* your first time here, you've received a personal recommendation from a trusted friend, so you have at least some hope that this won't be a terrible experience.
As you stand before the door, you ask yourself if there's any last things you should check.
Your watch?
Your tie?
Your zipper?
(link-reveal-goto: "*Nah, I'm good.*", "Entrance") [(set:$conf to it + 1) (set: $noun to "person"))]
(click-append: "restaraunt") [ (text-colour:grey)[(a fine establishment, with a brick facade and wide glass widows which are warmly lit from the overhead lamps inside)]]
(set: $time to 55)
(click-append: "watch?") [ It's 8:(live:) [$time]{(live: 15s) [(set: $time to it + 1)]} right now. The event starts at 9:00.]
(click-append: "tie?") [ It's a little loose. You could tighten it if you want to.]
(click: "tighten") [(set: $cool to it + -1, $smart to it + 1)]
(click-append: "zipper?") [ It was down?! You quickly fix it. Thank goodness!]