Hi there! first off, I am a newbie to Twine and CSS (and Java and HTML...) this forum and all the documentation has been incredibly helpful but I'm still struggling with some things that seem very opaque to a beginner. I usually work coding stuff out by reverse engineering, inspecting the element in browser or just googling my question, but haven't been able to do that with this problem.
I'm using Harlowe, Twine 2.0 on iOS
I've got how to link to a new passage -
putting it in double square brackets - What I want to do is have the user click on a word, and the text display underneath, rather than take them to a new passage. I think I've figured out how to replace a hook, like below, but ideally I'd like the text to appear underneath.
|slip>[slip it from my shoulders.]
(click:?slip)[(replace:?slip)[Enough!]]
I know this is possible as I've seen it done, would be great to get an answer!
A bonus question is in the code of other Twines there is a thing called .enchantment-link - is that different to a tw-link?
Any help much appreciated
Comments
re: .enchantment-link
All the different ways to create links (markup, macros, named hooks) generally result in one of two different sets of HTML elements being created. The tw-link element is part of one set and the .enchantment-link class is part of the other.
eg. the above (link:) macro results in a tw-link element, where as your (click:) macro results in a tw-enchantment element with a class of .enchantment-link
I would also ideally have links appearing in the ouput as well, if that makes sense? So a new paragraph would appear on the click, with it's own link in it....