0 votes
by (120 points)

Hi, I'm working on a scene where the player has to look at every object in the room to figure out how to move on, however, the player can visit the link with the object only once, after that, it becomes regular text. Is there a way to achieve this? Here's the code without it done.

To the right is a [[mirror|hosp-mirror]] reflecting the blue room. It's reflection showing something glowing on a bed.

Again, I want the mirror link to become regular text saying "mirror" once the player has returned from the passage.

Thanks.

1 Answer

0 votes
by (280 points)
edited by

In my understanding, you seems like show some information only once, right?

I don't recommend this kind of method because it forces user to load saved files or find for introduction which has spoiler like wiki, for only one mistake, carelessness, or maybe their short memories.

but anyway, what is your purpose, to do this, you can simply use conditional link

To the right is a <<if $mirror ==1>>mirror<<else>>[[mirror|hosp-mirror][$mirror to 1]]<</if>> reflecting the blue room. It's reflection showing something glowing on a bed.

but with historical undo button on sidebar, it will undo the variable values so link will be back.

to avoid this, you can destroy side bar or historical undo/redo button.

by (120 points)
edited by

It worked for a few seconds and then nothing. As the code you gave is for SugarCube I had to modify it to work for Harlowe, but it still doesn't work. Any ideas?

To the right is a (if: $mirror is 1)[mirror](else:)[[[mirror|hosp-mirror]](set: $mirror to 1)] reflecting the blue room. It's reflection showing something glowing on a bed.

 

 

by (280 points)
you should move between passage with link macros.

with undo arrow on left side, it won't work
...