Newbie coder here. Using Twine 2 and Harlowe. I've successfully made a cycling link, and I'm now trying to get the subsequent internal link to lead to a different passage depending on which item in the cycling link is chosen. I tried to follow the instructions given in this thread:
https://twinery.org/forum/discussion/4937/cycling-link
However, I seem to be running into problem after problem as I try to tweak it. I'm sure there's at least one glaringly obvious error in here, but it's beyond me!
I'm just going to post the entire passage in case the problems stem from something I've done with the cycling link too.
In any event, there are multiple problems that are resulting from this. One is that no matter what the cycling link is on, the internal link always leads to the passage "wing-hall", which is only supposed to be associated with the last item in the list. Also, I've gotten multiple error messages, which always look something to this effect:
I just started learning how to do some basic coding yesterday. It hasn't even been twenty-four hours yet, so I'm a tad out of my depth with...well, everything, at this point. I appreciate your answers!!
https://twinery.org/forum/discussion/4937/cycling-link
However, I seem to be running into problem after problem as I try to tweak it. I'm sure there's at least one glaringly obvious error in here, but it's beyond me!
I'm just going to post the entire passage in case the problems stem from something I've done with the cycling link too.
As per the instructions (or at least my understanding of them) in the aforementioned link, I copied and pasted the second chunk of that code (from "[{|(if: $"what else has changed?"" onward) into all the possible linked passages. Was I wrong to do that? There arent any arrows connecting these passage boxes to the one with the cycling link in my editing view...you stand still. so very still. it is possible you are no longer able to move, in this space. and there is something different about you. at least, you're pretty sure you never used to have (set: $myVar to "vibrating membranes at the sides of your neck")<tw-link class='cyclingLink' data-cycling-texts='["vibrating membranes at the sides of your neck", "skin as soft and white as maggots, and just as cold", "curled teeth of such size that they cannot be contained by your lips", "a second pair of arms, these ones of immaterial golden haze", "black blood that prickles like thorns beneath your transparent skin", "pleochroic wings, which shiver with strange energy"]' onclick='clickCyclingLink(this, "$myVar");'>$myVar</tw-link>.
<center>
(link: "what else has changed?")[{|
(if: $"what else has changed?" is "vibrating membranes at the sides of your neck")[(goto: "membrane-hall")]
(elseif: $"what else has changed?" is "skin as soft and white as maggots, and just as cold")[(goto: "maggot-hall")]
(elseif: $"what else has changed?" is "curled teeth of such size that they cannot be contained by your lips")[(goto: "teeth-hall")]
(elseif: $"what else has changed?" is "a second pair of arms, these ones of immaterial golden haze")[(goto: "arm-hall")]
(elseif: $"what else has changed?" is "black blood that prickles like thorns beneath your transparent skin")[(goto: "blood-hall")]
(else:) $"what else has changed?" is "pleochroic wings, which shiver with strange energy")[(goto: "wing-hall")}]
</center>
In any event, there are multiple problems that are resulting from this. One is that no matter what the cycling link is on, the internal link always leads to the passage "wing-hall", which is only supposed to be associated with the last item in the list. Also, I've gotten multiple error messages, which always look something to this effect:
I just started learning how to do some basic coding yesterday. It hasn't even been twenty-four hours yet, so I'm a tad out of my depth with...well, everything, at this point. I appreciate your answers!!