Ok, I'm in the home straight of my latest Twine and I've hit a conundrum.
I've used a variable to make it so that what looks like the same link will go to different passages depending on how many times the player has clicked it before. It looks like this:
<<if $timesLooked==0>>[[LOOK|look1][$timesLooked=1]]<<endif>> <<if $timesLooked==1>>[[LOOK|look2][$timesLooked=2]]<<endif>> <<if $timesLooked>=2>>[[LOOK|look3][$timesLooked=3]]<<endif>>
Which is, fine.
my links don't look like...
...they look like...
...because I'm using images to create navigation buttons, but I'm having trouble inserting that into the variable, it (or I) gets confused over which brackets are opening and closing what and wont work. Anyone know how I need to type this?
I'm using sugarcane btw.
...causes the creation of a passage link which reads "img[LOOK]look1" rather than showing the LOOK image.
All other combinations I've tried so far just seem to make it display as black text (indicating it won't do anything other than display on the page).
It appears that in Sugarcane you can either have an Image Link or a Setter Link but not both, but you can get around the issue by wrapping the image in a HTML hyper-link like the following:
That's how I would, and can, express it if once the player has gone everywhere a new extra button would appear beneath the main three navigation ones I'm using.
BUT, it would be nice if rather than a new button appearing it replaced the central LOOK button in the same way I've been doing so far, but I'm not sure how to add that onto the end of the list of variables I'm using at the moment. Everything I've tried either doesn't work or throws up errors.
<<if visited ("placeA") and ("placeB") and ("placeC") and ("placeD")>>[img[EXIT]]<<else>>link<<endif visited>>
You could also just set a $variable once they have visited everywhere and use that instead of visited, I don't really use visited much so I'm not 100% on the syntax of <<if visited>> but above definitely works with normal if statements.
The fruits of this should be posted in the week