Fun stuff with Twine/Harlowe
Mar. 29th, 2022 06:25 pm
So, this is a tiny, quick test (no formatting, which is why white text on a white dropdown) I'm doing for Stardew Valley bundle thing that I'm doing in Twine/Harlowe. I wanted to see if I could get a dropdown to work, then set it up so it's easier for me to deal with in the future.
In order to do this, because Twine is a CYOA engine and Harlowe was not really meant for this, I first set up the dropdown into a temporary variable. When the user clicks the "Done!" link, it quickly pokes a corresponding numerical value into a different, static variable. Part of the page is watching for that static variable to change, and when it does, it pops in the rest of the text and hides the first section.
I'm taking advantage of a command that I could have really used in "Let the Struggles Fall Away", which is the hide command. Apparently the dropdown coding is new too!