Hello! I'm trying to create a small segment of my Twine game in which the player is scrolling through stations on a radio - and depending on which station they are on, it will output flavor text suitably, e.g.,
<<if $radio eq "69">>
A woman's voice says 'nice', and then the radio crackles with static before falling silent.
However, I've been out of touch with coding and such for a while now, and I'm not entirely sure how to go about this. If possible, I'd like to have the radio interface (up and down tuning buttons with the readout of what station you're on in between them), and below that, whatever flavor text corresponds to the station you're on. I have no problems with the if/then variables as regards to the text, but the radio interface is stumping me. :/
What I've got so far is as follows (it isn't much and it isn't good, sorry in advance):
The passage is called 'Radio' (as a placeholder), and this is what I've got in it so far -
[[UP|radio][set $radio += 1]]
[[DOWN|radio][set $radio -= 1]]
I set the variable in the passage just before it -
<<set $radio to 88>>
And possibly because it's a passage that redirects to itself (or... I don't know. something else), clicking on the UP and DOWN buttons does nothing but generate an error message. Help would be appreciated!